aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorTrung Ngo <codem01@gmail.com>2022-10-05 03:56:30 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-08 10:40:39 +0000
commit786d9f63aaa4515df82eb2cf357ea92f3dae1e29 (patch)
tree01241c36c8ae98e3dcf993363ff5310fa68b3712 /modules/shared.py
parent45cc0ce3c4616180b92dae37e5a89673bb145fa7 (diff)
downloadstable-diffusion-webui-gfx803-786d9f63aaa4515df82eb2cf357ea92f3dae1e29.tar.gz
stable-diffusion-webui-gfx803-786d9f63aaa4515df82eb2cf357ea92f3dae1e29.tar.bz2
stable-diffusion-webui-gfx803-786d9f63aaa4515df82eb2cf357ea92f3dae1e29.zip
Add button to skip the current iteration
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 864e772c..7f802bd9 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -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