批量去背景、AI 重新打光、统一品牌风格,输出标准电商产品图。

适用场景

E-commerce stores with 50-500 product SKUs needing consistent, professional product photos without a photographer.

前提条件

ComfyUI installed, SAM model (ViT-H), IC-Light model, GPU with 8GB+ VRAM

工作流图

用 ComfyUI 批量处理产品图

Input Batch Node
Background Removal
Relighting Pipeline
Background Compositing
Output and Naming

分步指南

  1. 1

    Input Batch Node

    Use the Load Image Batch node to point at a directory of product photos. Set the batch size to match your folder. Enable auto-resize to 1024x1024.

  2. 2

    Background Removal

    Add a Segment Anything (SAM) node with the ViT-H model. Use the 'auto' mode to detect and mask the product. Add an alpha channel output node to save the cutout.

  3. 3

    Relighting Pipeline

    Connect to an IC-Light node for AI relighting. Set lighting direction to upper-left at 45 degrees. Choose a soft studio lighting preset. This creates consistent shadows and highlights across all products.

  4. 4

    Background Compositing

    Add an Image Composite node to place the product on a clean white/gradient background. Match your brand guidelines by adjusting the background color value.

  5. 5

    Output and Naming

    Use the Save Image node with a filename template: {original_name}_enhanced_{timestamp}.png. Save to an output directory. Enable metadata embedding for tracking which model/prompt was used.

标签

#comfyui#product-photography#batch-processing#e-commerce