diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-16 05:24:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 05:24:16 +0000 |
commit | dd292a925efc32ad580c927eeeb6e79592833be8 (patch) | |
tree | d7f3128405d2c7585caf1eeb848bc373ab197c38 /scripts/xy_grid.py | |
parent | ff6a5bcec1ce25aa8f08b157ea957d764be23d8d (diff) | |
parent | f202ff1901c27d1f82d5e2684dba9e1ed24ffdf2 (diff) | |
download | stable-diffusion-webui-gfx803-dd292a925efc32ad580c927eeeb6e79592833be8.tar.gz stable-diffusion-webui-gfx803-dd292a925efc32ad580c927eeeb6e79592833be8.tar.bz2 stable-diffusion-webui-gfx803-dd292a925efc32ad580c927eeeb6e79592833be8.zip |
Merge pull request #6796 from space-nuko/faster-xy-grid-cancellation
Make XY grid cancellation much faster
Diffstat (limited to 'scripts/xy_grid.py')
-rw-r--r-- | scripts/xy_grid.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py index bd3087d4..13a3a046 100644 --- a/scripts/xy_grid.py +++ b/scripts/xy_grid.py @@ -406,6 +406,9 @@ class Script(scripts.Script): grid_infotext = [None]
def cell(x, y):
+ if shared.state.interrupted:
+ return Processed(p, [], p.seed, "")
+
pc = copy(p)
x_opt.apply(pc, x, xs)
y_opt.apply(pc, y, ys)
|