Austin Mroz 414c5d3bb8 Add additional video formats and config system
This ports the video format code written for the upstream changes to the
ffmpeg implementation. It improves the quality of webm outputs and adds
support for additional codecs (h264, h265, av1)

It also improves the logging by passing errors and more selectively
blocking the logging of encoders.

While h265 has been included, most browsers will be unable to display the
resulting video.
2023-09-17 19:45:35 -05:00
2023-07-22 22:11:47 +07:00
2023-09-17 11:08:55 +07:00
2023-07-22 22:11:47 +07:00
2023-09-17 11:41:55 +07:00
2023-09-15 21:58:38 +07:00

AnimateDiff for ComfyUI

AnimateDiff integration for ComfyUI, adapts from sd-webui-animatediff. Please read the original repo README for more information.

How to Use

  1. Clone this repo into custom_nodes folder.
  2. Download motion modules and put them under comfyui-animatediff/models/.

Nodes

AnimateDiffLoader

image

AnimateDiffSampler

  • Mostly the same with KSampler
  • Use AnimateDiffLoader to load the motion module
  • inject_method: should left default
  • frame_number: animation length
  • latent_image: You can pass an EmptyLatentImage
image

AnimateDiffCombine

  • Combine GIF frames and produce the GIF image
  • frame_rate: number of frame per second
  • loop_count: use 0 for infinite loop
  • save_image: should GIF be saved to disk
  • format: supports image/gif, image/webp (better compression) or video/webm (need ffmpeg installed and available in PATH)
image

Example Workflow

image

Workflow file: https://github.com/ArtVentureX/comfyui-animatediff/blob/main/workflow.json

Samples

23b44c29-29e8-4f48-ab3c-4df87c90c13f

25f6c60c-f8ac-4abe-984f-1559c355d7f6

Known Issues

GIF split into multiple scenes

AnimateDiff_00007_

Work around:

  • Shorter your prompt and negative prompt
  • Reduce resolution. AnimateDiff is trained on 512x512 images so it works best with 512x512 output.
  • Disable xformers with --disable-xformers

GIF has Wartermark (especially when using mm_sd_v15)

See: https://github.com/continue-revolution/sd-webui-animatediff/issues/31

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. Try other community finetuned modules.

S
Description
No description provided
Readme Apache-2.0
217 KiB
Languages
Python 87.6%
JavaScript 12.4%