SlideShare a Scribd company logo
1 of 28
Download to read offline
KaoNet v2
Face Translation using CycleGAN
October 29, 2017
Van Phu Quang Huy
Agenda
1. KaoNet recap
2. New feature: Face Translation
3. Technical Details
KaoNet recap: Face Recognition (OpenCV+CNN)
KaoNet recap: Face Generation (DCGAN)
KaoNet v2 ...
New feature: Face Translation
Khang → Huy Huy → Khang
In (real) In (real)Out (fake) Out (fake)
New feature: Face Translation
Girl → Khang Huy → Girl
In (real) In (real)Out (fake) Out (fake)
Technical Details: CycleGAN
CycleGAN
● Paper: https://arxiv.org/abs/1703.10593
● In ICCV 2017 (International Conference on
Computer Vision)
○ October 22-29, 2017
○ @Venice, Italy
CycleGAN (https://junyanz.github.io/CycleGAN/)
CycleGAN (https://junyanz.github.io/CycleGAN/)
CycleGAN (https://junyanz.github.io/CycleGAN/)
My Implementation on GitHub!
https://github.com/vanhuyz/CycleGAN-TensorFlow
Reference: Generative Adversarial Networks (GAN)
(http://guimperarnau.com/blog/2017/03/Fantastic-GANs-and-where-to-find-them)
Reference: pix2pix (https://phillipi.github.io/pix2pix/)
Reference: Neural Style Transfer (arXiv1508.06576)
Paired and Unpaired Data
CycleGAN Overview
GeneratorX2Y
GeneratorY2X
DiscriminatorY
Cycle-consistency loss
GAN loss
G
DY
F
Loss Function
● GAN Loss
● Cycle-consistency Loss
● Full Loss
Network Architectures
Generator
(https://hardikbansal.github.io/CycleGANBlog/)
Reference: Residual Block (in ResNet)
(http://icml.cc/2016/tutorials/icml2016_tutorial_deep_residual_networks_kaiminghe.pdf)
Reference: Transposed Convolution (a.k.a Deconvolution)
(https://github.com/vdumoulin/conv_arithmetic
)
Discriminator
(https://hardikbansal.github.io/CycleGANBlog/)
Training Techniques
Training Techniques in Generators
● Instance Normalization
● Reflect Padding
Training Techniques in Discriminators
● PatchGAN with fully convolutional networks
● Use least square loss instead of cross entropy
● Use history of generated images rather than the
latest ones
● Use LeakyReLU instead of ReLU

More Related Content

What's hot

What's hot (12)

Introduction of Lambda
Introduction of LambdaIntroduction of Lambda
Introduction of Lambda
 
SFScon19 - Andreas Shimokawa - Codeberg a free home for free projects
SFScon19 - Andreas Shimokawa - Codeberg a free home for free projectsSFScon19 - Andreas Shimokawa - Codeberg a free home for free projects
SFScon19 - Andreas Shimokawa - Codeberg a free home for free projects
 
Continuous Integration and CruiseControl history
Continuous Integration and CruiseControl historyContinuous Integration and CruiseControl history
Continuous Integration and CruiseControl history
 
Setup
SetupSetup
Setup
 
TangoWebapp insights
TangoWebapp insightsTangoWebapp insights
TangoWebapp insights
 
Switching of GUI Framework: The case from Spec to Spec2
Switching of GUI Framework: The case from Spec to Spec2Switching of GUI Framework: The case from Spec to Spec2
Switching of GUI Framework: The case from Spec to Spec2
 
Go and docker
Go and dockerGo and docker
Go and docker
 
Spec2: How to Build a new GUI
Spec2: How to Build a new GUISpec2: How to Build a new GUI
Spec2: How to Build a new GUI
 
Coincheck cash
Coincheck cashCoincheck cash
Coincheck cash
 
T3chFest 2017 - La Revolucion del Open Source
T3chFest 2017 - La Revolucion del Open SourceT3chFest 2017 - La Revolucion del Open Source
T3chFest 2017 - La Revolucion del Open Source
 
The Flexible Layout Kit (how we got rid of web views). UA Mobile 2016.
The Flexible Layout Kit (how we got rid of web views). UA Mobile 2016.The Flexible Layout Kit (how we got rid of web views). UA Mobile 2016.
The Flexible Layout Kit (how we got rid of web views). UA Mobile 2016.
 
[DevOps Pro Europe 2020] From Code to Cloud
[DevOps Pro Europe 2020] From Code to Cloud[DevOps Pro Europe 2020] From Code to Cloud
[DevOps Pro Europe 2020] From Code to Cloud
 

Similar to KaoNet v2 - Face Translation using CycleGAN

Open Design: Process + Community @ FabLab Cali
Open Design: Process + Community @ FabLab CaliOpen Design: Process + Community @ FabLab Cali
Open Design: Process + Community @ FabLab Cali
Massimo Menichinelli
 
Developing modern java web applications with java ee 7 and angular js
Developing modern java web applications with java ee 7 and angular jsDeveloping modern java web applications with java ee 7 and angular js
Developing modern java web applications with java ee 7 and angular js
Shekhar Gulati
 
Slides galvin-widjaja
Slides galvin-widjajaSlides galvin-widjaja
Slides galvin-widjaja
CodePolitan
 

Similar to KaoNet v2 - Face Translation using CycleGAN (20)

Bits+atoms+processes: the influence of code culture on Design @ Cumulus Helsi...
Bits+atoms+processes: the influence of code culture on Design @ Cumulus Helsi...Bits+atoms+processes: the influence of code culture on Design @ Cumulus Helsi...
Bits+atoms+processes: the influence of code culture on Design @ Cumulus Helsi...
 
Open Design: Process + Community @ FabLab Cali
Open Design: Process + Community @ FabLab CaliOpen Design: Process + Community @ FabLab Cali
Open Design: Process + Community @ FabLab Cali
 
Marco Marchesi - Practical uses of style transfer in the creative industry
Marco Marchesi - Practical uses of style transfer in the creative industryMarco Marchesi - Practical uses of style transfer in the creative industry
Marco Marchesi - Practical uses of style transfer in the creative industry
 
Unicon July 2015 IAM Briefing
Unicon July 2015 IAM BriefingUnicon July 2015 IAM Briefing
Unicon July 2015 IAM Briefing
 
Open P2P Design @ Simbioms.org, Helsinki 12/11/2011
Open P2P Design @ Simbioms.org, Helsinki 12/11/2011Open P2P Design @ Simbioms.org, Helsinki 12/11/2011
Open P2P Design @ Simbioms.org, Helsinki 12/11/2011
 
[ICLR2017 Reading Meeting@DeNA] Introduction of ICLR2017
[ICLR2017 Reading Meeting@DeNA] Introduction of ICLR2017[ICLR2017 Reading Meeting@DeNA] Introduction of ICLR2017
[ICLR2017 Reading Meeting@DeNA] Introduction of ICLR2017
 
Overview of the OpenCV library and some use cases - 2024-04-19
Overview of the OpenCV library and some use cases - 2024-04-19Overview of the OpenCV library and some use cases - 2024-04-19
Overview of the OpenCV library and some use cases - 2024-04-19
 
Flux’s Security & Scalability with OCI & Helm Slides.pdf
Flux’s Security & Scalability with OCI & Helm Slides.pdfFlux’s Security & Scalability with OCI & Helm Slides.pdf
Flux’s Security & Scalability with OCI & Helm Slides.pdf
 
Open Design Definition @ Fab* @ Future Everything
Open Design Definition @ Fab* @ Future EverythingOpen Design Definition @ Fab* @ Future Everything
Open Design Definition @ Fab* @ Future Everything
 
Developing modern java web applications with java ee 7 and angular js
Developing modern java web applications with java ee 7 and angular jsDeveloping modern java web applications with java ee 7 and angular js
Developing modern java web applications with java ee 7 and angular js
 
Open P2P Design
Open P2P DesignOpen P2P Design
Open P2P Design
 
LINEデリマでのElasticsearchの運用と監視の話
LINEデリマでのElasticsearchの運用と監視の話LINEデリマでのElasticsearchの運用と監視の話
LINEデリマでのElasticsearchの運用と監視の話
 
Slides galvin-widjaja
Slides galvin-widjajaSlides galvin-widjaja
Slides galvin-widjaja
 
Identity & Access Management Briefing
Identity & Access Management BriefingIdentity & Access Management Briefing
Identity & Access Management Briefing
 
Automatic image moderation in classifieds
Automatic image moderation in classifiedsAutomatic image moderation in classifieds
Automatic image moderation in classifieds
 
Automatic image moderation in classifieds, Jarosław Szymczak
Automatic image moderation in classifieds, Jarosław SzymczakAutomatic image moderation in classifieds, Jarosław Szymczak
Automatic image moderation in classifieds, Jarosław Szymczak
 
WebKit and Blink: Bridging the Gap Between the Kernel and the HTML5 Revolutio...
WebKit and Blink: Bridging the Gap Between the Kernel and the HTML5 Revolutio...WebKit and Blink: Bridging the Gap Between the Kernel and the HTML5 Revolutio...
WebKit and Blink: Bridging the Gap Between the Kernel and the HTML5 Revolutio...
 
WebKit and Blink: Bridging the Gap Between the Kernel and the HTML5 Revolution
WebKit and Blink: Bridging the Gap Between the Kernel and the HTML5 RevolutionWebKit and Blink: Bridging the Gap Between the Kernel and the HTML5 Revolution
WebKit and Blink: Bridging the Gap Between the Kernel and the HTML5 Revolution
 
James Coplien: Trygve - Oct 17, 2016
James Coplien: Trygve - Oct 17, 2016James Coplien: Trygve - Oct 17, 2016
James Coplien: Trygve - Oct 17, 2016
 
Open Design Definition workshop @ Open Knowledge Festival 2012
Open Design Definition workshop @ Open Knowledge Festival 2012Open Design Definition workshop @ Open Knowledge Festival 2012
Open Design Definition workshop @ Open Knowledge Festival 2012
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

KaoNet v2 - Face Translation using CycleGAN