Error occurring in inception v3 network

The Inception model expects inputs with a spatial size of 299x299. If your input size is small than this, some activations might be too small regarding their spatial size, such that the kernel size is actually bigger, which yields this error.
In that case, you could use torchvision.transforms.Resize((299, 299) to resize your input to the desired size.

1 Like