DreamPaint: Few-Shot Inpainting of E-Commerce Items for Virtual Try-On without 3D Modeling

Mehmet Saygin Seyfioglu, Karim Bouyarmane, Suren Kumar, Amir Tavanaei, Ismail B. TutararXiv 2023 · DOI

TL;DR

DreamPaint is a novel framework that enables virtual try-on for e-commerce items by intelligently inpainting product images onto user-provided context images (like photos of themselves or their rooms). It achieves this by combining few-shot fine-tuning of diffusion models with an inpainting module, crucially avoiding the need for 3D modeling and outperforming existing text- and image-guided methods in preserving item fidelity.

What Problem Does This Paper Address?

The core problem addressed is the inability of online shoppers to "try on" products before purchasing them. This is particularly challenging for items like clothing, furniture, and accessories, where visual fit and aesthetic integration are crucial. Current solutions often rely on augmented reality (AR) and 3D modeling, which are expensive, time-consuming, and not widely available for e-commerce catalogs. The paper aims to bridge this gap by enabling realistic virtual try-on using only 2D images, directly from product catalogs and user photos, without requiring any 3D assets. This addresses the limitations of existing methods that struggle with high-fidelity item representation, especially for less common e-commerce items.

Methods

DreamPaint combines two key ideas:

  • Masked DreamBooth Fine-Tuning: Instead of traditional DreamBooth, which injects a new concept into a diffusion model, DreamPaint uses a masked version. This involves fine-tuning a pre-trained diffusion model (specifically, the U-Net and text encoder of Stable Diffusion) using a few reference images of an e-commerce item. Crucially, during training, random masks are applied to the image latents, and object-shaped masks are generated using ClipSeg to make the model more robust to arbitrary mask shapes during inference. This process learns a unique "token" for the item, allowing it to be represented in novel poses.
  • Stable Diffusion Inpainting Module: After the fine-tuning, the learned U-Net and text encoder weights are loaded into a pre-trained Stable Diffusion inpainting model. This module is capable of filling in masked regions of an image while preserving the surrounding context.

The novelty lies in the synergistic combination: DreamBooth-like fine-tuning injects the item's identity and allows for novel view generation, while the inpainting module seamlessly integrates it into the user's context image, preserving both the item's fidelity and the environment's characteristics without explicit text guidance for the inpainting itself.

Datasets

The paper does not explicitly mention training on specific large-scale datasets for the core DreamPaint model itself. Instead, it leverages pre-trained diffusion models (Stable Diffusion v1-4). For fine-tuning, it uses a "few-shot" setting with a small number of reference images for each e-commerce item, which are typically available in product catalogs. For evaluation, it compares against existing methods using their respective benchmarks and also conducts a user study.

Key Insights and Ideas

  • 2D is Sufficient for Virtual Try-On: The paper demonstrates that high-fidelity virtual try-on can be achieved using only 2D images, bypassing the need for complex and costly 3D modeling.
  • Masked Fine-Tuning is Key: Applying masking during the DreamBooth fine-tuning process is crucial for adapting the model to an inpainting task, enabling it to learn item representations that can be seamlessly integrated.
  • Image Guidance is Superior for E-commerce Fidelity: For e-commerce items, where fine-grained details are paramount and the model may have weak priors, image-based guidance (as in DreamPaint) is more effective than text-only guidance for preserving fidelity.
  • Intelligent Angle Extrapolation: DreamPaint can infer and generate product angles that may not have been present in the original reference images, allowing for more natural integration into diverse user contexts.
  • Flexibility with Text Prompts: While the core inpainting is image-guided, the framework allows for additional text prompts to refine the output, offering a hybrid approach.

Key Results

  • Quantitative: DreamPaint achieved the highest CLIP score (0.70) compared to "SD Inpaint with Text Guidance" (0.62) and "Paint by Example" (0.68), indicating superior similarity of the generated object to reference images.
  • Qualitative: Visual comparisons (Figure 3) show that DreamPaint preserves item-specific features much better than text-guided or PBE methods, which often fail to capture intricate details.
  • User Study: Participants rated DreamPaint highest in both "similarity to reference image" (average score 2.68) and "harmony of generated image" (average score 2.33), outperforming baselines.

Limitations and Future Work

  • Context-Appearance Entanglement: Similar to other diffusion models, DreamPaint can suffer from context-appearance entanglement, where the item's appearance (e.g., color) might change due to the user's background.
  • Mask Size Sensitivity: The model's performance can be affected by the mask size. If the mask is significantly different from the object's actual size in the reference image, it might force the object into the masked region, potentially omitting characteristic details (as seen in Figure 6). Users need to manually ensure realistic sizing.
  • Scalability: The need for few-shot fine-tuning for every item makes scaling DreamPaint to an entire e-commerce catalog a significant challenge.
  • Future Work: The authors suggest that further textual guidance can be leveraged to refine outputs in challenging cases. They also acknowledge the need to address the mask size issue and explore more scalable fine-tuning strategies.

Summary updated

BibTeX
@misc{seyfioglu2023dreampaint,
  author = {Mehmet Saygin Seyfioglu and Karim Bouyarmane and Suren Kumar and Amir Tavanaei and Ismail B. Tutar},
  title = {{DreamPaint: Few-Shot Inpainting of E-Commerce Items for Virtual Try-On without 3D Modeling}},
  year = {2023},
  eprint = {2305.01257},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.01257},
}
Figure