Authorization notice. ComfyUI H3 Face Refine is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forAn editor with a clip showing several people, where the tracker might follow someone other than the intended subject.
The problemA hard cut renumbers every face, and with several people in shot the tracker can settle on the wrong face.
The outcomeA subject chosen once per shot before the graph runs, so the crop follows the intended person through the whole clip.
What you need first
- ComfyUI with MiniMax H3 support (H3 nodes are core in comfy_extras/nodes_minimax_h3.py)
- A face detector such as face_yolov8m.pt in models/ultralytics/bbox/, which you must supply yourself
- MiniMax H3 diffusion model, Qwen3-VL text encoder, and the H3 video and audio VAEs in their ComfyUI model folders
- Git, to clone the pack into ComfyUI/custom_nodes/
- ComfyUI-VideoHelperSuite if you want to save the output video with VHS_VideoCombine
Steps
- Run
git clone https://github.com/Carasibana/ComfyUI-H3-FaceRefine.gitinside ComfyUI/custom_nodes/. - Restart ComfyUI and add the H3 Load Video + Face Select node to your graph.
- Open Pick faces and choose the subject for each shot.
- Connect the face_pick output to H3 Face Track + Crop and keep cut_detection set to auto (pyscenedetect).
- Run the graph and read the report to confirm each shot used the face you picked.
Prompt for your agent
Using the repo Carasibana/ComfyUI-H3-FaceRefine, set up the H3 Load Video + Face Select node for <video path> so the subject is chosen per shot. Return the list of shots and the chosen face for each, and verify that every shot has a subject assigned.
Caveat. Cut detection depends on PySceneDetect, and if it fails to import the video is treated as a single shot.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Carasibana/ComfyUI-H3-FaceRefine and "Pick the right face in a multi-person video"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer