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

相关推荐
lll235269177934 分钟前
2026行业语音转写工具专业术语转写功能横向分析
笔记·智能手机
宝绿特塑业再生科技3 小时前
改性HDPE再生颗粒在户外家具挤出发泡板材中的色差控制与高品质价值重构
经验分享·科技·学习·生活·1024程序员节·户外家具
andrsted6 小时前
练题簿在线免费刷题:让整理过的资料,变成能反复练习的题库
学习·微信小程序·小程序·学习方法·刷题·1024程序员节
Alsn867 小时前
Windows 安装 Ollama 及本地模型部署
学习·1024程序员节
欣欣之王来了8 小时前
原始HTML插值:v-html指令的使用与安全风险
前端·学习·架构·项目·vue3教程
解决小子10 小时前
【虚幻引擎】【C++】【GAS框架】构建角色基类、属性集、数值钳制
c++·笔记·游戏引擎·虚幻·gas·能力系统
知识分享小能手10 小时前
C学习教程,从入门到精通,C语言学生信息管理系统 — 知识点详解(18)
c语言·学习·1024程序员节
破芽10 小时前
learn-claude-code-s05-s11-学习笔记
笔记·学习
pipixia2003310 小时前
C++ 面试高频:namespace 的 6 个知识点,从 using 到匿名命名空间
c语言·学习·算法·嵌入式·命名空间·c++面试·匿名命名空间
每天题库11 小时前
汽车维修工等级考试题库 理论实操核心考点一次梳理清
学习·安全·考试·题库·考证