SDPose: Video Multi-Person Detection

This workflow performs multi-person human pose detection on video using the SDPose-OOD whole-body model. It ingests a video with LoadVideo, extracts frame size and FPS via GetVideoComponents, and feeds each frame into an SDPose subgraph (node ID 01b6a731-fb78-4070-9a38-c87146da9604). Inside the subgraph, an object detector proposes person bounding boxes per frame and the SDPose whole-body checkpoint (sdpose_wholebody_fp16.safetensors) estimates keypoints for body, hands, and face. The PrimitiveInt node controls max_detections, letting you cap how many people are processed per frame in crowded scenes.

The workflow outputs two visualizations: bounding boxes via DrawBBoxes and a pose map overlay blended onto the original frames with ImageBlend. ResizeImageMaskNode ensures the pose map matches the source frame dimensions, and PreviewImage offers a quick sanity check before exporting. Finally, CreateVideo reassembles the annotated frames at the original FPS, and SaveVideo writes the result. The SDPose logic is packaged as a subgraph, so you can right-click to Unpack Subgraph and tweak internal thresholds or routing if you want finer control.

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

utility_sdpose_multi_person_video.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

// Install (beta)
npm i @comfyorg/sdk

// Run "SDPose: Video Multi-Person Detection" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("utility_sdpose_multi_person_video_api.json");

const job = await client.run(wf);
await job.getOutputs("697")[0].toFile("output.png"); // SaveVideo

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

FAQ

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates