z-x-yang / Segment-and-Track-Anything

An open-source project dedicated to tracking and segmenting any objects in videos, either automatically or interactively. The primary algorithms utilized include the Segment Anything Model (SAM) for key-frame segmentation and Associating Objects with Transformers (AOT) for efficient tracking and propagation purposes.
GNU Affero General Public License v3.0
2.83k stars 340 forks source link

i want to track one object ,but new object mask comes out #85

Open leonzgtee opened 1 year ago

LiNO3Dy commented 1 year ago

Thank you for your question. The model automatically detects and adds new objects every sam_gap frames. To solve this issue, you can adjust the default value of sam_gap in SegTrackerArgs to its maximum value and click reset. #72

zhanghongyong123456 commented 1 year ago

Thank you for your question. The model automatically detects and adds new objects every sam_gap frames. To solve this issue, you can adjust the default value of sam_gap in SegTrackerArgs to its maximum value.

https://github.com/qiuyu96/CoDeF/issues/39 , it is ok,when i set sam_gap > my video img num ,it's OK,but output masks
Several more masks (*new.png) image

LiNO3Dy commented 1 year ago

Can you provide more information? For example the path to your mask folder or provide your original video. I provided a demo video for you and it didn't generate extra image files. I hope this helps.

https://github.com/z-x-yang/Segment-and-Track-Anything/assets/97865789/6201bdbe-c157-4222-9b7c-52466e3e2c5b

zhanghongyong123456 commented 1 year ago

Can you provide more information? For example the path to your mask folder or provide your original video. I provided a demo video for you and it didn't generate extra image files. I hope this helps.

default.mp4

this is my test video 链接: https://pan.baidu.com/s/1_x4RI05XA2J462I7UtWe5g 提取码: u165

Dingry commented 9 months ago

I encountered this issue too. When I just want to track several objects clicked in the first frame, it segments new objects unexpectedly in 100th frame and continues to segment the whole image instead of the clicked objects.

image image
yuhaoliu7456 commented 7 months ago

I encountered this issue too. When I just want to track several objects clicked in the first frame, it segments new objects unexpectedly in 100th frame and continues to segment the whole image instead of the clicked objects.

image image

Have you figured out how to solve this problem?