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

相关推荐
其实防守也摸鱼10 小时前
Day 3 · Agent Loop:从调用模型到控制循环 —— 课件精讲笔记
服务器·开发语言·javascript·数据库·人工智能·笔记·ecmascript
ljt272496066110 小时前
项目管理笔记(三)--筑牢项目落地的策划根基
笔记
笑鸿的学习笔记10 小时前
C++笔记之信号量和引用计数的概念是否等价?
java·c++·笔记
叼烟扛炮13 小时前
[LangGraph] 学习笔记(053):工作流模式(二)—— LLM 结构化路由
数据库·笔记·学习
路灯上の马陈13 小时前
Java File类2 练习 学习笔记
java·笔记·学习
江湖有缘14 小时前
Anchor私有化部署实战:Docker搭建专属个人笔记服务
笔记·docker·容器
sharemylove15 小时前
Java 面向对象(OOP)笔记
java·开发语言·笔记·学习·课程设计
饮水桶_T16 小时前
DUNE:基于依赖图传播的Agent派生记忆一致性更新机制 笔记
开发语言·笔记·算法·电脑
DKPT16 小时前
AI编程助手新利器skills火爆登场
人工智能·笔记·学习·开源·ai编程