TryLens - AI Tinkerers Paris Hackathon – October 11, 2025
AI Tinkerers - Paris
Hackathon Showcase

TryLens

AI-powered Google virtual try-on with real-time product search, reducing returns and boosting conversions via personalized, time-saving visual shopping.

2 members

πŸ›οΈ AI Virtual Try-On & Product Discovery Platform

Project Description

We built an intelligent virtual try-on system that combines Google’s Gemini 2.5 Flash and specialized virtual try-on models to generate realistic visualizations of how clothing and home decor items would look on users or in their spaces. The platform serves as the foundation for a complete shopping experience with integrated web search for product discovery and price comparison.

Core Requirements βœ…

  • Cloud Deployment: FastAPI backend deployed on Google Cloud Run with GPU (NVIDIA L4)
  • LLM Integration: Gemini 2.5 Flash + Google’s virtual-try-on-preview-08-04 specialized model via Vertex AI
  • Agent Architecture: Multi-modal AI agent with intelligent fallback between specialized and general models
  • Production Ready: Containerized with Docker, auto-scaling, and comprehensive error handling

Technical Excellence 🎯

  • Code Quality: Clean architecture with Pydantic v2 validation, comprehensive docstrings, async/await operations
  • Error Handling: Graceful degradation, automatic model fallbacks, detailed error messages with proper HTTP codes
  • Performance: Optimized image processing pipeline, concurrent operations, GCS integration for image storage
  • Security: Service account authentication, input sanitization, CORS configuration, secure credential management

Innovation & Creativity πŸš€

  • Multi-Model Strategy: Combines specialized virtual try-on with general-purpose image generation
  • Hybrid Input Methods: Seamless handling of file uploads OR image URLs
  • Context-Aware Processing: Different AI strategies for fashion vs. home decor use cases
  • Intelligent Fallback: Automatic model selection based on availability and performance

User Experience 🎨

  • Frontend: Next.js with responsive design and real-time image processing feedback
  • API Design: RESTful endpoints with interactive Swagger documentation at /docs
  • Flexible Inputs: Multiple input methods (uploads/URLs) for maximum user convenience
  • Fast Processing: Optimized pipeline with progress indicators and clear error recovery

Technologies & Tools πŸ› οΈ

AI/ML Stack

  • Models: Gemini 2.5 Flash, virtual-try-on-preview-08-04
  • Platform: Google Vertex AI, Google GenAI SDK
  • Processing: PIL/Pillow, OpenCV, NumPy

Infrastructure

  • Backend: FastAPI, Python 3.8+, Uvicorn
  • Cloud: Google Cloud Run (GPU), Cloud Storage, Vertex AI
  • Frontend: Next.js, React
  • DevOps: Docker, automated CI/CD pipeline

Key Libraries

  • Validation: Pydantic v2 with comprehensive type checking
  • HTTP: Requests, aiohttp for async operations
  • Testing: Pytest with async support
  • Authentication: Google Cloud Service Account integration

Scaling & Production πŸ“ˆ

  • Auto-scaling: Cloud Run horizontal scaling based on demand
  • Optimization: Image preprocessing, connection pooling, efficient memory management
  • Monitoring: Health checks, comprehensive logging, error tracking
  • Reproducibility: Containerized deployment, locked dependencies, environment configuration

Live Demo Endpoints 🎬

  1. /google-virtual-tryon - Specialized model with realistic clothing visualization
  2. /virtual-tryon-fashion - Fashion-focused AI image generation
  3. /virtual-tryon-home - Interior design and decor placement
  4. /edit-image - AI-powered image editing with natural language prompts
  5. /generate-images - Text-to-image generation capabilities

The platform demonstrates cutting-edge AI integration with practical e-commerce applications, providing both technical innovation and real-world business value in the virtual try-on market.

AI Tinkerers Google Serp api vertex ai from google

git repo for the codebase

Summarizing URL...