update extra networks

This commit is contained in:
Vladimir Mandic
2023-05-11 09:30:34 -04:00
parent 99b6133bc9
commit 05656a54fe
7 changed files with 47 additions and 38 deletions
+3 -1
View File
@@ -534,7 +534,9 @@ class Script(scripts.Script):
zs = process_axis(z_opt, z_values, z_values_dropdown)
Image.MAX_IMAGE_PIXELS = None # disable check in Pillow and rely on check below to allow large custom image sizes
grid_mp = round(len(xs) * len(ys) * len(zs) * p.width * p.height / 1000000)
assert grid_mp < shared.opts.img_max_size_mp, f'Error: Resulting grid would be too large ({grid_mp} MPixels) (max configured size is {shared.opts.img_max_size_mp} MPixels)'
if grid_mp > shared.opts.img_max_size_mp:
shared.log.warning(f'Grid size: {grid_mp} excedes {shared.opts.img_max_size_mp} MPixels')
return
def fix_axis_seeds(axis_opt, axis_list):
if axis_opt.label in ['Seed', 'Var. seed']: