Visit ComfyUI Online for ready-to-use ComfyUI environment
Selective removal of facial features from images for character face swapping and image manipulation using a segmentation model.
The Exclude Facial Feature node is designed to selectively remove specific facial features from an image, primarily for the purpose of character face swapping or other image manipulation tasks. This node leverages a segmentation model to identify and mask out facial features such as eyes, eyebrows, nose, and mouth, allowing you to focus on other parts of the face or head. By excluding these features, you can create a clean slate for further image processing or artistic modifications. This node is particularly useful for AI artists who need to manipulate facial features without affecting the surrounding areas, ensuring a more seamless and natural result.
This parameter expects an image tensor representing the face to be processed. The image should be in the format of a tensor with dimensions corresponding to the color channels, height, and width. The face image is used as the primary input for the segmentation model to identify and exclude specific facial features.
This parameter requires a pre-trained BiSeNet model, which is used for segmenting the facial features in the input image. The model helps in accurately identifying the regions corresponding to different facial features, which are then excluded based on the specified settings.
This parameter expects an image tensor that represents the entire image in which the face is located. The image tensor should have dimensions corresponding to the color channels, height, and width. This image is used in conjunction with the face tensor to apply the exclusion mask and produce the final output.
This integer parameter controls the expansion of the mask around the excluded facial features. The value determines the number of pixels by which the mask is dilated, allowing for a smoother transition between the excluded areas and the rest of the image. The minimum value is 0, which means no expansion, and higher values result in a larger mask.
The output is an image tensor with the specified facial features excluded. The tensor retains the same dimensions as the input image, but the regions corresponding to the excluded facial features are masked out. This allows for further image processing or artistic modifications without the interference of the excluded features.
expand
parameter to find the optimal mask expansion that blends well with the surrounding areas.© Copyright 2024 RunComfy. All Rights Reserved.