Skip to content

DualCFGGuider & PerpNegGuider: unable to "turn off" negative conditioning with CFG = 1...rendering times TRIPLE! #8787

@kaptainkory

Description

@kaptainkory

Custom Node Testing

Expected Behavior

There should be a way to "turn off" negative conditioning using CFG = 1 for DualCFGGuider and PerpNegGuider, so render times don't TRIPLE without any benefit at all.

Setting CFG =1 for CFGGuider works as expected and does not double render time.

Actual Behavior

I've posted my test results below using a very simple generic workflow with only native nodes.

FLUX

Positive → Guidance [3.5] → BASIC ... 55 sec.

Positive → Guidance [3.5] → CFGGUIDER [cfg 1] ... 48 sec.
Negative

Positive → Guidance [3.5] → CFGGUIDER [cfg 3] ... 89 sec.
Negative

Positive → Guidance [3.5] → PERPNEGGUIDER [cfg 1, neg_scale 1] ... 149 sec.
Negative
Empty

Positive → Guidance [3.5] → PERPNEGGUIDER [cfg 1, neg_scale 0] ... 140 sec.
Negative
Empty

Positive → Guidance [3.5] → PERPNEGGUIDER [cfg 1, neg_scale 0] ... 141 sec.
Negative → CondZeroOut
Empty

Positive → Guidance [3.5] → PERPNEGGUIDER [cfg 1, neg_scale 0] ... 138 sec.
Negative → CondZeroOut
Empty → CondZeroOut

Positive → Guidance [3.5] → PERPNEGGUIDER [cfg 1, neg_scale 1] ... 138 sec.
Negative → CondZeroOut
Empty → CondZeroOut

Positive → Guidance [3.5] → DUALCFGGUIDER [cfg 1, cfg2/neg 1] ... 151 sec.
Empty
Negative

Positive → Guidance [3.5] → DUALCFGGUIDER [cfg 1, cfg2/neg 1] ... 158 sec.
Empty → CondZeroOut
Negative → CondZeroOut

SDXL

Positive → BASIC ... 10 sec.

Positive → CFGGUIDER [cfg 1] ... 11 sec.
Negative

Positive → CFGGUIDER [cfg 3] ... 17 sec.
Negative

Positive → PERPNEGGUIDER [cfg 1, neg_scale 1] ... 26 sec.
Negative
Empty

Positive → PERPNEGGUIDER [cfg 1, neg_scale 0] ... 26 sec.
Negative
Empty

Positive → DUALCFGGUIDER [cfg 3, cfg2/neg 1] ... 26 sec.
Empty
Negative

Steps to Reproduce

Create a simple generic workflow with either of the problematic guider nodes, setting negative CGF to 1, and compare rendering times against CFGGuider, which is working as expected.

Debug Logs

---

Other

It would be nice if rendering times didn't double or triple for Flux models regardless of what is set for the negative CFG value (since they don't use them anyway and maybe you accidentally forget to change that setting), but they shouldn't triple when explicitly set to 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Potential BugUser is reporting a bug. This should be tested.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions