ComfyUI > Nodes > ComfyUI > SDPoseFaceBBoxes

ComfyUI Node: SDPoseFaceBBoxes

Class Name

SDPoseFaceBBoxes

Category
image/preprocessors
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

SDPoseFaceBBoxes Description

Identifies and generates face bounding boxes based on pose keypoints for precise cropping in image processing tasks.

SDPoseFaceBBoxes:

The SDPoseFaceBBoxes node is designed to identify and generate bounding boxes around faces detected in images based on pose keypoints. This node is particularly useful for AI artists and developers working with facial recognition or pose estimation tasks, as it allows for precise cropping of facial regions within an image. By leveraging keypoint data, the node calculates the bounding box dimensions and can expand these areas to ensure a more comprehensive capture of facial features. This functionality is essential for applications that require detailed facial analysis or manipulation, such as virtual try-ons, facial animation, or augmented reality experiences. The node's ability to adjust the bounding box size through scaling and to enforce square dimensions ensures flexibility and adaptability to various use cases.

SDPoseFaceBBoxes Input Parameters:

keypoints

This parameter represents the pose keypoints of the face in the image. These keypoints are crucial as they serve as the foundation for determining the initial bounding box around the face. The accuracy and completeness of these keypoints directly impact the precision of the bounding box generated.

scale

The scale parameter is a multiplier that adjusts the area of the bounding box around each detected face. By default, it is set to 1.5, allowing for a slightly larger capture area than the face itself. The minimum value is 1.0, which means no scaling, and the maximum is 10.0, which significantly enlarges the bounding box. This parameter is useful for ensuring that all relevant facial features are included within the bounding box, especially in cases where additional context around the face is needed.

force_square

This boolean parameter, when set to true, ensures that the bounding box is always square by expanding the shorter axis. This is particularly useful for applications that require uniform input dimensions, such as certain machine learning models or image processing tasks. The default value is true, which helps maintain consistency in the bounding box shape across different faces and images.

SDPoseFaceBBoxes Output Parameters:

bboxes

The bboxes output parameter provides the calculated face bounding boxes for each frame. These bounding boxes are compatible with the SDPoseKeypointExtractor bboxes input, making them easy to integrate into workflows that involve further processing or analysis of facial regions. The bounding boxes are defined by their coordinates and dimensions, allowing for precise cropping and manipulation of the detected facial areas.

SDPoseFaceBBoxes Usage Tips:

  • To ensure the bounding boxes capture all necessary facial features, consider adjusting the scale parameter based on the specific requirements of your project. A larger scale may be beneficial for applications needing more context around the face.
  • If your application requires uniform input dimensions, enable the force_square option to maintain consistent bounding box shapes, which can be crucial for certain image processing tasks or machine learning models.

SDPoseFaceBBoxes Common Errors and Solutions:

Bounding box dimensions are zero or negative

  • Explanation: This error occurs when the calculated width or height of the bounding box is zero or negative, which can happen if the keypoints are not correctly detected or are outside the image boundaries.
  • Solution: Ensure that the input keypoints are accurate and within the image dimensions. Verify that the keypoints data is correctly formatted and corresponds to the actual facial features in the image.

Bounding box exceeds image boundaries

  • Explanation: This error happens when the expanded bounding box goes beyond the image's dimensions, which can occur if the scale is set too high.
  • Solution: Adjust the scale parameter to a lower value to ensure the bounding box remains within the image boundaries. Additionally, check the image dimensions and ensure they are correctly inputted into the node.

SDPoseFaceBBoxes Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

SDPoseFaceBBoxes