-
Notifications
You must be signed in to change notification settings - Fork 7k
Allow K=1 in draw_keypoints
#8439
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8439
Note: Links to docs will display an error until the docs builds have been completed. ❌ 12 New Failures, 1 Unrelated FailureAs of commit f789651 with merge base 61d97f4 ( NEW FAILURES - The following jobs have failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Hi @haarisr! 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! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Thanks for the PR @haarisr . To enable your original use-case, I feel like we should just allow |
It would but we should also enable the option to draw on a single keypoint on the image? It seems counter intuitive that the function would not work in such a case. |
OK, fair enough. I slightly updated the PR so that it doesn't entirely remove the Thanks for the PR @haarisr , I'll merge it in a bit. |
visibility
in draw_keypoints
draw_keypoints
Summary: Co-authored-by: Nicolas Hug <contact@nicolas-hug.com> Reviewed By: vmoens Differential Revision: D58283863 fbshipit-source-id: d461dacb65272f4d8b477008ff1c8d33d3bd1141
The squeeze here makes draw keypoints not work when K=1. In my use case, I want to draw a unique color for each keypoint. So currently, I iterate over every keypoint to select a unique color i.e dim 1. The squeeze seems redundant and it should work regardless of it. There is a check on line 401 as well.
It could also be that I have not understood the comment completely.