How nabilkdarwish/ai-virtual-fitting-room works
This repository is an AI virtual fitting-room project. The README describes a camera-to-try-on workflow, while the sampled Streamlit interface currently supports still-image capture or upload, catalog browsing, and selection confirmation; it explicitly says try-on generation is not yet connected. The graph preserves the documented processing stages, but treats their interconnections as documented intended flow rather than verified runtime calls. Source excerpts for the backend and processing modules are empty, so their internal wiring cannot be confirmed.
Main entry points: app.py Streamlit interface · tryon_engine.py Try-on engine · frame_processor.py Frame processing · model_inference.py Model inference
Components 28
Computer vision
- Capture and tracking
01_Computer_Vision/camera_manager.py - Pose estimation
01_Computer_Vision/pose_estimation.py - Human detection
01_Computer_Vision/human_detection.py - Pose smoothing
01_Computer_Vision/pose_smoothing.py - Frame processing
01_Computer_Vision/frame_processor.py
Image processing
- Preprocessing
02_Image_Processing/preprocessing.py - Human segmentation
02_Image_Processing/human_segmentation.py - Clothing segmentation
02_Image_Processing/clothing_segmentation.py - Body parsing
02_Image_Processing/body_parsing.py - Mask generation
02_Image_Processing/mask_generation.py - Image enhancement
02_Image_Processing/image_enhancement.py
AI models
- Model management
03_AI_Models/model_manager.py - Model inference
03_AI_Models/model_inference.py - Model evaluation
03_AI_Models/model_evaluation.py
Virtual try-on
- Try-on engine
04_Virtual_TryOn/tryon_engine.py - Garment loading
04_Virtual_TryOn/garment_loader.py - Garment alignment
04_Virtual_TryOn/garment_alignment.py - Garment warping
04_Virtual_TryOn/garment_warping.py - Image compositing
04_Virtual_TryOn/compositor.py - Result rendering
04_Virtual_TryOn/rendering.py
User interface
- Streamlit interface
05_Frontend_Backend/frontend/app.py - API routes
05_Frontend_Backend/backend/api_routes.py - Voice control
05_Frontend_Backend/backend/voice_controller.py - Display control
05_Frontend_Backend/backend/display_controller.py - Session management
05_Frontend_Backend/backend/session_manager.py
Other components
- User
- Laptop camera
- Microphone
Connections 28
- Laptop camera → Capture and tracking: captures video
README.md - User → Streamlit interface: selects garment
README.md - Streamlit interface → Voice control: voice selection
README.md - Microphone → Voice control: provides audio
README.md - Capture and tracking → Frame processing: provides frames
README.md - Frame processing → Pose estimation: extracts pose
README.md - Pose estimation → Pose smoothing: smooths motion
README.md - Frame processing → Human detection: detects person
README.md - Frame processing → Preprocessing: passes frame
README.md - Preprocessing → Human segmentation: segments person
README.md - Human segmentation → Body parsing: parses body
README.md - Body parsing → Clothing segmentation: isolates clothing
README.md - Clothing segmentation → Mask generation: generates mask
README.md - Mask generation → Try-on engine: supplies mask
README.md - Image enhancement → Try-on engine: enhances input
- Try-on engine → Garment loading: loads garment
- Try-on engine → Garment alignment: aligns garment
README.md - Garment alignment → Garment warping: warps garment
README.md - Try-on engine → Model management: uses model
README.md - Model management → Model inference: runs inference
- Model inference → Image compositing: provides synthesis
README.md - Garment warping → Image compositing: provides warped garment
README.md - Image compositing → Result rendering: renders result
README.md - Result rendering → Streamlit interface: displays result
README.md - Model inference → Model evaluation: evaluates output
- Streamlit interface → Display control: presents preview
- Streamlit interface → Session management: stores selection
- Streamlit interface → API routes: requests processing