From 395f1705979193a0525e1479f0d263e9751e3793 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Tue, 6 Sep 2022 10:11:25 +0300 Subject: 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 --- modules/ui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/ui.py') 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 -- cgit v1.2.1