Skip to content

Grounded SAM 2: Ground and Track Anything in Videos with Grounding DINO, Florence-2 and SAM 2

License

Notifications You must be signed in to change notification settings

RobotecAI/Grounded-SAM-2

Grounded-SAM-2

Grounded SAM 2: Ground and Track Anything with Grounding DINO and SAM 2

Contents

Installation

Since we need the CUDA compilation environment to compile the Deformable Attention operator used in Grounding DINO, we need to check whether the CUDA environment variables have been set correctly (which you can refer to Grounding DINO Installation for more details). You can set the environment variable manually as follows if you want to build a local GPU environment for Grounding DINO to run Grounded SAM 2:

export CUDA_HOME=/path/to/cuda-12.1/

Install segment-anything-2:

pip install -e .

Install grounding dino:

pip install --no-build-isolation -e grounding_dino

About

Grounded SAM 2: Ground and Track Anything in Videos with Grounding DINO, Florence-2 and SAM 2

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 97.8%
  • Python 2.0%
  • Cuda 0.2%
  • C++ 0.0%
  • Dockerfile 0.0%
  • Shell 0.0%