GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kishanthprab/tryOnWithGoogleImagen

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
static
static
 
 
templates
templates
 
 
README.md
README.md
 
 
app.py
app.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Virtual Try-On Application

A web application that allows users to virtually try on garments using Google's Virtual Try-On API.

Features

  • Upload full-body person images and garment images
  • Automatic image validation and preprocessing
  • Background removal for garments
  • Image resizing to 512x512 for API compatibility
  • Side-by-side comparison of original and try-on results
  • Multiple garment support without re-uploading person image
  • Zoom functionality for detailed viewing
  • Download try-on results
  • Responsive design

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Set up Google Cloud credentials:
export GOOGLE_CLOUD_PROJECT="your-project-id"
export GOOGLE_CLOUD_LOCATION="us-central1"
export GOOGLE_APPLICATION_CREDENTIALS="path/to/service-account-key.json"
  1. Run the application:
python app.py
  1. Open browser to http://localhost:5000

Usage

  1. Upload a full-body image of a person
  2. Upload one or more garment images
  3. Click "Try On" to generate the result
  4. View comparison, zoom, and download the result
  5. Switch between multiple garments without re-uploading person image

Requirements

  • Python 3.8+
  • Google Cloud Project with Virtual Try-On API enabled
  • Service account with appropriate permissions

API Configuration

The application uses Google Vertex AI Virtual Try-On API. Ensure:

  • API is enabled in your Google Cloud project
  • Endpoint is properly configured
  • Service account has necessary permissions

Error Handling

  • Invalid image formats are rejected
  • Person images must be full-body (height > width * 1.2)
  • Garment images must be at least 100x100 pixels
  • API errors are displayed to users with retry options
  • Graceful handling of network issues and API downtime

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.