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
Close
Hashes for keras_pyramid_pooling_module-1.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 571dee0def1514b1aa7e5bb2d1c84868e37e9a8b2b33fe97b56a687eee0dd8f7 |
|
MD5 | b01f0a20edcf7a3e43ebb05ec421667d |
|
BLAKE2b-256 | 0aa05faaec92cb249964e4bd9d32e6b2fe1a300e74de7ca85d5187661db218fc |
Close
Hashes for keras_pyramid_pooling_module-1.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab2dd320d452840433a45548642304a2dc1879a8ce3bf0f433daaa7bd6f4fd13 |
|
MD5 | 486a68233e81a178b276ac6b00ab0022 |
|
BLAKE2b-256 | c82a9b4ba6cc19eb5e2a1888e78a9efe063d4e300cc6db85bf33165dafcca1ad |