From 0fac49e03e8c381add07ad6c65e037e85b682f60 Mon Sep 17 00:00:00 2001 From: prashant Date: Tue, 19 Sep 2023 22:34:38 +0530 Subject: [PATCH] added installation of SAM and Grounding DINO --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c6cb767..9c0503c 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,18 @@ pip install -e . bash scripts/download_models.sh ``` +**Install GroundingDINO and Segment Anything Model** +```bash +git clone https://github.com/hkchengrex/Grounded-Segment-Anything +env CUDA_HOME=/usr/local/cuda +env BUILD_WITH_CUDA=True +env AM_I_DOCKER=False +cd {HOME}/Grounded-Segment-Anything +pip uninstall -y GroundingDINO +pip install -e GroundingDINO +pip install -q -e segment_anything +``` + **(Optional) For fast integer program solving in the semi-online setting:** Get your [gurobi](https://www.gurobi.com/) licence which is free for academic use. @@ -91,7 +103,10 @@ If a license is not found, we fall back to using [PuLP](https://github.com/coin- Install [our fork of Grounded-Segment-Anything](https://github.com/hkchengrex/Grounded-Segment-Anything). Follow its instructions. Grounding DINO installation might fail silently. -Try `python -c "from groundingdino.util.inference import Model as GroundingDINOModel"`. +Try +```bash +python -c "from groundingdino.util.inference import Model as GroundingDINOModel" +``` If you get a warning about running on CPU mode only, make sure you have `CUDA_HOME` set during Grounding DINO installation. ## Quick Start