pamparamm / sd-perturbed-attention

Perturbed-Attention Guidance and Smoothed Energy Guidance for ComfyUI and SD Forge
MIT License
213 stars 14 forks source link

modified so to let cfg optimisation enabled #4

Closed Extraltodeus closed 6 months ago

Extraltodeus commented 6 months ago

Hello! :D

Feel free to ignore if this is wrong at some level. I propose this modification so to make it compatible with other nodes exploiting the cfg optimisations (disabling the undond) as the PAG function does not make use of it, it seems to not cause any potential issue.

Best Regards!

pamparamm commented 6 months ago

It's not wrong, thanks! I used SAG node as a base for PAG and forgot to change that part I'll merge this fix since PAG doesn't rely on uncond and can be used with CFG=1