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

  • Log In
  • Sign Up

FrancisRing
/
StableAnimator

Image-to-Video
Diffusers
ONNX
Safetensors
VAE
human-animation
Model card Files Files and versions
xet
Community
4

Instructions to use FrancisRing/StableAnimator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use FrancisRing/StableAnimator 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("FrancisRing/StableAnimator", 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
StableAnimator / assets /figures
302 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
FrancisRing's picture
FrancisRing
Upload 13 files
1123ecc verified over 1 year ago
  • case-17.gif
    1.79 MB
    xet
    Upload 13 files over 1 year ago
  • case-18.gif
    21.9 MB
    xet
    Upload 13 files over 1 year ago
  • case-24.gif
    24.2 MB
    xet
    Upload 13 files over 1 year ago
  • case-35.gif
    56.3 MB
    xet
    Upload 13 files over 1 year ago
  • case-42.gif
    79.9 MB
    xet
    Upload 13 files over 1 year ago
  • case-45.gif
    28.6 MB
    xet
    Upload 13 files over 1 year ago
  • case-46.gif
    36.7 MB
    xet
    Upload 13 files over 1 year ago
  • case-47.gif
    33.4 MB
    xet
    Upload 13 files over 1 year ago
  • case-5.gif
    1.49 MB
    xet
    Upload 13 files over 1 year ago
  • case-61.gif
    15.1 MB
    xet
    Upload 13 files over 1 year ago
  • framework.jpg
    3.09 MB
    xet
    Upload 13 files over 1 year ago