Akanksha Tyagi

PromptDresser: Prompt Controlled Virtual Try-On

Reproduced a text editable virtual try-on model built on Stable Diffusion XL, and built the live demo.

MS coursework · University of Arkansas · Fall 2025 · Team of 3 · Paper reproduction

Built with Python, PyTorch, Stable Diffusion XL, Hugging Face diffusers, Gradio and DensePose.

The paper

Virtual try-on takes two photos, one of a person and one of a garment, and generates an image of that person wearing the garment while keeping their face, hair, pose and background. Earlier methods take the garment's style from its photo alone, which leaves little room to ask for the same shirt worn differently.

PromptDresser adds text to the inputs. A large multimodal model describes the person and the garment as a set of attributes, such as body shape, pose, fit, sleeves and tucking style, and those attributes become text prompts. Change a word in the prompt, from tucked in to untucked or from tight to loose, and the output changes with it. The paper also generates the editing mask from the prompt, so the region being repainted can grow or shrink to fit the new style instead of following the outline of the old clothes.

The model is built on Stable Diffusion XL and its inpainting variant: images are encoded into a compact latent space, a U-Net denoises the masked region while reading the prompts and features of the garment photo, and the result is decoded and blended back so only the clothing changes. The authors report better image quality than earlier try-on methods in most of their tests, and closer agreement with the text. Those results are the paper's; we used the released weights and did not retrain the model.

Flow diagram in two rows. Top row: two photos, one of a person and one of a garment, go to a large multimodal model, which describes the person and the garment as a set of attributes, such as body shape, pose, fit, sleeves and tucking style. Those attributes become text prompts; change a word, from tucked in to untucked, and the output changes with it. The editing mask is generated from the prompt, so the region being repainted can grow or shrink to fit the new style. Bottom row, labelled Stable Diffusion XL and its inpainting variant: encode the images into a compact latent space; a U-Net denoises the masked region while reading the prompts and features of the garment photo; decode and blend back so only the clothing changes; the output is that person wearing the garment, keeping their face, hair, pose and background. Arrows carry the text prompts and the editing mask down into the U-Net. A legend marks the large multimodal model, the text prompts and the editing mask as what PromptDresser adds.
How PromptDresser produces a try-on. The text prompt enters in two places: the U-Net reads it while it repaints, and the editing mask is generated from it. The method is the paper's. Drawn from the text on this page.View full size (opens in a new tab)

What we reproduced

We were a team of three in an MS deep learning course. We ran the authors' released code and pretrained weights on VITON-HD, a public try-on dataset of about 11,000 training and 2,000 test pairs of women wearing tops. For every test pair the code needs more than the two photos: a clothing mask, a mask of the region to repaint, pose keypoints, a body part segmentation and a DensePose map of the body's surface, plus a text prompt for the person and one for the garment.

Two images side by side. Left: a black long sleeved top photographed on its own against a light grey background, with no person. Right: the clothing mask of the same top, a solid white shape of the garment on black.
One garment from the test set as the code receives it: the garment photo and its clothing mask, two of the inputs listed above. Images from VITON-HD.View full size (opens in a new tab)

My part

Within the team, I was responsible for getting the code to run, for how data moved through it, and for the live demo.

  • I set up the environment, matching library versions to what the released code expected.
  • I built the preprocessing that turns a new photo into model inputs: human parsing to label each pixel as a body part or clothing, the clothing agnostic mask that marks where the new garment goes, and the DensePose map. The released code only ran on the prepared test set, so this is what let us try on photos of our own.
  • I put together the inference pipeline that loads a person and garment, builds the prompts, runs the model and saves the result.
  • I built a Gradio web app for the live demo, where a user can change the tucking, fit or sleeve attributes in the prompt and see the result.
Flow diagram in four columns of three boxes, redrawn from my slide. In order: start inference with python inference.py; load configs, YAML and args; build models, the VAE, UNet, text encoder, cloth encoder and scheduler; load weights from safetensors files; create the pipeline object, PromptDresser(); load the dataset pairs and their prompt file; build prompts, full and clothing; load images and preprocess the person, mask, pose and cloth; run the PromptDresser pipeline, latent creation, UNet and VAE; mask blending to preserve face, hair and background; save output as a JPG in sampled_images; and an optional evaluation, PSNR and SSIM if a ground truth image exists.
The inference pipeline I put together: it loads the configs, models and weights, builds the prompts for each person and garment pair, runs the model, blends the result back with the mask and saves it. Redrawn from my slide, with its labels.View full size (opens in a new tab)

In the demo, a user uploads a photo of a person and one of a garment, and the attributes are menus. The user describes the person and the garment, such as body shape, pose, fit, sleeves and tucking style, and the app turns those choices into the two text prompts the model reads: one for the person and garment together, and one for the garment alone.

My Gradio demo running on my machine. The person and garment photos are loaded; on the Advanced Settings tab I set the attributes, including fit, sleeves and tucking style, and preview the prompts; then I run the try-on. The minute the model takes to run is cut at 0:57, and the result appears just after. Photos from VITON-HD. No sound. (1:36)
Three images side by side from the demo. Left: the person photo, a woman in a pink t-shirt and white jeans. Middle: the garment photo, a black long sleeved ribbed top with a lace yoke and lace cuffs. Right: the generated result, the same woman, with the same face, hair, pose and white jeans, wearing the black top with sleeves that end above the elbow.
The try-on from that run: the person photo, the garment photo and the generated result. The prompt asked for short sleeves and an untucked fit. Photos from VITON-HD; the result was generated by the model with the released weights.View full size (opens in a new tab)
A screenshot of the demo after a run. A list of the settings used: person attributes, body athletic and gender woman, pose standing straight with a neutral expression, looking at the camera with arms down; garment attributes, type t-shirt, material cotton, fit fitted and tucking untucked. Below it, the prompts used by the model. Full prompt, person and garment: a athletic woman wears fitted, t-shirt (cotton), crew, short sleeve, untucked, with medium hair, standing straight, neutral expression, looking at camera with hands arms down, hands relaxed at sides. Clothing prompt, garment only: a t-shirt, cotton, with short, crew.
The demo after a try-on run: the attributes it used and the exact prompts it sent to the model, filled into the fixed sentence template described below.View full size (opens in a new tab)

What we found

Our analysis of the dataset showed how narrow its text prompts are. Of the 2,032 test prompts, only 1 described a man. The clothing attributes covered upper body garments only. And the prompts are not free text: a user supplies attribute values that fill a fixed sentence template.

So the text control in this setup is a choice among the template's attributes, and the test data says little about how the model handles men or clothing other than tops. Within those bounds, the demo let us change tucking, fit and sleeves by prompt.

Materials