GUI for SAM2

August 9, 2024 ยท View on GitHub

A GUI tool for SAM2 video segmentation.

Installation

You should install SAM2 first.

pip install -r requirements.txt

Processing Custom Data

We highly encourage users to structure their data directories in the following way:

- data_root
    '- videos
    |   - seq1.mp4
    |   - seq2.mp4
[and/or]
    '- images
    |   - seq1
    |   - seq2
    '- ...

Usage

python mask_app.py --root_dir [data_root]

gradio interface

Acknowledge

The app is modified based on shape-of-motion.