#!/bin/bash1#########################################################2# Uncomment and change the variables below to your need:#3#########################################################45# Install directory without trailing slash6#install_dir="/home/$(whoami)"78# Name of the subdirectory9#clone_dir="stable-diffusion-webui"1011# Commandline arguments for webui.py, for example: export COMMANDLINE_ARGS="--medvram --opt-split-attention"12#export COMMANDLINE_ARGS=""1314# python3 executable15#python_cmd="python3"1617# git executable18#export GIT="git"1920# python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv)21#venv_dir="venv"2223# script to launch to start the app24#export LAUNCH_SCRIPT="launch.py"2526# install command for torch27#export TORCH_COMMAND="pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113"2829# Requirements file to use for stable-diffusion-webui30#export REQS_FILE="requirements_versions.txt"3132# Fixed git repos33#export K_DIFFUSION_PACKAGE=""34#export GFPGAN_PACKAGE=""3536# Fixed git commits37#export STABLE_DIFFUSION_COMMIT_HASH=""38#export CODEFORMER_COMMIT_HASH=""39#export BLIP_COMMIT_HASH=""4041# Uncomment to enable accelerated launch42#export ACCELERATE="True"4344# Uncomment to disable TCMalloc45#export NO_TCMALLOC="True"4647###########################################484950