版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Generative Adversarial Network (GAN)Restricted Boltzmann Machine: .tw/tlkagk/courses/MLDS_2015_2/Lecture/RBM%20(v2).ecm.mp4/index.htmlGibbs Sampling:.tw/tlkagk/courses/MLDS_2015_2/Lecture/MRF%20(v2).ecm.mp4/index.htmlOutlook:NIPS 2016 Tutorial: Generative Adversarial NetworksAuthor: Ian GoodfellowPa
2、per: /abs/1701.00160Video: /Events/Neural-Information-Processing-Systems-Conference/Neural-Information-Processing-Systems-Conference-NIPS-2016/Generative-Adversarial-NetworksYou can find tips for training GAN here: /soumith/ganhacksReviewGenerationDrawing?Writing Poems?/index.php?s=/Lot/44547Review:
3、 Auto-encoderAs close as possibleNNEncoderNNDecodercodeNNDecodercodeRandomly generate a vector as codeImage ?Review: Auto-encoderNNDecodercode2D-1.51.5NNDecoderNNDecoderReview: Auto-encoder-1.51.5NNEncoderNNDecodercodeinputoutputAuto-encoderVAENNEncoderinputNNDecoderoutputm1m2m3From a normal distrib
4、utionX+Minimize reconstruction errorexpMinimizeAuto-Encoding Variational Bayes, /abs/1312.6114Problems of VAEIt does not really try to simulate real imagesNNDecodercodeOutputAs close as possibleOne pixel difference from the targetOne pixel difference from the targetRealisticFakeThe evolution of gene
5、rationNNGeneratorv1Discri-minatorv1Real images:NNGeneratorv2Discri-minatorv2NNGeneratorv3Discri-minatorv3Binary ClassifierThe evolution of generationNNGeneratorv1Discri-minatorv1Real images:NNGeneratorv2Discri-minatorv2NNGeneratorv3Discri-minatorv3GAN - DiscriminatorNNGeneratorv1Real images:Discri-m
6、inatorv1image1/0(real or fake)Something like Decoder in VAERandomly sample a vector11110000GAN - GeneratorDiscri-minatorv1NNGeneratorv1Randomly sample a vector0.13Updating the parameters of generator The output be classified as “real” (as close to 1 as possible)Generator + Discriminator = a networkU
7、sing gradient descent to update the parameters in the generator, but fix the discriminator1.0v2GAN 二次元人物頭像鍊成Source of images: /p/24767059DCGAN: /carpedm20/DCGAN-tensorflowGAN 二次元人物頭像鍊成100 roundsGAN 二次元人物頭像鍊成1000 roundsGAN 二次元人物頭像鍊成2000 roundsGAN 二次元人物頭像鍊成5000 roundsGAN 二次元人物頭像鍊成10,000 roundsGAN 二次元人
8、物頭像鍊成20,000 roundsGAN 二次元人物頭像鍊成50,000 roundsBasic Idea of GANMaximum Likelihood EstimationLikelihood of generating the samplesMaximum Likelihood Estimation/generative-models/It is difficult to compute the likelihood.Basic Idea of GANGenerator GG is a function, input z, output x Given a prior distrib
9、ution Pprior(z), a probability distribution PG(x) is defined by function GDiscriminator DD is a function, input x, output scalarEvaluate the “difference” between PG(x) and Pdata(x)There is a function V(G,D). Hard to learn by maximum likelihoodBasic IdeaGiven G, what is the optimal D* maximizingGiven
10、 x, the optimal D* maximizingAssume that D(x) can have any value hereGiven x, the optimal D* maximizingFind D* maximizing: aDbD0 122Jensen-Shannon divergenceIn the end 0 log 2AlgorithmAlgorithmDecrease JS divergence(?)Decrease JS divergence(?)AlgorithmDecrease JS divergence(?)smallerDont update G to
11、o muchIn practice MaximizeMinimize Cross-entropyBinary ClassifierOutput is D(x)Minimize log D(x)If x is a positive exampleIf x is a negative exampleMinimize log(1-D(x)Positive examplesNegative examplesMaximizeMinimize Minimize Cross-entropyBinary ClassifierOutput is f(x)Minimize log f(x)If x is a po
12、sitive exampleIf x is a negative exampleMinimize log(1-f(x)AlgorithmRepeat k timesLearning DLearning GCan only find lower found ofOnly OnceObjective Function for Generatorin Real ImplementationReal implementation: label x from PG as positiveSlow at the beginningDemoThe code used in demo from:/osh/Ke
13、rasGAN/blob/master/MNIST_CNN_GAN_v2.ipynbIssue about Evaluating the DivergenceEvaluating JS divergenceMartin Arjovsky,Lon Bottou, Towards Principled Methods for Training Generative Adversarial Networks, 2017, arXiv preprintEvaluating JS divergenceJS divergence estimated by discriminator telling litt
14、le information/abs/1701.07875Weak GeneratorStrong GeneratorDiscriminatorReason 1. Approximate by sampling10= 0log2Weaken your discriminator?Can weak discriminator compute JS divergence?DiscriminatorReason 2. the nature of data10= 0log2Usually they do not have any overlapEvaluation/post/773890/Better
15、EvaluationBetterNot really better Add NoiseAdd some artificial noise to the inputs of discriminatorMake the labels noisy for the discriminatorDiscriminator cannot perfectly separate real and generated dataNoises decay over timeMode CollapseMode Collapse Data DistributionGenerated DistributionMode Co
16、llapse What we want In reality Flaw in Optimization?Modified from Ian Goodfellows tutorialThis may not be the reason (based on Ian Goodfellows tutorial) So many GANs Modifying the Optimization of GANfGANWGANLeast-square GANLoss Sensitive GANEnergy-based GANBoundary-seeking GANUnroll GANDifferent Str
17、ucture from the Original GANConditional GANSemi-supervised GANInfoGANBiGANCycle GANDisco GANVAE-GANConditional GANMotivationGeneratorScott Reed, Zeynep Akata, Xinchen Yan, Lajanugen Logeswaran, Bernt Schiele, Honglak Lee, “Generative Adversarial Text-to-Image Synthesis”, ICML 2016TextImageScott Reed
18、,Zeynep Akata,Santosh Mohan,Samuel Tenka,Bernt Schiele,Honglak Lee, “Learning What and Where to Draw”, NIPS 2016Han Zhang,Tao Xu,Hongsheng Li,Shaoting Zhang,Xiaolei Huang,Xiaogang Wang,Dimitris Metaxas, “StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks”, arXiv prepring, 2016MotivationChallengeNNTextImage(a point, not a distribution)Text: “train”NN outputConditional GANGconditionPrior distributionLearn to approxima
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 四年级下册英语Unit3 Time to get up教学设计
- 初中美术七年级下册 第三单元“美美与共-校园艺术节设计”第1课“广而告之”教学设计
- 地质版初中体育与健康七年级《肥胖危害大 知因好预防》教学设计
- 高一语文《琵琶行并序》大单元教学设计
- 小学三年级语文《荷花》教学设计:童真视角下的意象重构与语感培育
- 高中三年级地理等压线图的判读专题复习教学设计
- 高一劳动技术《探索手工糖画制作》教学设计
- (正式版)DB1307∕T 052-2001 《酿酒葡萄成熟、采收技术规程》
- 2026年中级 BMS 采集信号故障检修考试试卷及答案
- 2026年中级新能源二手车事故泡水鉴别考试试卷及答案
- 医院咨询服务解决方案
- 高中军训军事理论课件
- bot项目建设合同范本
- 项目四流量检测仪表任务7认识靶式流量计26课件
- 质量管理五大工具培训教材
- 肩袖损伤中西医结合诊疗指南
- 血流导向装置治疗动脉瘤
- 肝脓肿术后的护理查房
- 教师系列任现职以来教学工作情况证明材料
- GB/T 19183.1-2024电气和电子设备机械结构户外机壳第1部分:设计导则
- 绿网苫盖合同范例
评论
0/150
提交评论