Gen params paste improvement
This commit is contained in:
parent
1fa777c1d7
commit
d261bec1ec
@ -252,13 +252,6 @@ Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 965400086, Size: 512x512, Model
|
|||||||
if line.startswith("Negative prompt:"):
|
if line.startswith("Negative prompt:"):
|
||||||
done_with_prompt = True
|
done_with_prompt = True
|
||||||
line = line[16:].strip()
|
line = line[16:].strip()
|
||||||
|
|
||||||
if line.startswith("Hires prompt:"):
|
|
||||||
res["Hires prompt"] = line[1:][:-1]
|
|
||||||
|
|
||||||
if line.startswith("Hires negative prompt:"):
|
|
||||||
res["Hires negative prompt"] = line[1:][:-1]
|
|
||||||
|
|
||||||
if done_with_prompt:
|
if done_with_prompt:
|
||||||
negative_prompt += ("" if negative_prompt == "" else "\n") + line
|
negative_prompt += ("" if negative_prompt == "" else "\n") + line
|
||||||
else:
|
else:
|
||||||
@ -274,6 +267,10 @@ Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 965400086, Size: 512x512, Model
|
|||||||
res[k+"-2"] = m.group(2)
|
res[k+"-2"] = m.group(2)
|
||||||
else:
|
else:
|
||||||
res[k] = v
|
res[k] = v
|
||||||
|
if k.startswith("Hires prompt:"):
|
||||||
|
res["Hires prompt"] = v[1:][:-1]
|
||||||
|
elif k.startswith("Hires negative prompt:"):
|
||||||
|
res["Hires negative prompt"] = v[1:][:-1]
|
||||||
|
|
||||||
# Missing CLIP skip means it was set to 1 (the default)
|
# Missing CLIP skip means it was set to 1 (the default)
|
||||||
if "Clip skip" not in res:
|
if "Clip skip" not in res:
|
||||||
|
Loading…
Reference in New Issue
Block a user