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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

zai-org
/
CogVideoX1.5-5B-I2V

Image-to-Video
Diffusers
Safetensors
English
video-generation
thudm
Model card Files Files and versions
xet
Community
17

Instructions to use zai-org/CogVideoX1.5-5B-I2V with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use zai-org/CogVideoX1.5-5B-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("zai-org/CogVideoX1.5-5B-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
CogVideoX1.5-5B-I2V
31.1 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 12 commits
zR
Update transformer/config.json
46c9052 verified about 1 year ago
  • scheduler
    1 over 1 year ago
  • text_encoder
    1 over 1 year ago
  • tokenizer
    1 over 1 year ago
  • transformer
    Update transformer/config.json about 1 year ago
  • vae
    test over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • LICENSE
    5.7 kB
    test over 1 year ago
  • README.md
    9.76 kB
    Update README.md over 1 year ago
  • README_zh.md
    9.14 kB
    test over 1 year ago
  • model_index.json
    423 Bytes
    1 over 1 year ago