diff options
author | brkirch <brkirch@users.noreply.github.com> | 2022-12-04 13:29:10 +0000 |
---|---|---|
committer | brkirch <brkirch@users.noreply.github.com> | 2022-12-05 23:36:31 +0000 |
commit | 760a7836eb1f8645b7c32df82085383e1859c74d (patch) | |
tree | 2998747923178faa65ab6c91492260e13a2e8471 | |
parent | 44c46f0ed395967cd3830dd481a2db759fda5b3b (diff) | |
download | stable-diffusion-webui-gfx803-760a7836eb1f8645b7c32df82085383e1859c74d.tar.gz stable-diffusion-webui-gfx803-760a7836eb1f8645b7c32df82085383e1859c74d.tar.bz2 stable-diffusion-webui-gfx803-760a7836eb1f8645b7c32df82085383e1859c74d.zip |
Use python3.10 for python_cmd if available
-rw-r--r-- | webui-macos-env.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webui-macos-env.sh b/webui-macos-env.sh index 68d1f754..21ca1dfd 100644 --- a/webui-macos-env.sh +++ b/webui-macos-env.sh @@ -4,6 +4,11 @@ # Please modify webui-user.sh to change these instead of this file # #################################################################### +if [[ -x "$(command -v python3.10)" ]] +then + python_cmd="python3.10" +fi + export COMMANDLINE_ARGS="--skip-torch-cuda-test --no-half --use-cpu interrogate" export TORCH_COMMAND="pip install torch==1.12.1 torchvision==0.13.1" export K_DIFFUSION_REPO="https://github.com/brkirch/k-diffusion.git" |