Follow the installation guide at IDEA-Research/Grounded-SAM-2
Or install environment by conda yml:
conda env create -f environment.yml
Run the following command to start the demo:
CUDA_VISIBLE_DEVICES=0 streamlit run demo.py --server.address 0.0.0.0
The demo uses the following example images:
This guide helps you install and run Grounded SAM 2 for image processing with Stable Diffusion and ControlNet.