ypxie / HDGan

Pytorch implementation of HDGan
150 stars 36 forks source link

Hierarchically-nested Adversarial Network (Pytorch implementation)

We call our method HDGAN, referring to High-Definition results and the idea of Hierarchically-nested Discriminators

Zizhao Zhang, Yuanpu Xie, Lin Yang, "Photographic Text-to-Image Synthesis with a Hierarchically-nested Adversarial Network", CVPR (2018) * indicates contribution

Visual results (Left: compared against StackGAN; Right: multi-resolution generator outputs)

Dependencies

Data

Download preprocessed data in /Data.

Training

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

Monitor your training in two ways

Testing

Evaluation

We provide multiple evaluation tools to ease test. Evaluation needs the sampled results obtained in Testing and saved in ./Results.

Inception score

MS-SSIM

VS-Similarity

Pretrained Models

We provide pretrained models for birds, flowers, and coco.

Acknowlegements

Citation

If you find HDGAN useful in your research, please cite:

@inproceedings{zhang2018hdgan,
Author = {Zizhao Zhang and Yuanpu Xie and Lin Yang},
Title = {Photographic Text-to-Image Synthesis with a Hierarchically-nested Adversarial Network},
Year = {2018},
booktitle = {CVPR},
}

License

MIT