Image-to-Video
Diffusers
Safetensors
MiniMax H3
English
smd
diffusion-distillation
few-step
lora
minimax
video-generation
audio-video
4-step
reference-to-video
Instructions to use zjwfufu/SMD-MiniMax-H3-Ref2VA-4step with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use zjwfufu/SMD-MiniMax-H3-Ref2VA-4step 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("MiniMaxAI/MiniMax-H3", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("zjwfufu/SMD-MiniMax-H3-Ref2VA-4step") prompt = "A man with short gray hair plays a red electric guitar." input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png") output = pipe(image=input_image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Download sampling.json from zjwfufu/SMD-MiniMax-H3-Ref2VA-4step: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/zjwfufu/SMD-MiniMax-H3-Ref2VA-4step/resolve/main/sampling.json
- Command line
-
hf download hf://zjwfufu/SMD-MiniMax-H3-Ref2VA-4step/sampling.json
-
curl -L -o sampling.json https://huggingface.co/zjwfufu/SMD-MiniMax-H3-Ref2VA-4step/resolve/main/sampling.json
530 Bytes
| { | |
| "schema_version": 1, | |
| "model_id": "MiniMaxAI/MiniMax-H3", | |
| "model_revision": "939557dc319dd91227e30195a763f272ba7f8765", | |
| "weights": "lora/adapter_model.safetensors", | |
| "precision": "bfloat16", | |
| "sampler": { | |
| "type": "joint_video_audio_euler", | |
| "student_sample_steps": 4, | |
| "final_step_size_scale": 0.5, | |
| "video_shift": 12.0, | |
| "audio_shift": 3.0, | |
| "condition_mode": "ref2va", | |
| "transformer_subfolder": "transformer_ref", | |
| "height": 768, | |
| "width": 1344, | |
| "num_frames": 124, | |
| "fps": 24 | |
| } | |
| } | |