Skip to content

Commit 4d1975e

Browse files
author
wangyang59
committed
change gan tutorial image size
1 parent f005d91 commit 4d1975e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/tutorials/gan/index_en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This demo implements GAN training described in the original GAN paper (https://a
44

55
The high-level structure of GAN is shown in Figure. 1 below. It is composed of two major parts: a generator and a discriminator, both of which are based on neural networks. The generator takes in some kind of noise with a known distribution and transforms it into an image. The discriminator takes in an image and determines whether it is artificially generated by the generator or a real image. So the generator and the discriminator are in a competitive game in which generator is trying to generate image to look as real as possible to fool the discriminator, while the discriminator is trying to distinguish between real and fake images.
66

7-
<center>![](./gan.png)</center>
7+
<center>![](./gan.png =300x)</center>
88
<center>Figure 1. GAN-Model-Structure</center>
99

1010
The generator and discriminator take turn to be trained using SGD. The objective function of the generator is for its generated images being classified as real by the discriminator, and the objective function of the discriminator is to correctly classify real and fake images. When the GAN model is trained to converge to the equilibrium state, the generator will transform the given noise distribution to the distribution of real images, and the discriminator will not be able to distinguish between real and fake images at all.
@@ -106,7 +106,7 @@ $python gan_trainer.py -d uniform --useGpu 1
106106
```
107107
The generated samples can be found in ./uniform_samples/ and one example is shown below as Figure 2. One can see that it roughly recovers the 2D uniform distribution.
108108

109-
<center>![](./uniform_sample.png)</center>
109+
<center>![](./uniform_sample.png =300x)</center>
110110
<center>Figure 2. Uniform Sample</center>
111111

112112
## MNIST Example

0 commit comments

Comments
 (0)