webui-macos-env.sh 813 B

12345678910111213141516171819
  1. #!/bin/bash
  2. ####################################################################
  3. # macOS defaults #
  4. # Please modify webui-user.sh to change these instead of this file #
  5. ####################################################################
  6. if [[ -x "$(command -v python3.10)" ]]
  7. then
  8. python_cmd="python3.10"
  9. fi
  10. export install_dir="$HOME"
  11. export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate"
  12. export TORCH_COMMAND="pip install torch==2.0.1 torchvision==0.15.2"
  13. export K_DIFFUSION_REPO="https://github.com/brkirch/k-diffusion.git"
  14. export K_DIFFUSION_COMMIT_HASH="51c9778f269cedb55a4d88c79c0246d35bdadb71"
  15. export PYTORCH_ENABLE_MPS_FALLBACK=1
  16. ####################################################################