tianrun-chen / SAM-Adapter-PyTorch

Adapting Meta AI's Segment Anything to Downstream Tasks with Adapters and Prompts
MIT License
968 stars 83 forks source link

python environment! #19

Closed ZhuJD-China closed 1 year ago

ZhuJD-China commented 1 year ago

ERROR: Invalid requirement: 'torch~=1.13.0+cu116' (from line 10 of requirements.txt)

murdav commented 1 year ago

Use the wheels from https://download.pytorch.org/whl/torch_stable.html

Then, based on your distro:

pip install https://download.pytorch.org/whl/cu116/torch-1.13.0%2Bcu116-cp38-cp38-linux_x86_64.whl
pip install https://download.pytorch.org/whl/cu116/torchvision-0.14.0%2Bcu116-cp38-cp38-linux_x86_64.whl

Some people solved this problem by creating a Python 3.10 environment from conda. Please note that SAM Adapter PyTorch code was implemented with Python 3.8.