Skip to content

Commit

Permalink
XYZ if not Include Sub Grids do not save Sub Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Sep 16, 2023
1 parent 102b661 commit d2878a8
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 d2878a8

Please sign in to comment.