Skip to content

[Bug]: 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 instal #10331

Closed
@MarcoLeongDev

Description

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

changes at line 240 results in the following 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.

This error causes the launching fail.

Experimented with git clone the repo and modified launch.py to revert 240 fixes the issue

See commit f5ea1e9

Kindly have a look to confirm if this issue can be replicated

Temporary workaround

  1. git clone the repo
  2. cd to the directory
  3. git revert f5ea1e9 --no-edit to revert this particular change

Steps to reproduce the problem

following the instruction for installation:

bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)

What should have happened?

the script should complete the installation

Commit where the problem happens

f5ea1e9

What platforms do you use to access the UI ?

Linux

What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome, Brave

Command Line Arguments

Not applicable

List of extensions

Not applicable

Console logs

Not applicable

Additional information

No response

Metadata

Assignees

No one assigned

    Labels

    bug-reportReport of a bug, yet to be confirmed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions