runwayml / stable-diffusion

Latent Text-to-Image Diffusion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webui install could not find Torch?

ShadowWisp opened this issue · comments

venv "D:\AIG\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)]
Commit hash: 737eb28faca8be2bb996ee0930ec77d1f7ebd939
Installing torch and torchvision
Traceback (most recent call last):
File "D:\AIG\stable-diffusion-webui\launch.py", line 205, in
prepare_enviroment()
File "D:\AIG\stable-diffusion-webui\launch.py", line 148, in prepare_enviroment
run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch")
File "D:\AIG\stable-diffusion-webui\launch.py", line 33, in run
raise RuntimeError(message)
RuntimeError: Couldn't install torch.
Command: "D:\AIG\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
Error code: 1
stdout: Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113

stderr: ERROR: Could not find a version that satisfies the requirement torch==1.12.1+cu113 (from versions: none)
ERROR: No matching distribution found for torch==1.12.1+cu113

https://pytorch.org/get-started/locally/ says that installation goes through conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
???

https://pytorch.org/get-started/previous-versions/ says that +cu113 version is avalaible through # CUDA 11.3 pip install torch==1.12.0+cu113 torchvision==0.13.0+cu113 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu113?