mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-09 13:49:48 +00:00
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
This commit is contained in:
@@ -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:
|
||||
|
@@ -54,6 +54,7 @@ class State:
|
||||
self.job_no += 1
|
||||
self.sampling_step = 0
|
||||
|
||||
|
||||
state = State()
|
||||
|
||||
artist_db = modules.artists.ArtistsDatabase(os.path.join(script_path, 'artists.csv'))
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user