fix metadata

This commit is contained in:
Vladimir Mandic
2023-07-25 22:02:25 -04:00
parent 02fe616141
commit 2a259a8455
3 changed files with 13 additions and 10 deletions
+11 -8
View File
@@ -273,14 +273,17 @@ Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 965400086, Size: 512x512, Model
res["Prompt"] = prompt
res["Negative prompt"] = negative_prompt
for k, v in re_param.findall(lastline):
if v[0] == '"' and v[-1] == '"':
v = unquote(v)
m = re_imagesize.match(v)
if m is not None:
res[f"{k}-1"] = m.group(1)
res[f"{k}-2"] = m.group(2)
else:
res[k] = v
try:
if v[0] == '"' and v[-1] == '"':
v = unquote(v)
m = re_imagesize.match(v)
if m is not None:
res[f"{k}-1"] = m.group(1)
res[f"{k}-2"] = m.group(2)
else:
res[k] = v
except Exception:
pass
# Missing CLIP skip means it was set to 1 (the default)
if "Clip skip" not in res:
+1 -1
View File
@@ -478,7 +478,7 @@ def create_infotext(p: StableDiffusionProcessing, all_prompts, all_seeds, all_su
# sdnext
"Version": git_commit,
"Pipeline": 'Diffusers' if shared.backend == shared.Backend.DIFFUSERS else 'Original',
"Operations": ', '.join(list(set(p.ops))),
"Operations": ', '.join(list(set(p.ops))) if len(p.ops) > 0 else None
}
token_merging_ratio = p.get_token_merging_ratio()
token_merging_ratio_hr = p.get_token_merging_ratio(for_hr=True) if p.enable_hr else None
+1 -1
Submodule wiki updated: dafa622e44...bdc13d7053