try-on

How Does AI Virtual Try-On Work? SSIM Explained

Dheekshith Kumar

·

Co-founder and CEO

·

·

7 min read

Last updated

Illustration of two input images combining into one realistic try-on result, representing how AI virtual try-on works

The hard part of virtual try-on is not drawing a person. It is not ruining the dress.

AI is very good at making a believable human. It has historically been bad at keeping the print on your kurta, the border on your saree, or the lettering on a tee exactly as the designer made it. A try-on that gets the person right and the garment wrong is worse than no try-on, because the shopper now buys a product that does not exist.

Here is how the technology works, why garment fidelity is the whole game, and what a number like “97% SSIM” does and does not tell you.

Step 0: the old way was a sticker

Try-on attempts in the 2010s relied on static image overlays that could not simulate how a garment actually drapes on a body. Source: PYMNTS You have seen the result: a flat shirt pasted on a torso. Shoppers stopped believing it quickly.

The modern recipe: two images in, one image out

Image-based virtual try-on takes a picture of a person and a picture of a garment, and renders the person wearing it. The difficulty, as the IDM-VTON authors put it, is fitting the garment to bodies in many poses without distorting its patterns and textures. Source: arXiv, IDM-VTON

Two families of models do this:

  • GAN-based methods use a separate warping module that bends the garment onto the body. They can capture fine garment detail but struggle to generate natural-looking people, and generalize poorly to new datasets. Source: arXiv, IDM-VTON

  • Diffusion-based methods build on pretrained text-to-image diffusion models and their rich generative prior, which gives natural people. Earlier ones, though, failed to preserve garment details. Source: arXiv, IDM-VTON

Pipeline diagram: a person image and a garment image go in, one believable try-on image comes out

The trick that fixed garment fidelity

IDM-VTON, from researchers at KAIST and Omnious.AI, feeds the garment into the image generator in two ways at once. High-level semantics from a visual encoder go into the cross-attention layers (what kind of garment it is). Low-level features from a parallel network go into the self-attention layers (the exact texture and pattern). Detailed text descriptions of both the garment and the person are added on top. Source: arXiv abstract

Plain-language version: one channel tells the model “this is a block-printed cotton kurta”, the other makes sure the actual block print arrives on screen.

The authors report that this approach beats earlier GAN and diffusion methods at preserving garment details on the public VITON-HD and DressCode datasets. Source: arXiv, IDM-VTON Newer work built on Diffusion Transformers names body alignment and garment fidelity (texture, colour and fine detail) among the core challenges. Source: arXiv, TED-VITON

The point for a brand: the field moved from “can it generate a person” to “can it keep my product intact”. That is the right question to ask any vendor.

Where it still breaks

No one in the field claims this is solved. The IDM-VTON authors note that GAN-based methods generalize poorly to the DressCode dataset, which includes a wider range of garment types than VITON-HD. Source: arXiv, IDM-VTON In plain terms, a model that looks great on one kind of garment can fall apart on another.

Texture is the other stubborn problem. A 2025 paper on unified try-on and try-off found that when garment images are recovered from worn photos and then fed into a try-on model, fine-grained texture details remain inadequately recovered and patterns tend to blur. Source: arXiv 2508.04559

What this means for Indian fashion is our inference, not a finding. Prints, zari borders and draped garments are the hardest test of fidelity, which is probably why Flickd’s own Smart Mirror page names sarees and lehengas as hard-to-try categories. Source: flickd.in Whatever tool you evaluate, test it on exactly those garments.

A one-minute glossary

  • GAN (generative adversarial network): an older image generator trained by pitting two networks against each other. In try-on, GAN pipelines typically bend the garment to the body with a separate warping step. Source: arXiv, IDM-VTON

  • Diffusion model: a generator that builds an image by gradually removing noise. Modern try-on models start from pretrained text-to-image diffusion models. Source: arXiv, IDM-VTON

  • Cross-attention and self-attention: the layers where the model decides what to look at. IDM-VTON feeds garment meaning into one and fine garment detail into the other. Source: arXiv abstract

  • Full-reference metric: a score that needs a known-good image to compare against, like SSIM. Source: Wikipedia

  • Avatar: a reusable digital stand-in for the shopper, built once and used for every garment, as Flickd does. Source: flickd.in

Avatars versus one-off images

Most Shopify try-on apps work on demand: the shopper uploads a photo, picks a product, and the app generates an image of them wearing it. Source: Shopify App Store

Flickd takes a different route. The shopper builds a persistent AI avatar from two photos in under a minute, and carries it across brands online and in store. Source: flickd.in The practical difference is that the second try-on costs the shopper nothing. No new upload, no new wait.

On data handling, Flickd states that photos are deleted within 24 hours, avatars are kept until the shopper deletes them, data is stored in India and the system is DPDP compliant. Source: flickd.in

What “97% SSIM” actually measures

SSIM stands for Structural Similarity Index. It was introduced in a 2004 paper by Zhou Wang, Alan Bovik, Hamid Sheikh and Eero Simoncelli, built on the idea that human vision is tuned to extract structural information from a scene. Source: Wang et al., IEEE TIP 2004

It is a full-reference metric: it needs a known-good reference image to compare against. It combines three comparisons, luminance, contrast and structure. Source: Wikipedia

Flickd’s site defines its figure as how closely a try-on matches a real photo, with 100% meaning identical, and reports 97%. Source: flickd.in

Diagram of what a 97 percent SSIM score actually compares between two images

Three questions to ask about any accuracy number

A metric is only as honest as its setup. This is our advice, and it applies to our own number too.

  1. Compared against what? SSIM needs a real photo of the same person in the same garment. How many such pairs, and across which garments and poses?

  2. Does it cover your category? A score measured on plain t-shirts says little about a zari saree.

  3. Is there a second metric? SSIM measures structure, not whether a human thinks it looks real. Research papers pair it with other scores. IDM-VTON, for example, is ranked on the VITON-HD benchmark by FID, a different measure. Source: Papers with Code

We will happily walk you through how ours was measured on a demo call.

→ See how Website Try-on works

→ See the same avatar on a store mirror

→ Book a 30-minute demo

Sources: arXiv: IDM-VTON · arXiv: TED-VITON · Wang et al. 2004 (SSIM) · Wikipedia: SSIM · PYMNTS · Papers with Code · Shopify App Store listing · flickd.in

AS FEATURED IN

Flickd in the news

Read what Textile Insights, Indian Retailer, The Tech Panda, SME Street, CXOToday and Mr CEO wrote about Flickd.

See all coverage

Textile Insights logo
Indian Retailer logo
The Tech Panda logo
SME Street logo
CXOToday logo
Mr CEO logo

AS FEATURED IN

Flickd in the news

Read what Textile Insights, Indian Retailer, The Tech Panda, SME Street, CXOToday and Mr CEO wrote about Flickd.

See all coverage

Textile Insights logo
Indian Retailer logo
The Tech Panda logo
SME Street logo
CXOToday logo
Mr CEO logo