Visit ComfyUI Online for ready-to-use ComfyUI environment
Detect and analyze facial landmarks for precise face shape matching and manipulation using advanced facial recognition models.
FaceShaper is a powerful node designed to detect and analyze facial landmarks in images, enabling precise face shape matching and manipulation. This node leverages advanced facial recognition models to identify key facial features such as eyes and mouth, and can interpolate between different facial images to create smooth transitions. It is particularly useful for AI artists looking to blend or morph faces in their artwork, ensuring that the facial features align accurately. By using FaceShaper, you can achieve high-quality face alignment and transformation, making it an essential tool for any project involving facial image processing.
This parameter expects a model that can perform facial analysis and interpolation. It is crucial for the node to function as it provides the necessary algorithms to detect and manipulate facial landmarks.
This parameter takes the source image from which the facial features will be extracted. The image should be in a format that can be processed by the node, typically a NumPy array representing the image in RGB format.
This parameter takes the target image to which the facial features will be aligned or interpolated. Similar to imageFrom
, this should be a NumPy array representing the image in RGB format.
This parameter specifies the type of facial landmarks to be used. Options include 81, 68, and 5, which correspond to different sets of facial landmarks. The choice of landmark type affects the precision and detail of the facial feature detection.
This parameter determines the method of alignment for the facial features. Options include "Width", "Height", and "Landmarks". Each option adjusts the alignment based on different criteria, such as maintaining the aspect ratio or aligning specific landmarks.
The output is a list containing two images. These images are the result of the interpolation between the source and target images, with facial features aligned according to the specified parameters. The images are returned as PyTorch tensors, ready for further processing or visualization.
landmarkType
values to find the best fit for your specific use case.AlignType
for the most precise alignment of facial features.© Copyright 2024 RunComfy. All Rights Reserved.