Unlock Professional ID Photos: A Step-by-Step Workflow

CN
ComfyUI.org
2025-04-04 07:58:10

1. Workflow Overview

m92hsi4ra8zyw9g0v469a0558b115556b6de5f945935d2561e945660cb54a0a116c16048bac827bbbda.gif

This is an ID Photo Generator workflow with:

  • Auto Beauty Retouch (Skin smoothing/Whitening)

  • Smart Outfit Replacement (Based on reference image)

  • Hairstyle Adjustment (Via text prompts)

  • Background Replacement (Solid/Gradient colors)

  • Standardized Output (1-inch/2-inch sizes)

2. Core Models

Model Name

Function

majicMIX realistic v7

Main model for realistic portrait generation

control_v11f1e_sd15_tile

ControlNet model for preserving clothing details

HyperL-F.1-Accelerator-PAseer

LoRA model for beauty enhancement (adjustable strength)

modnet_photographic_portrait_matting

Human segmentation model for auto-matting

3. Key Nodes

Node Name

Function

Installation

HivisionNode

Core node for beauty+background processing

Manual install (ComfyUI-Hivision on GitHub)

FaceDetailer

Facial detail repair (From Impact Pack)

Install via ComfyUI Manager

Florence2Run

Image captioning (Auto outfit description)

Install comfyui-florence2 extension

StyleModelApply

Style transfer (For clothing texture fusion)

Built-in node

4. Workflow Structure

  • Group 1: Outfit Reference Input

    • Input: Clothing image (Auto-generates prompts)

    • Output: Encoded clothing features (For ControlNet)

  • Group 2: Face Processing

    • Input: Raw face photo + Beauty parameters

    • Output: Retouched portrait + Alpha channel

  • Group 3: Redraw & Composite

    • Input: Face + Outfit features + Background settings

    • Output: Final ID photo (Multi-size options)

5. Inputs & Outputs

  • Required Inputs:

    1. Outfit reference image (PNG/JPG)

    2. Face photo (Frontal shot recommended)

    3. Background color (e.g., "Blue")

  • Output:

    • Format: PNG (Transparent background)

    • Resolution: Default 413Γ—295 pixels (1-inch size)

6. Notes

  • VRAM: β‰₯8GB GPU recommended (For 1024x1024 processing)

  • Common Errors:

    • Outfit caption failed β†’ Verify Florence2 model download

    • Face distortion β†’ Adjust Denoise in FaceDetailer (0.2-0.3 suggested)

  • Optimization:

    • Enable xformers

    • Reduce KSampler steps (Default 20 β†’ 15)