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:参考

相关推荐
菩提树下的打坐8 分钟前
接口测试利器:REST Assured + WireMock
学习
一杯奶茶¥28 分钟前
c语言程序设计大学期末考试考研知识点重点笔记题库复习资料C语言重点考点题库资料合集
c语言·笔记·考研·c语言程序设计·c语言笔记
FakeOccupational2 小时前
【电路笔记 信号】传输线方程:从RLGC推导传输线特性阻抗
笔记
tyqtyq222 小时前
营养餐单规划:AI 科学饮食规划系统的鸿蒙实现
人工智能·学习·华为·职场和发展·生活·harmonyos
鱼听禅2 小时前
Ubuntu学习笔记-安装docker容器
学习·ubuntu·docker
Loving_enjoy3 小时前
DFT可测试性设计规则与检查:确保芯片可测试性的关键步骤
学习
r_oo_ki_e_4 小时前
Java反射机制学习笔记
java·笔记·学习
Nontee4 小时前
数据类型与包装类 — 一个新手学Java的数据类型笔记
java·笔记·python
ysa0510304 小时前
【板子】树上启发式合并
数据结构·c++·笔记·算法
hengcaib4 小时前
金税四期下盐城企业财税合规技术路径:代理记账选型的技术思维
笔记