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

[REVIEW] Closes #490 -- fixes bug in hue jitter #491

Merged
merged 2 commits into from
Feb 1, 2023

Conversation

benlansdell
Copy link
Contributor

This PR fixes a small bug in hue color jitter, as described in Issue #490. In images of all gray, some or all pixels are set to black when they shouldn't be. Looking at the CUDA kernel, it seems like the issue lies on line 208 of cuda_kernel_source.py.

Currently in the kernel if s == 0 then it sets the whole output to zero. But HSV is only black if v == 0, not s. So line 208 is here changed to:

if (v == 0) {

First PR here, so let me know what else is needed! Thanks.

@benlansdell benlansdell requested a review from a team as a code owner January 30, 2023 16:37
@rapids-bot
Copy link

rapids-bot bot commented Jan 30, 2023

Pull requests from external contributors require approval from a rapidsai organization member with write or admin permissions before CI can begin.

@benlansdell benlansdell changed the title [REVIEW] Closes #490 [REVIEW] Closes #490 -- fixes bug in hue jitter Jan 31, 2023
Copy link
Contributor

@grlee77 grlee77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @benlansdell! This looks good to me.

cc @shekhardw for visibility

@grlee77 grlee77 added this to the v23.02.00 milestone Feb 1, 2023
@grlee77 grlee77 added bug Something isn't working non-breaking Introduces a non-breaking change labels Feb 1, 2023
@jakirkham
Copy link
Member

ok to test

@ajschmidt8
Copy link
Member

/ok to test

@ajschmidt8
Copy link
Member

CI will be fixed shortly once #492 merges.

@jakirkham
Copy link
Member

/merge

@ajschmidt8
Copy link
Member

/ok to test

@codecov-commenter
Copy link

codecov-commenter commented Feb 1, 2023

Codecov Report

Base: 92.95% // Head: 92.95% // No change to project coverage 👍

Coverage data is based on head (1a49fac) compared to base (8a66080).
Patch has no changes to coverable lines.

Additional details and impacted files
@@              Coverage Diff              @@
##           branch-23.02     #491   +/-   ##
=============================================
  Coverage         92.95%   92.95%           
=============================================
  Files               130      130           
  Lines              9775     9775           
=============================================
  Hits               9086     9086           
  Misses              689      689           
Impacted Files Coverage Δ
...core/operations/color/kernel/cuda_kernel_source.py 100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ajschmidt8
Copy link
Member

@jakirkham, @grlee77, there were some test failures for arm below. I don't know anything about cucim to determine if they're legit, but I restarted that job to see if they were transient regardless.

Just posting for awareness.

@jakirkham
Copy link
Member

Thanks AJ! 🙏

Yeah we are discussing this offline

@rapids-bot rapids-bot bot merged commit 77581d1 into rapidsai:branch-23.02 Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants