Skip to content

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

Merged
rapids-bot[bot] merged 2 commits into
rapidsai:branch-23.02from
benlansdell:branch-23.02
Feb 1, 2023
Merged

rapids-bot[bot] merged 2 commits into
rapidsai:branch-23.02from
benlansdell:branch-23.02

Conversation

@benlansdell

Copy link
Copy Markdown
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

rapids-bot Bot commented Jan 30, 2023

Copy link
Copy Markdown
Contributor

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

@grlee77 grlee77 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

ok to test

@ajschmidt8

Copy link
Copy Markdown
Member

/ok to test

@ajschmidt8

Copy link
Copy Markdown
Member

CI will be fixed shortly once #492 merges.

@jakirkham

Copy link
Copy Markdown
Member

/merge

@ajschmidt8

Copy link
Copy Markdown
Member

/ok to test

@codecov-commenter

codecov-commenter commented Feb 1, 2023 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.95%. Comparing base (8a66080) to head (1a49fac).
Report is 9 commits behind head on branch-23.02.

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           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ajschmidt8

Copy link
Copy Markdown
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
Copy Markdown
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