MiniMax H3 Fun ControlNet Union
使用MiniMax-H3和ControlNet-Union检查点,从姿态参考视频生成视频,在应用提示词的同时保留输入的运动和结构。非常适合角色动画、运动迁移和编舞可视化项目。此工作流仅用于姿态控制。
查看工作流内部
源模板的只读预览。在 Cloud 中打开,即可查看节点并进行修改。
Loading the graph
Open full-size workflow preview此工作流中的文件
- minimax_h3_video_vae_int8_convrot.safetensors
- minimax_h3_audio_vae_fp32.safetensors
- minimax_h3_ref2va_pruned_int8_convrot.safetensors
- qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors
- minimax_h3_ref2v_turbo_4step_v0.1_comfyui_bf16.safetensors
- minimax_h3_fun_controlnet_union_pruned_int8_convrot.safetensors
- sdpose_wholebody_fp16.safetensors
- rt_detr_v4-x-hgnet_fp16.safetensors
- 输出
- 视频
- 作者
- 作者信息暂不可用
从代码中调用该模型
以下请求使用与体验区相同的预设图和设置。每次提交都可能开始一次付费运行;如果提交结果未知,请勿自动重试。
What you need
- Runs on
- Comfy Cloud
- 密钥
- COMFY_API_KEY
- 你的文件
- 由代码根据链接上传
需要付费的 Cloud 方案和额度。
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"115": {
"class_type": "ResolutionSelector",
"inputs": {
"aspect_ratio": "16:9 (Widescreen)",
"megapixels": 0.4,
"multiple": 32
},
"_meta": {
"title": "Resolution Selector (Size)"
}
},
"119": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "minimax_h3_video_vae_int8_convrot.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"120": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "minimax_h3_audio_vae_fp32.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"121": {
"class_type": "VAEDecodeAudio",
"inputs": {
"samples": [
"125",
0
],
"vae": [
"120",
0
]
},
"_meta": {
"title": "VAE Decode Audio"
}
},
"122": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"125",
0
],
"vae": [
"119",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"123": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "res_multistep"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"124": {
"class_type": "BasicScheduler",
"inputs": {
"denoise": 1,
"model": [
"172",
0
],
"scheduler": "simple",
"steps": [
"142",
0
]
},
"_meta": {
"title": "BasicScheduler"
}
},
"125": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"126",
0
],
"latent_image": [
"136",
1
],
"noise": [
"129",
0
],
"sampler": [
"123",
0
],
"sigmas": [
"124",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"126": {
"class_type": "BasicGuider",
"inputs": {
"conditioning": [
"136",
0
],
"model": [
"172",
0
]
},
"_meta": {
"title": "Basic Guider"
}
},
"127": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"128": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
"device": "default",
"type": "minimax"
},
"_meta": {
"title": "Load CLIP"
}
},
"129": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 1086599926715797
},
"_meta": {
"title": "RandomNoise"
}
},
"130": {
"class_type": "CreateVideo",
"inputs": {
"audio": [
"121",
0
],
"bit_depth": "auto",
"chroma_subsampling": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": 24,
"images": [
"122",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"131": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "max(5, round(a * 24)) + (5 - (max(5, round(a * 24)) % 17)) % 17",
"values.a": [
"132",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"132": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 5
},
"_meta": {
"title": "Float (Duration)"
}
},
"136": {
"class_type": "MiniMaxH3ReferenceToVideo",
"inputs": {
"audio_vae": [
"120",
0
],
"clip": [
"128",
0
],
"height": [
"115",
1
],
"length": [
"131",
1
],
"prompt": [
"138",
0
],
"ref_image_size": "match",
"vae": [
"119",
0
],
"width": [
"115",
0
]
},
"_meta": {
"title": "MiniMax H3 Reference to Video"
}
},
"138": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Scene: Hyperreal desert-storm aesthetic. A humanoid figure made of packed sand dances in a barren wasteland, each move shedding dust, the wind eroding and reshaping its body.\n[0s-2s] Pale desert, a sand humanoid begins to move from stillness, surface grains trickling off and dragging mist-like trails in the wind.\n[2s-4s] Spins and arm swings keep dissolving and rebuilding its edges, raised sand columns glowing gold in hard light under a searing white sky.\n[4s-5s] On the final pose, half the body has already been carried away by wind as a hanging line of sand, not yet fallen.\nCamera: medium fixed shot, focus pull from sand-grain close-up to full body.\nAudio: fine sand-scrape texture throughout, one distant desert wind call at 2s, no music.\nNegative: no dissolve transitions / no text overlays / no human face / no camera shake"
},
"_meta": {
"title": "Input Text (Prompt)"
}
},
"141": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"127",
0
],
"on_true": [
"145",
0
],
"switch": [
"146",
0
]
},
"_meta": {
"title": "If/Else Switch (model)"
}
},
"142": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"143",
0
],
"on_true": [
"144",
0
],
"switch": [
"146",
0
]
},
"_meta": {
"title": "If/Else Switch (Steps)"
}
},
"143": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 20
},
"_meta": {
"title": "Int (Full)"
}
},
"144": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 4
},
"_meta": {
"title": "Int (Lightning LoRA)"
}
},
"145": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "minimax_h3_ref2v_turbo_4step_v0.1_comfyui_bf16.safetensors",
"model": [
"127",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"146": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": False
},
"_meta": {
"title": "Boolean (Enable Lightning LoRA)"
}
},
"172": {
"class_type": "MiniMaxH3FunControlNetApply",
"inputs": {
"control_video": [
"704",
0
],
"end_percent": 1,
"model": [
"141",
0
],
"model_patch": [
"173",
0
],
"start_percent": 0,
"strength": 1,
"vae": [
"119",
0
]
},
"_meta": {
"title": "Apply MiniMax H3 Fun ControlNet"
}
},
"173": {
"class_type": "ModelPatchLoader",
"inputs": {
"name": "minimax_h3_fun_controlnet_union_pruned_int8_convrot.safetensors"
},
"_meta": {
"title": "Load Model Patch"
}
},
"174": {
"class_type": "LoadVideo",
"inputs": {
"file": "UPLOADED_video_FILENAME"
},
"_meta": {
"title": "Load Video (Control Video)"
}
},
"704": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"700:672",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"705": {
"class_type": "Video Slice",
"inputs": {
"duration": 0,
"start_time": 0,
"strict_duration": False,
"video": [
"174",
0
]
},
"_meta": {
"title": "Trim Video"
}
},
"707": {
"class_type": "SaveVideo",
"inputs": {
"codec": "auto",
"filename_prefix": "video/MiniMax_H3",
"format": "auto",
"format.codec": "auto",
"video": [
"130",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"712": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": False
},
"_meta": {
"title": "Boolean (Enable Lightning LoRA)"
}
},
"700:671": {
"class_type": "SDPoseKeypointExtractor",
"inputs": {
"batch_size": 16,
"bboxes": [
"700:678",
0
],
"image": [
"700:674",
0
],
"model": [
"700:673",
0
],
"vae": [
"700:673",
2
]
},
"_meta": {
"title": "SDPose Keypoint Extractor"
}
},
"700:672": {
"class_type": "SDPoseDrawKeypoints",
"inputs": {
"draw_body": True,
"draw_face": True,
"draw_feet": True,
"draw_hands": True,
"draw_head": True,
"face_point_size": 2,
"keypoints": [
"700:671",
0
],
"score_threshold": 0.51,
"stick_width": 4
},
"_meta": {
"title": "SDPose Draw Keypoints"
}
},
"700:673": {
"class_type": "CheckpointLoaderSimple",
"inputs": {
"ckpt_name": "sdpose_wholebody_fp16.safetensors"
},
"_meta": {
"title": "Load Checkpoint"
}
},
"700:674": {
"class_type": "ResizeImageMaskNode",
"inputs": {
"input": [
"700:692",
0
],
"resize_type": "scale longer dimension",
"resize_type.longer_size": 1024,
"scale_method": "lanczos"
},
"_meta": {
"title": "Resize Image/Mask"
}
},
"700:677": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "rt_detr_v4-x-hgnet_fp16.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"700:678": {
"class_type": "RTDETR_detect",
"inputs": {
"class_name": "person",
"image": [
"700:674",
0
],
"max_detections": 2,
"model": [
"700:677",
0
],
"threshold": 0.5
},
"_meta": {
"title": "Run Real-Time Detection (RT-DETR)"
}
},
"700:692": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"705",
0
]
},
"_meta": {
"title": "Get Video Components"
}
}
})
workflow.set_input("174", "file", client.assets.from_url("https://comfy.org/catalog-media/e05f091f-bb6a-4a10-8115-4f0671dc49ad/524acb1d-d4ce-4789-9e72-6d6a8804d2fb"))
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)
for output in job.get_outputs("707"):
output.to_file(output.name)试试一个示例
关于此工作流
The reference clip is not the picture — it is the choreography. SDPose extracts whole-body keypoints from every frame (hands and feet included), the drawn stick figure becomes the control video, and MiniMax H3 Fun applies that pose stream through a ControlNet Union patch while the prompt writes the world: who or what performs, the place, the light, the camera, the sound. The result keeps the timing and the skeleton of the original performance and replaces everything else, which is what motion transfer and choreography visualisation actually want. Length follows the control clip, rounded to the model's frame grid, and the clip renders with its own audio track so the prompt's sound direction lands with the picture.\n\nGraph: LoadVideo -> Video Slice -> GetVideoComponents -> RT-DETR (person boxes) + SDPose (whole-body keypoints) -> SDPoseDrawKeypoints (control video) -> MiniMaxH3FunControlNetApply (ControlNet Union, strength 1) -> MiniMaxH3ReferenceToVideo (prompt, ResolutionSelector, frame count) -> VAEDecode + VAEDecodeAudio -> CreateVideo -> SaveVideo (mp4). One clip plus a prompt in, one clip out.