Minor naming fixes

This commit is contained in:
Kohaku-Blueleaf 2023-05-22 23:43:06 +08:00
parent 4365c35bf9
commit 302d95c726
2 changed files with 7 additions and 7 deletions

View File

@ -567,11 +567,11 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments=None, iter
generation_params = { generation_params = {
"Steps": p.steps, "Steps": p.steps,
"Sampler": p.sampler_name, "Sampler": p.sampler_name,
"Enable Custom Karras Schedule": use_custom_k_sched or None, "Enable Custom KDiffusion Schedule": use_custom_k_sched or None,
"kdiffusion Scheduler Type": p.k_sched_type if use_custom_k_sched else None, "KDiffusion Scheduler Type": p.k_sched_type if use_custom_k_sched else None,
"kdiffusion Scheduler sigma_max": p.sigma_max if use_custom_k_sched else None, "KDiffusion Scheduler sigma_max": p.sigma_max if use_custom_k_sched else None,
"kdiffusion Scheduler sigma_min": p.sigma_min if use_custom_k_sched else None, "KDiffusion Scheduler sigma_min": p.sigma_min if use_custom_k_sched else None,
"kdiffusion Scheduler rho": p.rho if use_custom_k_sched else None, "KDiffusion Scheduler rho": p.rho if use_custom_k_sched else None,
"CFG scale": p.cfg_scale, "CFG scale": p.cfg_scale,
"Image CFG scale": getattr(p, 'image_cfg_scale', None), "Image CFG scale": getattr(p, 'image_cfg_scale', None),
"Seed": all_seeds[index], "Seed": all_seeds[index],

View File

@ -676,7 +676,7 @@ def create_ui():
(hr_prompt, "Hires prompt"), (hr_prompt, "Hires prompt"),
(hr_negative_prompt, "Hires negative prompt"), (hr_negative_prompt, "Hires negative prompt"),
(hr_prompts_container, lambda d: gr.update(visible=True) if d.get("Hires prompt", "") != "" or d.get("Hires negative prompt", "") != "" else gr.update()), (hr_prompts_container, lambda d: gr.update(visible=True) if d.get("Hires prompt", "") != "" or d.get("Hires negative prompt", "") != "" else gr.update()),
(t2i_enable_k_sched, "Enable Custom Karras Schedule"), (t2i_enable_k_sched, "Enable Custom KDiffusion Schedule"),
(t2i_k_sched_type, "KDiffusion Scheduler Type"), (t2i_k_sched_type, "KDiffusion Scheduler Type"),
(t2i_k_sched_sigma_max, "KDiffusion Scheduler sigma_max"), (t2i_k_sched_sigma_max, "KDiffusion Scheduler sigma_max"),
(t2i_k_sched_sigma_min, "KDiffusion Scheduler sigma_min"), (t2i_k_sched_sigma_min, "KDiffusion Scheduler sigma_min"),
@ -1090,7 +1090,7 @@ def create_ui():
(steps, "Steps"), (steps, "Steps"),
(sampler_index, "Sampler"), (sampler_index, "Sampler"),
(restore_faces, "Face restoration"), (restore_faces, "Face restoration"),
(i2i_enable_k_sched, "Enable Custom Karras Schedule"), (i2i_enable_k_sched, "Enable Custom KDiffusion Schedule"),
(i2i_k_sched_type, "KDiffusion Scheduler Type"), (i2i_k_sched_type, "KDiffusion Scheduler Type"),
(i2i_k_sched_sigma_max, "KDiffusion Scheduler sigma_max"), (i2i_k_sched_sigma_max, "KDiffusion Scheduler sigma_max"),
(i2i_k_sched_sigma_min, "KDiffusion Scheduler sigma_min"), (i2i_k_sched_sigma_min, "KDiffusion Scheduler sigma_min"),