List your AI tool on AI Orion for free. Submit a tool

stable-diffusion-videos

Create 🔥 videos with Stable Diffusion by exploring the latent space and morphing between text prompts

About stable-diffusion-videos

stable-diffusion-videos is a Python library for creating videos with Stable Diffusion by exploring its latent space and morphing between text prompts. It is built for developers and AI artists who want to turn a sequence of prompts into a continuous, animated video instead of generating single static images, and it is released as open source on GitHub.

A StableDiffusionWalkPipeline is loaded from a pretrained Stable Diffusion checkpoint and given a list of prompts and seeds; it then walks between the resulting latent representations over a chosen number of interpolation steps, rendering a frame at each step and assembling the frames into a video saved to an output directory. A guidance scale controls how closely each frame follows its prompt.

The library can add a music track to a video, using the audio to set the rate of interpolation so the visuals move to the beat. It also ships an Interface class that launches a UI around the pipeline instead of requiring a script, and a notebook version runs the walk entirely in Google Colab.

stable-diffusion-videos installs with pip install stable_diffusion_videos and is released under the Apache-2.0 license. It runs on a CUDA GPU using torch.float16 by default, though Apple M1 hardware needs torch.float32 since float16 is not available on MPS; a Flax notebook version is also provided in the repository, and example scripts are included for common workflows.

Use cases

  • Creating a music video synced to an audio file's beat
  • Producing an animated morph between two visual concepts

Key features

  • Generates a video by interpolating Stable Diffusion's latent space between prompts
  • Sets a guidance scale that controls how closely frames follow the prompt
  • Controls image quality via the number of diffusion steps per frame
  • Syncs interpolation speed to a music track so the video moves to the beat
  • Launches a UI around the pipeline via an Interface class
  • Runs as a Colab notebook without local setup
  • Saves generated images and videos to a named output directory

Pros and cons

Pros

Open source under the Apache-2.0 license
Includes a ready-to-run Colab notebook

Cons

On Apple M1 hardware, torch.float16 is not available and float32 must be used instead

Reviews

No reviews yet. Used stable-diffusion-videos? Be the first to review it.Log in to review

Alternatives to stable-diffusion-videos

More in AI Video Generator

Comparing tools