Skip to content

Bug fix: test_time_pool would be set to a non-False value #244

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

Merged
merged 2 commits into from
Oct 2, 2020

Conversation

hollance
Copy link
Contributor

@hollance hollance commented Oct 2, 2020

If args.no_test_pool is False but apply_test_time_pool() returns False because test-time pooling is not available, then the local variable test_time_pool would not be set to True or False but to a copy of the model. In turn, this would cause the crop_pct to be set to 1.0 further down in the code. This bug causes the results from validate.py to be slightly different from the validation score shown during training due to the different crop rectangle (unless training happened to use crop_pct = 1.0, of course).

Also possibly the cause of this issue: #235

@rwightman
Copy link
Collaborator

@hollance thanks, not related to #235 because this change is quite recent but an issue none the less.

@rwightman rwightman merged commit 186075e into huggingface:master Oct 2, 2020
guoriyue pushed a commit to guoriyue/pytorch-image-models that referenced this pull request May 24, 2024
Bug fix: test_time_pool would be set to a non-False value
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