Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I scale the image to a larger resolution? #6

Closed
zugexiaodui opened this issue Apr 12, 2023 · 2 comments
Closed

Can I scale the image to a larger resolution? #6

zugexiaodui opened this issue Apr 12, 2023 · 2 comments

Comments

@zugexiaodui
Copy link

The default resolution of the input image is 32*32. Can I scale the image to a larger resolution? To this end, the code of SlimResNet18 will be modified slightly (i.e. out = relu(self.bn1(self.conv1(x.view(bsz, 3, 32, 32))))). Is it allowed or not?

@HamedHemati
Copy link
Collaborator

HamedHemati commented Apr 12, 2023

@zugexiaodui You are allowed to apply any transformation to the images provided by the streams as long as the base architecture layers are not modified. Changing the input size requires changing the kernel size of the average pooling layer, therefore it's not allowed. We need to compare all strategies using the same base architecture.
Also note that if you want to apply other (allowed) transformations for test time, you need to override the forward function and add the transformations there to ensure that the strategy applies them before making prediction on test images.

@zugexiaodui
Copy link
Author

I got it. Thank you for your explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants