animatediff-cli  by neggles

CLI tool for AnimateDiff stable diffusion generation

created 2 years ago
262 stars

Top 97.8% on sourcepulse

GitHubView on GitHub
Project Summary

This CLI utility and library provides a streamlined interface for AnimateDiff stable diffusion generation, targeting users who want to create animations with significantly reduced VRAM requirements and support for infinite generation lengths. It offers a more efficient and flexible approach to generating animated content from text prompts.

How It Works

The tool leverages PyTorch 2.0's Scaled-Dot-Product Attention (built-in xformers) by default, aiming to reduce VRAM usage and potentially improve performance. It allows explicit forcing of xformers if desired. The architecture is designed for efficient generation, with experimental support for torch.compile() for further speedups, though this is noted to be slightly hindered by upstream Diffusers bugs.

Quick Start & Requirements

  • Install via pip install -e '.[dev]' after cloning the repository.
  • Requires Python 3.10+ and PyTorch 2.0.0+. CUDA 11.8 is specified for PyTorch installation.
  • Experimental RIFE support requires ffmpeg and downloading rife-ncnn-vulkan to data/rife/.
  • Official documentation and demo links are not explicitly provided in the README.

Highlighted Details

  • Significantly lower VRAM usage compared to other implementations.
  • Infinite generation length support.
  • Experimental RIFE support for motion interpolation.
  • Batch generation capability with the --repeat flag.
  • Potential for integration into other Python programs via animatediff.cli.generate().

Maintenance & Community

The project is maintained by neggles. Credits are given to guoyww/AnimateDiff, indicating a significant portion of the work is based on that project. Community links (Discord/Slack) are not provided.

Licensing & Compatibility

The project uses the Apache 2.0 license, inherited from the original AnimateDiff repository. This license is generally permissive for commercial use and closed-source linking.

Limitations & Caveats

LoRA loading is explicitly stated as not implemented. Support for non-CUDA hardware is untested. The README mentions that the copyright notice in the COPYING file is missing original author names due to the original repo lacking attribution for its license.

Health Check
Last commit

19 hours ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.