Home

Awesome

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

<p align="center"> <img src ="Figures/arch.jpg" width="1200px" /> </p> <p align="center" > Visual results (Left: compared against StackGAN; Right: multi-resolution generator outputs) <img src ="Figures/samples.png" width="1200px" /> </p>

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