gaomingqi / Track-Anything

Track-Anything is a flexible and interactive tool for video object tracking and segmentation, based on Segment Anything, XMem, and E2FGVI.
MIT License
6.31k stars 470 forks source link

Extracting Masks #142

Open IsaiasBahena opened 1 month ago

IsaiasBahena commented 1 month ago

Can a feature be added that allows you to extract the masks from the videos as well?

KDeng98 commented 2 weeks ago

Hi there, If you are still looking for it, here is a tip of enabling it in a previous issue.

26

Here, you can uncomment this line to save the maks.

https://github.com/gaomingqi/Track-Anything/blob/57c28bc6b6288f792435f8ddd6830626b2b7cf10/app.py#L380

And you can change the mask save directory here.

https://github.com/gaomingqi/Track-Anything/blob/57c28bc6b6288f792435f8ddd6830626b2b7cf10/app.py#L278-L285