Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

hunyuanvideo-community
/
HunyuanVideo-1.5-Diffusers-720p_i2v

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

Instructions to use hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-720p_i2v with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-720p_i2v 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("hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-720p_i2v", 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
HunyuanVideo-1.5-Diffusers-720p_i2v / tokenizer
15.9 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
YiYiXu's picture
YiYiXu HF Staff
Add files using upload-large-folder tool
9973aad verified 10 months ago
  • added_tokens.json
    605 Bytes
    Add files using upload-large-folder tool 10 months ago
  • chat_template.jinja
    1.02 kB
    Add files using upload-large-folder tool 10 months ago
  • merges.txt
    1.67 MB
    Add files using upload-large-folder tool 10 months ago
  • special_tokens_map.json
    613 Bytes
    Add files using upload-large-folder tool 10 months ago
  • tokenizer.json
    11.4 MB
    xet
    Add files using upload-large-folder tool 10 months ago
  • tokenizer_config.json
    4.71 kB
    Add files using upload-large-folder tool 10 months ago
  • vocab.json
    2.78 MB
    Add files using upload-large-folder tool 10 months ago