luca-medeiros / lang-segment-anything

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

ModuleNotFoundError: No module named 'torch' #21

Closed fsalmasri closed 7 months ago

fsalmasri commented 1 year ago

I tried using pip and cloning the project and I still have the same error. knowing that I have torch and torchvision installed.

Python 3.10.9 torch 2.0.1+cu118 torchvision 0.15.2+cu118

davidshhh commented 10 months ago

running into this as well

J0ELh commented 10 months ago

The temporary solution I found was to use the non-cuda version of torch and torchvision

jonahsamost commented 9 months ago

was able to get it working with:

# groundingdino = {git = "https://github.com/IDEA-Research/GroundingDINO.git"}
groundingdino-py = "0.4.0"

in the pyproject.toml file

luca-medeiros commented 7 months ago

49