diff options
author | InvincibleDude <81354513+InvincibleDude@users.noreply.github.com> | 2023-01-24 12:44:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 12:44:09 +0000 |
commit | 44c0e6b993d00bb2f441f0fde409bcb79136f034 (patch) | |
tree | e27a45d1a3ceb8aab884631c7a806c5fe2c8386d /webui.sh | |
parent | 3bc8ee998db5f461b8011a72e6f167012ccb8bc1 (diff) | |
parent | 602a1864b05075ca4283986e6f5c7d5bce864e11 (diff) | |
download | stable-diffusion-webui-gfx803-44c0e6b993d00bb2f441f0fde409bcb79136f034.tar.gz stable-diffusion-webui-gfx803-44c0e6b993d00bb2f441f0fde409bcb79136f034.tar.bz2 stable-diffusion-webui-gfx803-44c0e6b993d00bb2f441f0fde409bcb79136f034.zip |
Merge branch 'AUTOMATIC1111:master' into master
Diffstat (limited to 'webui.sh')
-rwxr-xr-x | webui.sh | 31 |
1 files changed, 19 insertions, 12 deletions
@@ -104,6 +104,23 @@ then fi # Check prerequisites +gpu_info=$(lspci 2>/dev/null | grep VGA) +case "$gpu_info" in + *"Navi 1"*|*"Navi 2"*) export HSA_OVERRIDE_GFX_VERSION=10.3.0 + ;; + *"Renoir"*) export HSA_OVERRIDE_GFX_VERSION=9.0.0 + printf "\n%s\n" "${delimiter}" + printf "Experimental support for Renoir: make sure to have at least 4GB of VRAM and 10GB of RAM or enable cpu mode: --use-cpu all --no-half" + printf "\n%s\n" "${delimiter}" + ;; + *) + ;; +esac +if echo "$gpu_info" | grep -q "AMD" && [[ -z "${TORCH_COMMAND}" ]] +then + export TORCH_COMMAND="pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.2" +fi + for preq in "${GIT}" "${python_cmd}" do if ! hash "${preq}" &>/dev/null @@ -164,16 +181,6 @@ then else printf "\n%s\n" "${delimiter}" printf "Launching launch.py..." - printf "\n%s\n" "${delimiter}" - gpu_info=$(lspci 2>/dev/null | grep VGA) - if echo "$gpu_info" | grep -q "AMD" - then - if [[ -z "${TORCH_COMMAND}" ]] - then - export TORCH_COMMAND="pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.2" - fi - HSA_OVERRIDE_GFX_VERSION=10.3.0 exec "${python_cmd}" "${LAUNCH_SCRIPT}" "$@" - else - exec "${python_cmd}" "${LAUNCH_SCRIPT}" "$@" - fi + printf "\n%s\n" "${delimiter}" + exec "${python_cmd}" "${LAUNCH_SCRIPT}" "$@" fi |