9 Commits (4ee9aad6caf4c23e69e9e166573c505e757062e5)

Author SHA1 Message Date
comfyanonymous e6482fbbfc Refactor calc_cond_uncond_batch into calc_cond_batch.
calc_cond_batch can take an arbitrary amount of cond inputs.

Added a calc_cond_uncond_batch wrapper with a warning so custom nodes
won't break.
11 months ago
comfyanonymous b4e915e745 Skip SAG when latent is too small. 1 year ago
comfyanonymous 2c80d9acb9 Round up to nearest power of 2 in SAG node to fix some resolution issues. 1 year ago
comfyanonymous 571ea8cdcc Fix SAG not working with cfg 1.0 1 year ago
comfyanonymous 172984db01 Fix SAG not working on certain resolutions. 1 year ago
comfyanonymous a5056cfb1f Remove useless code. 1 year ago
comfyanonymous b12b48e170 cleanup. 1 year ago
comfyanonymous ba04a87d10 Refactor and improve the sag node.
Moved all the sag related code to comfy_extras/nodes_sag.py
1 year ago
Rafie Walker 6761233e9d
Implement Self-Attention Guidance (#2201)
* First SAG test

* need to put extra options on the model instead of patcher

* no errors and results seem not-broken

* Use @ashen-uncensored formula, which works better!!!

* Fix a crash when using weird resolutions. Remove an unnecessary UNet call

* Improve comments, optimize memory in blur routine

* SAG works with sampler_cfg_function
1 year ago