← Open Source
sangyun884

HR-VITON

Official PyTorch implementation for the paper High-Resolution Virtual Try-On with Misalignment and Occlusion-Handled Conditions (ECCV 2022).

ModelsVision modelsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
917
Stars
192
Forks
+0
This week
4
Contributors
Created 2022-06-25 · Updated 2026-10-05 · #12656 today
Top developers
koo616sangyun884KerolosAtef

sangyun884/HR-VITON is ranked 12,656 with 917 stars.

Same-category comparison

sangyun884/HR-VITON is ranked 12,656 among these 8 peers; huggingface/torchMoji is ranked 12,636.

Same-category comparison
NameRankMetrics
facebookresearch/mobile-vision12,613
Language:
Python
Stars:
922
Forks:
168
Description:
Mobile vision models and code.
Vchitect/Vchitect-2.012,621
Language:
Python
Stars:
921
Forks:
22
Description:
Vchitect-2.0: Parallel Transformer for Scaling Up Video Diffusion Models.
360CVGroup/FancyVideo12,628
Language:
Python
Stars:
920
Forks:
51
Description:
Video generation from text&image, 1st-gen.
huggingface/torchMoji12,636
Language:
Python
Stars:
920
Forks:
185
Description:
😇A pyTorch implementation of the DeepMoji model: state-of-the-art deep learning model for analyzing sentiment, emotion, sarcasm etc.
xuelunshen/gim12,688
Language:
Python
Stars:
912
Forks:
63
Description:
GIM: Learning Generalizable Image Matcher From Internet Videos (ICLR 2024 Spotlight).
facebookresearch/cwm12,697
Language:
Python
Stars:
910
Forks:
74
Description:
Research code artifacts for Code World Model (CWM) including inference tools, reproducibility, and documentation.
reedscot/icml201612,704
Language:
Lua
Stars:
910
Forks:
216
Description:
Generative Adversarial Text-to-Image Synthesis.
OpenDriveLab/Vista12,719
Language:
Python
Stars:
908
Forks:
63
Description:
[NeurIPS 2024] A Generalizable World Model for Autonomous Driving.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModels
SubcategoryVision models
KeywordsImage production
Stars917
Forks192
Contributors4
Created date2022-06-25
Updated date2026-10-05
Stars in 1 day0
Stars in 7 days0
Rank12,656
Previous rank12,574
Rank change-82
7-day stars rank13,537
Previous 7-day stars rank13,549
7-day stars rank change12
Total stars rank11,894
Previous total stars rank11,876
Total stars rank change-18
CountryUSA
README summary

HR-VITON — Official PyTorch Implementation **\*\*\*\*\* New follow-up research by our team is available at \*\*\*\*\*** Our Team's Researches (1) PromptDresser ( - Arxiv 24. 12 (2) StableVITON ( - CVPR 2024 (3) VITON-HD ( - CVPR 2021 **High-Resolution Virtual Try-On with Misalignment and Occlusion-Handled Conditions** Sangyun Lee\* 1 , Gyojung Gu\* 2,3 , Sunghyun Park 2 , Seunghwan Choi 2 , Jaegul Choo 2 1 Soongsil University, 2 KAIST, 3 Nestyle In ECCV 2022 (* indicates equal contribution) Paper: Project page: **Abstract:** *Image-based virtual

try-on aims to synthesize an image of a person wearing a given clothing item. To solve the task, the existing methods warp the clothing item to fit the person's body and generate the segmentation map of the person wearing the item before fusing the item with the person. However, when the warping and the segmentation generation stages operate individually without information exchange, the misalignment between the warped clothes and the segmentation map occurs, which leads to the artifacts in

the final image. The information disconnection also causes excessive warping near the clothing regions occluded by the body parts, so-called pixel-squeezing artifacts. To settle the issues, we propose a novel try-on condition generator as a unified module of the two stages (i. , warping and segmentation generation stages). A newly proposed feature fusion block in the condition generator implements the information exchange, and the condition generator does not create any misalignment or pixel-squeezing artifacts. We also introduce

discriminator rejection that filters out the incorrect segmentation map predictions and assures the performance of virtual try-on frameworks. Experiments on a high-resolution dataset demonstrate that our model successfully handles the misalignment and occlusion, and significantly outperforms the baselines. * Installation Clone this repository: Install PyTorch and other dependencies: Dataset We train and evaluate our model using the dataset from VITON-HD: High-Resolution Virtual Try-On via Misalignment-Aware Normalization. To download the dataset, please check the following link

We assume that you have downloaded it into . Inference Here are the download links for each model checkpoint: Try-on condition generator: link Try-on condition generator (discriminator): link Try-on image generator: link AlexNet (LPIPS): link, we assume that you have downloaded it into . Train try-on condition generator Train try-on image generator This stage takes approximately 4 days with two RTX 3090 GPUs. License All material is made available under Creative Commons BY-NC 4. You can

**use, redistribute, and adapt** the material for **non-commercial purposes**, as long as you give appropriate credit by **citing our paper** and **indicate any changes** that you've made. Citation If you find this work useful for your research, please cite our paper:

Frequently asked questions

How many stars and forks are recorded?

sangyun884/HR-VITON has 917 stars and 192 forks.

What is the repository rank?

sangyun884/HR-VITON is ranked 12,656.

What language and category are recorded?

sangyun884/HR-VITON has 917 stars, uses Python and belongs to Models.

Which repository is closest in rank?

sangyun884/HR-VITON is compared with huggingface/torchMoji, ranked 12,636 with 920 stars.

README

HR-VITON — Official PyTorch Implementation

***** New follow-up research by our team is available at https://github.com/rlawjdghek/PromptDresser *****

Our Team's Researches

(1) PromptDresser (https://github.com/rlawjdghek/PromptDresser) - Arxiv 24.12

(2) StableVITON (https://github.com/rlawjdghek/StableVITON) - CVPR 2024

(3) VITON-HD (https://github.com/shadow2496/VITON-HD) - CVPR 2021

High-Resolution Virtual Try-On with Misalignment and Occlusion-Handled Conditions

Sangyun Lee*1, Gyojung Gu*2,3, Sunghyun Park2, Seunghwan Choi2, Jaegul Choo2

1Soongsil University, 2KAIST, 3Nestyle

In ECCV 2022 (* indicates equal contribution)

Paper: https://arxiv.org/abs/2206.14180

Project page: https://koo616.github.io/HR-VITON

Abstract: Image-based virtual try-on aims to synthesize an image of a person wearing a given clothing item. To solve the task, the existing methods warp the clothing item to fit the person's body and generate the segmentation map of the person wearing the item before fusing the item with the person. However, when the warping and the segmentation generation stages operate individually without information exchange, the misalignment between the warped clothes and the segmentation map occurs, which leads to the artifacts in the final image. The information disconnection also causes excessive warping near the clothing regions occluded by the body parts, so-called pixel-squeezing artifacts. To settle the issues, we propose a novel try-on condition generator as a unified module of the two stages (i.e., warping and segmentation generation stages). A newly proposed feature fusion block in the condition generator implements the information exchange, and the condition generator does not create any misalignment or pixel-squeezing artifacts. We also introduce discriminator rejection that filters out the incorrect segmentation map predictions and assures the performance of virtual try-on frameworks. Experiments on a high-resolution dataset demonstrate that our model successfully handles the misalignment and occlusion, and significantly outperforms the baselines.

Installation

Clone this repository:

git clone https://github.com/sangyun884/HR-VITON.git
cd ./HR-VITON/

Install PyTorch and other dependencies:

conda create -n {env_name} python=3.8
conda activate {env_name}
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch-lts -c nvidia
pip install opencv-python torchgeometry Pillow tqdm tensorboardX scikit-image scipy

Dataset

We train and evaluate our model using the dataset from VITON-HD: High-Resolution Virtual Try-On via Misalignment-Aware Normalization.

To download the dataset, please check the following link https://github.com/shadow2496/VITON-HD.

We assume that you have downloaded it into ./data.

Inference

Here are the download links for each model checkpoint:

  • Try-on condition generator: link
  • Try-on condition generator (discriminator): link
  • Try-on image generator: link
  • AlexNet (LPIPS): link, we assume that you have downloaded it into ./eval_models/weights/v0.1.
python3 test_generator.py --occlusion --cuda {True} --test_name {test_name} --tocg_checkpoint {condition generator ckpt} --gpu_ids {gpu_ids} --gen_checkpoint {image generator ckpt} --datasetting unpaired --dataroot {dataset_path} --data_list {pair_list_textfile}

Train try-on condition generator

python3 train_condition.py --cuda {True} --gpu_ids {gpu_ids} --Ddownx2 --Ddropout --lasttvonly --interflowloss --occlusion

Train try-on image generator

python3 train_generator.py --cuda {True} --name test -b 4 -j 8 --gpu_ids {gpu_ids} --fp16 --tocg_checkpoint {condition generator ckpt path} --occlusion

This stage takes approximately 4 days with two RTX 3090 GPUs. Tested environment: PyTorch 1.8.2+cu111.

To use "--fp16" option, you should install apex library.

License

All material is made available under Creative Commons BY-NC 4.0. You can use, redistribute, and adapt the material for non-commercial purposes, as long as you give appropriate credit by citing our paper and indicate any changes that you've made.

Citation

If you find this work useful for your research, please cite our paper:

@article{lee2022hrviton,
  title={High-Resolution Virtual Try-On with Misalignment and Occlusion-Handled Conditions},
  author={Lee, Sangyun and Gu, Gyojung and Park, Sunghyun and Choi, Seunghwan and Choo, Jaegul},
  journal={arXiv preprint arXiv:2206.14180},
  year={2022}
}
Nearby in the ranking
Similar items