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.75k stars 332 forks source link

How to select new objects/masks in intermediate frames with roll back functionality? #144

Closed jowerz closed 4 months ago

jowerz commented 4 months ago

Good job! I saw this video here:

https://www.youtube.com/watch?v=l7hXM1a3nEA

on your github page where you say that new objects can be selected in intermediate frames with roll back functionality. I tried the Web UI and there in the roll back options I saw that only existing masks can be refined in intermediate frames via roll back, but I didn't see a function here to create new objects/masks in intermediate frames. Can someone briefly explain how to select new objects/masks in intermediate frames like in the Video?

EDIT: I did some minor changes in the code and now its working. Thank you.