mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-28 04:41:31 -08:00
add progress bar to modelmerger
This commit is contained in:
parent
7cfc645030
commit
c7e50425f6
5 changed files with 40 additions and 9 deletions
|
|
@ -72,7 +72,7 @@ def progressapi(req: ProgressRequest):
|
|||
|
||||
if job_count > 0:
|
||||
progress += job_no / job_count
|
||||
if sampling_steps > 0:
|
||||
if sampling_steps > 0 and job_count > 0:
|
||||
progress += 1 / job_count * sampling_step / sampling_steps
|
||||
|
||||
progress = min(progress, 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue