ComfyUI Node

H3MD Depth Control

Settings for the H3MD Loop's depth ControlNet (Depth Anything V2 + MiniMax H3 Fun ControlNet int8) on the low-res stage. Holds no model: the Loop loads the depth model and the patch only for segments with a depth video. Tick 'depth' on a video in the Director editor.

By 1113800942·Created 4 days ago·Updated about 7 hours ago· 11
H3MD Depth Control
  • vae
  • depth_control
◄control_modelminimax_h3_fun_controlnet_union_pruned_int8_convrot.safetensors►
◄strength0.70►
◄start_percent0.000►
◄end_percent0.600►
◄depth_modeldepth_anything_v2_vitl.pth►
◄depth_resolution512►
◄sam3_enabledfalse►
◄sam3_threshold0.30►
◄sam3_fill20►
◄sam3_grow2►
◄sam3_blur2►
◄sam3_outputsilhouette►
CategoryMiniMax H3/H3MD

Inputs (13)

NameTypeDefaultDescription
control_modelCOMBOminimax_h3_fun_controlnet_union_pruned_int8_convrot.safetensorsMiniMax H3 Fun ControlNet file in models/model_patches (int8). Loaded by the Loop only for segments with a depth video, released after their low-res stage.
vaeVAEVideo VAE used by core's Fun ControlNet to encode the control video (passed through as a reference, nothing is loaded here).
strengthFLOAT0.700–10—
start_percentFLOAT0.0000–1—
end_percentFLOAT0.6000–1—
depth_modelCOMBOdepth_anything_v2_vitl.pthDepth Anything V2 checkpoint (comfyui_controlnet_aux). Loaded per depth segment, unloaded right after.
depth_resolutionINT51264–2048Depth inference short side (aux keeps the aspect, no crop).
sam3_enabledBOOLEANfalseSAM3 mask on depth videos that have a SAM3 prompt (Director editor): only the prompted objects keep their depth, the rest is black. Empty prompt = full depth. The SAM3 prompt never enters the H3 prompt.
sam3_thresholdFLOAT0.300–1SAM3 detection score threshold (core SAM3_VideoTrack detection_threshold).
sam3_filloptINT200–256SAM3 mask: fill enclosed holes up to this size (px of the source video). Open gaps between legs / arm and body are never filled.
sam3_growoptINT20–256SAM3 mask: grow outward (px of the source video). Keep small: a silhouette wider than the body leaves a translucent ghost (e.g. on the floor). Default 2.
sam3_bluroptINT20–256SAM3 mask: gaussian feather radius (px of the source video). Default 2.
sam3_outputoptCOMBOsilhouetteWith SAM3: silhouette = the cleaned mask as a white figure on black (author's workflow) feeds the ControlNet AND <Video N> - only shape and motion, no depth shading, so the reference video carries no picture at all. masked_depth = the depth inside the mask (grey figure).

Outputs (1)

NameTypeDescription
depth_controlH3MD_DEPTH—