IDEA-Research / Grounded-SAM-2

Grounded SAM 2: Ground and Track Anything in Videos with Grounding DINO, Florence-2 and SAM 2
https://arxiv.org/abs/2401.14159
Apache License 2.0
771 stars 59 forks source link

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

Open SJP2022 opened 3 hours ago

SJP2022 commented 3 hours ago

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 commented 2 hours ago

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!