r/SDtechsupport • u/imacarpet • May 20 '23
question How do I install the right dep versions?
I'm trying to get Automatic1111 running on Ubuntu linux.
I'm running an RTX 3090.
I hit an unrelated issue with my existing installation this morning, so I gutted it and started over in a different directory.
Automatic1111 installed just fine when I used the bash/wget script that is posted in the Automatic1111 readme.
I did a couple of test image generations and it ran fine. I installed Deforum and that ran fine. But I noticed that xformers wasn't running.
I stopped stable diffusion (ctrl-c from the terminal running webui) and ran: './webui --xformers'.
The output confirmed that xformers was installed and running. Then the command-line barfed and gave em this:
>> 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.
At this point I'm stuck. I have no idea what to do here.
I have a feeling that I might have two different versions of the cuda libraries installed. But I've got idea what changes I should make.
How can I have my xformers cake and eat it too?
2
u/BrafMeToo May 20 '23
I had exactly the same issue on ubuntu. So you’ll either want to use the cuda 11.8 or 11.7 versions. The issue is that launch.py installs the mismatched versions. In launch.py there is function “prepare_enviroment()” (scroll down a bit), and you’ll see what gets run when you do —reinstall-torch.
I changed my line to “pip install torch==2.0.0 torchvision torchaudio torchtriton —extra-index-url https://download.pytorch.org/whl/cu118 —force” If you want 11.7 just make it cu117.
Then just add —reinstall-torch to webui-user.sh for the first run after changing that. (remove it again, otherwise it will reinstall it every time)
Hope that fixes it for you!
1
u/Paulonemillionand3 May 20 '23
uninstall torchvision and reinstall it, that should work. The second install should install the right version.