Visit ComfyUI Online for ready-to-use ComfyUI environment
Specialized node for detecting and cropping faces using RetinaFace algorithm, essential for AI artists enhancing portraits.
PM_RetinaFace is a specialized node designed to detect and crop faces from images using the RetinaFace algorithm. This node is particularly useful for AI artists who need to isolate faces from images for further processing, such as portrait enhancement or facial feature analysis. By leveraging advanced face detection techniques, PM_RetinaFace ensures accurate and efficient face cropping, making it easier to focus on specific facial regions. The node not only crops the face but also provides a mask and bounding box, which can be used for various artistic and analytical purposes. This functionality is essential for creating high-quality portraits and ensuring that facial features are accurately represented in your artwork.
This parameter expects an image input from which faces will be detected and cropped. The image should be in a format that the node can process, typically a tensor representation of the image.
This parameter controls the cropping ratio around the detected face. It allows you to adjust how much of the surrounding area is included in the crop. The value can range from 0 to 10, with a default of 1. A higher value includes more of the surrounding area, while a lower value focuses more closely on the face.
This parameter specifies which face to crop in case multiple faces are detected in the image. It is an integer value ranging from 0 to 10, with a default of 0. The index corresponds to the order in which faces are detected, allowing you to select a specific face for cropping.
This output is the cropped image of the detected face. It is an image tensor that contains only the face region as specified by the face_index and multi_user_facecrop_ratio parameters.
This output is a mask of the cropped face region. The mask highlights the area of the face within the cropped image, which can be useful for further image processing tasks such as segmentation or blending.
This output is the bounding box of the cropped face. It provides the coordinates of the face region within the original image, which can be used for reference or additional processing steps.
multi_user_facecrop_ratio
to include more or less of the surrounding area around the face, depending on your artistic needs.face_index
parameter to select specific faces in images with multiple people, ensuring you crop the correct face for your project.crop_image
and crop_mask
outputs to perform advanced image editing tasks, such as applying filters or effects only to the face region.© Copyright 2024 RunComfy. All Rights Reserved.