Segment-Everything-Everywhere-All-At-Once icon indicating copy to clipboard operation
Segment-Everything-Everywhere-All-At-Once copied to clipboard

Demo code installation

Open antoniogonzalezsuarez opened this issue 2 years ago • 3 comments

Using windows WSL and trying to run the demo code.

I get an error while installing the requirements. For some reason it starts with the github repositories linked in the requirements.txt.

While installing from https://github.com/MaureenZOU/detectron2-xyz.git you get an error saying ModuleNotFoundError: No module named 'torch'.

By installing manually the torch module the error is solved but I don´t think this is ideal.

Another issue comes from the run_demo.sh, at least in my case it is not recognizing the sudo apt commands making it fail. Again if I do the commands manually it works.

antoniogonzalezsuarez avatar Apr 27 '23 08:04 antoniogonzalezsuarez

Sudo happens only in my computer for some reason but the requirements problem can be replicated.

antoniogonzalezsuarez avatar Apr 27 '23 08:04 antoniogonzalezsuarez

Thanks a lot that would be a very great suggestions, would provide detailed instructors for Windows and Mac Users.

MaureenZOU avatar Apr 27 '23 19:04 MaureenZOU

Delete the following last three lines from the requirements.txt

git+https://github.com/arogozhnikov/einops.git
git+https://github.com/MaureenZOU/detectron2-xyz.git
git+https://github.com/openai/whisper.git

And add the following line in run_demo.sh after pip install -r requiremenmts.txt

pip install 'git+https://github.com/arogozhnikov/einops.git'
pip install 'git+https://github.com/MaureenZOU/detectron2-xyz.git'
pip install 'git+https://github.com/openai/whisper.git'

Note, you may use python 3.9.

GoGoPen avatar May 02 '23 05:05 GoGoPen