Improved AnimateDiff integration for ComfyUI, as well as advanced sampling options dubbed Evolved Sampling usable outside of AnimateDiff. Please read the AnimateDiff repo README and Wiki for more information about how it works at its core.
AnimateDiff workflows will often make use of these helpful node packs: - ComfyUI-Advanced-ControlNet for making ControlNets work with Context Options and controlling which latents should be affected by the ControlNet inputs. Includes SparseCtrl support. Maintained by me. - ComfyUI-VideoHelperSuite for loading videos, combining images into videos, and doing various image/latent operations like appending, splitting, duplicating, selecting, or counting. Actively maintained by AustinMroz and I. - comfyui_controlnet_aux for ControlNet preprocessors not present in vanilla ComfyUI. Maintained by Fannovel16. - ComfyUI_IPAdapter_plus for IPAdapter support. Maintained by cubiq (matt3o). - ComfyUI-KJNodes for miscellaneous nodes including selecting coordinates for animated GLIGEN. Maintained by kijai. - ComfyUI_FizzNodes for an alternate way to do prompt-travel functionality with the BatchPromptSchedule node. Maintained by FizzleDorf.
AnimateDiff Evolved, and be sure the author is Kosinkadink. Install it.
custom_nodes folder.mm_sd_v14, mm_sd_v15, mm_sd_v15_v2, v3_sd15_mm: HuggingFace | Google Drive | CivitAImm-Stabilized_mid and mm-Stabilized_high, by manshoety: HuggingFacemm-p_0.5.pth and mm-p_0.75.pth, by manshoety: HuggingFacetemporaldiff-v1-animatediff by CiaraRowles: HuggingFaceComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/modelsComfyUI/models/animatediff_modelsComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_loraComfyUI/models/animatediff_motion_loraNOTE: you can also use custom locations for models/motion loras by making use of the ComfyUI extra_model_paths.yaml file. The id for motion model folder is animatediff_models and the id for motion lora folder is animatediff_motion_lora.
mm_sd_v15_v2, mm-p_0.5.pth, and mm-p_0.75.pth.hsxl_temporal_layers.safetensors.autoselect or linear (HotshotXL/default) beta_schedule, the sweetspot for context_length or total frames (when not using context) is 8 frames, and you will need to use an SDXL checkpoint.autoselect or linear (AnimateDiff-SDXL) beta_schedule. Other than that, same rules of thumb apply to AnimateDiff-SDXL as AnimateDiff.autoselect or lcm or lcm[100_ots] beta_schedule. To use fully with LCM, be sure to use appropriate LCM lora, use the lcm sampler_name in KSampler nodes, and lower cfg to somewhere around 1.0 to 2.0. Don't forget to decrease steps (minimum = ~4 steps), since LCM converges faster (less steps). Increase step count to increase detail as desired.Apply AnimateLCM-I2V Model Gen2 node usage so that ref_latent can be provided; use Scale Ref Image and VAE Encode node to preprocess input images. While this was intended as an img2video model, I found it works best for vid2vid purposes with ref_drift=0.0, and to use it for only at least 1 step before switching over to other models via chaining with toher Apply AnimateDiff Model (Adv.) nodes. The apply_ref_when_disabled can be set to True to allow the img_encoder to do its thing even when the end_percent is reached. AnimateLCM-I2V is also extremely useful for maintaining coherence at higher resolutions (with ControlNet and SD LoRAs active, I could easily upscale from 512x512 source to 1024x1024 in a single pass). TODO: add examplesautoselect or sqrt_linear (AnimateDiff) beta_schedule. Requires Apply AnimateDiff-PIA Model Gen2 node usage if you want to actually provide input images. The pia_input can be provided via the paper's presets (PIA Input [Paper Presets]) or by manually entering values (PIA Input [Multival]).Training data used by the authors of the AnimateDiff paper contained Shutterstock watermarks. Since mm_sd_v15 was finetuned on finer, less drastic movement, the motion module attempts to replicate the transparency of that watermark and does not get blurred away like mm_sd_v14. Using other motion modules, or combinations of them using Advanced KSamplers should alleviate watermark issues.
$ claude mcp add ComfyUI-AnimateDiff-Evolved \
-- python -m otcore.mcp_server <graph>