Skip to content

linwu-github/Person-Image-Generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Person-Image-Generation

Readme

Pytorch implementation for reproducing PIG-MM

Dependencies

  • Python 3+
  • Pytorch 0.3.+
  • Anaconda 3.6+

Data

pretrain model

Train

  • go to train/train_gan:

  • some pathes to dataset and model in the code should redirection to your own path

python train_worker.py
  • To use multiple GPUs, simply set device='0,1,..' as a set of gpu ids.

Test

  • go to test:
python test_worker.py

Tips

  • we use the first 10k training set due to limited computing resources, but we also do the experiment on the whole training set.
  • 3206 is class_num of 10k training set && 11003 is class_num of whole training set
  • the training on the whole train set (30k) is hard, model collapse may happen sometimes, we suggest you to finetune the parameter, e.g, id_loss_rate.. or just re-train the model use the same parameter(I have tried, it is useful.)

Acknowledgements

HDGanPytorch implementation

StakGAN Pytorch implementation

AttanGanPytorch implementation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages