Closed ZhuJD-China closed 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.
ERROR: Invalid requirement: 'torch~=1.13.0+cu116' (from line 10 of requirements.txt)