Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

stabilityai
/
stable-video-diffusion-img2vid

Image-to-Video
Diffusers
Safetensors
StableVideoDiffusionPipeline
Model card Files Files and versions
xet
Community
40

Instructions to use stabilityai/stable-video-diffusion-img2vid with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use stabilityai/stable-video-diffusion-img2vid with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    from diffusers.utils import load_image, export_to_video
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid", dtype=torch.bfloat16, device_map="cuda")
    pipe.to("cuda")
    
    prompt = "A man with short gray hair plays a red electric guitar."
    image = load_image(
        "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png"
    )
    
    output = pipe(image=image, prompt=prompt).frames[0]
    export_to_video(output, "output.mp4")
  • Notebooks
  • Google Colab
  • Kaggle
stable-video-diffusion-img2vid
32.6 GB
Ctrl+K
Ctrl+K
  • 10 contributors
History: 8 commits
ginevraa's picture
ginevraa
Update README.md
0a8e8f7 verified about 2 years ago
  • feature_extractor
    Add diffusers weights (#6) over 2 years ago
  • image_encoder
    Add diffusers weights (#6) over 2 years ago
  • scheduler
    Add diffusers weights (#6) over 2 years ago
  • unet
    Add diffusers weights (#6) over 2 years ago
  • vae
    Add diffusers weights (#6) over 2 years ago
  • .gitattributes
    1.57 kB
    Stable Video Diffusion over 2 years ago
  • LICENSE
    5.95 kB
    Update LICENSE over 2 years ago
  • README.md
    7.37 kB
    Update README.md about 2 years ago
  • comparison.png
    147 kB
    Stable Video Diffusion over 2 years ago
  • model_index.json
    498 Bytes
    Add diffusers weights (#6) over 2 years ago
  • output_tile.gif
    18.6 MB
    xet
    Stable Video Diffusion over 2 years ago
  • svd.safetensors
    9.56 GB
    xet
    Stable Video Diffusion over 2 years ago
  • svd_image_decoder.safetensors
    9.5 GB
    xet
    Stable Video Diffusion over 2 years ago