실행 결과
Model: "model_1" _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= input_2 (InputLayer) [(None, 100)] 0 _________________________________________________________________ sequential_2 (Sequential) (None, 28, 28, 1) 865281 _________________________________________________________________ sequential_3 (Sequential) (None, 1) 212865 ================================================================= Total params: 1,078,146 Trainable params: 852,609 Non-trainable params: 225,537 _________________________________________________________________ epoch:0 d_loss:0.7238 g_loss:0.5319 ... (중략) ... epoch:2000 d_loss:0.4667 g_loss:2.1844
시작 이미지:
Epoch 1000:
Epoch 2000:
그림 19-5 | GAN 실행 결과
Epoch 2000까지 진행했을 때의 결과입니다. 점점 숫자에 가까운 형태가 만들어집니다. 생성된 이미지들은 gan_images 폴더에 저장됩니다.