It’s impossible to apply ResNet to an image of any resolution because the penultimate layer is an AdaptiveAvgPool2d. However, the model may work well with an overwhelmingly larger input compared to the training image.