aboutsummaryrefslogtreecommitdiff
path: root/scripts/xyz_grid.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/xyz_grid.py')
-rw-r--r--scripts/xyz_grid.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py
index e9010817..1cce87e1 100644
--- a/scripts/xyz_grid.py
+++ b/scripts/xyz_grid.py
@@ -236,7 +236,7 @@ def draw_xyz_grid(p, xs, ys, zs, x_labels, y_labels, z_labels, cell, draw_legend
processed_result.all_prompts = [None] * list_size
processed_result.all_seeds = [None] * list_size
processed_result.infotexts = [None] * list_size
- processed_result.index_of_first_image = 0
+ processed_result.index_of_first_image = 1
idx = index(ix, iy, iz)
if processed.images:
@@ -312,8 +312,9 @@ def draw_xyz_grid(p, xs, ys, zs, x_labels, y_labels, z_labels, cell, draw_legend
if draw_legend:
z_grid = images.draw_grid_annotations(z_grid, sub_grid_size[0], sub_grid_size[1], title_texts, [[images.GridAnnotation()]])
processed_result.images.insert(0, z_grid)
- processed_result.all_prompts.insert(0, processed_result.all_prompts[0])
- processed_result.all_seeds.insert(0, processed_result.all_seeds[0])
+ #TODO: Deeper aspects of the program rely on index 0 "grid" images only having partial information, which is not ideal.
+ #processed_result.all_prompts.insert(0, processed_result.all_prompts[0])
+ #processed_result.all_seeds.insert(0, processed_result.all_seeds[0])
processed_result.infotexts.insert(0, processed_result.infotexts[0])
return processed_result
@@ -637,4 +638,6 @@ class Script(scripts.Script):
del processed.all_seeds[1]
del processed.infotexts[1]
+ print(processed.images)
+
return processed