|
近日在启动时遇到了这个问题
提示以下内容
You are running torch 2.0.1+cu118.
The program is tested to work with torch 2.1.2.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded, as well as
there are reports of issues with training tab on the latest version.
经过实验,终于解决了
以下为解决方案
先在webui-user.bat
中去掉这行
set COMMANDLINE_ARGS= --xformers
然后加上
set COMMANDLINE_ARGS="--reinstall-torch"
等待安装完毕后
再去掉刚刚加上的那个命令
之后在把这个set COMMANDLINE_ARGS="--reinstall-torch"加回来即可
最后如下:
- git pull
- @echo off
- set PYTHON="D:\StableDiffusion\Python\Python310\python.exe"
- set GIT=
- set VENV_DIR=
- set COMMANDLINE_ARGS= --xformers
- call webui.bat
复制代码
git pull 这个命令是我后加的,目的是每次更新保持同步GIT仓库上最新版本。你也可以去掉它
|
|