floyo logobeta logo
Powered by
ThinkDiffusion
Lock in a year of flow. Get 50% off your first year. Limited time offer. Claim now ⏰
floyo logobeta logo
Powered by
ThinkDiffusion
Lock in a year of flow. Get 50% off your first year. Limited time offer. Claim now ⏰

comfyui_sunxAI_facetools

5

Last updated
2025-11-17

Face detection and restoration tools designed for ComfyUI by Sunx.ai facilitate the identification and manipulation of facial features within images. This extension enhances the capabilities of ComfyUI by providing specialized nodes that streamline face-related tasks in AI art workflows.

  • DetectFaces identifies and returns the largest face in an image, ensuring a focus on the most prominent subject.
  • DetectFaceByIndex allows users to select specific faces based on their order in the image, with optional gender filtering for improved performance.
  • InstantID maintains facial identity during processing, ensuring consistent results across manipulations.

Context

This toolset is an extension of ComfyUI, aimed at simplifying face detection and restoration tasks. By integrating advanced facial analysis capabilities, it provides users with the means to enhance their creative projects with precise facial manipulations.

Key Features & Benefits

The primary features include face detection, cropping, and restoration, which are critical for users looking to work with human subjects in their art. The ability to filter by gender and manage multiple faces in a single image allows for greater control and customization in the creative process.

Advanced Functionalities

The extension utilizes InsightFace for high-accuracy gender detection, which automatically selects the best processing method based on available hardware (GPU or CPU). It also provides age estimation and confidence metrics, which are valuable for nuanced artistic decisions. The fallback mechanism based on facial aspect ratios ensures stability and prevents errors during processing.

Practical Benefits

By integrating these tools, users can significantly improve their workflow efficiency when handling facial features in images. The ability to quickly detect and manipulate faces enhances both the quality of the output and the creative possibilities within ComfyUI.

Credits/Acknowledgments

This project was developed by Sunx.ai and utilizes a cookiecutter template for streamlined node creation. It is open-source and available for public use, encouraging community contributions and feedback.