Preserving Image Properties Through Initializations in Diffusion Models
Jeffrey Zhang, Shao-Yu Chang, Kedan Li, David Forsyth
TL;DR
This work identifies a critical mismatch between training and inference in diffusion models when starting from pure noise, which undermines production-ready image properties such as uniform backgrounds and consistent lighting. It introduces the PCA-K Offset framework, including PCA-K Offset Inference and PCA-K Offset Training (with Mean Offset as a special case), to align initialization distributions across training and inference and to preserve the full image distribution. The approach yields significant qualitative and quantitative improvements on retail garment images, and can be integrated with controllability methods like ControlNet to enhance generation reliability under strict design constraints. Practically, these techniques enable more controllable, on-brand diffusion-based image synthesis applicable to real-world visual merchandising and related domains.
Abstract
Retail photography imposes specific requirements on images. For instance, images may need uniform background colors, consistent model poses, centered products, and consistent lighting. Minor deviations from these standards impact a site's aesthetic appeal, making the images unsuitable for use. We show that Stable Diffusion methods, as currently applied, do not respect these requirements. The usual practice of training the denoiser with a very noisy image and starting inference with a sample of pure noise leads to inconsistent generated images during inference. This inconsistency occurs because it is easy to tell the difference between samples of the training and inference distributions. As a result, a network trained with centered retail product images with uniform backgrounds generates images with erratic backgrounds. The problem is easily fixed by initializing inference with samples from an approximation of noisy images. However, in using such an approximation, the joint distribution of text and noisy image at inference time still slightly differs from that at training time. This discrepancy is corrected by training the network with samples from the approximate noisy image distribution. Extensive experiments on real application data show significant qualitative and quantitative improvements in performance from adopting these procedures. Finally, our procedure can interact well with other control-based methods to further enhance the controllability of diffusion-based methods.
