Abstract: Diffusion models have led to the revolutionizing of generative modeling in numerous image synthesis tasks. Nevertheless, it is not trivial to directly apply diffusion models for synthesizing an image of a target person wearing a given in-shop garment, i.e., image-based virtual try-on (VTON) task. The difficulty originates from the aspect that the diffusion process should not only produce holistically high-fidelity photorealistic image of the target person, but also locally preserve every appearance and texture detail of the given garment. To address this, we shape a new Diffusion model, namely GarDiff, which triggers the garment-focused diffusion process with amplified guidance of both basic visual appearance and detailed textures (i.e., high-frequency details) derived from the given garment. GarDiff first remoulds a pre-trained latent diffusion model with additional appearance priors derived from the CLIP and VAE encodings of the reference garment. Meanwhile, a novel garment-focused adapter is integrated into the UNet of diffusion model, pursuing local fine-grained alignment with the visual appearance of reference garment and human pose. We specifically design an appearance loss over the synthesized garment to enhance the crucial, high-frequency details. Extensive experiments on VITON-HD and DressCode datasets demonstrate the superiority of our GarDiff when compared to state-of-the-art VTON approaches.
Introduction
Image-based Virtual Try-On (VTON) aims to synthesize a high-fidelity image of a person wearing a specific "in-shop" garment. While early standards relied on Generative Adversarial Networks (GANs), these often produced artifacts in complex poses. Recent Diffusion Models have improved overall image quality but frequently suffer from detail loss.
Because standard diffusion processes are "holistic" (focusing on the whole image), they often fail to reconstruct fine-grained, high-frequency details such as small text, logos, or specific knit patterns. Standard compressed latent codes simply do not provide enough guidance to keep these intricate details intact during the generative process.
Methodology
GarDiff addresses these limitations by "amplifying" garment-specific guidance through three primary innovations in its architecture.
1. Dual Appearance Priors
Standard models often rely solely on CLIP embeddings, which excel at capturing global structure but struggle with fine textures. GarDiff utilizes both CLIP and VAE (Variational Auto-Encoder) encodings of the reference garment. The VAE embeddings serve as a high-capacity prior for local texture details that CLIP might overlook.
2. Garment-focused (GF) Adapter
GarDiff replaces standard cross-attention layers in the diffusion UNet with a specialized GF Adapter. This component uses a decoupled cross-attention mechanism to process the CLIP and VAE priors separately. By using a downsampled version of the garment mask to "mask" attention weights, the model is forced to focus its generative capacity specifically on the garment area, preventing texture "bleeding" into the skin or background.
3. Appearance Loss
To ensure exact replication of the source garment, the authors introduced a composite loss function:
- Spatial Perceptual Loss: Based on the DISTS metric to capture structural and textural disparities.
- High-Frequency Promoted Loss: Utilizes horizontal and vertical Sobel filters (edge detection) to specifically supervise the synthesis of sharp edges and fine details, preventing the blurriness common in standard MSE-based models.
Experimental Results
GarDiff was evaluated on two industry-standard benchmarks: VITON-HD (13,679 high-resolution image pairs) and DressCode (53,795 diverse pairs across upper, lower, and full-body categories).
Quantitative Performance
GarDiff outperformed existing state-of-the-art models, such as LaDI-VTON and DCI-VTON, across both datasets:
- VITON-HD: Achieved a benchmark-setting SSIM of 0.912 and an LPIPS of 0.036.
- DressCode: Showed significant gains, particularly in the upper-body category, improving SSIM by 2.58% over previous best models.
Qualitative Superiority
Visual comparisons demonstrate that GarDiff is uniquely capable of reconstructing legible text and complex geometric patterns that other models often turn into unrecognizable smudges. The model maintains the integrity of high-frequency details that are crucial for a realistic try-on experience.
Discussion and Conclusion
A key insight of this work is that while CLIP is the industry standard for semantic understanding, the VAE used in Stable Diffusion is significantly better at preserving the raw texture information required for VTON. Furthermore, explicitly calculating loss on the edges (high-frequency components) via Sobel filters is essential for maintaining sharpness.
Despite its success, GarDiff still relies on an initial warping process to align the garment to the human pose; a catastrophic failure in the initial warp can still impact the final output. Additionally, the specialized adapters and loss functions increase training complexity.
In summary, GarDiff represents a significant step forward in virtual try-on fidelity by shifting the focus of diffusion models from holistic image generation to garment-specific detail preservation.
Summary updated