alaamaalouf / FollowAnything

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

follow_anything.py won't end

Alex-fishred opened this issue · comments

I am currently executing
python follow_anything.py --desired_height 240 --desired_width 320 --path_to_video /home/islab/FollowAnything/FollowAnything/example_videos/car_following.avi --save_images_to outputs/ --detect dino --redetect_by dino --use_sam --tracker aot --queries_dir /home/islab/FollowAnything/FollowAnything/queries/toy_car_following --desired_feature 0 --plot_visualizations

But after running the video, the program will stop working, which means the program will not end automatically. Is this normal?
The final terminal output is as shown below
image

I have fixed this behavior to make the system stops once the offline video is done.

However, we currently keep this for online streaming, as sometimes reading frames might be delayed due to communication issues. Thus, currently, for online streaming, the program could be stopped manually. We will work on improving this.