Kosinkadink / ComfyUI-AnimateDiff-Evolved

Improved AnimateDiff for ComfyUI and Advanced Sampling Support
Apache License 2.0
2.76k stars 208 forks source link

Support sliding contexts for PerturbedAttentionGuidance (and sampler_post_cfg_function) #357

Closed Kosinkadink closed 7 months ago

Kosinkadink commented 7 months ago

Adds wrapper around calc_cond_batch only around call to comfy.sampelrs.cfg_function.

Allows sampler_cfg_function and sampler_post_cfg_function to use calc_cond_batch inside them while still supporting sliding contexts properly.