Photo Editing With Generative Adversarial Networks (GANs) GTC, May 2017. Greg Heinrich. PANDARUS: Alas, I think he shall be come approached and the day When little srain would be attain'd into being never fed, And who is but a chain and subjects of his death, I should not sleep. G : WHAT IS A GENERATIVE MODEL? AN In Machine Learning A generative model learns to generate samples that have the same characteristics as the samples in the dataset. Learn from Shakespeare novels: Produce: http://karpathy.github.io/2015/05/21/rnn- PANDARUS: effectiveness/ Alas, I think he shall be come approached and the day When little srain would be attain'd into being never fed, And who is but a chain and subjects of his death, I should not sleep. 22 BASIC REMINDER: BACKPROP ππΈ Calculating iteratively π ππ€ ππ Chain rule ππΈ Calculation of : Output of each neuron π of layer π : π ππ§ π π π π πβ1 π β = π π§ = π π€ β + π π π ππ π π ππΈ ππΈ ππ§π+1 ππΈ ππ§π+1 πβπ = π = π π π π π π+1 π π π+1 π π ππ§ ππ§ ππ§ ππ§ πβ ππ§ π π π π π π Gradient of E with respect to each weight: ππΈ π+1 π = π€ πβ² π§ ππΈ ππΈ ππ§π ππΈ ππ§π+1 ππ π π πβ1 π = = β π π π π π π ππ€ ππ§ ππ€ ππ§ ππΈ ππ π ππ π π π+1 = πβ² π§ π€ Calculated π π+1 ππ ππ§ during π π forward prop Multivariate chain rule π Chain ππ§ π only depends on βπβ1 rule ππ€π π 33 ππ A : PLAYING THE ADVERSARIAL GAME G N Learning on a corpus of images Letβs play a game opposing two agents: - The Generator, a little imp in the computer who paints images. - The Discriminator: you are collectively responsible for playing the Discriminator. The game master (me) randomly picks images from either the corpus or the Generator and shows them to the Discriminator. The goal of the Discriminator is to identify the source of the images: real (from the corpus) or fake (painted by the little imp). The goal of the Generator is to fool the Discriminator. 44 PLAYING THE ADVERSARIAL GAME Is this a veelhoek* from our corpus? Note: you donβt have to * veelhoek is the articulation know what a veelhoek is, of a ubiquitous item in the you will learn through language of a tiny country in examples! Europe that is well known for the inferior quality of its cheese. Yes, this red square is a veelhoek! 55 PLAYING THE ADVERSARIAL GAME Is this a veelhoek from our corpus? No, those squiggly lines arenβt right! 66 PLAYING THE ADVERSARIAL GAME Is this a veelhoek from our corpus? Yes, even though itβs blue and tiny! 77 PLAYING THE ADVERSARIAL GAME Is this a veelhoek from our corpus? No, those rounded corners are a giveaway! 88 PLAYING THE ADVERSARIAL GAME Is this a veelhoek from our corpus? No, but itβs a very good fake! 99 PLAYING THE ADVERSARIAL GAME Is this a veelhoek from our corpus? No, itβs the same fake as before! 1100
Description: