The Pyramid Pooling Module for Keras.
Project description
Keras Pyramid Pooling Module
A Keras implementation of the Pyramid Pooling Module discussed in Pyramid scene parsing network [1].
Installation
The preferred installation of keras-pyramid-pooling-module
is from pip
:
pip install keras-pyramid-pooling-module
Usage
The module functions as any other convolutional / pooling layer applied to a rank 4 tensor (batch, height, width, channels):
from keras.layers import Input
from keras.models import Model
from keras_pyramid_pooling_module import PyramidPoolingModule
input_ = Input((224, 224, 3))
x = PyramidPoolingModule()(input_)
model = Model(inputs=input_, outputs=x)
See PyramidPoolingModule.ipynb for a rough example of the layer outputs for a simple RGB image.
See CIFAR10Classifier.ipynb for an example of using the layer in a model to classify images.
References
[1] H. Zhao, J. Shi, X. Qi, X. Wang, and J. Jia. Pyramid scene parsing network. CVPR, 2017.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file keras_pyramid_pooling_module-1.1.8.tar.gz
.
File metadata
- Download URL: keras_pyramid_pooling_module-1.1.8.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7abc684e39d7ef5de87b8f36481600378b0787ba43b0dfc64ef70349c6689b0f |
|
MD5 | af3043bdc1630d434729151954a48ad9 |
|
BLAKE2b-256 | fc10f3336d67bf1218c80b7bce10c1090dadfa9df50e7cb3b1f3c4b4e28de526 |
File details
Details for the file keras_pyramid_pooling_module-1.1.8-py2.py3-none-any.whl
.
File metadata
- Download URL: keras_pyramid_pooling_module-1.1.8-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26f5d9d86e110e43c9b0b6195ca432715dd87f6729647bd54e6a3d5d03a24eda |
|
MD5 | fe34bd42d768211243a6b2ce25812ec6 |
|
BLAKE2b-256 | 2db315fdb5d2d695678a1a06a3b77e8d70bc13b7765751207f4e384f73a3347b |