frank-xwang / UnSAM

Code release for "Segment Anything without Supervision"
172 stars 9 forks source link

UnSAM notebook not working #1

Closed boumpteryx closed 1 day ago

boumpteryx commented 3 days ago

The UnSAM notebook does not run, it is apparently missing some imports (argparse and DefaultPredictor at least)

frank-xwang commented 2 days ago

Hi, did you run

python -m pip install 'git+https://github.com/MaureenZOU/detectron2-xyz.git'
python -m pip install -r requirements.txt

The detectron2's DefaultPredictor and argparse should be installed if you have completed these installation steps.

Let me know if this does not fix your issues. :)

frank-xwang commented 2 days ago

ps: if you were running notebook locally, please follow INSTALL.md to prepare the environment first. If you are using colab, simply compiling all cells should work.

frank-xwang commented 1 day ago

Closing it for now. Please feel free to re-open it if you have more questions.