No video

Generative Adversarial Networks (GAN) | Learn and implement GAN on Colab | Deepfake | Image enhance

  Рет қаралды 699

Vizuara

Vizuara

Күн бұрын

Imagine you have Neural Network (NN1) whose job is to initially output a random noise 32x32 matrix (a noise image).
Now imagine there is a second neural network (NN2). The output of NN1 is given as the input to NN2.
NN2 is trained to predict a probability (p) for the input 32x32 image to be the very specific image of a ‘cat’.
Since the initial input image is a noise, the probability ‘p’ will be a low number. Say p = 0.001.
Now we can define loss functions for NN1 and NN2.
If the predicted output ‘p’ is close to zero, the loss of NN1 is very low. The higher the value of ‘p’, the higher the loss.
If the predicted output ‘p’ is close to 1, the loss of NN2 is very low. Do you understand what this means? This means that the image output by NN1 looks very much like the cat image that NN2 is referring to.
Basically if ‘p’ is close to 1, then NN1 generated a ‘fake’ image of a cat that looks exactly like the original cat.
So how do we try to bring the output ‘p’ as close to 1 as possible? We make NN1 fight against NN2.
NN1 has a singular mission. To take ‘p’ close to 1.
NN2 has a singular mission. To take ‘p’ close to 0.
If we train the weights and biases of NN1 and NN2 according to their corresponding losses, we get a very good ‘generator’ who can create an incredibly good-looking ‘fake’ cat image.
This simple task is the basic principle of GAN: Generative Adversarial Network.
NN1 is called the Generator.
NN2 is called the Discriminator.
They are adversaries.
Heard of deepfake? You might have seen videos/GIFs of Trump speaking exactly like Obama. GAN enables that.
GAN is very much different from the diffusion models used in current Generative AI image models. But GAN is much simpler and better for very well-defined tasks.
It is such an amazing concept yet so simple that you think how could you not come up with this? I guess that is the beauty of anything so good.
This entire lecture of GAN covers the basics and the following.
1) What is GAN?
2) Applications of GAN
3) Review the seminal GAN paper by Goodfellow et al
4) Implement GAN on Google Colab. The link to the Colab notebook is provided in the video description.
Have fun implementing GAN. Feel free to reach out for any questions.
Resources:
1) Colab notebook: colab.research...

Пікірлер: 2
@ericonyame4175
@ericonyame4175 Ай бұрын
Great tutorial. Thanks for sharing this knowledge here.
@Jayshreeram22583
@Jayshreeram22583 Ай бұрын
❤❤❤❤
Glow Stick Secret Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 18 МЛН
English or Spanish 🤣
00:16
GL Show
Рет қаралды 15 МЛН
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 32 МЛН
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
AI for Science Interview 1: Dr Rachel Akeson, CalTech
37:35
How I'd Learn AI (If I Had to Start Over)
15:04
Thu Vu data analytics
Рет қаралды 791 М.
The GPT Tokenizer: Byte Pair Encoding
53:35
Vizuara
Рет қаралды 209
MIT Introduction to Deep Learning | 6.S191
1:09:58
Alexander Amini
Рет қаралды 530 М.
FASTEST Way to Become a Data Analyst and ACTUALLY Get a Job
10:55
Stefanovic
Рет қаралды 3 МЛН