Skip to content

Spatial Pyramid Pooling is used when there are variable sized data in the dataset, the image shape is not specified at the start of the code and can be changed dynamically.

Notifications You must be signed in to change notification settings

ShahzaibWaseem/SpatialPyramidPooling_tf2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Spatial Pyramid Pooling

Spatial pyramid pooling layers for keras, based on the paper Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition.

I used this starter code, which is in tensorflow 1.0, github.com/yhenon/keras-spp. This code is for tensorflow 2.0.

spp

When to use

Apply the pooling procedure on the entire image, given an image batch. This is especially useful if the image input can have varying dimensions, but needs to be fed to a fully connected layer.

Configuration

  • Python 3.6
  • Tensorflow 2.0
  • Keras 2.2.4
  • Tensorflow input shape was used (not Theano)

Input Ordering

This code supports the Thaeno version if you change the input order

  • Tensorflow input order: (samples, rows, cols, channels) (image_data_format='channels_last').
  • Theano input order: (samples, channels, rows, cols) (image_data_format='channels_first').

About

Spatial Pyramid Pooling is used when there are variable sized data in the dataset, the image shape is not specified at the start of the code and can be changed dynamically.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages