DCGAN in Tensorflow [적대적 신경망]

DCGAN-tensorflow-master.zip

DCGAN in Tensorflow

Tensorflow implementation of Deep Convolutional Generative Adversarial Networks which is a stabilize Generative Adversarial Networks. The referenced torch code can be found here.

alt tag

  • Brandon Amos wrote an excellent blog post and image completion code 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

link

Prerequisites

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

celebA

After 6th epoch:

result3

After 10th epoch:

result4

Asian face dataset

custom_result1

custom_result1

custom_result2

경축! 아무것도 안하여 에스천사게임즈가 새로운 모습으로 재오픈 하였습니다.
어린이용이며, 설치가 필요없는 브라우저 게임입니다.
https://s1004games.com

MNIST

MNIST codes are written by @PhoenixDai.

mnist_result1

mnist_result2

mnist_result3

More results can be found here and here.

Training details

Details of the loss of Discriminator and Generator (with custom dataset not celebA).

d_loss

g_loss

Details of the histogram of true and fake result of discriminator (with custom dataset not celebA).

d_hist

d__hist

Related works

Author

Taehoon Kim / @carpedm20

 

[출처] https://github.com/carpedm20/DCGAN-tensorflow

 

 

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
공지 오라클 기본 샘플 데이터베이스 졸리운_곰 2014.01.02 86168
공지 [SQL컨셉] 서적 "SQL컨셉"의 샘플 데이타 베이스 SAMPLE DATABASE of ORACLE 가을의 곰을... 2013.02.10 78656
공지 [G_SQL] Sample Database 가을의 곰을... 2012.05.20 95391
118 한국어 BERT, HanBert를 소개합니다. file 졸리운_곰 2020.09.25 2011
117 한국어 자연어 처리 데이터셋 목록 file 졸리운_곰 2020.09.20 2062
116 Google Colab 사용하기 file 졸리운_곰 2020.09.08 3673
115 Deep Learning (Keras) Models Deployment using SQL databases file 졸리운_곰 2020.08.04 1254
114 Deep Learning (Keras) Models Deployment using SQL databases 졸리운_곰 2020.08.04 1005
113 ubuntu에서 pytorch gpu 버전 설치 과정 정리 file 졸리운_곰 2020.07.28 1865
» DCGAN in Tensorflow [적대적 신경망] file 졸리운_곰 2020.06.07 1303
111 char-rnn char-rnn-tensorflow-master [한글] [korean] file 졸리운_곰 2020.06.07 1011
110 This Repository is Reinforcement Learning Agent FrameWork file 졸리운_곰 2020.06.07 1354
109 anaconda에서 가상환경 삭제하기 졸리운_곰 2020.06.06 1346
108 Tensorflow 1.4 개발 환경 설치(Windows 10, CUDA 8.0, cuDNN v6.0, GPU 버전) file 졸리운_곰 2020.06.06 1054
107 [Tensorflow] Tensorflow GPU 버전 설치하기 file 졸리운_곰 2020.06.06 2300
106 Generative Adversarial Network : DCGAN을 이용한 이미지 생성 file 졸리운_곰 2020.04.20 1510
105 Question answering with TensorFlow file 졸리운_곰 2020.04.06 1394
104 scikit-learn을 활용한 기계 학습 file 졸리운_곰 2020.01.29 1128
103 사이킷런(Scikit-learn) vs 텐서플로우(TensorFlow) 졸리운_곰 2020.01.28 1041
102 char-lstm-rnn-keras, Kinetic korean 한글 file 졸리운_곰 2020.01.28 1518
101 min-char-rnn 한글 주해(3) - 손실값 계산, 그래디언트 계산, 문자 출력함수 file 졸리운_곰 2020.01.28 917
100 min-char-rnn 한글 주해(2) - 메인 루프 file 졸리운_곰 2020.01.28 1179
99 min-char-rnn 한글 주해(1) - 데이터 준비, 변수 초기화 file 졸리운_곰 2020.01.28 1256
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED