ddPn08 / automatic1111-colab

Using StableDiffusion webui on Colab
350 stars 84 forks source link

Error: PyTorch and torchvison were compiled with different CUDA versions. #62

Open tmkkz opened 1 year ago

tmkkz commented 1 year ago

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):

  1. %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

  2. %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

  3. %pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --index-url https://download.pytorch.org/whl/cu118