aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrkirch <brkirch@users.noreply.github.com>2023-01-28 05:16:22 +0000
committerbrkirch <brkirch@users.noreply.github.com>2023-01-28 09:16:27 +0000
commit02b8b957d763d0fc29551d13d8a2005615e8ce7a (patch)
treef32de40609cf0b987a53145e4e29f6098448b500
parentada17dbd7c4c68a4e559848d2e6f2a7799722806 (diff)
downloadstable-diffusion-webui-gfx803-02b8b957d763d0fc29551d13d8a2005615e8ce7a.tar.gz
stable-diffusion-webui-gfx803-02b8b957d763d0fc29551d13d8a2005615e8ce7a.tar.bz2
stable-diffusion-webui-gfx803-02b8b957d763d0fc29551d13d8a2005615e8ce7a.zip
Add --no-half-vae to default macOS arguments
Apparently the version of PyTorch macOS users are currently at doesn't always handle half precision VAEs correctly. We will probably want to update the default PyTorch version to 2.0 when it comes out which should fix that, and at this point nightly builds of PyTorch 2.0 are going to be recommended for most Mac users. Unfortunately someone has already reported that their M2 Mac doesn't work with the nightly PyTorch 2.0 build currently, so we can add --no-half-vae for now and give users that can install nightly PyTorch 2.0 builds a webui-user.sh configuration that overrides the default.
-rw-r--r--webui-macos-env.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/webui-macos-env.sh b/webui-macos-env.sh
index fa187dd1..37cac4fb 100644
--- a/webui-macos-env.sh
+++ b/webui-macos-env.sh
@@ -10,7 +10,7 @@ then
fi
export install_dir="$HOME"
-export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --use-cpu interrogate"
+export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate"
export TORCH_COMMAND="pip install torch==1.12.1 torchvision==0.13.1"
export K_DIFFUSION_REPO="https://github.com/brkirch/k-diffusion.git"
export K_DIFFUSION_COMMIT_HASH="51c9778f269cedb55a4d88c79c0246d35bdadb71"