MengZephyr / HairGANs

The Networks for "Hair-GAN: Recovering 3D Hair Structure from a Single Image using Generative Adversarial Networks"
GNU General Public License v3.0
149 stars 26 forks source link

HairGANs [Tensorflow]

The Networks for "Hair-GAN: Recovering 3D Hair Structure from a Single Image using Generative Adversarial Networks"

Ref.to [https://arxiv.org/abs/1811.06229]

🔔

This repository is a mess. Hope you can dig out something useful. Good luck!

Image text An overview of our Hair-GANs architecture. The generator and the discriminator are trained in conjunction.

./Ori_Conf_from_Img

This folder contains the code for orientation and confidence map generation with an image as input. Please begin from the "toRunConfidenceBuider" to track the implimentation of Unsupervised Texture Segmentation Using Gabor Filters

Part of the dataset

The folder includes: strand-level hair model, strip mesh hair model, a bust model, and some code (voxelhair.zip, StrandModel). In voxelhair.zip, there's something about how to generate the training data. Sorry, I can't make the code run now due to the incompatible of the compilation environment on my current PC. As the training dataset generated from the strand-level hair + bust model, is too large to be uploaded, I upload some examples in the folder of "training_data_example" for you to take a reference.

Citation

If you use our model or data, please cite our paper:

@article{zhang2019hair, title={Hair-GAN: Recovering 3D hair structure from a single image using generative adversarial networks}, author={Zhang, Meng and Zheng, Youyi}, journal={Visual Informatics}, volume={3}, number={2}, pages={102–112}, year={2019}, publisher={Elsevier} }