SAM 3D Body: 3D Human Mesh Extraction From Video
Load a video of a person. Extract a full-body 3D human mesh with pose, shape, and face expressions, rendered as an overlay video.
Run on Comfy Cloud
Run this workflow instantly on Comfy Cloud
Download Workflow
Download JSON or search “SAM 3D Body: 3D Human Mesh Extraction From Video” in Template Library
LoadVideo node:
woman_holding_water_glass.mp4
LoadVideo node 85 · woman_holding_water_glass.mp4How it works
- Video tracking: SAM3 tracks the person across the video frames. Tracking is practically required when multiple people appear in the clip, and improves detection accuracy in general
- Person detection: RT-DETR detects the person bounding boxes, guided by the text prompt (
person) - Mesh prediction: SAM 3D Body predicts the full-body 3D mesh from the tracked frames, with optional MoGe camera FOV for more accurate alignment with the source video
- Face expressions: a MediaPipe-based step adds face expressions, which the base model does not detect
- Smoothing: the mesh sequence is smoothed over time
- Rendering: a pose file (GLB) is built and the mesh is rendered back onto the video, then saved as an output video
Steps to run
- Load a video: use the
LoadVideonode to load a video of a person - Queue the workflow: press Ctrl (Cmd on macOS) + Enter
- Wait for the pipeline: tracking, detection, mesh prediction, and rendering run in sequence
- View the result: inspect the mesh in the
Preview3Dnode. The overlay video is saved toComfyUI/output/video/SAM3D_body/
Model downloads
Download the SAM 3D Body model and required files. Place them in the correspondingmodels/ subdirectories.
SAM3 multiplex checkpoint
sam3.1_multiplex_fp16.safetensors: SAM3 multiplex checkpoint for video tracking
SAM 3D Body detection
sam_3d_body_dinov3_bf16.safetensors: SAM 3D Body detection model (DINOv3 backbone)
MoGe geometry
moge_2_vitl_normal_fp16.safetensors: optional camera FOV estimation for alignment
RT-DETR person detector
rt_detr_v4-x-hgnet_fp32.safetensors: RT-DETR person detection model