DWposeDeluxe Range From Batch
Pull one clip out of a longer pose sequence
- pose_keypoints
- pose_keypoints
You detected a whole video, but the move you actually care about is only five seconds in the middle. Rather than re-running the detector on a trimmed clip, this node slices the pose data you already have: give it a start_frame and a frame_count, and it returns just that subset of the batch as a fresh POSE_KEYPOINT sequence.
It's the pose equivalent of a trim node, and it sits naturally next to FrameNumberNode in the pack's "work with long captures" toolkit. Detect once, then slice out whatever segments you need without paying the detection cost again.
The inputs
pose_keypoints- the batch to slice.start_frame- zero-based index of the first frame you want.frame_count- how many frames to take after that.
So start_frame=30, frame_count=10 gives you frames 30–39. The output is a pose_keypoints sequence exactly frame_count frames long (assuming the batch is long enough).
Two edge behaviors from the source are worth knowing. If start_frame is beyond the end of the batch, it returns empty rather than crashing. And if the slice runs past the last frame, it simply takes what exists - you get fewer frames than you asked for, not an error. Both are the pack's usual "fail soft, log to console" style.
What it pairs with
The main estimator's face_image output has a known quirk - cropped faces are stitched left-to-right by detection order, so they re-arrange if characters swap sides. The author's own suggested workaround is exactly this node: slice a frame range out, crop, re-batch. More generally, anything you want to isolate - a single pose to feed PoseInterpolation as a start or end frame, a short clip to loop with ReverseKeypoints + BatchKeypoints - starts with a range slice.
Installing it
Part of the DWposeDeluxe pack:
cd ComfyUI/custom_nodes/
git clone https://github.com/hobinrude/ComfyUI_DWposeDeluxe
cd ComfyUI_DWposeDeluxe
pip install -r requirements.txt
or search DWposeDeluxe in ComfyUI Manager. No models, no inference - pure list slicing, instant. Remember it's 0-based indexing; if you're coming from a video player's 1-based frame counter, subtract one or your first frame will be off by one.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| pose_keypoints | POSE_KEYPOINT | — | |
| start_frame | INT | 0 | — |
| frame_count | INT | 1 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| pose_keypoints | POSE_KEYPOINT | — |