From 3a5eafb7d3c37028b17815f86c745737cc86e909 Mon Sep 17 00:00:00 2001 From: Haoming Date: Sat, 16 May 2026 23:43:44 +0800 Subject: [PATCH] civit --- modules/infotext_utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/infotext_utils.py b/modules/infotext_utils.py index e385ecff..0dc1dc6d 100644 --- a/modules/infotext_utils.py +++ b/modules/infotext_utils.py @@ -319,7 +319,7 @@ def _populate_defaults(res: dict): res["Sampler"] = "Euler" if "Schedule type" not in res: - res["Schedule type"] = "Automatic" + res["Schedule type"] = "Simple" if "RNG" not in res: res["RNG"] = "CPU" @@ -379,12 +379,15 @@ def parse_generation_parameters(x: str, skip_fields: list[str] | None = None): prompt: str = "\n".join(_prompts) negative_prompt: str = "\n".join(_negative_prompts) - if "flux" in lastline.lower(): # CivitAI + # region CivitAI + if "flux" in lastline.lower(): m = re.search(re_cfg, lastline) if m and float(m.group(1)) > 1.0: lastline = lastline.replace("CFG scale: ", "CFG scale: 1.0, Distilled CFG Scale: ") lastline = lastline.replace("Sampler: Undefined,", "Sampler: Euler, Schedule type: Simple,") + lastline = lastline.replace(", width:", ", Size-1:").replace(", height:", ", Size-2:") + # endregion res: dict[str, Any] = {}