carpedm20 / DCGAN-tensorflow

A tensorflow implementation of "Deep Convolutional Generative Adversarial Networks"
http://carpedm20.github.io/faces/
MIT License
7.15k stars 2.63k forks source link

Solved some problems in my repo/解决了一些问题 #382

Closed SpaceHan closed 3 years ago

SpaceHan commented 4 years ago

https://github.com/HanZhizhi/DGGan

原代码中将测试生成数目与生成器噪声维度混用,本代码中将测试图片数目(原generate_test_images参数,改为num_test)与噪声维度参数(添加的input_noise_dim)分离; 源代码使用step计数保存训练权重及sample,改为通过epoch并增加save_epochs参数; 在优化器中添加学习率衰减tf.train.exponential_decay,衰减参数可自行调整,位于train方法开头;