Switch to the real cfg++ method in the samplers.

The old _pp ones will be updated automatically to the regular ones with 2x
the cfg.

My fault for not checking what the "_pp" samplers actually did.
This commit is contained in:
comfyanonymous
2024-06-29 11:59:48 -04:00
parent fbb7a1f1b6
commit 05e831697a
3 changed files with 15 additions and 7 deletions

View File

@@ -1966,6 +1966,14 @@ export class ComfyApp {
if (widget.value.startsWith("sample_")) {
widget.value = widget.value.slice(7);
}
if (widget.value === "euler_pp" || widget.value === "euler_ancestral_pp") {
widget.value = widget.value.slice(0, -3);
for (let w of node.widgets) {
if (w.name == "cfg") {
w.value *= 2.0;
}
}
}
}
}
if (node.type == "KSampler" || node.type == "KSamplerAdvanced" || node.type == "PrimitiveNode") {