forked from AUTOMATIC1111/stable-diffusion-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebui-macos-env.sh
22 lines (18 loc) · 970 Bytes
/
webui-macos-env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
####################################################################
# macOS defaults #
# Please modify webui-user.sh to change these instead of this file #
####################################################################
export install_dir="$HOME"
export COMMANDLINE_ARGS="--skip-torch-cuda-test --skip-install --no-half-vae --upcast-sampling --precision full"
export TORCH_COMMAND="pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html"
export PYTORCH_ENABLE_MPS_FALLBACK=1
# Add git and python to PATH
export PATH="$PWD/bin-deps/python/3.10.13/bin:$PWD/bin-deps/git/bin:$PATH"
export GIT_EXEC_PATH="$PWD/bin-deps/git/libexec/git-core"
export GIT_TEMPLATE_DIR="$PWD/bin-deps/git/share/git-core/templates"
if [[ -x "$(command -v python3.10)" ]]
then
python_cmd="python3.10"
fi
####################################################################