mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-12 12:37:01 +00:00
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:
@@ -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") {
|
||||
|
Reference in New Issue
Block a user