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

  • Log In
  • Sign Up

ajwestfield
/
MeiGen-MultiTalk

Image-to-Video
Diffusers
text-to-video
custom
inference-endpoints
Model card Files Files and versions
xet
Community

Instructions to use ajwestfield/MeiGen-MultiTalk with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use ajwestfield/MeiGen-MultiTalk 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("ajwestfield/MeiGen-MultiTalk", 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
MeiGen-MultiTalk
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
ajwestfield's picture
ajwestfield
Add custom handler for MeiGen-MultiTalk Inference Endpoint
ab4557b 8 months ago
  • README.md
    1.9 kB
    Add custom handler for MeiGen-MultiTalk Inference Endpoint 8 months ago
  • handler.py
    9.6 kB
    Add custom handler for MeiGen-MultiTalk Inference Endpoint 8 months ago
  • requirements.txt
    230 Bytes
    Add custom handler for MeiGen-MultiTalk Inference Endpoint 8 months ago