Skip to content
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

over confident pseudo tracking when animal exits field of view #183

Open
DavidGill159 opened this issue Jul 2, 2024 · 3 comments
Open

Comments

@DavidGill159
Copy link
Contributor

Hi, I have trained multiple LP models now; single camera supervised, semi-supervised, ctx, multi-camera supervised, and multi-camera ctx. One issue that persists across all models is LP's insistence on tracking landmarks which are not occluded but completely out of the field of view. This is something Deeplabcut deals with quite well by giving low-confidence values to landmarks in these frames; such low-confidence landmarks are then not plotted in video inference. This does not seem to be reflected in LP. How do you propose I go about improving this? This issue poses problems when triangulating the landmarks across different camera views. E.g., In the attached frame (during rearing), the snout likelihood for DLC is 0.003842 and for LP it is 0.906632.
image
image

@DavidGill159 DavidGill159 changed the title pseudo tracking when animal exits field of view over confident pseudo tracking when animal exits field of view Jul 2, 2024
@danbider
Copy link
Owner

danbider commented Jul 2, 2024

@DavidGill159 -- the way we calculate the confidence score is different from DeepLabCut, and our scores will by definition be higher. Using our scaling, it is advised to use 0.95 to threshold low confidence keypoints. Can you please try this and tell us if it helps?

@DavidGill159
Copy link
Contributor Author

Hi Dan thanks for getting back to me! I just tried that, but I'm afraid the video prediction still looks the same.

@themattinthehatt
Copy link
Collaborator

@DavidGill159 this is an issue that we're aware of and trying out several fixes. In the meantime, a couple points to keep in mind:

  • if you use the Pose PCA loss the model will try to localize the keypoint, even if it is occluded
  • in this case, I would recommend looking at the Pose PCA loss itself (output as video_preds/<video_name>_pca_singleview_error.csv in your model folder). this error should be very high for a frame like the one you've shared, indicating that there is an issue with the prediction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants