Install this extension via the ComfyUI Manager by searching
for comfyui_facetools
1. Click the Manager button in the main menu
2. Select Custom Nodes Manager button
3. Enter comfyui_facetools 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
comfyui_facetools offers custom nodes for rotation-aware face extraction, pasting, and diverse face masking options, enhancing facial image manipulation and editing capabilities.
comfyui_facetools Introduction
Welcome to comfyui_facetools! This extension is designed to enhance your AI art projects by providing advanced face extraction, alignment, and masking capabilities. Whether you're working on portraits, inpainting, or any other face-related tasks, comfyui_facetools offers a suite of tools to make your workflow more efficient and your results more precise.
Key Features:
Rotation-Aware Face Extraction: Detects and extracts faces from images, even if they are rotated.
Face Alignment: Aligns faces to a standard orientation for consistent processing.
Face Masking Options: Provides various masking techniques to isolate faces, including simple bounding boxes, convex hulls, and occlusion-aware masks.
Face Pasting: Allows you to paste edited faces back into the original image seamlessly.
By using comfyui_facetools, you can solve common problems such as misaligned faces, inconsistent face detection, and difficulties in face inpainting. This extension is particularly useful for AI artists looking to refine their portrait work or any project involving detailed face manipulation.
How comfyui_facetools Works
At its core, comfyui_facetools uses advanced algorithms to detect, extract, and manipulate faces within images. Here's a simplified breakdown of how it works:
Face Detection: The extension uses models like YOLO (You Only Look Once) to detect faces in an image. This model is efficient and can handle various orientations and sizes of faces.
Face Extraction and Alignment: Once detected, faces are extracted and aligned to a standard orientation. This step ensures that all faces are processed consistently, which is crucial for tasks like inpainting or applying filters.
Masking: Different masking techniques are applied to isolate the face from the background. This can be a simple square mask, a convex hull based on the face mesh, or an occlusion-aware mask using BiSeNet.
Face Pasting: After any modifications, the faces can be pasted back into the original image using a warp matrix, ensuring they fit seamlessly.
face-parsing.PyTorch
These resources provide additional documentation, example workflows, and a community forum where you can ask questions and share your experiences. Happy creating!