Skip to content

Commit

Permalink
Fix img2img interrogate
Browse files Browse the repository at this point in the history
  • Loading branch information
missionfloyd committed Dec 22, 2023
1 parent 92b3334 commit 6b4f147
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,11 @@ def resize_from_to_html(width, height, scale_by):


def process_interrogate(interrogation_function, mode, ii_input_dir, ii_output_dir, *ii_singles):
if mode in {0, 1, 3, 4}:
return [interrogation_function(ii_singles[mode]), None]
mode = int(mode)
if mode in (0, 1, 3, 4):
return [interrogation_function(ii_singles[mode]["composite"]), None]
elif mode == 2:
return [interrogation_function(ii_singles[mode]["image"]), None]
return [interrogation_function(ii_singles[mode]["composite"]), None]
elif mode == 5:
assert not shared.cmd_opts.hide_ui_dir_config, "Launched with --hide-ui-dir-config, batch img2img disabled"
images = shared.listfiles(ii_input_dir)
Expand Down

0 comments on commit 6b4f147

Please sign in to comment.