ZeDaq.ai
Shopper using virtual try-on on her phone

What Is Diffusion-Based Virtual Try-On?

By the ZeDaq.ai team · · 4 min read

On this page
  1. What is a diffusion model?
  2. How does diffusion apply to virtual try-on?
  3. What problems is it trying to solve?
  4. What are the limits of generative try-on?
  5. How does this relate to sizing?
  6. What should you test before choosing a tool?
  7. How can developers use try-on?

Diffusion-based virtual try-on is a way of generating an image of a person wearing a garment using a diffusion model, a type of AI that creates pictures by gradually removing noise. The model is guided by a photo of the person and an image of the garment, and it produces a new picture that combines them.

This explainer is for store owners and developers who keep hearing the term. It sits inside the wider topic of a virtual fitting room for clothing websites, and it does not describe any specific vendor's internal model.

What is a diffusion model?

A diffusion model is a generative AI method. Researchers Jonathan Ho, Ajay Jain and Pieter Abbeel described a version in the paper Denoising Diffusion Probabilistic Models, which presents high quality image synthesis results using diffusion probabilistic models.

The idea in plain words:

  1. Training. The model sees many images that are gradually covered in random noise. It learns how that noise was added.
  2. Generating. To make a new image, it starts from pure noise and removes it step by step.
  3. Guiding. Extra inputs, such as a text prompt or a reference image, steer what the final picture looks like.

That last step is what makes the approach useful for try-on.

How does diffusion apply to virtual try-on?

For try-on, the guidance comes from images. The model receives a picture of a person and a picture of a garment, and it denoises toward an image that shows the person wearing it.

A research paper called TryOnDiffusion: A Tale of Two UNets describes the goal like this: given two images, one of a person and one of a garment worn by another person, generate a visualization of how the garment might look on the input person. The authors propose a diffusion-based architecture with two networks, called Parallel-UNet, to keep garment detail while adapting to changes in body pose and shape.

You do not need to know the architecture to evaluate a product. You need to know what the technique tries to solve.

What problems is it trying to solve?

Earlier approaches often warped a garment image and pasted it on the body. The TryOnDiffusion abstract says previous methods either preserve garment detail without handling pose and shape well, or handle shape and pose but lose garment detail.

Diffusion methods aim to do both in one step. In practice, that means:

  • Fabric folds that follow the body.
  • Garment details such as prints and buttons that remain visible.
  • A result that looks like one photo, not a collage.

How well any tool does this is a testing question, not a given.

What are the limits of generative try-on?

Because the image is generated, a few limits apply:

  • It is an approximation. The picture shows how the garment may look, not how it will measure up on the body.
  • Input quality matters. Blurry or cropped photos lead to weaker results.
  • Details can drift. Small text, patterns or trims can change in the output. Check results on your own products.
  • Fit is a separate question. A realistic render does not tell the shopper which size to order.

For a closer look at accuracy, see how accurate AI virtual try-on is.

How does this relate to sizing?

Image generation and size advice are different jobs. A render shows style, color and drape. A size recommendation compares body measurements with your size chart.

ZeDaq.ai offers both. The shopper uploads one photo and sees the store's real garment on their body, and a 30-second body scan can recommend a size from the store's own chart. Treat the picture as a preview and the size recommendation as the fit guide.

What should you test before choosing a tool?

Whatever technique a vendor uses, run your own checks:

  1. Try five of your own products, including a print and a plain item.
  2. Use photos in different light and poses.
  3. Check that the garment in the result matches the one you sell.
  4. Test on a phone, on a normal connection.
  5. Ask where the shopper's photo goes and how long it is kept.

Write down what you see, and compare tools on the same photos.

How can developers use try-on?

Developers can call try-on through an API. ZeDaq.ai offers a REST endpoint, POST /api/v1/tryon, authenticated with an x-api-key header. The API reference is in the API documentation. If you build mobile apps, see how try-on works in a Flutter shopping app.

For stores on other platforms, compare your options on BigCommerce.

See photo-based try-on on a real garment

FAQs

Is diffusion-based try-on the same as AR?

No. AR draws an item over a live camera view. Diffusion-based try-on generates a still image from a photo and a garment image.

Does diffusion try-on need a 3D model of the garment?

The TryOnDiffusion paper works from two images, a person and a garment, not a 3D model. Other tools may differ.

Does ZeDaq.ai say it uses a diffusion model?

This article explains the technique in general. For how ZeDaq.ai works from a shopper's point of view, see the product pages and documentation.

Can a generated image show the exact fit?

No. It shows how a garment may look. Use a size chart or size recommendation for fit.

Try ZeDaq.ai free

Virtual try-on and Find my size for your store, plus client, order and invoicing tools for tailors, in one subscription.

Related articles