Please install additional libraries by running:
pip install -r requirements.txt
To work on video, you need to install ffmpeg
sudo apt-get install ffmpeg
git clone https://github.com/hkchengrex/XMem.git
cd XMem
pip install -r requirements.txt
Clone and install Samurai
Overwrite the file to make it run with multiple instances:
cp sam2_base.py /samurai/sam2/sam2/modeling/sam2_base.py
To run demo:
gradio app.py
to run old XMem:
RUN_XMEM=1 gradio app.py