Kosinkadink / ComfyUI-AnimateDiff-Evolved

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

Using animatediff causes diffusion model slow #368

Closed jax-explorer closed 1 month ago

jax-explorer commented 4 months ago

All other settings being equal, adding the animateDiff node causes the diffusion model to slow down by a factor of nearly 1. Here is my animatediff node 截屏2024-05-06 18 36 22

Kosinkadink commented 4 months ago

When sampling 16 frames with AD (no context used), there is about a 33%ish slowdown vs. sampling 16 frames without AD. When using context options, each sliding context window takes the same amount of compute as sampling context_length frames at a time. Since there is an overlap between these windows, and since you are also using Looped Uniform context options that will increase the sliding window amount to make them "roll over" themselves, the total sampling time will increase. This is to be expected.