Skip to content

Commit

Permalink
KerasKorea#12 : 주석 번역 완료. 맞춤법 및 오타 확인 필요
Browse files Browse the repository at this point in the history
  • Loading branch information
mike2ox committed Oct 16, 2018
1 parent 3907d31 commit b5b5bb4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions 12_GAN_with_Keras-Application_to_Image_Deblurring.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,19 +309,20 @@ for epoch in range(epoch_num):
```python
for epoch in range(epoch_num):
for index in range(batches):
# [Batch Preparation]
# [배치 준비]

# Generate fake inputs
# 가짜 입력값을 생성합니다.
generated_images = g.predict(x=image_blur_batch, batch_size=batch_size)

# Train multiple times discriminator on real and fake inputs
# 실제, 가짜 입력값을 기반으로 식별자를 학습시킵니다.
for _ in range(critic_updates):
d_loss_real = d.train_on_batch(image_full_batch, output_true_batch)
d_loss_fake = d.train_on_batch(generated_images, output_false_batch)
d_loss = 0.5 * np.add(d_loss_fake, d_loss_real)

d.trainable = False
# Train generator only on discriminator's decision and generated images

# 식별자의 판단과 생성된 이미지를 기반으로 생성자를 학습시킵니다.
d_on_g_loss = d_on_g.train_on_batch(image_blur_batch, [image_full_batch, output_true_batch])

d.trainable = True
Expand Down

0 comments on commit b5b5bb4

Please sign in to comment.