Skip to content

Demo combining Grounding DINO with SAM (Segment Anything Model) visualized with Rerun

License

Notifications You must be signed in to change notification settings

rerun-io/grounding-sam

Repository files navigation

grounding-sam-rerun

gs1.mp4

This repository uses GroundingDINO to generate bounding boxes using natural language which are then fed into MetaAI's Segment Anything Model and visualized using rerun

This can work on either an image, a set of images, or a video.

Install

first install the main repos requirements using

pip install -r requirements.txt

then install GroundingDINO by running

git submodule update --init --recursive
cd GroundingDINO
pip install -e .

Running Demo

Make sure to be in the main directory

python main.py

Use --help to understand argparse inputs To use video input (here is an example video to download) use the following command

python main.py --video-path <PATH TO YOUR VIDEO FILE> --prompt "<YOUR CHOSEN PROMPT>"

About

Demo combining Grounding DINO with SAM (Segment Anything Model) visualized with Rerun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages