👕 ICCV'21 Paper | :jeans: Project Page | :womans_clothes: arXiv | 🎽 Video Talk | :dress: Running This Code
The official implementation of "Dressing in Order: Recurrent Person Image Generation for Pose Transfer, Virtual Try-on and Outfit Editing." by Aiyu Cui, Daniel McKee and Svetlana Lazebnik. (ICCV 2021)
:bell: Updates
Supported Try-on Applications
Supported Editing Applications
More results
A directly runable demo can be found in our Colab! !
Deepfashion Dataset can be found from DeepFashion MultiModal Source.
To set up the dataset in your specified data folder $DATA_ROOT
, run:
pip install --upgrade gdown
python tools/download_deepfashion_from_google_drive.py --dataroot $DATA_ROOT
This script will automatically download all the necessary data from Google Drives (
images source, parse source, annotation source) to your the specified $DATA_ROOT
in desired format.
Please install the environment based on your need.
Required packages are
torch
torchvision
tensorboardX
scikit-image==0.16.2
The version of torch/torchvison is not restricted for inference.
Note the training process requires CUDA functions provided by GFLA, which can only compile with torch=1.0.0.
To start training, please follow the installation instruction in GFLA to install the environment.
Then run pip install -r requirements.txt
.
The pretrained weights can be found here. Please unzip them under checkpoints/
directory.
(The checkpoints above are reproduced, so there could be slightly difference in quantitative evaluation from the reported results. To get the original results, please check our released generated images here.)
(DIORv1_64
was trained with a minor difference in code, but it may give better visual results in some applications. If one wants to try it, specify --netG diorv1
.)
Warmup the Global Flow Field Estimator
Note, if you don't want to warmup the Global Flow Field Estimator, you can extract its weights from GFLA by downloading the pretrained weights GFLA from here. (Check Issue #23 for how to extract weights from GFLA.)
Otherwise, run
sh scripts/run_pose.sh
Training
After warming up the flownet, train the pipeline by
sh scripts/run_train.sh
Run tensorboard --logdir checkpoints/$EXP_NAME/train
to check tensorboard.
Note: Resetting discriminators may help training when it stucks at local minimals.
Download Generated Images
Here are our generated images which are used for the evaluation reported in the paper. (Deepfashion Dataset)
SSIM, FID and LPIPS
To run evaluation (SSIM, FID and LPIPS) on pose transfer task:
sh scripts/run_eval.sh
please always specific --frozen_flownet
for inference.
If you find this work is helpful, please consider starring :star2: this repo and citing us as
@InProceedings{Cui_2021_ICCV,
author = {Cui, Aiyu and McKee, Daniel and Lazebnik, Svetlana},
title = {Dressing in Order: Recurrent Person Image Generation for Pose Transfer, Virtual Try-On and Outfit Editing},
booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
month = {October},
year = {2021},
pages = {14638-14647}
}
This repository is built up on GFLA, pytorch-CycleGAN-and-pix2pix, PATN and MUNIT. Please be aware of their licenses when using the code.
Thanks a lot for the great work to the pioneer researchers!