Browse Source

This can be removed since PAG doesn't use the uncond.

pull/1566/merge
comfyanonymous 7 months ago
parent
commit
8903dce862
  1. 2
      comfy_extras/nodes_pag.py

2
comfy_extras/nodes_pag.py

@ -47,7 +47,7 @@ class PerturbedAttentionGuidance:
return cfg_result + (cond_pred - pag) * scale
m.set_model_sampler_post_cfg_function(post_cfg_function, disable_cfg1_optimization=True)
m.set_model_sampler_post_cfg_function(post_cfg_function)
return (m,)

Loading…
Cancel
Save