Skip to content

Commit e12320c

Browse files
Update README.md
1 parent 170a544 commit e12320c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/VisualGAN/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
In this example, 2 neural networks will enter an arms race via a [Generative Adversarial Neural Network](https://en.wikipedia.org/wiki/Generative_adversarial_network): `FGenerative` and `FDiscriminator`. The Generative network will learn how to create images while the discriminator will compare these images against the CIFAR-10 dataset.
55

6+
## The Source Code
67
The discriminator `FDiscriminator` is trained via `TNeuralDataLoadingFit`:
78
```
89
FFit.OnAfterEpoch := @Self.DiscriminatorOnAfterEpoch;
@@ -26,3 +27,15 @@ From the above code, some events are used and are interesting to note:
2627
* `FFit.OnAfterEpoch := @Self.DiscriminatorOnAfterEpoch;` calls the generative training. Therefore, the generative training is done after each discriminator epoch.
2728

2829
In order to show how `TNeuralDataLoadingFit` loads training data, above implementation has 2 equivalent calls (the first is commented) with both `GetDiscriminatorTrainingPair` and `GetDiscriminatorTrainingProc`.
30+
31+
## Results
32+
Can you spot face like characteristics such as eyes and mouths?
33+
34+
<img src="https://github.com/joaopauloschuler/neural-api/blob/master/docs/art3.png"></img>
35+
36+
<img src="https://github.com/joaopauloschuler/neural-api/blob/master/docs/art4.png"></img>
37+
38+
<img src="https://github.com/joaopauloschuler/neural-api/blob/master/docs/art5.png"></img>
39+
40+
41+

0 commit comments

Comments
 (0)