antialiased-cnns icon indicating copy to clipboard operation
antialiased-cnns copied to clipboard

Padding size issue for small images

Open DuyguSerbes opened this issue 3 years ago • 2 comments

Hello all,

I would like to train the model with CIFAR10.

But it gives error with blurring kernel size larger than 3:

RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (2, 2) at dimension 3 of input [64, 512, 2, 2]

What do you suggest? Is there a way to apply blurpool for small images?

DuyguSerbes avatar Dec 09 '21 21:12 DuyguSerbes

I'm getting something similar.

(I'm trying to anti-alias this UNet, any help, welcome).

maniatisni avatar Feb 03 '22 18:02 maniatisni

Thanks for trying this. When the spatial map is so small (2x2), there is unlikely to be much benefit in using a large antialias kernel

richzhang avatar Feb 09 '22 19:02 richzhang