Skip to content

Commit 6f51021

Browse files
Update README.md
1 parent 972c95c commit 6f51021

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

generative_models/DCGAN_Tensorflow/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ One way to build good natural images is by training Generative Adversarial Netwo
4747
#### Model Architecture
4848
In general, GANs consist of a generator and a discriminator. These two are separately a CNN architecture and are trained together.
4949

50-
![alt text](https://github.com/shvmshri/DCGAN_Tensorflow/blob/master/images/DG.png)
50+
![alt text](assets/DG.png)
5151
##### GENERATOR :
5252
A ANN model which is aimed for the generation of new images. They took in input a random noise z and various convolution transpose layers are applied and it generates a image i.e. a matrices of pixel values (G(z)) .Generator never get to see the real world actual images or the training dataset of images.
5353
##### DISCRIMINATOR:
5454
A CNN classification model used to classify whether an image passed to it is real or fake (generated by the generator).It take image from training examples x and from those generated by generator (G (z)) and predicts the probability of the image to be real (D(x)) or fake (D (G (z))).
5555

5656
Now, while training the model, generator tries to increase the discriminator error as it tries to fool discriminator by improving its generated image so that they resemble real images while discriminator tries to decrease it’s error by trying to judge correctly the real and the fake images. For weights of the model normally initiated ,we first train generator say for y no. of images keeping the discriminator’s weights constant .Then, as generator’s weight are updated ,we train discriminator keeping generator’s weights to be constant for y fake and y real images and this process is then repeated for several epochs using cross entropy loss function.
5757

58-
![alt text](https://github.com/shvmshri/DCGAN_Tensorflow/blob/master/images/loss%20eq.jpg)
58+
![alt text](assets/loss%20eq.jpg)
5959

6060
This becomes a __minimax__ type loss function as above illustrated.
6161

@@ -77,11 +77,11 @@ This becomes a __minimax__ type loss function as above illustrated.
7777

7878
#### Images generated of MNIST dataset after 50 epochs:
7979

80-
![alt text](https://github.com/shvmshri/DCGAN_Tensorflow/blob/master/images/image_at_epoch_0050.png)
80+
![alt text](assets/image_at_epoch_0050.png)
8181

8282
#### Plot of generator loss vs. discriminator loss
8383

84-
![alt text](https://github.com/shvmshri/DCGAN_Tensorflow/blob/master/images/loss_plot.png)
84+
![alt text](assets/loss_plot.png)
8585

8686
## Sources
8787
1. [Deep Learning Part -II(CS7015),Lec-1](https://www.youtube.com/watch?v=1ju4qmdtRdY&t=142s)

0 commit comments

Comments
 (0)