aboutsummaryrefslogtreecommitdiffstats
path: root/webui.sh
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2024-01-31 19:39:29 +0000
committerGitHub <noreply@github.com>2024-01-31 19:39:29 +0000
commit96b550430a986fa49670249aabdd42cd182fb6c8 (patch)
tree44cbaa680fd3afeea5799fa75af4d52872f646ba /webui.sh
parentce168ab5dbc8b54b7245f352a2eaa55a37019b91 (diff)
parentcc3f604310458eed7d26456c1b3934d582283ffe (diff)
downloadstable-diffusion-webui-gfx803-96b550430a986fa49670249aabdd42cd182fb6c8.tar.gz
stable-diffusion-webui-gfx803-96b550430a986fa49670249aabdd42cd182fb6c8.tar.bz2
stable-diffusion-webui-gfx803-96b550430a986fa49670249aabdd42cd182fb6c8.zip
Merge pull request #14801 from wangshuai09/npu_support
Add NPU Support
Diffstat (limited to 'webui.sh')
-rwxr-xr-xwebui.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/webui.sh b/webui.sh
index 38258ef6..25b94906 100755
--- a/webui.sh
+++ b/webui.sh
@@ -158,6 +158,10 @@ then
if echo "$gpu_info" | grep -q "AMD" && [[ -z "${TORCH_COMMAND}" ]]
then
export TORCH_COMMAND="pip install torch==2.0.1+rocm5.4.2 torchvision==0.15.2+rocm5.4.2 --index-url https://download.pytorch.org/whl/rocm5.4.2"
+ elif echo "$gpu_info" | grep -q "Huawei" && [[ -z "${TORCH_COMMAND}" ]]
+ then
+ export TORCH_COMMAND="pip install torch==2.1.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu; pip install torch_npu"
+
fi
fi