webui-macos-env.sh 670 B

1234567891011121314151617
  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.1.0 torchvision==0.16.0"
  13. export PYTORCH_ENABLE_MPS_FALLBACK=1
  14. ####################################################################