8 GAN
8 GAN
LECTURE: GAN
Generative Adversarial Networks(GANs)
• GAN is basically an approach to generative modeling that generates a new set of data
based on training data The newly generated data set appears similar to the training data
sets.
• GANs have two main blocks(two neural networks) which compete with each other and are
able to capture, copy, and analyze the variations in a dataset.
• The two models are usually called Generator and Discriminator which we will cover in
Components on GANs.
• Generative – To learn a generative model, which describes how data is generated in terms
of a probabilistic model. In simple words, it explains how data is generated visually.
• Adversarial – The training of the model is done in an adversarial setting.
• Networks – use deep neural networks for training purposes.
Training of GAN
Step-1: Identify the actual problems
Step-2: Choose appropriate GAN architecture
Step-3: Give training to discriminator on real data sets
The discriminator is always given training on real data sets, and it only contains a forward
path mechanism and does not follow backpropagation in n epochs. Further, it is only
provided with actual data having zero noise or fake content. Further, for fake images, the
discriminator uses instances created by the generator as negative output.
Step-4: Provide training to the generator
The training process of the generator starts with the introduction of some fake inputs. Initially, we
give some fake input to the generator, but later it generates some fake output by adding some
random noise.
Step-5: Provide training to discriminators on fake inputs
In this step, we pass the samples to discriminators to predict whether the data is real or fake.
Further, provide feedback received by decimators to generators again to do modifications in the
samples.
Loss function
Applications
• It is used to develop intelligent games and animations by creating
anime characters.
• It is used to visualize the effects of climate change on particular
locations.
• It is used to reconstruct 3D models of objects from images and model
motion patterns in the video.
• It is used to visualize the interior design, industrial design, shoes,
bags, and clothing items by generating photorealistic images.