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

  • Log In
  • Sign Up

linyq
/
kiwi-edit-5b-instruct-reference-diffusers

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

Instructions to use linyq/kiwi-edit-5b-instruct-reference-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use linyq/kiwi-edit-5b-instruct-reference-diffusers 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("linyq/kiwi-edit-5b-instruct-reference-diffusers", 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
kiwi-edit-5b-instruct-reference-diffusers / mllm_encoder
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
linyq's picture
linyq
Add files using upload-large-folder tool
178903b verified 2 months ago
  • config.json
    265 Bytes
    Add files using upload-large-folder tool 2 months ago
  • diffusion_pytorch_model.safetensors
    69.2 MB
    xet
    Add files using upload-large-folder tool 2 months ago
  • generation_config.json
    214 Bytes
    Add files using upload-large-folder tool 2 months ago
  • mllm_encoder.py
    125 kB
    Add files using upload-large-folder tool 2 months ago
  • model-00001-of-00002.safetensors
    5 GB
    xet
    Add files using upload-large-folder tool 2 months ago
  • model-00002-of-00002.safetensors
    2.51 GB
    xet
    Add files using upload-large-folder tool 2 months ago
  • model.safetensors.index.json
    65.5 kB
    Add files using upload-large-folder tool 2 months ago