Skip to main content

A PyTorch implementation of Spatial and Temporal Pyramid Pooling

Project description

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

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

pytorch-pyramid-pooling-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

pytorch_pyramid_pooling-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pytorch-pyramid-pooling-0.1.0.tar.gz.

File metadata

  • Download URL: pytorch-pyramid-pooling-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pytorch-pyramid-pooling-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dfa246293cac41ab1e7b13ef6ffca33fc558903bb176f39547ff6ccea46296ce
MD5 5ae668f87beedaafba8d5af72741025a
BLAKE2b-256 9bd67d83b3bc2d957a13a01bd2d0e9102b1373fef3edabedaddeebc9bc3f522a

See more details on using hashes here.

File details

Details for the file pytorch_pyramid_pooling-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytorch_pyramid_pooling-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pytorch_pyramid_pooling-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2867f6767214a639748feaa40f86a138e31969acb6fe27fda8b545461f3e7e6b
MD5 ec6d7d0aa3049b8fb5c56fed2bf5e423
BLAKE2b-256 25dd831ba748e1fd1813293f4cc8151e7b04566764ad0bbe49c9fa504a3d8ddf

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