-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Refactor adjust ops tests #2595
Refactor adjust ops tests #2595
Conversation
…-5/issue-2292-unify-grayscale
…-6/issue-2292-unify-grayscale
- deprecated F.to_grayscale in favor of F.rgb_to_grayscale
- split test_adjustments into 3 separate tests - unified testing approach with test_adjust_gamma
Codecov Report
@@ Coverage Diff @@
## master #2595 +/- ##
==========================================
+ Coverage 70.34% 71.68% +1.34%
==========================================
Files 95 94 -1
Lines 8245 8162 -83
Branches 1308 1298 -10
==========================================
+ Hits 5800 5851 +51
+ Misses 2022 1901 -121
+ Partials 423 410 -13
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 for the PR Victor!
…-5/rewrite-test-adjust-ops
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!
* [WIP] Unify ops Grayscale and RandomGrayscale * Unified inputs for grayscale op and transforms - deprecated F.to_grayscale in favor of F.rgb_to_grayscale * Fixes bug with fp input * Rewritten adjust_* tests - split test_adjustments into 3 separate tests - unified testing approach with test_adjust_gamma * Added ColorJitter tests * Relaxed tolerance for functional adjust-* tests * Removed wrong merge and commented code
Description:
Currently
test_adjustments
test mixes functional and transform tests for 3 color ops:adjust_brightness
,adjust_contrast
andadjust_saturation
.This PR solves the following problems:
Notes: