stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

Torch/Cuda error

Open HellBoundSinner opened this issue 1 year ago • 7 comments

Screenshot 2024-09-07 134119 Hi all,

I did the portable version and the Git Clone of the repository. Whenever I go to start the program, I keep getting errors about Torch/Cuda not being compatible. I have a 3070 Nvidia card. There was another thread in this forum about it. I downloaded Visual Studio and did the MS tools part of it along with the C++ work area. I have tried multiple things, and none of them allow it to work. Any other suggestions because I'm at a loss.

HellBoundSinner avatar Sep 07 '24 17:09 HellBoundSinner

Same problem. Reinstalled Forge yesterday and after trying to install Adetailer, the program crashes completely with the same error. Without Adetailer Forge works. About a week ago, everything was working fine.

Starkiller353 avatar Sep 07 '24 18:09 Starkiller353

I wasn't using Adetailer so not sure why it's not working for me.

HellBoundSinner avatar Sep 07 '24 19:09 HellBoundSinner

So the problem is not in extensions. Or maybe in some of them. I also tried to do almost everything to solve this problem, but I failed. I hope someone can help.

Starkiller353 avatar Sep 07 '24 20:09 Starkiller353

This worked for me finally after someone responded to me on Reddit. In number 3. Highlight everything after PIP and copy it.

trying installing the latest version of pytorch.

  1. load the python virtual env. usually <FORGE_FOLDER>\venv\Scripts\activate.bat"

  2. Uninstall torch: pip uninstall torch torchvision torchaudio

  3. Install torch: pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124

HellBoundSinner avatar Sep 07 '24 20:09 HellBoundSinner

It didn't work for me, unfortunately. I don't have a venv folder, so I tried skipping 1. and doing 2. and 3. Didn't help. But thank you for responce.

Starkiller353 avatar Sep 07 '24 22:09 Starkiller353

I am using StabilityMatrix and have stable diffusion webui forge installed. I get the same error. I tried HellBoundSinner's suggestion but it didn't change anything. Thanks though..

TerminatedProcess avatar Sep 10 '24 15:09 TerminatedProcess

Edit: I fixed mine, completely removing pytorch and reinstalling it worked. Didn't need the python virtual environment to do it. Not sure why it only crashed and burned after the latest update.

Saucermote avatar Sep 10 '24 17:09 Saucermote