Diffusers: Stable Video Diffusion Pipeline

term_id: diffusersstablevideodiffusionpipeline

Category: application_paradigms

Definition

Denna term avser en specifik implementation i Hugging Face Diffusers-biblioteket som är utformad för videogenrering. Den integrerar Stable Video Diffusion (SVD)-modellen, vilket är en latent videodiffusionsmodell.

Summary

En Hugging Face Diffusers-pipeline som använder Stable Video Diffusion-modellen för att generera videor från statiska bilder.

Key Concepts

  • Bild-till-video-genrering
  • Latent rumsdiffusion
  • Hugging Face Diffusers
  • Stable Video Diffusion-modell

Use Cases

  • Animera statisk konst eller fotografier
  • Skapa korta videoklipp för sociala medier
  • Prototypning av visuella effekter inom filmproduktion

Code Example

1
2
3
4
5
6
from diffusers import StableVideoDiffusionPipeline
import torch

pipe = StableVideoDiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid", torch_dtype=torch.float16)
pipe.enable_model_cpu_offload()
# Usage would involve loading an image and calling pipe(image)