Comfy UI AnimateDiff BASIC setup

 Here's a screenshot of a basic ComfyUI AnimateDiff setup/workflow.

The setup is largely the same as the previous post covering the default Txt2Img one. The new nodes to pay attention to are the Animate Diff Loader and the Uniform Context Options. Also note that the Empty Latent image has been set to 32 in the batch size. This is the value that will dictate the length of your animation - NOT the number set in Uniform Context Options!

Uniform Context Options is what lets us chain together "unlimited" AnimateDiffs. With standard setup, you're limited to 36 frames (at time of writing) but here we can set the length of each "block" of AnimateDiff (I leave it at 16), the overlap of each block and whether we want to have the animation a closed loop or not. I find that closing the loop produces washed out results, I'll post an update if I find a solution/workaround. Context stride by default is set to 1 - this is OFF. I haven't found decent explanations of what it does - but the gist is it tries to make the animation more consistent by running through the AnimateDiff several times. This will be slower!

AnimateDiff  Loader is probably what you're used to seeing in Automatic1111. You just select your model (will be different to your initial checkpoint model!) and plug in the context options here. Also you can feed in a Motion Lora if desired. Note that the Initial checkpoint model is fed through this node. I haven't really seen a difference with changing the beta schedule setting yet.

To output a GIF or video, I'm using a Video Combine node from the VideoHelperSuite, which the below guide explains the installation of.

 

To setup ComfyUI and AnimateDiff, I followed this guide - it also covers a lot of what I'll be posting on this blog
[GUIDE] ComfyUI AnimateDiff Guide/Workflows Including Prompt Scheduling - An Inner-Reflections Guide | Civitai

 

Comments

Popular posts from this blog

Comfy UI, simple Txt To Image setup

ComfyUI ControlNet + AnimateDiff