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

  • Log In
  • Sign Up

IamCreateAI
/
Ruyi-Mini-7B

Image-to-Video
Diffusers
Safetensors
English
RuyiInpaintPipeline
video generation
CreateAI
Model card Files Files and versions
xet
Community
23

Instructions to use IamCreateAI/Ruyi-Mini-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use IamCreateAI/Ruyi-Mini-7B 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("IamCreateAI/Ruyi-Mini-7B", 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
Ruyi-Mini-7B
2.84 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 7 commits
K94rmdo's picture
K94rmdo
Upload 6f19ea38-bad2-4f34-8e78-763494647f32.jpeg
8330ef4 over 1 year ago
  • image_encoder
    init commit over 1 year ago
  • scheduler
    init commit over 1 year ago
  • transformer
    init commit over 1 year ago
  • vae
    init commit over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • 6f19ea38-bad2-4f34-8e78-763494647f32.jpeg
    42.1 kB
    Upload 6f19ea38-bad2-4f34-8e78-763494647f32.jpeg over 1 year ago
  • README.md
    7.5 kB
    Update README.md over 1 year ago
  • embeddings.safetensors
    75 MB
    xet
    init commit over 1 year ago
  • model_index.json
    213 Bytes
    init commit over 1 year ago