diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-31 19:39:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 19:39:29 +0000 |
commit | 96b550430a986fa49670249aabdd42cd182fb6c8 (patch) | |
tree | 44cbaa680fd3afeea5799fa75af4d52872f646ba /webui.sh | |
parent | ce168ab5dbc8b54b7245f352a2eaa55a37019b91 (diff) | |
parent | cc3f604310458eed7d26456c1b3934d582283ffe (diff) | |
download | stable-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-x | webui.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |