mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-05 15:22:13 -08:00
Add button to skip the current iteration
This commit is contained in:
parent
45cc0ce3c4
commit
786d9f63aa
8 changed files with 49 additions and 8 deletions
|
|
@ -84,6 +84,7 @@ def selected_hypernetwork():
|
|||
|
||||
|
||||
class State:
|
||||
skipped = False
|
||||
interrupted = False
|
||||
job = ""
|
||||
job_no = 0
|
||||
|
|
@ -96,6 +97,10 @@ class State:
|
|||
current_image_sampling_step = 0
|
||||
textinfo = None
|
||||
|
||||
def skip(self):
|
||||
self.skipped = True
|
||||
self.interrupted = True
|
||||
|
||||
def interrupt(self):
|
||||
self.interrupted = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue