Skip to main content

Pyramid Pooling implemented in PyTorch

This Module implements Spatial Pyramid Pooling (SPP) and Temporal Pyramid Pooling (TPP) as described in different papers.

NOTE This repo has been forked from Revidee's original (which seems to no longer be under maintenance) to publish on Pypi. I (Eric Musa) take no credit for writing the Pyramid Pooling code, but could not find any information on Revidee to provide proper credit.

The purpose of this fork is to continue maintenance of this package and post on Pypi

SPP-TPP Comparison

Temporal Pyramid Pooling:

Sudholt, Fink: Evaluating Word String Embeddings and LossFunctions for CNN-based Word Spotting

Principle

Given an 2D input Tensor, Temporal Pyramid Pooling divides the input in x stripes which extend through the height of the image and width of roughly (input_width / x). These stripes are then each pooled with max- or avg-pooling to calculate the output.

Animated Principle

TPP Visualization

Spatial Pyramid Pooling:

He, et. al.: Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition

Principle

Given an 2D input Tensor, Spatial Pyramid Pooling divides the input in x² rectangles with height of roughly (input_height / x) and width of roughly (input_width / x). These rectangles are then each pooled with max- or avg-pooling to calculate the output.

Metadata

Release files for pytorch-pyramid-pooling 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytorch-pyramid-pooling 0.1.0
File Size Uploaded Provenance Actions
pytorch-pyramid-pooling-0.1.0.tar.gz 5.1 kB Without provenance Details for pytorch-pyramid-pooling-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytorch-pyramid-pooling 0.1.0
File Interpreter ABI Platform Actions
pytorch_pyramid_pooling-0.1.0-py3-none-any.whl Python 3 none any Details for pytorch_pyramid_pooling-0.1.0-py3-none-any.whl

Total release size: 10.6 kB

Release files / pytorch-pyramid-pooling-0.1.0.tar.gz

Download URL pytorch-pyramid-pooling-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dfa246293cac41ab1e7b13ef6ffca33fc558903bb176f39547ff6ccea46296ce
BLAKE2b-256 checksum
How to use checksums
9bd67d83b3bc2d957a13a01bd2d0e9102b1373fef3edabedaddeebc9bc3f522a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Release files / pytorch_pyramid_pooling-0.1.0-py3-none-any.whl

Download URL pytorch_pyramid_pooling-0.1.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2867f6767214a639748feaa40f86a138e31969acb6fe27fda8b545461f3e7e6b
BLAKE2b-256 checksum
How to use checksums
25dd831ba748e1fd1813293f4cc8151e7b04566764ad0bbe49c9fa504a3d8ddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Security for pytorch-pyramid-pooling 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page