Visit ComfyUI Online for ready-to-use ComfyUI environment
Seamlessly integrate cropped faces back into original images for natural blending and visual coherence.
The Uncrop Face node is designed to seamlessly integrate a cropped face back into its original image context. This node is particularly useful in scenarios where you have performed face-specific operations, such as enhancements or modifications, and need to place the processed face back into the original image without noticeable boundaries. The primary goal of this node is to ensure that the re-integrated face blends naturally with the surrounding areas, maintaining the overall visual coherence of the image. By leveraging advanced techniques to scale and align the face and mask, the Uncrop Face node helps you achieve a smooth and realistic final result.
This parameter represents the original image from which the face was cropped. It is crucial as it provides the context into which the processed face will be re-integrated. The image should be a tensor representing the pixel data of the original image.
The bbox parameter specifies the bounding box coordinates of the cropped face within the original image. This bounding box helps in accurately positioning the face back into its original location. The bbox should be provided as a tuple containing the coordinates (x0, y0, x1, y1).
This parameter is the processed face image that you want to uncrop and place back into the original image. It should be a tensor representing the pixel data of the face after any modifications or enhancements have been applied.
The mask parameter is a tensor that defines the area of the face to be blended with the original image. It helps in creating a smooth transition between the face and the surrounding areas, ensuring that the re-integrated face does not have harsh edges or noticeable boundaries.
The output parameter is the final image with the face re-integrated into its original context. This tensor represents the pixel data of the image after the uncropping process, where the processed face has been seamlessly blended back into the original image.
© Copyright 2024 RunComfy. All Rights Reserved.