Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

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

comfyanonymous8903dce86261
diff --git a/comfy_extras/nodes_pag.py b/comfy_extras/nodes_pag.py
index c48a3958d..63f43fd62 100644
--- a/comfy_extras/nodes_pag.py
+++ b/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,)