Add button to skip the current iteration

This commit is contained in:
Trung Ngo
2022-10-04 22:56:30 -05:00
committed by AUTOMATIC1111
parent 45cc0ce3c4
commit 786d9f63aa
8 changed files with 49 additions and 8 deletions

View File

@@ -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