0
stars
8
commits
Python
primary language
May 25, 2026
updated
Outfit-Gen is a high-fidelity, open-source AI Virtual Try-On application designed to seamlessly project garments onto photos of individuals. By utilizing a diffusion-based deep learning pipeline, the application allows users to upload a photo of themselves and an outfit to see how it looks in real-time.
https://github.com/user-attachments/assets/8913b8d3-6a5a-499b-9cf5-61a90d4b1f6e
Outfit-Gen contains multiple architectural designs tailored for different environments:
graph TD
subgraph local_dev ["Local Development (Active Stack)"]
Vite["React + Vite Frontend"] -->|Proxy /api/*| Flask["Flask API Server"]
Flask -->|Inference Lock| CatVTON["CatVTON Pipeline + AutoMasker"]
end
subgraph prod_arch ["Production Architecture (Docker-Compose)"]
NextJS["Next.js Frontend"] --> FastAPI["FastAPI Server"]
FastAPI --> Redis[("Redis Message Broker")]
Redis --> Celery["Celery Workers"]
Celery --> Replicate["Replicate IDM-VTON API"]
end
subgraph cloud_deploy ["Cloud Deployment"]
HF["HuggingFace Space"] --> Gradio["Gradio Web UI"]
Gradio --> ZeroGPU["ZeroGPU Pipeline"]
end
@spaces.GPU decorator to dynamically allocate GPU compute per request, leveraging attention slicing to keep memory footprints low.The core try-on pipeline is powered by CatVTON (Concatenation-based Virtual Try-ON), a deep learning model that stitches garment and person features directly inside the attention mechanism of a Stable Diffusion inpainting model.
AutoMasker Generation:
upper, lower, or overall torso mask is required based on garment aspect ratios.Diffusion Processing:
| Layer | Technologies Used |
|---|---|
| Frontend UI | React 18, Vite 5, TailwindCSS 3, Lucide Icons, Canvas API |
| Interactive Components | Intersection Observer (Scroll Reveal), Custom Cursor Glow, 3D Card Tilt Hook, Before-After Slider |
| Active Local Backend | Python 3.10+, Flask, PyTorch, Hugging Face Hub Client |
| Alternative Backend | FastAPI, Celery, Redis, Docker Compose |
| Cloud Deployment | Gradio, HuggingFace Spaces (ZeroGPU) |
| AI Models | CatVTON (zhengchong/CatVTON), DensePose, SCHP, IDM-VTON (yisol/idm-vton) |
8 commits
Python
81.9%
JavaScript
9.8%
Cuda
3.8%
C++
2.7%
0
stars
8
commits
Python
primary language
May 25, 2026
updated
Outfit-Gen is a high-fidelity, open-source AI Virtual Try-On application designed to seamlessly project garments onto photos of individuals. By utilizing a diffusion-based deep learning pipeline, the application allows users to upload a photo of themselves and an outfit to see how it looks in real-time.
https://github.com/user-attachments/assets/8913b8d3-6a5a-499b-9cf5-61a90d4b1f6e
Outfit-Gen contains multiple architectural designs tailored for different environments:
graph TD
subgraph local_dev ["Local Development (Active Stack)"]
Vite["React + Vite Frontend"] -->|Proxy /api/*| Flask["Flask API Server"]
Flask -->|Inference Lock| CatVTON["CatVTON Pipeline + AutoMasker"]
end
subgraph prod_arch ["Production Architecture (Docker-Compose)"]
NextJS["Next.js Frontend"] --> FastAPI["FastAPI Server"]
FastAPI --> Redis[("Redis Message Broker")]
Redis --> Celery["Celery Workers"]
Celery --> Replicate["Replicate IDM-VTON API"]
end
subgraph cloud_deploy ["Cloud Deployment"]
HF["HuggingFace Space"] --> Gradio["Gradio Web UI"]
Gradio --> ZeroGPU["ZeroGPU Pipeline"]
end
@spaces.GPU decorator to dynamically allocate GPU compute per request, leveraging attention slicing to keep memory footprints low.The core try-on pipeline is powered by CatVTON (Concatenation-based Virtual Try-ON), a deep learning model that stitches garment and person features directly inside the attention mechanism of a Stable Diffusion inpainting model.
AutoMasker Generation:
upper, lower, or overall torso mask is required based on garment aspect ratios.Diffusion Processing:
| Layer | Technologies Used |
|---|---|
| Frontend UI | React 18, Vite 5, TailwindCSS 3, Lucide Icons, Canvas API |
| Interactive Components | Intersection Observer (Scroll Reveal), Custom Cursor Glow, 3D Card Tilt Hook, Before-After Slider |
| Active Local Backend | Python 3.10+, Flask, PyTorch, Hugging Face Hub Client |
| Alternative Backend | FastAPI, Celery, Redis, Docker Compose |
| Cloud Deployment | Gradio, HuggingFace Spaces (ZeroGPU) |
| AI Models | CatVTON (zhengchong/CatVTON), DensePose, SCHP, IDM-VTON (yisol/idm-vton) |
8 commits
Python
81.9%
JavaScript
9.8%
Cuda
3.8%
C++
2.7%