ComfyUI > Nodes > ComfyUI-FLOAT_Optimized > Face Align for FLOAT (Ad)

ComfyUI Node: Face Align for FLOAT (Ad)

Class Name

FloatImageFaceAlign

Category
FLOAT/Advanced
Author
set-soft (Account age: 3450days)
Extension
ComfyUI-FLOAT_Optimized
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install ComfyUI-FLOAT_Optimized

Install this extension via the ComfyUI Manager by searching for ComfyUI-FLOAT_Optimized
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-FLOAT_Optimized 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

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Face Align for FLOAT (Ad) Description

Enhances image processing by detecting and aligning faces, ensuring accurate scaling and centering.

Face Align for FLOAT (Ad):

The FloatImageFaceAlign node is designed to enhance image processing by accurately detecting and aligning faces within an image. This node is particularly beneficial for applications that require precise face alignment, such as facial recognition, emotion analysis, or any AI-driven art projects involving human faces. By leveraging advanced face detection algorithms, it ensures that faces are centered and properly scaled, facilitating further processing or analysis. The node automatically handles image resizing and conversion from RGBA to RGB, making it a versatile tool for artists and developers working with diverse image formats. Its primary goal is to streamline the face alignment process, ensuring high accuracy and efficiency in handling images with multiple faces.

Face Align for FLOAT (Ad) Input Parameters:

image

This parameter represents the input image that contains at least one face. The node processes this image to detect and align faces, ensuring they are centered and properly scaled for further analysis or processing.

face_margin

The face_margin parameter controls the margin around the detected face. It is a float value that determines how much extra space is included around the face in the cropped image. The default value is 1.6, which means 60% extra margin is added. The minimum value is 1.2, and the maximum is 2.0. Adjusting this parameter affects the amount of background included around the face, which can be useful for different artistic or analytical purposes.

rgba_conversion

This parameter specifies the strategy used to convert images with transparency (RGBA) to RGB format. The default strategy is blend_with_color, which blends the transparent areas with a specified background color. This conversion is crucial for ensuring consistent image processing, especially when dealing with images that have transparent elements.

bkg_color_hex

The bkg_color_hex parameter defines the background color used in the blend_with_color and replace_with_color strategies for RGBA to RGB conversion. It is a string representing a hex color code, with the default being #000000 (black). This parameter allows you to customize the appearance of the converted image by selecting a suitable background color.

Face Align for FLOAT (Ad) Output Parameters:

image

The image output is the processed image with the face aligned and cropped according to the specified margin. This output is crucial for applications that require precise face positioning, as it ensures that the face is centered and scaled appropriately for further processing or analysis.

bboxes

The bboxes output provides the bounding boxes of the detected faces in the original image. Each bounding box includes the coordinates and confidence score of the detected face, allowing you to understand the detection accuracy and make informed decisions about further processing steps.

Face Align for FLOAT (Ad) Usage Tips:

  • Ensure that the input image contains clear and visible faces for optimal detection and alignment results.
  • Adjust the face_margin parameter to include more or less background around the face, depending on your artistic or analytical needs.
  • Use the rgba_conversion parameter to handle images with transparency effectively, ensuring consistent results across different image formats.

Face Align for FLOAT (Ad) Common Errors and Solutions:

Failed to detect any face in the image, no face align performed

  • Explanation: This error occurs when the node is unable to detect any faces in the input image, possibly due to poor image quality or obscured faces.
  • Solution: Ensure that the input image has clear and visible faces. You may also try using images with better lighting or higher resolution to improve face detection accuracy.

Provided size <sz> is not a standard size in CHANNELS_MAP

  • Explanation: This warning indicates that the specified size is not recognized as a standard size, which may cause issues with downstream nodes.
  • Solution: Use a size that is listed in the CHANNELS_MAP to ensure compatibility with other nodes and avoid potential processing errors.

Face Align for FLOAT (Ad) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-FLOAT_Optimized
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.