luca-medeiros / lang-segment-anything

SAM with text prompt
Apache License 2.0
1.53k stars 167 forks source link

Unable to run #26

Closed askerlee closed 7 months ago

askerlee commented 1 year ago

Run a simple example and got "Error". The terminal doesn't print any error messages.

image

Any ideas how to debug it? Thanks. I tried to set a breakpoint at predict() but it doesn't trigger when I clicked "Submit".

viiika commented 1 year ago

Me met the same problem.

luca-medeiros commented 1 year ago

That is quite strange. Guess we should do some debugging to find the culprit. Mind posting more details about your GPU, cuda version, etc?

Noyii commented 1 year ago

Thanks for your reply. My GPU is A100 80GB and cuda version is 11.8, and I reinstalled my torch and lang-segment-anything, now it works. One thing worth to comment is I replace

pip install torch torchvision
pip install -e .

with

pip3 install torch torchvision
pip3 install -e .

which should be my environment problems.