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

  • Log In
  • Sign Up

Skywork
/
Matrix-Game

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

Instructions to use Skywork/Matrix-Game with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use Skywork/Matrix-Game 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("Skywork/Matrix-Game", 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
Matrix-Game / text_encoder_i2v
16.8 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 1 commit
crispeng's picture
crispeng
add vae and text encoder
c276cff verified about 1 year ago
  • .gitattributes
    1.52 kB
    add vae and text encoder about 1 year ago
  • README.md
    5.64 kB
    add vae and text encoder about 1 year ago
  • config.json
    1.07 kB
    add vae and text encoder about 1 year ago
  • generation_config.json
    121 Bytes
    add vae and text encoder about 1 year ago
  • model-00001-of-00004.safetensors
    5 GB
    xet
    add vae and text encoder about 1 year ago
  • model-00002-of-00004.safetensors
    4.92 GB
    xet
    add vae and text encoder about 1 year ago
  • model-00003-of-00004.safetensors
    5 GB
    xet
    add vae and text encoder about 1 year ago
  • model-00004-of-00004.safetensors
    1.84 GB
    xet
    add vae and text encoder about 1 year ago
  • model.safetensors.index.json
    70.1 kB
    add vae and text encoder about 1 year ago
  • preprocessor_config.json
    819 Bytes
    add vae and text encoder about 1 year ago
  • special_tokens_map.json
    463 Bytes
    add vae and text encoder about 1 year ago
  • tokenizer.json
    9.09 MB
    add vae and text encoder about 1 year ago
  • tokenizer_config.json
    51.7 kB
    add vae and text encoder about 1 year ago