Skip to content

Commit

Permalink
fix xyz grid fill
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmandic committed Oct 21, 2023
1 parent 2b59b10 commit 2f1f997
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/sd_samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def find_sampler_config(name):


def visible_sampler_names():
samplers = [x for x in all_samplers if x.name in shared.opts.show_samplers] if len(shared.opts.show_samplers) > 0 else all_samplers
return samplers
visible_samplers = [x for x in all_samplers if x.name in shared.opts.show_samplers] if len(shared.opts.show_samplers) > 0 else all_samplers
return visible_samplers


def create_sampler(name, model):
Expand Down
8 changes: 5 additions & 3 deletions scripts/xyz_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,9 @@ def fill(axis_type, csv_mode):
else:
return gr.update(), gr.update()

fill_x_button.click(fn=fill, inputs=[x_type, csv_mode], outputs=[x_values_dropdown])
fill_y_button.click(fn=fill, inputs=[y_type, csv_mode], outputs=[y_values_dropdown])
fill_z_button.click(fn=fill, inputs=[z_type, csv_mode], outputs=[z_values_dropdown])
fill_x_button.click(fn=fill, inputs=[x_type, csv_mode], outputs=[x_values, x_values_dropdown])
fill_y_button.click(fn=fill, inputs=[y_type, csv_mode], outputs=[y_values, y_values_dropdown])
fill_z_button.click(fn=fill, inputs=[z_type, csv_mode], outputs=[z_values, z_values_dropdown])

def select_axis(axis_type, axis_values, axis_values_dropdown, csv_mode):
choices = self.current_axis_options[axis_type].choices
Expand Down Expand Up @@ -700,3 +700,5 @@ def cell(x, y, z, ix, iy, iz):
del processed.all_seeds[1]
del processed.infotexts[1]
return processed

print('HERE', [x.name for x in sd_samplers.samplers])
2 changes: 1 addition & 1 deletion wiki
Submodule wiki updated from 3723be to 5e13a6

0 comments on commit 2f1f997

Please sign in to comment.