Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Jan 22, 2024
1 parent be80b02 commit 60c8877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/txt2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def txt2img_upscale(id_task: str, request: gr.Request, gallery, gallery_index, g
# update seed script args
seed_script_args = list(modules.scripts.scripts_txt2img.get_script_args(bind_args.arguments['args'], 'seed'))
for param, index in [('Seed', 0), ('Variation seed', 2), ('Variation seed strength', 3), ('Seed resize from-1', 4), ('Seed resize from-2', 5)]:
seed_script_args[index] = parameters.get(param, seed_script_args[index])
seed_script_args[index] = float(parameters.get(param, seed_script_args[index]))
seed_script_args[1] = 'Variation seed' in parameters or 'Seed resize from-1' in parameters
bind_args.arguments['args'] = modules.scripts.scripts_txt2img.update_script_args(bind_args.arguments['args'], 'seed', seed_script_args)

Expand Down

0 comments on commit 60c8877

Please sign in to comment.