Instructions to use Skywork/Matrix-Game-2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Skywork/Matrix-Game-2.0 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-2.0", 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
Update model_index.json
Browse files- model_index.json +1 -26
model_index.json
CHANGED
|
@@ -1,28 +1,3 @@
|
|
| 1 |
{
|
| 2 |
-
"_class_name": "MatrixGame2I2VPipeline"
|
| 3 |
-
"_diffusers_version": "0.33.1",
|
| 4 |
-
"scheduler": [
|
| 5 |
-
"diffusers",
|
| 6 |
-
"FlowUniPCMultistepScheduler"
|
| 7 |
-
],
|
| 8 |
-
"transformer": [
|
| 9 |
-
"diffusers",
|
| 10 |
-
"MatrixGame3WanModel"
|
| 11 |
-
],
|
| 12 |
-
"vae": [
|
| 13 |
-
"diffusers",
|
| 14 |
-
"AutoencoderKLWan"
|
| 15 |
-
],
|
| 16 |
-
"text_encoder": [
|
| 17 |
-
"transformers",
|
| 18 |
-
"UMT5EncoderModel"
|
| 19 |
-
],
|
| 20 |
-
"tokenizer": [
|
| 21 |
-
"transformers",
|
| 22 |
-
"T5TokenizerFast"
|
| 23 |
-
],
|
| 24 |
-
"light_vae": [
|
| 25 |
-
"diffusers",
|
| 26 |
-
"AutoencoderKLWan"
|
| 27 |
-
]
|
| 28 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_class_name": "MatrixGame2I2VPipeline"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
}
|