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

resize mode question #94

Closed
cnnAndBn opened this issue Nov 24, 2020 · 2 comments
Closed

resize mode question #94

cnnAndBn opened this issue Nov 24, 2020 · 2 comments

Comments

@cnnAndBn
Copy link

cnnAndBn commented Nov 24, 2020

hi:
@ycxioooong in the config file of imagenet, as follows:
image
one way is use cv2.resize an anther way is the implementation in pillow library ,I wonder the difference between them and any gap in the classification accuracy ?

@ycxioooong
Copy link
Contributor

Hi @dadada101 sorry for my late reply. The only difference is that we use PIL as the backend in RandomResizedCrop. It will not affect the performance.

@ycxioooong
Copy link
Contributor

Hi @dadada101, one correction: the performance would be affected by resize backend. Using OpenCV as resize backend will decrease the accuracy by 0.1% ~ 0.3% in our experience (R50, ImageNet) than using PIL.

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