"A lot of people mistakenly believe..." variable pic size is impossible

Is there example code of this happening? Thanks. Escalating from here :slight_smile:

A lot of people mistakenly believe that convolutional neural networks (CNNs) can only work with one fixed image size, and that that must be rectangular. However, most libraries support “adaptive” or “global” pooling layers, which entirely avoid this limitation. It doesn’t help that some libraries (such as Pytorch) distribute models that do not use this feature – it means that unless users of these libraries replace those layers, they are stuck with just one image size and shape (generally 224x224 pixels). The fastai library automatically converts fixed-size models to dynamically sized models.

http://www.fast.ai/2018/08/10/fastai-diu-imagenet/

1 Like