How I Built a Virtual Fitting Room to Compare Sizes

I carried out a one-person feasibility study using an approximate avatar, measured factory T-shirt samples, and real try-on photos. The study showed visible changes in garment fit across sizes, with differences between the rendered hems and the worn photos.

A one-person feasibility study of size-aware T-shirt previews and how to evaluate them.

Summary
The main difference between an in-person shopping experience and an online one is, we cannot see the fitting variation across sizes for a garment through our devices. To make a smoother online shopping experience I carried out a one-person feasibility study using an approximate avatar,measured factory T-shirt samples, and real try-on photos. The study was able to show visible changes in the fitting of the garment across sizes. The photo comparisons between the preview and the try-on showed the rendered hems appeared lower than the hems in the worn photos.

1. Why Fit Is Hard to Judge Online

I shop with an occasion in mind. When a garment fits differently from what I expected, I can return it, but the occasion may already have passed.
I wanted to understand if this is a common problem. I received 52 responses to a survey about online sizing and fit. The survey said 38 had experienced an unexpectedly fitting order many times,12 said once or twice and 2 reported slight disappointment. Due to this uncertainty in sizing 33 said that they had avoided buying online many times, 10 once or twice, 7 reported delaying a purchase, and 2 said no.
The survey gave me an insight into what things influence the size selection while shopping online, 43 out of the 52 used size charts. Of the 52 respondents 31 selected, comparing sizes on themselves can be helpful. 21 selected, receiving a size recommendation.
Sizing matters to retailers as well. In 2023, Zalando reported 10% fewer size related returns for items with size advice than for similar items without it. That was a comparison of its size advice service. For my prototype, the first question was whether a preview could show a believable difference between sizes in the first place.

Four shopping survey charts and Zalando’s April 2023 statement comparing size-related returns.
Figure 1. Shopping survey responses (52 respondents) and a separate retailer comparison of size-related returns, reported in Zalando’s 2023 announcement.

2. How Virtual Try-On Systems Use Size

The first thing I had to pin down was what a system means by size. A size label, the shopper’s measurements, and the dimensions of the finished garment are different inputs. The size chart highlights this issue even further. The size charts mention a range for each size. This range can either be indicative of what the finished garment dimensions can be or the dimensions of the individuals who can fit in that particular size. A chart of recommended body measurements and a chart of finished garment dimensions give a try-on system different information.

Example What the system uses What the evaluation addresses
SiCo A photo, the user’s usual size, a garment image, and a selected size inform a relative adjustment to the garment mask. A 48-person study examined the experience of making a size decision, including perceived understanding and confidence.
Size-Variable Virtual Try-On with Physical Clothes Size A photo in a reference size and five physical garment dimensions for the reference and target sizes inform a new 2D garment silhouette. The Size Evaluation Metric focuses on changes near the torso hem and sleeves against real worn target-size images.
FIT Body and garment measurements are paired with simulation-derived supervision. The dataset includes deliberately poor fits. The synthetic benchmark provides a way to study how generated images respond to specified body and garment sizes.
This feasibility study Photos and tape readings constrain an approximate avatar. Measured factory dimensions specify three T-shirt samples. Mesh checks establish agreement with the inputs, and a descriptive real-photo comparison examines hem position.

Different studies use metrics to answer different questions. A shopper can find an approximate image of how the garment looks on them very helpful. This is why I designed my first experiment around visible garment geometry and deferred the shopping decision study.

Comparison of garment size inputs, outputs, and what each virtual try-on evaluation measures.
Figure 2. Size inputs, outputs, and evaluation across selected approaches. Sources: VITON-HD, SiCo, Yamashita et al., FIT.

3. What Data Would Let Us Test Fit?

The long term idea is to use retailer information to produce a T-shirt preview but for this particular single person study all garments are measured samples. The size chart and fabric composition details help understand the garment. The body profile helps in understanding who wore it and worn pictures tell what actually happened to the visible fit. If we observe a picture of an individual in 2 different garment sizes then we can easily tell what is the difference in sleeves, shoulder, chest , and hem length. This can be helpful in making a better informed purchase online.
The existing datasets covered different parts of that record. SIZER captures real people wearing garments in multiple sizes, FIT pairs body and garment measurements with synthetic examples. DressCode offers paired apparel and worn imagery for appearance comparisons. GarmentCodeData contributes parametric patterns and synthetic garment geometry, while an anthropometric source such as INDIAsize informs the body-measurement side. Each dataset can be useful for a particular task. My first question for each source was which parts of the paired-size record it could supply.
I designed a schema linking a person, body evidence, garment identity, size, geometry, and images of the garment being worn. To decide what information was worth collecting at scale, I wanted to see where a small prototype would succeed and where its evidence would run out. I narrowed the bundle to one person and T-shirts.

Comparison of datasets and the prototype bundle by the evidence each supplies for a paired-size test.
Figure 3. Evidence available from selected datasets and the prototype bundle. Sources: SIZER, FIT, Dress Code, GarmentCodeData, INDIAsize.

4. From Body Photos to a T-Shirt Preview

Building the body the shirt would sit on
The conceptual model for fit-aware try-on: Observed hull + Measurements+ Canonical inner body + Garment geometry + Fabric behaviour = Size aware T-shirt preview.
Observed hull refers to the outer shape estimated from the photo silhouettes, including the clothing already worn. Measurements refer to the real-world scale and constrain dimensions such as chest and waist. The canonical inner body is the underlying 3D avatar that the garment sits around. Garment geometry describes the shape and dimensions of the selected size, including its sleeves, shoulders, and hem.
Fabric behaviour determines how the garment stretches, hangs, and folds around the body. Currently the model does not include the fabric behaviour part which is currently being worked upon.
Current pipeline : The existing T-pose photographs and tape measurements → an aligned SMPL-X avatar → three dimension constrained rest meshes → display shells → front, side, and back views.

Giving each size its own garment geometry
To build the garment geometry, I used factory measurements for three T-shirt samples labelled M,L, and XL. The torso was built from elliptical sections joined to the sleeves and neckline. As a simple example, I modeled the flat torso width as half the perimeter of its corresponding cross-section and modeled front length as the vertical shoulder-to-hem span. Holding the avatar and the display pose fixed let me see the effect of changing the garment inputs. The samples’ shared cut and fabric remained unverified.

There were two versions of each geometry. The rest mesh represents the garment before placement on the avatar. I checked its chest,waist,and hem widths,front length, shoulder width, and sleeve length against the measured inputs. All 18 checks across the three sizes met the 0.5 cm tolerance.
The separate display shell used a bounded local clearance adjustment around the body, a neutral material, and an estimated cuff opening. That made a usable preview, with physical drape and stretch still to be studied. Three clean replays reproduced the same 15 prediction files. Prototype geometry and repeatability.

5. Where the Preview and the Real Shirt Diverged

What changed when I switched sizes
The turning point for me was seeing the previews. I could notice a visible difference in the torso, chest, waist, hem length, sleeve length across the three sizes side by side. This is when I realised that the project was moving in the direction where the work can be visually assessed. The next big step was to check how accurately the previews match the actual try-on of the T-shirt.

Front-view virtual T-shirt previews for measured size M, L, and XL samples on the same avatar.
Figure 4. Front previews of M, L, and XL on the same avatar, shown at the same scale and pose. Prototype geometry and repeatability.

What changed when I looked at the photographs
The main observable difference was the hem placement. The hem placement in the previews was lower than the actual try-on.
I took the centre hem position in each image and measured how far it sat above the lowest visible foot, as a percentage of the image distance from foot to crown. On this scale, a smaller number means the hem appears lower on the body. I marked the range in each photo and measured the gap to the nearest end of that range. The front and back views supported this comparison. I kept the two side views qualitative. M served as a development reference, and the L and XL photos had been visible before the predictions were frozen. I treat them as comparison evidence. Gaps are calculated from the unrounded measurements.

Sample and view Preview hem Worn-photo hem interval Rendered hem compared with photo
L, front 45.8% 51.7-52.7% 5.8 percentage points lower
L, back 45.8% 54.3-55.4% 8.4 percentage points lower
XL, front 47.2% 52.2-53.3% 4.9 percentage points lower
XL, back 47.2% 52.7-53.9% 5.5 percentage points lower

Did the preview capture the change from L-XL?

View Preview change from L to XL Change estimated from worn photos What it shows
Front +1.4 percentage points -0.6 to +1.6 pp The preview change falls within the photo range. The photos leave the direction uncertain.
Back +1.4 percentage points -2.7 to -0.4 pp The preview hem rose, while the worn photos indicated it fell.

All 18 rest-mesh dimension checks were within the 0.5 cm tolerance of the measured garment inputs. When I compared the previews with the worn photos, the predicted L-XL hem change fell within the photo range for the front. For the back, it showed that the hem was rising in the preview but in the photos it fell. Difference in pose and camera position could have contributed to this inconsistency.

L back-view preview and anonymized worn photo, each with the center hem marked.
Figure 5. L back view. Markers indicate the centre hem in each panel. Hem heights were measured in the full images before this crop. Worn-photo hem comparison.

The avatar held a fixed pose, while I moved my arms during the photo capture. That may have shifted the shirt and changed where the hem sat. Camera and stance also differed, and a shared cut and fabric across samples remained unverified. The photo comparison shows a difference in hem position under those conditions.

6. What Would Make the Next Preview More Trustworthy?

Checking what the cloth does
For the next phase I collected images of one-person in six styles, two sizes captured in three different views: front, back and side. This was done to help the model understand the fabric behavior across a variety of different articles which were made from cotton blends. Stretch, bending, and recovery remained unmeasured.
The evidence review tracked which dimensions came from a retailer guide and which had to be estimated. The fabric composition and construction provided clues, but direct evidence about stretch, bending and recovery was still missing. That gap matters as soon as the question moves from building a shell of the right size to finding out how the cloth hangs on a body.
The early cloth tests were encouraging in a limited way. Simulated loose, snug, and stretch limited cases each completed 120 checked steps, and the deliberately infeasible case was rejected. Retail evidence and cloth checks. The material settings were engineering assumptions. I would want consistent settling and measurements of real fabric behaviour before using these simulations to generate training labels.

Two experiments to build on
In the next experiments I would take one verified style in two known sizes, photograph both on the same person with a fixed camera position and repeatable pose, then independently mark the hem, sleeves, and shoulders. Compare the direction and magnitude of change in each size for each region. That would tell me more about the original hem discrepancy than a larger set of unmatched images.

A complementary experiment would hold the avatar and garment fixed while changing solver settings. Can the cloth reach a stable shape across those settings? Does it change in the expected direction when you swap in measured properties from a different fabric? Together these questions would decide which differences in preview are meaningful to show a shopper.

I started with the problem of ordering a shirt for an occasion and having to guess how it would look when it arrived. A virtual fitting room would help me be a better judge in choosing the right size for me. Once these differences are checked against real try-ons, then the next question will be whether seeing them actually helps people choose.

Evidence appendix

Prototype geometry and repeatability

One approximate avatar. Three measured factory T-shirt samples labelled M, L, and XL. The unloaded rest mesh and the display shell were generated separately. The display shell used local clearance, neutral material, and an estimated cuff opening. The samples’ shared cut and fabric remained unverified.

Dimensions checked on each rest mesh M L XL
Chest, waist, and hem widths 3/3 3/3 3/3
Front length, shoulder width, and sleeve length 3/3 3/3 3/3

All 18 independently recomputed dimensions matched the supplied inputs within the 0.5 cm tolerance. Three fresh runs each reproduced the same 15 output files byte for byte.

Worn-photo hem comparison

M served as a development reference. The six L and XL comparison photos had been visible before the predictions were frozen. The renders used the factory dimensions and avatar. The front and back views were measured. The two side views were reviewed qualitatively.

Projected hem height (%) = 100 × (lowest visible foot − centre hem) ÷ (lowest visible foot − crown), using vertical image coordinates. The photo intervals reflect manual landmark readings. The gap uses the nearest edge of the interval, with unrounded measurements used in the calculation.

From L to XL, the preview rose 1.4 percentage points in both views. The photo interval spans both directions in front (−0.6 to +1.6 points) and indicates a lower XL hem in back (−2.7 to −0.4 points). Camera and pose differed. Arm movement is one possible contributor.

Retail evidence and cloth checks

Follow-up coverage: six cotton-blend retail styles in two sizes each. Retailer size guides supplied some dimensions, and other dimensions were estimated. Fabric stretch, bending, and recovery remained unmeasured.

Engineering fixture Accepted steps Result
Loose 120/120 Passed
Snug 120/120 Passed
Stretch-limited 120/120 Passed
Deliberately infeasible 0/120 Rejected for insufficient declared capacity

The checks used one approximate avatar, assumed material settings, and a fixed neckline support. Measured fabric properties and repeatable full-garment settling are needed before using the simulations to generate training labels.

Enjoy Reading This Article?

Here are some more articles you might like to read next: