cell_console_text=f"; {image_cell_count} images per cell"ifimage_cell_count>1else""
print(f"X/Y plot will create {len(xs) * len(ys) * image_cell_count} images on a {len(xs)}x{len(ys)} grid{cell_console_text}. (Total steps to process: {total_steps})")
plural_s='s'iflen(zs)>1else''
print(f"X/Y plot will create {len(xs) * len(ys) * len(zs) * image_cell_count} images on {len(zs)} {len(xs)}x{len(ys)} grid{plural_s}{cell_console_text}. (Total steps to process: {total_steps})")
shared.total_tqdm.updateTotal(total_steps)
grid_infotext=[None]
...
...
@@ -450,13 +483,14 @@ class Script(scripts.Script):
# `for` loop.
swap_axes_processing_order=x_opt.cost>y_opt.cost
defcell(x,y):
defcell(x,y,z):
ifshared.state.interrupted:
returnProcessed(p,[],p.seed,"")
pc=copy(p)
x_opt.apply(pc,x,xs)
y_opt.apply(pc,y,ys)
z_opt.apply(pc,z,zs)
res=process_images(pc)
...
...
@@ -475,17 +509,25 @@ class Script(scripts.Script):