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.
- 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.
- Frontend: React + Tailwind CSS + Vite
- Backend: Flask (Python)
- Authentication: Clerk
- Machine Learning Model:
inswapper(Hugging Face)
- Clone the repository:
git clone https://github.com/your-username/your-repo-name.git
- Navigate to the
roop/roopdirectory:cd roop/roop - Install the required Python packages:
pip install -r requirements.txt
- Run the Flask server:
python server.py
- Navigate to the
frontenddirectory:cd frontend - Install the necessary dependencies:
npm install
- Start the development server:
npm run dev
- Sign in using your credentials (handled by Clerk).
- Select the clothing item you want to try on.
- Upload your image with a full face view.
- The platform will process the images and display the result with your face swapped onto the model.
- 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.
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.
This project is licensed under the MIT License - see the LICENSE file for details.

