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

[FIX] ResNet-18 accuracy 68.934 -> 69.752 #62

Merged
merged 1 commit into from
Jun 27, 2022
Merged

[FIX] ResNet-18 accuracy 68.934 -> 69.752 #62

merged 1 commit into from
Jun 27, 2022

Conversation

kotekjedi
Copy link
Collaborator

The problem was with resize step in the preprocessing.

The problem is pretty much described in resize docs: "The output image might be different depending on its type: when downsampling, the interpolation of PIL images and tensors is slightly different, because PIL applies antialiasing. This may lead to significant differences in the performance of a network".

For ResNet-18, accuracy still slightly differs from https://pytorch.org/vision/stable/models.html. Our preprocessing pipeline (without PIL) achieves 69.752, when pytroch pipeline (with PIL) achieves 69.758.

The problem was with resize step in the preprocessing. The problem pretty much described in resize docs : "The output image might be different depending on its type: when downsampling, the interpolation of PIL images and tensors is slightly different, because PIL applies antialiasing. This may lead to significant differences in the performance of a network".
@kotekjedi kotekjedi requested a review from zimmerrol June 27, 2022 15:18
@zimmerrol zimmerrol merged commit 60bbc6d into shift-happens-benchmark:main Jun 27, 2022
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

Successfully merging this pull request may close these issues.

2 participants