Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing install details #7

Open
eafpres opened this issue Jun 23, 2023 · 3 comments
Open

Missing install details #7

eafpres opened this issue Jun 23, 2023 · 3 comments

Comments

@eafpres
Copy link

eafpres commented Jun 23, 2023

Hi--I tried to install on Linux per your instructions. I have a conda venv created for this.

I ran

pip install git+https://github.com/facebookresearch/segment-anything.git

it reported

Successfully installed segment-anything-1.0

I then ran

python -m pip install 'git+https://github.com/facebookresearch/detectron2.git
'```
it reported

Successfully installed antlr4-python3-runtime-4.9.3 detectron2-0.6 fvcore-0.1.5.post20221221 hydra-core-1.3.2 iopath-0.1.9 omegaconf-2.3.0 portalocker-2.7.0 pycocotools-2.0.6 tabulate-0.9.0 yacs-0.1.8


However, there was no requirements.txt file created in the current directory, so this failed:

pip install -r requirements.txt


the next instruction requests to cd into Matte-Anything; however, there was no such directory created, so I created it

I then ran
```cd Matte-Anything
git clone https://github.com/IDEA-Research/GroundingDINO.git

that created the GroundingDINO folder

I then ran

cd GroundingDINO
pip install -e .

it reported

Successfully installed addict-2.4.0 fsspec-2023.6.0 groundingdino-0.1.0 huggingface-hub-0.15.1 opencv-python-4.7.0.72 regex-2023.6.3 safetensors-0.3.1 supervision-0.6.0 timm-0.9.2 tokenizers-0.13.3 torchvision-0.15.2 transformers-4.30.2

On the next step, it says to put the pretrained models in ./pretrained, but it's unclear if that is supposed to be a subfolder of GroundingDINO or of Matte-Anything

at the end of if, there is no matte_anything.py so nothing runs so far

What did I miss?

@JingfengYao
Copy link
Member

Your directory should be look like:

Matte-Anything
├── ...
├── matte_anything.py
├── GroundingDINO
├── pretrained
   ├── groundingdino_swint_ogc.pth
   ├── sam_vit_h_4b8939.pth
   ├── ViTMatte_B_DIS.pth

Thanks for your reminder, we will update our README.md.

@neuromorph
Copy link

Well, you need to first git clone this repo (Matte-Anything), cd into it and then follow the setup/install.

@eafpres
Copy link
Author

eafpres commented Jun 25, 2023

image

Will confirm and close once I try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants