图片生成ComfyUI·免费分享含生成案例

ComfyUI 电商换背景正向词

给一件平铺或白底的商品图,替换成可售卖的场景背景,同时锁定主体不变的一套 ComfyUI 正向写法。

#ComfyUI#电商#产品图#换背景#ControlNet

完整提示词

product photography of the exact same [商品:品类/颜色/材质] shown in the reference image, placed in [场景:beach / minimal studio / wooden table / tropical foliage], soft directional light from [left|right] matching the original highlight direction, shallow depth of field with background gently blurred, subtle contact shadow beneath the object, consistent white balance, commercial catalog quality, high resolution, photorealistic, no text, no watermark.

生成案例

含生成案例

本机 MLX(Z-Image-Turbo 4bit)实跑商品换背景样张(白色陶瓷马克杯 · 纯白棚拍背景),占位符填入具体示例值;非用户自有素材,风格样张,证明该条提示词可产出真实图像效果。

负面提示词

deformed product, changed shape, extra objects, floating object, harsh shadow, mismatched lighting direction, color shift, text, watermark, logo, low resolution, blurry, oversaturated, plastic look

使用方法

  1. 1这张提示词必须配合 ControlNet(Canny 或 Depth)使用,权重 0.7~0.9,才能真正锁住商品形状。
  2. 2denoise 控制在 0.35~0.55:低于 0.35 背景换不干净,高于 0.6 商品本体开始变形。
  3. 3更稳的做法是「真商品回填」:先把原图抠出来,最后再合成回生成的背景上,而不是让 AI 重绘主体。
  4. 4光线方向要和原图一致,否则一眼假;商品必须写出明确的颜色与材质。