aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.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/ui.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/ui.py')
-rw-r--r--modules/ui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index a9e4fd00..1df74070 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -140,7 +140,10 @@ def check_progress_call():
if shared.state.job_count == 0:
return ""
- progress = shared.state.job_no / shared.state.job_count
+ progress = 0
+
+ if shared.state.job_count > 0:
+ progress += shared.state.job_no / shared.state.job_count
if shared.state.sampling_steps > 0:
progress += 1 / shared.state.job_count * shared.state.sampling_step / shared.state.sampling_steps