Stable Diffusion + ComfyUI for E-commerce Product Photography

Replace expensive photo shoots with AI-generated product backgrounds and lifestyle shots

返回教程列表
高级15 分钟

Stable Diffusion + ComfyUI for E-commerce Product Photography

Replace expensive photo shoots with AI-generated product backgrounds and lifestyle shots

Complete tutorial for e-commerce sellers using ComfyUI workflows with Stable Diffusion to create professional product photography, covering background replacement, lifestyle scene generation, and batch processing.

stable-diffusioncomfyuie-commerceproduct-photographyai-art

Stable Diffusion + ComfyUI for Product Photography

Why AI Product Photography?

Traditional product photography costs $500-5,000 per shoot. With Stable Diffusion and ComfyUI, you can generate unlimited professional backgrounds and lifestyle scenes for under $50/month in compute costs.

Setup Requirements

Hardware

  • Minimum: NVIDIA RTX 3060 12GB or better
  • Recommended: RTX 4070 or RTX 4090 for speed
  • Cloud option: RunPod or Vast.ai for $0.20-0.50/hour
  • Software Stack

  • ComfyUI (free, open-source)
  • SDXL or Flux.1 model
  • ControlNet for product placement
  • IP-Adapter for style consistency
  • Essential Workflows

    Workflow 1: Background Replacement

    
    
  • Upload product photo with white/clean background
  • Segment product using SAM (Segment Anything Model)
  • Use inpainting to generate new background
  • Adjust lighting with ControlNet Canny
  • Workflow 2: Lifestyle Scene Integration

    
    
  • Generate lifestyle scene matching product category
  • Use IP-Adapter to place product in scene
  • Apply lighting correction with IC-Light
  • Final compositing and color grading
  • Workflow 3: Batch Processing

    
    ComfyUI batch node processes 100+ images:
    
  • Input: folder of product images
  • Prompt template: [product type] in [scene type]
  • Output: 3 variations per product
  • Recommended Models

    ModelBest ForFile Size

    SDXL Base 1.0General product shots6.7GB Flux.1-devPhotorealistic results24GB RealVisXL V5Lifestyle photography6.5GB ProductAI-XLProduct-specific6.8GB

    ControlNet Settings for Products

  • Canny: Preserve product edges and details
  • Depth: Maintain proper 3D perspective
  • Normal Map: Consistent lighting direction
  • Reference: Match style from reference photo
  • Category-Specific Prompts

    Electronics

    minimalist desk setup, soft natural lighting from left, white marble surface, shallow depth of field, 8K product photography

    Food & Beverage

    overhead flat lay, white linen tablecloth, scattered herbs, natural morning light, warm tones, lifestyle photography

    Fashion/Apparel

    fashion editorial, neutral studio background, professional lighting, clothing photography, commercial quality

    Skincare/Beauty

    luxury bathroom counter, marble background, morning light, dewdrops, soft bokeh, beauty photography

    Quality Control Checklist

  • Lighting direction consistency ✓
  • Product proportions maintained ✓
  • No AI artifacts on product surface ✓
  • Background context matches product category ✓
  • Color accuracy of product preserved ✓
  • ROI Calculator

    Traditional photo shoot: $2,000 for 20 products = $100/product AI workflow setup: $500 one-time + $50/mo = ~$2/product (after first 250) Break-even point: 21 products

    相关工具

    ComfyUIStable DiffusionSDXLRunPod