DCGAN-tensorflow-master

所属分类:matlab编程
开发工具:matlab
文件大小:39790KB
下载次数:32
上传日期:2019-01-08 15:25:53
上 传 者mmww
说明:  matlab语言的卷积神经网络,方便快捷搞科研。
(Convolutional neural network in MATLAB language is convenient and fast for scientific research.)

文件列表:
DCGAN.png (150616, 2018-04-12)
LICENSE (1078, 2018-04-12)
assets (0, 2018-04-12)
assets\custom_dataset.png (499759, 2018-04-12)
assets\d__hist.png (354853, 2018-04-12)
assets\d_hist.png (389671, 2018-04-12)
assets\d_loss.png (98740, 2018-04-12)
assets\g_loss.png (107790, 2018-04-12)
assets\mnist1.png (28739, 2018-04-12)
assets\mnist2.png (26911, 2018-04-12)
assets\mnist3.png (27204, 2018-04-12)
assets\result_16_01_03.png (591739, 2018-04-12)
assets\result_16_01_04.png (522641, 2018-04-12)
assets\result_16_01_04_.png (529986, 2018-04-12)
assets\test_2016-01-27 15_07_47.png (517183, 2018-04-12)
assets\test_2016-01-27 15_08_45.png (519518, 2018-04-12)
assets\test_2016-01-27 15_08_54.png (516792, 2018-04-12)
assets\test_2016-01-27 15_08_57.png (526557, 2018-04-12)
assets\test_2016-01-27 15_09_00.png (522185, 2018-04-12)
assets\test_2016-01-27 15_09_04.png (525630, 2018-04-12)
assets\test_2016-01-27 15_09_46.png (527506, 2018-04-12)
assets\test_2016-01-27 15_09_50.png (515963, 2018-04-12)
assets\training.gif (15299008, 2018-04-12)
average.png (8603, 2018-04-12)
download.py (5375, 2018-04-12)
main.py (4280, 2018-04-12)
model.py (19955, 2018-04-12)
ops.py (3656, 2018-04-12)
utils.py (8724, 2018-04-12)
web (0, 2018-04-12)
web\app.py (283, 2018-04-12)
web\css (0, 2018-04-12)
web\css\fakeLoader.css (7851, 2018-04-12)
web\css\font-awesome.min.css (21984, 2018-04-12)
web\css\main.css (11611, 2018-04-12)
web\fonts (0, 2018-04-12)
web\fonts\FontAwesome.otf (85908, 2018-04-12)
... ...

# DCGAN in Tensorflow Tensorflow implementation of [Deep Convolutional Generative Adversarial Networks](http://arxiv.org/abs/1511.0***34) which is a stabilize Generative Adversarial Networks. The referenced torch code can be found [here](https://github.com/soumith/dcgan.torch). ![alt tag](DCGAN.png) * [Brandon Amos](http://bamos.github.io/) wrote an excellent [blog post](http://bamos.github.io/2016/08/09/deep-completion/) and [image completion code](https://github.com/bamos/dcgan-completion.tensorflow) based on this repo. * *To avoid the fast convergence of D (discriminator) network, G (generator) network is updated twice for each D network update, which differs from original paper.* ## Online Demo [](http://carpedm20.github.io/faces/) [link](http://carpedm20.github.io/faces/) ## Prerequisites - Python 2.7 or Python 3.3+ - [Tensorflow 0.12.1](https://github.com/tensorflow/tensorflow/tree/r0.12) - [SciPy](http://www.scipy.org/install.html) - [pillow](https://github.com/python-pillow/Pillow) - (Optional) [moviepy](https://github.com/Zulko/moviepy) (for visualization) - (Optional) [Align&Cropped Images.zip](http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html) : Large-scale CelebFaces Dataset ## Usage First, download dataset with: $ python download.py mnist celebA To train a model with downloaded dataset: $ python main.py --dataset mnist --input_height=28 --output_height=28 --train $ python main.py --dataset celebA --input_height=108 --train --crop To test with an existing model: $ python main.py --dataset mnist --input_height=28 --output_height=28 $ python main.py --dataset celebA --input_height=108 --crop Or, you can use your own dataset (without central crop) by: $ mkdir data/DATASET_NAME ... add images to data/DATASET_NAME ... $ python main.py --dataset DATASET_NAME --train $ python main.py --dataset DATASET_NAME $ # example $ python main.py --dataset=eyes --input_fname_pattern="*_cropped.png" --train If your dataset is located in a different root directory: $ python main.py --dataset DATASET_NAME --data_dir DATASET_ROOT_DIR --train $ python main.py --dataset DATASET_NAME --data_dir DATASET_ROOT_DIR $ # example $ python main.py --dataset=eyes --data_dir ../datasets/ --input_fname_pattern="*_cropped.png" --train ## Results ![result](assets/training.gif) ### celebA After 6th epoch: ![result3](assets/result_16_01_04_.png) After 10th epoch: ![result4](assets/test_2016-01-27%2015:08:54.png) ### Asian face dataset ![custom_result1](web/img/change5.png) ![custom_result1](web/img/change2.png) ![custom_result2](web/img/change4.png) ### MNIST MNIST codes are written by [@PhoenixDai](https://github.com/PhoenixDai). ![mnist_result1](assets/mnist1.png) ![mnist_result2](assets/mnist2.png) ![mnist_result3](assets/mnist3.png) More results can be found [here](./assets/) and [here](./web/img/). ## Training details Details of the loss of Discriminator and Generator (with custom dataset not celebA). ![d_loss](assets/d_loss.png) ![g_loss](assets/g_loss.png) Details of the histogram of true and fake result of discriminator (with custom dataset not celebA). ![d_hist](assets/d_hist.png) ![d__hist](assets/d__hist.png) ## Related works - [BEGAN-tensorflow](https://github.com/carpedm20/BEGAN-tensorflow) - [DiscoGAN-pytorch](https://github.com/carpedm20/DiscoGAN-pytorch) - [simulated-unsupervised-tensorflow](https://github.com/carpedm20/simulated-unsupervised-tensorflow) ## Author Taehoon Kim / [@carpedm20](http://carpedm20.github.io/)

近期下载者

相关文件


收藏者