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

RuntimeError("No points are provided; please add points first") during reverse tracking #53

Open
SJP2022 opened this issue Sep 25, 2024 · 3 comments

Comments

@SJP2022
Copy link

SJP2022 commented Sep 25, 2024

I run the code grounded_sam2_tracking_demo_with_continuous_id_plus.py on my own video, during the period of reverse tracking, it raises RuntimeError("No points are provided; please add points first"), because the output_dict["cond_frame_outputs"] is empty. I wonder why this occured and how to solve this problem. Thanks.
image
image

@SJP2022
Copy link
Author

SJP2022 commented Sep 25, 2024

And I also try the demo video assets/tracking_car.mp4 with fps=29 (VideoInfo(width=1920, height=1080, fps=29, total_frames=335)), it meets the same problem. I am really confused and hope for the answer. Thanks a lot!

@supersonicMaclaurin
Copy link

same question,have you solved it ?

@SJP2022
Copy link
Author

SJP2022 commented Oct 14, 2024

This is mainly because the source code requires g-dino to detect new objects every time it is called. If no object is detected at a certain time, reverse tracking cannot be performed. You can try adding a conditional judgment here to avoid reverse tracking when no object is detected. I hope it can help you.

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

2 participants