Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#13282 from AUTOMATIC1111/XYZ-if-not-…
Browse files Browse the repository at this point in the history
…Include-Sub-Grids-do-not-save-Sub-Grid

XYZ if not include sub grids do not save sub grid
  • Loading branch information
AUTOMATIC1111 authored Sep 30, 2023
2 parents cdafbca + d2878a8 commit db63cf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/xyz_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,8 @@ def cell(x, y, z, ix, iy, iz):
# TODO: See previous comment about intentional data misalignment.
adj_g = g-1 if g > 0 else g
images.save_image(processed.images[g], p.outpath_grids, "xyz_grid", info=processed.infotexts[g], extension=opts.grid_format, prompt=processed.all_prompts[adj_g], seed=processed.all_seeds[adj_g], grid=True, p=processed)
if not include_sub_grids: # if not include_sub_grids then skip saving after the first grid
break

if not include_sub_grids:
# Done with sub-grids, drop all related information:
Expand Down

0 comments on commit db63cf7

Please sign in to comment.