-
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 utilites to plot Keypoints #3365
Comments
I think the time has come to work on this. I will illustrate what I have in my mind. I think that boxes can be plotted with Taken from here What do you think of this output @datumbox? This Colab is illustartion of @fmassa 's visualization utils for mask rcnn Additionally, the key point number would also be plotted if Note:- We would need to implement only with PIL to avoid dependecies ! |
@oke-aditya I have not worked much with the keypoint models but it surely looks nice. :) @fmassa thoughts? |
Hey @datumbox |
@oke-aditya Apologies for the late response. I'm OOO and don't closely follow the messages. Sounds good, happy to check it out once you are done when I'm back. Thanks for looking into it as always! |
No issues @datumbox 😄 |
🚀 Feature
We added utilities to plot bounding boxes #2556 #2785 and utility to plot semantic segmentation masks #3272 #3330 #3820
I think this is probably the last plotting utility we need.
Motivation
Same as before, we need these to make visualization and post-processing easier.
Also Easily support torchvision models.
Pitch
Use only PIL to draw key points. Also, keep the function signature consistent with previous utilities.
A prototype implementation is here!
Radius to determine how big the key point should be. This is essential as torchvision models suppose flexible image sizes.
The font is to plot the keypoint id. Sometimes in models like PoseNet, we would like to know which keypoint ids are visible.
Might help in debugging if particular keypoint does not work well.
The output of Keypoint RCNN is as follows
I think we should plot only the keypoints which are visible,
Additional context
The boxes can be plotted using
draw_bounding_boxes
. Users can use both these utils together to plot both boxes and keypoints. I don't think sodraw_keypoints
should internally call / draw boxes.Probably we need to give a demo run at it
The text was updated successfully, but these errors were encountered: