Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Gradio-Based Virtual Clothing Try-On App

Virtual Clothing Try-On Demo

This is a Gradio web application that allows users to virtually try on clothing. By uploading an image of a garment and an image of a person, the application will generate a final image showing the person realistically wearing the garment. This demo utilizes the Google Gemini AI model for image generation.

Overview:

Have you ever wondered how a specific piece of clothing would look on you or someone else? This application provides a fun and easy way to visualize that! Simply upload images of the clothing item and the person, and let AI do the rest.

Key Features:

  • Realistic Virtual Try On: Generates an image of a person realistically wearing a chosen garment.
  • Simple User Interface: Built with Gradio, providing an intuitive and easy-to-use web interface.
  • Powered by Google Gemini AI: Leverages the power of Google's advanced image generation model for high-quality results.
  • Example Images Provided: Includes pre-loaded examples to quickly get started and see the app in action.

How to Use:

  1. Upload Garment Image: Click on the "Imagen de la prenda" (Garment Image) upload box and select an image of the clothing item you want to try on.
  2. Upload Person Image: Click on the "Imagen de la persona" (Person Image) upload box and select an image of the person who will be "wearing" the garment.
  3. View the Result: The application will process the images and display the generated "Imagen final" (Final Image) showing the person wearing the uploaded garment.
  4. Try Examples: You can also click on the example images provided below the upload boxes to quickly test the application with pre-selected images.

Examples:

The application includes the following example image pairs to demonstrate its capabilities:

Garment Image Person Image
Striped T-Shirt Image of fashionable duo in stylish pleated outfits
Gingham Linen Blend V-Neck Dress Image of a woman smiling
Black Pleated Wide Pants Image of a man looking away
Blue Linen Blend Camisole Dress Image of a woman in a red dress

(Note 📝: You might need to update these links if you are hosting the images locally or using different examples.)

Screenshot 2025-04-05 at 20 41 16

Valetta Two-Piece Dress (Reformation)

Dependencies:

The application relies on the following Python libraries:

  • google-generativeai
  • Pillow (PIL)
  • gradio

You can install these libraries using pip:

Screenshot 2025-04-05 at 21 06 14

About

Gradio-Based Virtual Clothing Try-On App

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages