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].

Pyramid Pooling 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.

Source Distribution

keras_pyramid_pooling_module-1.1.7.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

keras_pyramid_pooling_module-1.1.7-py2.py3-none-any.whl (6.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file keras_pyramid_pooling_module-1.1.7.tar.gz.

File metadata

  • Download URL: keras_pyramid_pooling_module-1.1.7.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

Hashes for keras_pyramid_pooling_module-1.1.7.tar.gz
Algorithm Hash digest
SHA256 24272785a2778311c093976d8949ca34df3eef97006a7d3304a1f0005ae05c18
MD5 12e92d6dfabeff1357ffc7d4ba44068d
BLAKE2b-256 3aac0c4170136efcdca7670c545ab05e27250482f50a447287a28f93f3004fef

See more details on using hashes here.

File details

Details for the file keras_pyramid_pooling_module-1.1.7-py2.py3-none-any.whl.

File metadata

  • Download URL: keras_pyramid_pooling_module-1.1.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.4 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

Hashes for keras_pyramid_pooling_module-1.1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5636efdfca60a77bbd25630c956f9d274cb20dd9b069a55985a54be46e12d465
MD5 3df0b76f13544554c698bec4d684db54
BLAKE2b-256 3e11b06bd932fb45fe020b63a167dd37e9c36651b27ec3534f286aa23e70f2af

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page