Instructions to use MATLOWAI/MiniMax-H3-Motion-Adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use MATLOWAI/MiniMax-H3-Motion-Adapter 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("MATLOWAI/MiniMax-H3-Motion-Adapter") 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") image = pipe(image=input_image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
File size: 5,751 Bytes
42cbd13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 | {
"115": {
"class_type": "ResolutionSelector",
"inputs": {
"aspect_ratio": "16:9 (Widescreen)",
"megapixels": 0.7,
"multiple": 32
},
"_meta": {
"title": "ResolutionSelector"
}
},
"119": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "minimax_h3/minimax_h3_video_vae_int8_convrot.safetensors"
},
"_meta": {
"title": "VAELoader"
}
},
"120": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "minimax_h3/minimax_h3_audio_vae_fp32.safetensors"
},
"_meta": {
"title": "VAELoader"
}
},
"121": {
"class_type": "VAEDecodeAudio",
"inputs": {
"samples": [
"125",
0
],
"vae": [
"120",
0
]
},
"_meta": {
"title": "VAEDecodeAudio"
}
},
"122": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"125",
0
],
"vae": [
"119",
0
]
},
"_meta": {
"title": "VAEDecode"
}
},
"124": {
"class_type": "BasicScheduler",
"inputs": {
"scheduler": "beta",
"steps": 4,
"denoise": 1.0,
"model": [
"500",
0
]
},
"_meta": {
"title": "BasicScheduler"
}
},
"125": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"noise": [
"129",
0
],
"guider": [
"126",
0
],
"sampler": [
"135",
0
],
"sigmas": [
"124",
0
],
"latent_image": [
"131",
1
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"126": {
"class_type": "BasicGuider",
"inputs": {
"model": [
"500",
0
],
"conditioning": [
"131",
0
]
},
"_meta": {
"title": "BasicGuider"
}
},
"127": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "minimax_h3/minimax_h3_fl2va_pruned_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "UNETLoader"
}
},
"128": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "minimax_h3/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
"type": "minimax",
"device": "default"
},
"_meta": {
"title": "CLIPLoader"
}
},
"129": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 20260963
},
"_meta": {
"title": "RandomNoise"
}
},
"130": {
"class_type": "CreateVideo",
"inputs": {
"fps": 24.0,
"bit_depth": 8,
"images": [
"122",
0
],
"audio": [
"121",
0
]
},
"_meta": {
"title": "CreateVideo"
}
},
"131": {
"class_type": "MiniMaxH3ImageToVideo",
"inputs": {
"prompt": "a 15-second hyper-realistic cinematic underground martial arts fight. A skilled Asian female fighter wearing an elegant dark blue and gold dragon cheongsam battles a massive muscular bodyguard dressed entirely in black inside a dark abandoned industrial basement. Start with a tense slow cinematic dolly-in, flickering warm yellow lights, wet reflective floor, hanging cables, smoke and dust in the air. The bodyguard suddenly charges and throws a powerful punch. She narrowly ducks, and his fist smashes into a concrete pillar, producing debris and dust. She counters with a fast spinning kick to his ribs, creating a powerful air shockwave and water splash. He catches her leg and throws her, but she performs an acrobatic mid-air flip and lands gracefully with one hand. She then rushes forward with a rapid three-hit martial arts combination. A subtle golden dragon-shaped energy trail surrounds her final palm strike. The impact creates a massive cinematic shockwave, sparks, flying dust, flickering lights and realistic camera shake. The bodyguard is thrown backward. End with a dramatic close-up of the female fighter as the lights flicker and the screen cuts to black. Realistic human movement, consistent faces and clothing, intense choreography, cinematic lighting, speed ramping, dynamic camera movement, realistic motion blur, no slow or floating movement, no cartoon style",
"width": [
"115",
0
],
"height": [
"115",
1
],
"length": [
"132",
1
],
"clip": [
"128",
0
],
"vae": [
"119",
0
]
},
"_meta": {
"title": "MiniMaxH3ImageToVideo"
}
},
"132": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "max(5, round(a * 24)) + (5 - (max(5, round(a * 24)) % 17)) % 17",
"values.a": [
"133",
0
]
},
"_meta": {
"title": "ComfyMathExpression"
}
},
"133": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 5.0
},
"_meta": {
"title": "Float (duration)"
}
},
"135": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "er_sde"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"92": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/seedhunt_20260963",
"format": "auto",
"codec": "auto",
"video": [
"130",
0
]
},
"_meta": {
"title": "SaveVideo"
}
},
"500": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"model": [
"127",
0
],
"lora_name": "minimax_h3-lightx2v/minimax_h3_fl2v_lightx2v_turbo_4step_v0.1_comfy.safetensors",
"strength_model": 0.5
}
}
}
|