All Projects
V-TRYON AI — Virtual Clothing Try-On Studio
0b9cb3515-2af8-44d4-b408-f0ed0a8e68eeAI/ML · Generative AI · Computer Vision

V-TRYON AI — Virtual Clothing Try-On Studio

Python · PyTorch · Stable Diffusion Inpainting · SegFormer B2 Clothes · Flask

PythonPythonFlaskFlaskPyTorchPyTorch

Problem

Online shoppers can't see how a garment actually looks on them, and merchants lack an affordable way to render try-on imagery without a photoshoot.

Solution

Built a two-stage AI pipeline. Stage 1 uses SegFormer B2 Clothes to segment upper-body clothing regions (shirt, top, jacket, dress) from the person photo and produce a dilated binary mask. Stage 2 feeds that mask to Stable Diffusion Inpainting with a carefully crafted fashion-photography prompt to generate the new garment realistically onto the body. The person image is resized to 512×768 (Stable Diffusion's sweet spot) and the result is returned as a base64 PNG. A modern dark glassmorphism UI offers drag-and-drop uploads, real-time API health status, progress indicators and one-click downloads.

Impact

A self-serve virtual try-on that turns a person photo + a garment image into a realistic styled result in seconds — useful for e-commerce, fashion catalogues and social content, with no model or studio required.

virtual try-on AIStable Diffusion inpaintingSegFormer clothes segmentationgenerative AI fashionAI clothing overlayPyTorch computer visiondiffusion model engineere-commerce AIfashion techimage inpainting
Chat on WhatsApp