mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 10:31:17 -08:00
Use different torch versions for Intel and ARM Macs
This commit is contained in:
parent
1c0a0c4c26
commit
5867be2914
1 changed files with 6 additions and 1 deletions
|
|
@ -11,7 +11,12 @@ fi
|
||||||
|
|
||||||
export install_dir="$HOME"
|
export install_dir="$HOME"
|
||||||
export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate"
|
export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate"
|
||||||
export TORCH_COMMAND="pip install torch==2.1.0 torchvision==0.16.0"
|
|
||||||
export PYTORCH_ENABLE_MPS_FALLBACK=1
|
export PYTORCH_ENABLE_MPS_FALLBACK=1
|
||||||
|
|
||||||
|
if [[ "$(sysctl -n machdep.cpu.brand_string)" =~ ^.*"Intel".*$ ]]; then
|
||||||
|
export TORCH_COMMAND="pip install torch==2.1.2 torchvision==0.16.2"
|
||||||
|
else
|
||||||
|
export TORCH_COMMAND="pip install torch==2.3.0 torchvision==0.18.0"
|
||||||
|
fi
|
||||||
|
|
||||||
####################################################################
|
####################################################################
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue