CatVTON optimization: from 1.6s down to 17ms per frame
Engineering journey optimizing diffusion garment try-on for smart mirrors: quantization, TensorRT, MediaPipe, and stable 30 FPS within 5 GB VRAM.
The smart mirror challenge
In Zercalo AI, shoppers stand before a vertical display selecting garments via touchless gestures. The raw CatVTON diffusion pipeline required 1.6 seconds per frame and over 12 GB VRAM, causing unacceptable lag and overheating.
Key architectural breakthroughs
We decoupled realtime tracking from generative rendering:
• MediaPipe Pose & Hands tracks user skeleton and gesture selection in 4ms.
• Region masking was replaced with a lean MobileNetV3-UNet engine.
• Generative UNet blocks were compiled to NVIDIA TensorRT with FP16/INT8 quantization, slashing peak VRAM to 4.8 GB.
Outcome: smooth 30 FPS on site
Pre-computation latency plummeted from 1600ms to 17ms. Shoppers experience fluid real-time try-on with realistic fabric drapes, shadows, and textures directly in-store.