aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-06 07:11:25 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-06 07:11:25 +0000
commit395f1705979193a0525e1479f0d263e9751e3793 (patch)
treef18ac2c247a780728aa61972d27170b655ff7579 /modules/processing.py
parentbeece7d85cdcf160a0dc0ba05721d64f6afc867a (diff)
downloadstable-diffusion-webui-gfx803-395f1705979193a0525e1479f0d263e9751e3793.tar.gz
stable-diffusion-webui-gfx803-395f1705979193a0525e1479f0d263e9751e3793.tar.bz2
stable-diffusion-webui-gfx803-395f1705979193a0525e1479f0d263e9751e3793.zip
readme extras for VRAM for
added missing packages to requirements for #74 add support for negative numbers in X/Y plot (plus ranges) #73 changed progressbar to work properly with custom modes
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 1351579b..e8923a7a 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -153,7 +153,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
with torch.no_grad(), precision_scope("cuda"), ema_scope():
p.init()
- state.job_count = p.n_iter
+ if state.job_count == -1:
+ state.job_count = p.n_iter
for n in range(p.n_iter):
if state.interrupted: