在复现Stable Diffusion WebUI运行bat文件的时候
torch安装的时候报错:
TimeoutError: The read operation timed out
解决办法:
手动安装torch
https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-win_amd64.whl
下载好whl文件以后拖到venv/Scripts文件夹里面
win+r 输入cmd之后
pip install torch-2.0.1+cu118-cp310-cp310-win_amd64.whl
即可安装torch
运行效果:
如果是跑Stable Diffusion WebUI
在安装完torch之后仍需要启动bat,把其余的包也安装一下