-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Plot keypoint confidence as alpha value #2319
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
|
The code was updated so that
As an example of the resulting video obtained with the plotting function, here are the results on a toy project of running deeplabcut.create_video_with_all_detections(..., confidence_to_alpha=False)penDLC_resnet50_dev-maJul18shuffle1_1000_full_no_conf.movpcutoff = 0.1
def confidence_to_alpha(c):
return np.clip((c - pcutoff) / (1 - pcutoff), 0, 1)
deeplabcut.create_video_with_all_detections(..., confidence_to_alpha=confidence_to_alpha)penDLC_resnet50_dev-maJul18shuffle1_1000_full.movIn the second video, the low scores for the red keypoint in the top right corner is very clear, while it cannot be inferred from the first video with |
|
Looks good @n-poulsen! Low confidence points though will barely be visible: should the edge color remain, and only the face color be made more/less transparent? |
|
I think it's good if low conf. are barely/not visible; pcutoff of 0 then wouldn't be shown, and if we can pass a range that is even better |
|
Just two things to note:
|
|
I think this needs revisited. It is still clumsy. Right now a user must: then run: Why can we not make this so people can simply pass |
Adds the ability to use the confidence scores for keypoints for the alpha values for disks when creating labeled videos.