@@ -92,7 +92,7 @@ def metadata_to_ctrls(metadata, ctrls):
92
92
# image_number
93
93
if 'seed' in metadata :
94
94
ctrls [6 ] = metadata ['seed' ]
95
- ctrls [61 ] = False
95
+ ctrls [55 ] = False
96
96
if 'sharpness' in metadata :
97
97
ctrls [7 ] = metadata ['sharpness' ]
98
98
if 'sampler_name' in metadata :
@@ -210,12 +210,6 @@ def metadata_to_ctrls(metadata, ctrls):
210
210
ctrls [54 ] = metadata ['prompt_expansion' ]
211
211
elif 'software' in metadata and metadata ['software' ].startswith ('Fooocus 1.' ):
212
212
ctrls [54 ] = False
213
- # input_image_checkbox
214
- # current_tab
215
- # uov_method
216
- # uov_input_image
217
- # outpaint_selections
218
- # inpaint_input_image
219
213
# seed_random
220
214
return ctrls
221
215
@@ -568,10 +562,10 @@ def verify_input(img2img, canny, depth, gallery_in, gallery_rev, gallery_out):
568
562
ctrls += [base_model , refiner_model , base_clip_skip , refiner_clip_skip ] + lora_ctrls
569
563
ctrls += [save_metadata_json , save_metadata_image ] + img2img_ctrls + [same_seed_for_all , output_format ]
570
564
ctrls += canny_ctrls + depth_ctrls + [prompt_expansion ]
565
+ load_prompt_button .upload (fn = load_prompt_handler , inputs = [load_prompt_button ] + ctrls + [seed_random ], outputs = ctrls + [seed_random ])
571
566
ctrls += [input_image_checkbox , current_tab ]
572
567
ctrls += [uov_method , uov_input_image ]
573
568
ctrls += [outpaint_selections , inpaint_input_image ]
574
- load_prompt_button .upload (fn = load_prompt_handler , inputs = [load_prompt_button ] + ctrls + [seed_random ], outputs = ctrls + [seed_random ])
575
569
generate_button .click (lambda : (gr .update (visible = True , interactive = True ), gr .update (visible = False ), []), outputs = [stop_button , generate_button , output_gallery ]) \
576
570
.then (fn = refresh_seed , inputs = [seed_random , image_seed ], outputs = image_seed ) \
577
571
.then (fn = verify_enhance_image , inputs = [input_image_checkbox , img2img_mode ], outputs = [img2img_mode ]) \
0 commit comments