Skip to main content
SAM 3D Body is an open-source model that recovers a full-body 3D human mesh from a single video. It combines video tracking, person detection, and mesh prediction to reconstruct the human body with pose, shape, and face expressions, then renders the recovered rig back onto the video. The workflow is useful for motion capture prototyping, biomechanics analysis, and character animation previsualization.

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. SAM 3D Body workflow preview
Make sure your ComfyUI is updated.Workflows in this guide can be found in the Workflow Templates. If you can’t find them in the template, your ComfyUI may be outdated.If nodes are missing when loading a workflow, possible reasons:
  1. You are not using the latest ComfyUI version (Nightly version)
  2. Some nodes failed to import at startup

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
Input materials Upload this file to the LoadVideo node:

woman_holding_water_glass.mp4

LoadVideo node 85 · woman_holding_water_glass.mp4

How it works

  1. 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
  2. Person detection: RT-DETR detects the person bounding boxes, guided by the text prompt (person)
  3. 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
  4. Face expressions: a MediaPipe-based step adds face expressions, which the base model does not detect
  5. Smoothing: the mesh sequence is smoothed over time
  6. 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

  1. Load a video: use the LoadVideo node to load a video of a person
  2. Queue the workflow: press Ctrl (Cmd on macOS) + Enter
  3. Wait for the pipeline: tracking, detection, mesh prediction, and rendering run in sequence
  4. View the result: inspect the mesh in the Preview3D node. The overlay video is saved to ComfyUI/output/video/SAM3D_body/

Model downloads

Download the SAM 3D Body model and required files. Place them in the corresponding models/ 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

Model storage location