Skip to content

harshita1611/VirtualTryOnPlatform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Try-On Platform

Welcome to the Virtual Try-On Platform! This project allows users to visualize how clothing will look on them by using advanced face-swapping technology. It captures an image of the user’s face and seamlessly swaps it with the face of a fashion model wearing the selected clothing. This project leverages the power of machine learning with a Hugging Face model called inswapper and is built with a modern tech stack.

Features

  • Face Swapping: Accurately swaps the user's face with that of a fashion model to give a realistic preview of how the clothing will look.
  • User Authentication: Secure user authentication powered by Clerk.
  • Frontend: Built with React, Tailwind CSS, and Vite for a fast and responsive user experience.
  • Backend: Python-based server using Flask, handling image processing and face swapping.
  • Extensible: Future plans include integrating AR/VR technology for an immersive experience that can extend beyond fashion to furniture and other items.

Screenshots

Full Page UI

Screenshot 2024-08-18 at 3 52 49 PM

Screenshot 2024-08-18 at 3 53 06 PM

Detailed UI Components

Screenshot 2024-08-18 at 3 57 32 PM Screenshot 2024-08-18 at 3 58 12 PM

Tech Stack

  • Frontend: React + Tailwind CSS + Vite
  • Backend: Flask (Python)
  • Authentication: Clerk
  • Machine Learning Model: inswapper (Hugging Face)

Installation

Backend Setup

  1. Clone the repository:
    git clone https://github.com/your-username/your-repo-name.git
  2. Navigate to the roop/roop directory:
    cd roop/roop
  3. Install the required Python packages:
    pip install -r requirements.txt
  4. Run the Flask server:
    python server.py

Frontend Setup

  1. Navigate to the frontend directory:
    cd frontend
  2. Install the necessary dependencies:
    npm install
  3. Start the development server:
    npm run dev

Usage

  1. Sign in using your credentials (handled by Clerk).
  2. Select the clothing item you want to try on.
  3. Upload your image with a full face view.
  4. The platform will process the images and display the result with your face swapped onto the model.

Future Scope

  • AR/VR Integration: Extend the platform to include AR/VR capabilities, allowing users to visualize not only clothing but also furniture, accessories, and more in a 3D environment.
  • Expanded Item Visualization: Enhance the platform to include a wide range of items, offering a comprehensive virtual shopping experience.

Contributing

Contributions are welcome! If you have ideas for improving the platform or adding new features, feel free to fork the repository and submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A Virtual Try On Platform made for imporving users experience of online shopping

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors