Nodes/Mickmumpitz-Nodes/OpenPose Part Crop
ComfyUI Node

OpenPose Part Crop

Crop an OpenPose region for a detailer pass. Returns a stitch handle, the cropped image, and a feathered mask. Pair with OpenPose Part Stitch.

By mickmumpitz·Created 7 months ago·Updated about 14 hours ago· 39
OpenPose Part Crop
  • image
  • pose_keypoint
  • stitch
  • cropped_image
  • cropped_mask
  • info
regionright_hand
person_index0
padding1.40
make_squaretrue
min_size128
output_resize1024
multiple_of8
mask_feather16
upscale_methodbicubic
downscale_methodarea
mirror_left_rightfalse
confidence0.05
person_orderdetection
keypoint_indices
CategoryMickmumpitz/OpenPosePartCropper

Inputs (16)

NameTypeDefaultDescription
imageIMAGE
pose_keypointPOSE_KEYPOINT
regionCOMBOright_handLeft/right are anatomical (the subject's own side). 'right_hand' is the person's right hand, which usually appears on the LEFT of the image. Enable mirror_left_right if you prefer image-space sides.
person_indexoptINT00–64
paddingoptFLOAT1.401–4
make_squareoptBOOLEANtrueSquare crops are convenient for detailers.
min_sizeoptINT1288–4096
output_resizeoptINT10240–8192Resize the crop so its long side = this (0 = keep native size).
multiple_ofoptINT81–64Force crop/output dims to a multiple of this (VAE-friendly).
mask_featheroptINT160–512Feather used when stitching the crop back.
upscale_methodoptCOMBObicubic4 options: nearest, bilinear, bicubic, area
downscale_methodoptCOMBOarea4 options: nearest, bilinear, bicubic, area
mirror_left_rightoptBOOLEANfalseLeft/right are anatomical (the subject's own side). 'right_hand' is the person's right hand, which usually appears on the LEFT of the image. Enable mirror_left_right if you prefer image-space sides.
confidenceoptFLOAT0.050–1
person_orderoptCOMBOdetectionHow person_index is ordered when there are multiple characters. 'detection' = the detector's raw order (unstable between frames). 'left_right' = index 0 is the leftmost character, 1 the next, etc. Use left_right for a stable 2-character setup.
keypoint_indicesoptSTRINGCrop a box enclosing these BODY keypoint numbers instead of the named region. Leave empty to use 'region'. Examples: '4' | '2,3,4' | '2-4'. BODY_18: 0 nose, 1 neck, 2 R-shoulder, 3 R-elbow, 4 R-wrist, 5 L-shoulder, 6 L-elbow, 7 L-wrist, 8 R-hip, 9 R-knee, 10 R-ankle, 11 L-hip, 12 L-knee, 13 L-ankle, 14 R-eye, 15 L-eye, 16 R-ear, 17 L-ear. (R/L are the subject's anatomical sides.)

Outputs (4)

NameTypeDescription
stitchOPP_STITCH
cropped_imageIMAGE
cropped_maskMASK
infoSTRING