mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-03-09 23:44:55 +08:00
fix on torch_command + tested on debian
This commit is contained in:
parent
7bf76af40a
commit
d62fbcc5aa
6
webui.sh
6
webui.sh
@ -41,6 +41,12 @@ then
|
|||||||
venv_dir="venv"
|
venv_dir="venv"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# install command for torch
|
||||||
|
if [[ -z "${TORCH_COMMAND}" ]]
|
||||||
|
then
|
||||||
|
export TORCH_COMMAND=(python3 -m pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113)
|
||||||
|
fi
|
||||||
|
|
||||||
# Do not reinstall existing pip packages on Debian/Ubuntu
|
# Do not reinstall existing pip packages on Debian/Ubuntu
|
||||||
export PIP_IGNORE_INSTALLED=0
|
export PIP_IGNORE_INSTALLED=0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user