diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | modules/ui.py | 2 | ||||
-rw-r--r-- | webui-user.sh | 2 | ||||
-rw-r--r-- | webui.sh | 2 |
4 files changed, 5 insertions, 2 deletions
@@ -4,6 +4,7 @@ __pycache__ /venv /tmp /model.ckpt +/models/*.ckpt /GFPGANv1.3.pth /ui-config.json /outputs diff --git a/modules/ui.py b/modules/ui.py index 6ecc6e11..05c6bb92 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -208,6 +208,8 @@ def check_progress_call(): def check_progress_call_initial():
shared.state.job_count = -1
+ shared.state.current_latent = None
+ shared.state.current_image = None
return check_progress_call()
diff --git a/webui-user.sh b/webui-user.sh index 8c29ffe1..20f05b69 100644 --- a/webui-user.sh +++ b/webui-user.sh @@ -22,7 +22,7 @@ python_cmd="python3" venv_dir="venv" # install command for torch -export TORCH_COMMAND="python3 -m pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113" +export TORCH_COMMAND="pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113" # Requirements file to use for stable-diffusion-webui #export REQS_FILE="" @@ -44,7 +44,7 @@ fi # install command for torch if [[ -z "${TORCH_COMMAND}" ]] then - export TORCH_COMMAND="python3 -m pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113" + export TORCH_COMMAND="pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113" fi # Do not reinstall existing pip packages on Debian/Ubuntu |