GAN学习笔记

1.原始的GAN

1.1原始的损失函数

1.1.1写法1参考1参考2

1.1.2 写法2

where,

  • G = Generator
  • D = Discriminator
  • Pdata(x) = distribution of real data
  • P(z) = distribution of generator
  • x = sample from Pdata(x)
  • z = sample from P(z)
  • D(x) = Discriminator network
  • G(z) = Generator network

1.1.3 写法3: 参考3

1.2Wasserstein损失 参考

2.**Conditional GAN (**CGAN)

2.1 写法1:

The Discriminator has two task

  • Discriminator has tocorrectly label real images which are coming from training data set as "real".
  • Discriminator has to correctly label generated images which are coming from Generator as "fake".

We need to calculate two losses for the Discriminator. The sum of the "fake" image and "real" image loss is the overall Discriminator loss.** So the loss function of the Discriminator is aiming at minimizing the error of predicting real images coming from the dataset and fake images coming from the Generator given their one-hot labels.

The Generator network has one task

  • To create an image that looks as "real" as possible to fool the Discriminator.

The loss function of the Generator minimizes the correct prediction of the Discriminator on fake images conditioned on the specified one-hot labels.

  • The conditioning is performed by feeding y into the both the discriminator and generator as additional input layer.
  • In the generator the prior input noise p_z (z ), and y are combined in joint hidden representation.
  • In the discriminator x and y are presented as inputs and to a discriminative function.
  • The objective function of a two-player minimax game become:

2.2 写法2:

where is a probability distribution over classes, is the probability distribution of real images of class C, and the probability distribution of images generated by the generator when given class label C.

2.3 写法3:参考

相关推荐
云上艺旅7 小时前
K8S学习之基础七十四:部署在线书店bookinfo
学习·云原生·容器·kubernetes
你觉得2058 小时前
哈尔滨工业大学DeepSeek公开课:探索大模型原理、技术与应用从GPT到DeepSeek|附视频与讲义下载方法
大数据·人工智能·python·gpt·学习·机器学习·aigc
A旧城以西9 小时前
数据结构(JAVA)单向,双向链表
java·开发语言·数据结构·学习·链表·intellij-idea·idea
无所谓จุ๊บ9 小时前
VTK知识学习(50)- 交互与Widget(一)
学习·vtk
FAREWELL000759 小时前
C#核心学习(七)面向对象--封装(6)C#中的拓展方法与运算符重载: 让代码更“聪明”的魔法
学习·c#·面向对象·运算符重载·oop·拓展方法
吴梓穆9 小时前
UE5学习笔记 FPS游戏制作38 继承标准UI
笔记·学习·ue5
Three~stone10 小时前
MySQL学习集--DDL
数据库·sql·学习
齐尹秦10 小时前
HTML 音频(Audio)学习笔记
学习
V---scwantop---信10 小时前
英文字体:大胆都市街头Y2Y涂鸦风格品牌海报专辑封面服装字体 Chrome TM – Graffiti Font
笔记·字体
瞌睡不来10 小时前
(学习总结32)Linux 基础 IO
linux·学习·io