Spatial pyramid pooling layers for keras
Spatial pyramid pooling layers for keras, based on https://arxiv.org/abs/1406.4729 . This code requires Keras version 2.0 or greater.
(Image credit: Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition, K. He, X. Zhang, S. Ren, J. Sun)
Three types of pooling layers are currently available:
For example, this trains a network on images of both 32x32 and 64x64 size:
……RoiPoolingConv: like RoiPooling, but maintains spatial information.
Thank you to @jlhbaseball15 for his contribution
No open issues yet, or sync has not completed.