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 / processor
15.9 MB
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
  • added_tokens.json
    605 Bytes
    Add files using upload-large-folder tool 2 months ago
  • chat_template.jinja
    1.02 kB
    Add files using upload-large-folder tool 2 months ago
  • merges.txt
    1.67 MB
    Add files using upload-large-folder tool 2 months ago
  • preprocessor_config.json
    829 Bytes
    Add files using upload-large-folder tool 2 months ago
  • qwen_config.json
    3.32 kB
    Add files using upload-large-folder tool 2 months ago
  • special_tokens_map.json
    613 Bytes
    Add files using upload-large-folder tool 2 months ago
  • tokenizer.json
    11.4 MB
    xet
    Add files using upload-large-folder tool 2 months ago
  • tokenizer_config.json
    4.73 kB
    Add files using upload-large-folder tool 2 months ago
  • video_preprocessor_config.json
    913 Bytes
    Add files using upload-large-folder tool 2 months ago
  • vocab.json
    2.78 MB
    Add files using upload-large-folder tool 2 months ago