This ComfyUI workflow takes raw product photos, removes backgrounds, applies consistent studio lighting, and outputs standardized e-commerce images at 1024x1024 resolution. Batch processing handles 50+ images automatically.

TL;DR — Key Takeaways

  • Batch Product Photo Enhancement with ComfyUI — Advanced level
  • Tool: ComfyUI
  • 5 steps with detailed instructions
  • Prerequisites: ComfyUI installed, SAM model (ViT-H), IC-Light model, GPU with 8GB+ VRAM
Advertisement

Use Case

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

Prerequisites

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

Workflow Diagram

Batch Product Photo Enhancement with ComfyUI

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

Step-by-Step Guide

  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.

Tags

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

This workflow answers:

  • How to set up batch product photo enhancement with comfyui
  • What tools and access you need
  • How to troubleshoot common issues