生成对抗网络gans
介绍 (Introduction)
Generative Adversarial Networks (GANs) were first introduced in a paper by Goodfellow and other researchers at the University of Montreal in 2014. Since then we have seen significant development in GANs and its various types. GANs can be thought of as a robot artist who can learn and mimic any distribution. This includes images, speech, music, text, etc. They have great potential for generating fake information which is very similar to the real ones. As a result, GANs have a variety of applications like,
生成对抗网络(GANs)最早是由Goodfellow和其他研究人员于2014年在蒙特利尔大学发表的一篇论文中介绍的。自那时以来,我们已经看到GAN及其各种类型的显着发展。 可以将GAN视为可以学习和模仿任何分布的机器人艺术家。 其中包括图像,语音,音乐,文本等。它们具有产生与真实信息非常相似的伪造信息的巨大潜力。 结果,GAN具有多种应用,例如,
- Generation of human faces for criminal investigations 为刑事调查生成人脸
- Text-to-image translation 文字到图片翻译
- Image-to-image translation 图像到图像翻译
- Photo editing/ Photo blending etc. 照片编辑/照片融合等
Before moving on to GANs let’s first have a look at generative models
在转到GAN之前,我们先来看一下生成模型
什么是生成模型 (What are Generative Models)
A generative model aims to learn a data distribution using unsupervised learning and then generate new similar data points with some variation. Let us review the idea of generative models by considering supervised vs. unsupervised and discriminative vs. generative modeling.
生成模型旨在使用无监督学习来学习数据分布,然后生成具有一些变化的新相似数据点。 让我们通过考虑监督模型与非监督模型以及判别模型与生成模型来回顾生成模型的思想。
A modeling technique that maps an input to an output given a labeled data is called supervised learning. It requires a labeled training data with input samples X and labels y. The aim here is to learn a function that maps the input values to the output values. Then this newly learned function is used to predict new values. Using supervised learning we can predict the class labels (y). This task of predicting the class labels is called classification aka discriminative modeling.
在给定标记数据的情况下将输入映射到输出的建模技术称为监督学习。 它需要带有输入样本X和标签y的标记训练数据。 此处的目的是学习将输入值映射到输出值的函数。 然后,该新学习的函数将用于预测新值。 使用监督学习,我们可以预测班级标签(y)。 预测类标签的这项任务称为分类又称为判别建模 。