Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
AUTOMATIC1111
GitHub Repository: AUTOMATIC1111/stable-diffusion-webui
Path: blob/master/webui-macos-env.sh
2305 views
1
#!/bin/bash
2
####################################################################
3
# macOS defaults #
4
# Please modify webui-user.sh to change these instead of this file #
5
####################################################################
6
7
export install_dir="$HOME"
8
export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate"
9
export PYTORCH_ENABLE_MPS_FALLBACK=1
10
11
if [[ "$(sysctl -n machdep.cpu.brand_string)" =~ ^.*"Intel".*$ ]]; then
12
export TORCH_COMMAND="pip install torch==2.1.2 torchvision==0.16.2"
13
else
14
export TORCH_COMMAND="pip install torch==2.3.1 torchvision==0.18.1"
15
fi
16
17
####################################################################
18
19