automatic1111-colab
automatic1111-colab copied to clipboard
Error: PyTorch and torchvison were compiled with different CUDA versions.
Automatic1111 version: 1.3.0 or 1.2.1.
I have an error as follows. I tried to install 3 different torch and torchvision, but I still have a same error.
Please tell me how can I resolve this error.
RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA versions. PyTorch has CUDA Version=11.7 and torchvision has CUDA Version=11.8. Please reinstall the torchvision that matches your PyTorch install. Traceback (most recent call last):
-
%pip install torch==2.0.0+cu118 torchvision==0.15.1+cu118 torchtext torchaudio torchdata==0.6.0 --index-url https://download.pytorch.org/whl/cu118
-
%pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchtext==0.14.1 torchaudio==0.13.1 torchdata==0.5.1 --extra-index-url https://download.pytorch.org/whl/cu117
-
%pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --index-url https://download.pytorch.org/whl/cu118