-
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
Add GPU support for draw_segmentation_masks #7684
Add GPU support for draw_segmentation_masks #7684
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/7684
Note: Links to docs will display an error until the docs builds have been completed. ❌ 7 New FailuresAs of commit 43e8034: NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Hi @mshr-h! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
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 @mshr-h . We should probably add a quick test to make sure it works as expected, by e.g. adding the cpu_and_gpu()
decorator to this test:
Line 206 in fc83b28
def test_draw_segmentation_masks(colors, alpha): |
See
vision/test/test_functional_tensor.py
Lines 542 to 543 in fc83b28
@pytest.mark.parametrize("device", cpu_and_gpu()) | |
def test_resize_asserts(device): |
fe0317b
to
257de9b
Compare
Thank you for your quick review. I need to ask my employer to sign the CLA. I guess it takes a few weeks. |
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.
CI failures are unrelated. Thanks a lot @mshr-h!
I need to ask my employer to sign the CLA. I guess it takes a few weeks.
Unfortunately, we cannot merge until that is done. We should get a notification as soon as that is done, but in case we miss it, feel free to ping us here.
@pmeier |
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 @mshr-h , I fixed a conflict issue and I'll merge when green
@@ -245,11 +246,12 @@ def test_draw_segmentation_masks(colors, alpha): | |||
torch.testing.assert_close(out[:, mask], interpolated_color, rtol=0.0, atol=1.0) | |||
|
|||
|
|||
def test_draw_segmentation_masks_errors(): | |||
@pytest.mark.parametrize("device", cpu_and_cuda()) | |||
def test_draw_segmentation_masks_errors(device): |
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.
I'll leave this here to avoid churn but we typically don't need to run those tests on cuda, as there's nothing cuda-spcecific there. Same for test_draw_no_segmention_mask
Reviewed By: vmoens Differential Revision: D47186583 fbshipit-source-id: 2e1c92fcd58b48c030bc131842c941bfaf3b6948 Co-authored-by: Nicolas Hug <nh.nicolas.hug@gmail.com> Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
#7683