-
Notifications
You must be signed in to change notification settings - Fork 7.2k
make_grid should not avoid DBZ by adding eps #2967
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
Conversation
While this doesn't matter in most cases where the images is quantized to [0,255] afterwards, it still is not a faithful de-normalization. It is a simple change to make it use clamp instead.
@ssnl thanks for the PR. Seems like related tests are failing: https://app.circleci.com/pipelines/github/pytorch/vision/4909/workflows/a919c232-bf9d-4125-a296-61154c5851f1/jobs/300230 |
Time for changing the |
Codecov Report
@@ Coverage Diff @@
## master #2967 +/- ##
==========================================
+ Coverage 73.43% 74.05% +0.61%
==========================================
Files 99 99
Lines 8813 9076 +263
Branches 1391 1448 +57
==========================================
+ Hits 6472 6721 +249
- Misses 1916 1922 +6
- Partials 425 433 +8
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot Simon!
* make_grid should not avoid DBZ by adding eps While this doesn't matter in most cases where the images is quantized to [0,255] afterwards, it still is not a faithful de-normalization. It is a simple change to make it use clamp instead. * fix max/min shadowing
* make_grid should not avoid DBZ by adding eps While this doesn't matter in most cases where the images is quantized to [0,255] afterwards, it still is not a faithful de-normalization. It is a simple change to make it use clamp instead. * fix max/min shadowing
While this doesn't matter in most cases where the image is quantized to [0,255] afterwards, it still is not a faithful de-normalization. It is a simple change to make it use clamp instead.