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.
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.
- 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.
- 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.
- 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.
- View the Result: The application will process the images and display the generated "Imagen final" (Final Image) showing the person wearing the uploaded garment.
- Try Examples: You can also click on the example images provided below the upload boxes to quickly test the application with pre-selected images.
The application includes the following example image pairs to demonstrate its capabilities:
(Note 📝: You might need to update these links if you are hosting the images locally or using different examples.)
Valetta Two-Piece Dress (Reformation)
The application relies on the following Python libraries:
google-generativeaiPillow (PIL)gradio
You can install these libraries using pip: