Nodes/ComfyCollectorNodes/Conditioning Projection Removal (CCN)
ComfyUI Node

Conditioning Projection Removal (CCN)

Remove the directional influence of a negative conditioning from a positive via vector projection. A lightweight pre-attention approach to concept suppression for models that lack native negative prompt support (Flux, SD3).

By valkymaera·Created 3 months ago·Updated 4 days ago· 1
Conditioning Projection Removal (CCN)
  • positive
  • negative
  • conditioning
scale1.00
poolingmean
debugfalse
CategoryCCN/conditioning

Inputs (5)

NameTypeDefaultDescription
positiveCONDITIONING
negativeCONDITIONING
scaleFLOAT1.000–10Projection removal strength. 1.0 = remove exactly the negative's directional component. >1.0 = overcorrect, pushing away from the negative. 0 = no effect.
poolingCOMBOmeanHow to collapse the negative's token sequence into a single concept direction. mean = average all tokens (good general default). max = take the token with the largest norm (picks the most 'opinionated' token). weighted_norm = weight each token by its norm before averaging (emphasizes stronger tokens).
debugoptBOOLEANfalsePrint diagnostics to console

Outputs (1)

NameTypeDescription
conditioningCONDITIONING