IDEA-Research/Grounded-SAM-2

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

SJP2022 opened this issue · 3 comments

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

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!

same question,have you solved it ?

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.