Skip to content

Commit

Permalink
Disable webui-user
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Nov 2, 2023
1 parent 072eca2 commit 3c7b9b0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions webui-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
#export COMMANDLINE_ARGS=""

# check if macos, if so set commandline args
if [[ "$OSTYPE" == "darwin"* ]]; then
export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --opt-sub-quad-attention --use-cpu interrogate --listen --nowebui --port=7860 --cors-allow-origins=*"
else
export COMMANDLINE_ARGS="--listen --nowebui --port=7860 --cors-allow-origins=*"
fi
# if [[ "$OSTYPE" == "darwin"* ]]; then
# export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --opt-sub-quad-attention --use-cpu interrogate --listen --nowebui --port=7860 --cors-allow-origins=*"
# else
# export COMMANDLINE_ARGS="--listen --nowebui --port=7860 --cors-allow-origins=*"
# fi

# python3 executable
#python_cmd="python3"
Expand All @@ -27,18 +27,18 @@ fi

# python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv)
#venv_dir="venv"
venv_dir="venv-torch-nightly"
# venv_dir="venv-torch-nightly"

# script to launch to start the app
#export LAUNCH_SCRIPT="launch.py"

# install command for torch
#export TORCH_COMMAND="pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113"
if [[ "$OSTYPE" == "darwin"* ]]; then
export TORCH_COMMAND="pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html"
else
export TORCH_COMMAND="pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu113/torch_nightly.html"
fi
# if [[ "$OSTYPE" == "darwin"* ]]; then
# export TORCH_COMMAND="pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html"
# else
# export TORCH_COMMAND="pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu113/torch_nightly.html"
# fi

# Requirements file to use for stable-diffusion-webui
#export REQS_FILE="requirements_versions.txt"
Expand Down

0 comments on commit 3c7b9b0

Please sign in to comment.