fix when show_progress_every_n_steps == -1

This commit is contained in:
pangbo13 2023-01-16 00:56:24 +08:00
parent ce13ced5dc
commit 388708f7b1
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class State:
if not parallel_processing_allowed:
return
if self.sampling_step - self.current_image_sampling_step >= opts.show_progress_every_n_steps and opts.live_previews_enable:
if self.sampling_step - self.current_image_sampling_step >= opts.show_progress_every_n_steps and opts.live_previews_enable and opts.show_progress_every_n_steps != -1:
self.do_set_current_image()
def do_set_current_image(self):