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.52k stars 481 forks source link

Extracting Masks #142

Open IsaiasBahena opened 5 months ago

IsaiasBahena commented 5 months ago

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

KDeng98 commented 4 months 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