Conversation
Codecov Report
@@ Coverage Diff @@
## master #2672 +/- ##
==========================================
- Coverage 72.41% 72.35% -0.07%
==========================================
Files 95 95
Lines 8245 8254 +9
Branches 1308 1312 +4
==========================================
+ Hits 5971 5972 +1
- Misses 1858 1866 +8
Partials 416 416
Continue to review full report at Codecov.
|
fmassa
left a comment
There was a problem hiding this comment.
Thanks for the PR!
I think there is an issue with the current way you implement this.
Also, could you add tests for using the get_params interface for the case you are trying to fix?
|
|
||
| if brightness is not None: | ||
| if isinstance(brightness, float): | ||
| ColorJitter._check_input(brightness, 'brightness') |
There was a problem hiding this comment.
We are using the returned value of _check_input, so this doesn't actually do anything IMO.
Could we instead just do
brightness = ColorJitter._check_input(brightness, 'brightness')without the conditional on float?
There was a problem hiding this comment.
Yeah that definitely makes sense, not sure how I missed that.
|
@fmassa according to what we discussed previously, maybe it would be better to get back |
|
@vfdev-5 the |
Fixes #2669 and adds relevant typing to the arguments.