What is a GAN in Deep Learning? Understand easily now

In the scientific world of Deep Learning, GAN are increasingly attracting attention. But what are they in practice ?

Generative Antagonistic Networks (GAN) is a barbaric name for Deep Learning models that generate information, images, music.

It is a type of Neural Network which we have not yet discussed at Inside Machine Learning and yet, it has an increasingly important place in scientific research in Artificial Intelligence.

That’s why we invite you to explore Generative Antagonistic Networks now in this post !

The structure of GANs

GAN are category of neural network based on unsupervised learning algorithms.

This means that the network trains itself without a human previously giving it a goal.

To understand how they work, let’s simply decode their names: GAN

A GAN is a Generative Antagonist Network.

The terms “network” and “generative” are quite obvious.They are Neural Networks like CNN or RNN but which are used here to generate, to create things and not only to detect. It is therefore a generative network.

But then why do we talk about an Antagonist ?

In movies, an Antagonist is the opponent of the Protagonist: the main hero. We therefore say that the two characters are antagonists, meaning that they are opposites, rivals.

In other words, a story contains two characters who each have an opposite goal : defeat the other, achieve victory.

What does this have to do with Deep Learning ? Rest assured, it is part of the explanation 😎

In fact in a GAN, like in a movie, there are Antagonists. Only here, instead of having two characters competing for victory, we have two Neural Networks competing to optimize each other !

The Antagonistic Networks

But how do the two Antagonistic Networks of a GAN operate ?

In fact, they each have a very distinct role.

THE PANE METHOD FOR DEEP LEARNING!

Get your 7 DAYS FREE TRAINING to learn how to create your first ARTIFICIAL INTELLIGENCE!

For the next 7 days I will show you how to use Neural Networks.

You will learn what Deep Learning is with concrete examples that will stick in your head.

BEWARE, this email series is not for everyone. If you are the kind of person who likes theoretical and academic courses, you can skip it.

But if you want to learn the PANE method to do Deep Learning, click here :

Let’s take the case of a GAN applied to images (the most frequent case).

One of the networks will train on a dataset and try to reproduce and generate images by faking the original ones.

Its antagonist, on the other hand, will analyze all the images (fake as well as real) and detect those that they consider as fake.

The more the antagonist detects fake images, the more the generative network will have to improve itself in faking images.

In fact, the goal of a GAN is to make the faker more efficient than the detector !

At the end of the training, the GAN must be able to generate images that are faithful to reality. To achieve this, it must fool the antagonist.

Here is a concrete example of a GAN result that transforms horses image into zebras:

Quite effective, isn’t it? 😉

That’s the end of this article, we hope it helped you to better understand Generative Antagonistic Networks.

We’ll see you shortly in a tutorial to discuss in detail how to code a GAN!

sources :

THE PANE METHOD FOR DEEP LEARNING!

Get your 7 DAYS FREE TRAINING to learn how to create your first ARTIFICIAL INTELLIGENCE!

For the next 7 days I will show you how to use Neural Networks.

You will learn what Deep Learning is with concrete examples that will stick in your head.

BEWARE, this email series is not for everyone. If you are the kind of person who likes theoretical and academic courses, you can skip it.

But if you want to learn the PANE method to do Deep Learning, click here :

Tom Keldenich
Tom Keldenich

Data Engineer & passionate about Artificial Intelligence !

Founder of the website Inside Machine Learning

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Enter your email to receive for free

The PANE method for Deep Learning

* indicates required

 

You will receive one email per day for 7 days – then you will receive my newsletter.
Your information will never be given to third parties.

You can unsubscribe in 1 click from any of my emails.

Entre ton email pour recevoir gratuitement
la méthode PARÉ pour faire du Deep Learning


Tu recevras un email par jour pendant 7 jours - puis tu recevras ma newsletter.
Tes informations ne seront jamais cédées à des tiers.

Tu peux te désinscrire en 1 clic depuis n'importe lequel de mes emails.