Extensions/comfyui-face-beauty
ComfyUI Extension

comfyui-face-beauty

ComfyUI plugin for face detection, square cropping with dilation, and paste-back with feathered edges for smooth blending.

By FeiJiu518·Created 3 months ago·Updated 3 months ago· 0
FeiJiu518/comfyui-face-beauty
Nodes2
On cloudLocal install
CategoryFaceBeauty
Stars0
Updated3 months ago
Readme

Face Beauty - ComfyUI Custom Nodes

A ComfyUI plugin for face detection, square cropping, and paste-back with feathering.

Nodes

Face Crop Square

Detects faces from SEGS input, crops each face as a square with dilation, and outputs individual face images ready for processing.

  • preview: Original image with detection boxes drawn (red = detected bbox, green = expanded crop area)
  • face_crops: List of cropped face images, each clamped to [1024, 2048]
  • crop_data: Coordinate data used by Face Paste Back

Parameters: | Parameter | Description | |-----------|-------------| | dilation | Pixels to expand the square crop outward |

Face Paste Back

Pastes processed face images back onto the original image with feathered edges.

Parameters: | Parameter | Description | |-----------|-------------| | feather | Edge feather width in pixels for smooth blending |

Workflow

UltralyticsDetectorProvider
        +
  BboxDetectorSEGS
        ↓ SEGS
  Face Crop Square
        ↓ face_crops (list)
  [Your beautification workflow]
        ↓
  Face Paste Back ← crop_data, feather
        ↓
  Save Image

Requirements

Installation

  1. Clone or download this repository into your ComfyUI/custom_nodes/ folder
  2. Restart ComfyUI
  3. The nodes will appear under the FaceBeauty category