Skip to content

This repository hosts an open-source implementation of Virtual Try-On (VITON) — a computer vision system that allows users to virtually try clothes on a person image. Our goal is to create an open, community-driven platform for AI-based fashion visualization that anyone can use, improve, and extend.

Notifications You must be signed in to change notification settings

VisionAI4Bharat/OpenVITON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

👗 Open Source Virtual Try-On (VITON)

👋 Welcome to the Open Source Virtual Try-On Project!

This repository hosts an open-source implementation of Virtual Try-On (VITON) — a computer vision system that allows users to virtually try clothes on a person image.
Our goal is to create an open, community-driven platform for AI-based fashion visualization that anyone can use, improve, and extend.


🚀 Features

  • 👕 Cloth Warping: Aligns clothing items with human body shape using advanced geometric matching.
  • 🧍 Person Image Synthesis: Generates realistic try-on results preserving person identity and pose.
  • 🧠 Deep Learning Backbone: Based on PyTorch with modular architecture for easy experimentation.
  • 🔧 Custom Dataset Support: Train or test with your own images (clothes + person).
  • 🧩 Community Contributions: Built for open collaboration — anyone can contribute!

🧰 Tech Stack

  • Framework: PyTorch
  • Core Models: GMM (Geometric Matching Module), Try-On Synthesis Network
  • Languages: Python
  • Supported Platforms: Linux, macOS, Windows
  • Optional Tools: OpenCV, NumPy, Pillow, Matplotlib

📂 Project Structure

viton/
├── data/                # Dataset folder (cloth + person images)
├── models/              # Model definitions
├── checkpoints/         # Pretrained weights (if any)
├── utils/               # Helper functions
├── train.py             # Training script
├── test.py              # Inference script
├── requirements.txt     # Dependencies
└── README.md            # Project documentation

⚙️ Installation

# Clone this repository
git clone https://github.com/<your-username>/VITON.git
cd VITON

# Create and activate a virtual environment (optional but recommended)
python -m venv viton_env
source viton_env/bin/activate  # (Linux/Mac)
viton_env\Scripts\activate     # (Windows)

# Install dependencies
pip install -r requirements.txt

🧪 Usage

1️⃣ Prepare your dataset

Organize your dataset as:

data/
├── person/
│   ├── person1.jpg
│   ├── person2.jpg
├── cloth/
│   ├── cloth1.jpg
│   ├── cloth2.jpg

2️⃣ Run Virtual Try-On

python test.py --person data/person/person1.jpg --cloth data/cloth/cloth1.jpg

Output will be saved in the results/ folder.


🧠 Training (Optional)

If you want to train from scratch:

python train.py --dataset data/ --epochs 50

📚 Official Research Papers

🧩 VITON (Baseline Paper)

"VITON: An Image-based Virtual Try-on Network"
Xintong Han, Zuxuan Wu, Zhe Wu, Ruichi Yu, Larry S. Davis
CVPR 2018
[Paper Link]

Citation:

@inproceedings{han2018viton,
  title={VITON: An Image-based Virtual Try-on Network},
  author={Han, Xintong and Wu, Zuxuan and Wu, Zhe and Yu, Ruichi and Davis, Larry S},
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
  year={2018},
  pages={7543--7552}
}

🧩 VITON-HD (High-Resolution Virtual Try-On)

"VITON-HD: High-Resolution Virtual Try-On via Misalignment-Aware Normalization"
Seunghwan Choi, Sunghyun Park, Minsoo Lee, Jaegul Choo
KAIST, CVPR 2021
[Paper Link]

Summary:
VITON-HD extends VITON to produce high-resolution and detail-preserving try-on results using misalignment-aware normalization, which better handles pose and clothing deformations.

Citation:

@inproceedings{choi2021vitonhd,
  title={VITON-HD: High-Resolution Virtual Try-On via Misalignment-Aware Normalization},
  author={Choi, Seunghwan and Park, Sunghyun and Lee, Minsoo and Choo, Jaegul},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
  year={2021}
}

🤝 Contributing

We welcome all contributions — bug fixes, model improvements, documentation updates, or new ideas!
Follow these steps to contribute:

  1. Fork the repository
  2. Create a new branch (feature/your-feature-name)
  3. Commit your changes
  4. Push to your fork
  5. Open a Pull Request

We will review and merge your contribution after testing.


🧩 Roadmap

  • Improved Cloth-Person Alignment
  • Web-based Demo (Streamlit / Gradio)
  • Multi-person Try-On
  • Integration with OpenPose / Body Segmentation
  • Mobile-friendly Inference

🧑‍💻 Maintainers

This project is maintained by the Open Source AI Community.
Everyone is encouraged to join and collaborate!


📜 License

This project is licensed under the MIT License — free to use, modify, and distribute.
See the LICENSE file for details.


⭐ Support the Project

If you find this project useful, please star ⭐ this repository to support the open-source community!


📬 Contact

For questions, ideas, or collaboration:


🌍 “Open source is not just code — it’s collaboration.”

About

This repository hosts an open-source implementation of Virtual Try-On (VITON) — a computer vision system that allows users to virtually try clothes on a person image. Our goal is to create an open, community-driven platform for AI-based fashion visualization that anyone can use, improve, and extend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published