設定の修正
parent
8745b5946b
commit
3d12a32f53
|
|
@ -61,12 +61,23 @@ def on_ui_tabs():
|
|||
else:
|
||||
txt2img_params['prompt'] += ', ' + request_prompt
|
||||
|
||||
if isinstance(txt2img_params['sampler_index'], str):
|
||||
sampler_index = 0
|
||||
for sampler_loop_index, sampler_loop in enumerate(sd_samplers.samplers):
|
||||
if sampler_loop.name == txt2img_params['sampler_index']:
|
||||
sampler_index = sampler_loop_index
|
||||
txt2img_params['sampler_index'] = sampler_index
|
||||
|
||||
if isinstance(txt2img_params['hr_sampler_index'], str):
|
||||
if 'hr_sampler_index' in txt2img_params.keys():
|
||||
hr_sampler_index = 0
|
||||
for sampler_loop_index, sampler_loop in enumerate(sd_samplers.samplers):
|
||||
if sampler_loop.name == txt2img_params['hr_sampler_index']:
|
||||
hr_sampler_index = txt2img_params['hr_sampler_index']
|
||||
txt2img_params['hr_sampler_index'] = hr_sampler_index
|
||||
else:
|
||||
txt2img_params['hr_sampler_index'] = 0
|
||||
|
||||
last_arg_index = 1
|
||||
for script in modules.scripts.scripts_txt2img.scripts:
|
||||
if last_arg_index < script.args_to:
|
||||
|
|
|
|||
|
|
@ -24,5 +24,8 @@
|
|||
"hr_second_pass_steps": 0,
|
||||
"hr_resize_x": 0,
|
||||
"hr_resize_y": 0,
|
||||
"hr_sampler_index": "",
|
||||
"hr_prompt": "",
|
||||
"hr_negative_prompt": "",
|
||||
"override_settings_texts": ""
|
||||
}
|
||||
Loading…
Reference in New Issue