Skip to main content

The Pyramid Pooling Module for Keras.

Project description

Keras Pyramid Pooling Module

PackageVersion PythonVersion Stable Format License

A Keras implementation of the Pyramid Pooling Module discussed in Pyramid scene parsing network [1].

layer

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for keras-pyramid-pooling-module, version 1.1.8
Filename, size File type Python version Upload date Hashes
Filename, size keras_pyramid_pooling_module-1.1.8-py2.py3-none-any.whl (6.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size keras_pyramid_pooling_module-1.1.8.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page