SlideShare uma empresa Scribd logo
1 de 19
Baixar para ler offline
Semantic Image Inpainting
Semantic Image Inpainting with Deep Generative Models,
R Yeh et al. CVPR 2017
LAB SEMINAR
1
2018.02.13
SNU DATAMINING CENTER
MINKI CHUNG
TABLE OF CONTENTS
▸ Motivation
▸ What is image inpainting
▸ Problem statement
▸ Baseline
▸ Semantic image inpainting with Deep Generative
Models
▸ My work
▸ Discussion
2
MOTIVATION
3
MOTIVATION 4
▸ What is image inpainting?
https://www.youtube.com/watch?v=1F-6iRrgh1s
MOTIVATION 5
▸ Objective: Make attentive inpainter
IF BACKGROUND OF TARGET REMOVING OBJECT IS SIMPLE, EXISTING METHOD WORKS FINE
HOWEVER, IF BACKGROUND OF TARGET REMOVING OBJECT IS COMPLEX, BETTER NEED ANOTHER METHOD
BASELINE
▸ Semantic Image Inpainting with Deep Generative
Models, R Yeh et al. CVPR 2017
6
SEMANTIC IMAGE INPAINTING WITH DEEP GENERATIVE MODELS 7
▸ DCGAN-Based
▸ Not end-to-end:
▸ 1. Train generator first (uncorrupted data)
▸ 2. Find z_hat for inpainting
CONTEXTUAL LOSSPRIOR LOSS
https://arxiv.org/abs/1607.07539
SEMANTIC IMAGE INPAINTING WITH DEEP GENERATIVE MODELS 8
▸ Hypothesis: Trained G is efficient- image not from pdata (e.g., corrupted data) should
not lie on the learned encoding manifold, z
▸ Objective: Find encoding z_hat: “closest” to the corrupted image while being
constrained to the manifold,
▸ y: corrupted image
M: binary mask(size equal to the image)
https://arxiv.org/abs/1607.07539
PRIOR LOSSCONTEXTUAL LOSS
SEMANTIC IMAGE INPAINTING WITH DEEP GENERATIVE MODELS 9
▸ Contextual Loss: Not simply l1 norm between G(z) and uncorrupted portion of
input image y, do consider corrupted area
▸ Weighting term W,
▸ So,
Wi: importance weight at pixel location i
N(i): set of neighbors of pixel i in a local window
BIGGER WEIGHT
y: corrupted image
M: binary mask(size equal to the image)
https://arxiv.org/abs/1607.07539
SEMANTIC IMAGE INPAINTING WITH DEEP GENERATIVE MODELS 10
▸ Prior Loss: how realistic the generated image is
▸ Identical to the GAN loss for training the discriminator D,
▸
▸ Without Lp, the mapping from y to z may converge to a perceptually implausible
result
https://arxiv.org/abs/1607.07539
SEMANTIC IMAGE INPAINTING WITH DEEP GENERATIVE MODELS 11
▸ Tackling points:
▸ Object-level occlusion: Narrowing down for object removal
▸ Contextual loss: A pixel that is very far away from any holes plays very little role
in the inpainting process.
▸ What if..?
▸ Interpretation: Want to see the pixel which plays key role in deciding z_hat
▸ → Attention
1
2
3
MY WORK
12
MY WORK 13
▸ Object-level occlusion: Narrowing down to object removal
▸ MS-COCO Dataset
▸ Train set: 118287
▸ COCO Api: Get annotations(instance)
▸ Use images which have person instance such that
smaller than 1/4 of the image bigger than 1/20 of the
image
▸ 30830, (rescale to 256x256)
1
MY WORK 14
▸ Limitation of contextual loss: less influence of farther part on inpainting
▸ Naive approach: for each grid of image, find pixel influence(attention_ratio) on
finding optimal z_hat
▸ Do it subsequently, grid by grid
occlusio
0.1 0.1 0.1
0.4 0.6
0.4 0.3
0.1 0.7
0.5 0.3
0.8 0.7
0.6 0.7
0.2 0.40.1 0.3
0.1 0.1
0.2
0.1
0.7
0.1
occlusio
2
MY WORK 15
▸ After finding optimal attention_ratio for each grid
▸ Find noize z hat based on ‘Original * Attn_Ratio image’ to reconstruct image
▸ Visualization of pixel influence on inpainting
ORIGINAL ORIGINAL*ATTN_RATIOMASKED
3
MY WORK 16
▸ However… because of computation inefficiency, unable to learn
▸ (Current situation) Rethinking about the attention method..
WITHOUT ATTENTION, 1000 EPOCH WITH ATTENTION, 20 EPOCH
ANY Q?
17
REFERENCE
▸ Semantic image inpainting with Deep Generative Models, Raymond A.
Yeh, Chen Chen, Teck Yian Lim, Alexander G. Schwing, Mark Hasegawa-
Johnson, Minh N. Do, CVPR 2017, https://arxiv.org/abs/1607.07539
▸ MS COCO dataset, http://cocodataset.org/#home
18
END OF
DOCUMENT
19

Mais conteúdo relacionado

Último

Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsJoseMangaJr1
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Researchmichael115558
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...amitlee9823
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...amitlee9823
 

Último (20)

Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 

Destaque

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Destaque (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Semantic Image Inpainting

  • 1. Semantic Image Inpainting Semantic Image Inpainting with Deep Generative Models, R Yeh et al. CVPR 2017 LAB SEMINAR 1 2018.02.13 SNU DATAMINING CENTER MINKI CHUNG
  • 2. TABLE OF CONTENTS ▸ Motivation ▸ What is image inpainting ▸ Problem statement ▸ Baseline ▸ Semantic image inpainting with Deep Generative Models ▸ My work ▸ Discussion 2
  • 4. MOTIVATION 4 ▸ What is image inpainting? https://www.youtube.com/watch?v=1F-6iRrgh1s
  • 5. MOTIVATION 5 ▸ Objective: Make attentive inpainter IF BACKGROUND OF TARGET REMOVING OBJECT IS SIMPLE, EXISTING METHOD WORKS FINE HOWEVER, IF BACKGROUND OF TARGET REMOVING OBJECT IS COMPLEX, BETTER NEED ANOTHER METHOD
  • 6. BASELINE ▸ Semantic Image Inpainting with Deep Generative Models, R Yeh et al. CVPR 2017 6
  • 7. SEMANTIC IMAGE INPAINTING WITH DEEP GENERATIVE MODELS 7 ▸ DCGAN-Based ▸ Not end-to-end: ▸ 1. Train generator first (uncorrupted data) ▸ 2. Find z_hat for inpainting CONTEXTUAL LOSSPRIOR LOSS https://arxiv.org/abs/1607.07539
  • 8. SEMANTIC IMAGE INPAINTING WITH DEEP GENERATIVE MODELS 8 ▸ Hypothesis: Trained G is efficient- image not from pdata (e.g., corrupted data) should not lie on the learned encoding manifold, z ▸ Objective: Find encoding z_hat: “closest” to the corrupted image while being constrained to the manifold, ▸ y: corrupted image M: binary mask(size equal to the image) https://arxiv.org/abs/1607.07539 PRIOR LOSSCONTEXTUAL LOSS
  • 9. SEMANTIC IMAGE INPAINTING WITH DEEP GENERATIVE MODELS 9 ▸ Contextual Loss: Not simply l1 norm between G(z) and uncorrupted portion of input image y, do consider corrupted area ▸ Weighting term W, ▸ So, Wi: importance weight at pixel location i N(i): set of neighbors of pixel i in a local window BIGGER WEIGHT y: corrupted image M: binary mask(size equal to the image) https://arxiv.org/abs/1607.07539
  • 10. SEMANTIC IMAGE INPAINTING WITH DEEP GENERATIVE MODELS 10 ▸ Prior Loss: how realistic the generated image is ▸ Identical to the GAN loss for training the discriminator D, ▸ ▸ Without Lp, the mapping from y to z may converge to a perceptually implausible result https://arxiv.org/abs/1607.07539
  • 11. SEMANTIC IMAGE INPAINTING WITH DEEP GENERATIVE MODELS 11 ▸ Tackling points: ▸ Object-level occlusion: Narrowing down for object removal ▸ Contextual loss: A pixel that is very far away from any holes plays very little role in the inpainting process. ▸ What if..? ▸ Interpretation: Want to see the pixel which plays key role in deciding z_hat ▸ → Attention 1 2 3
  • 13. MY WORK 13 ▸ Object-level occlusion: Narrowing down to object removal ▸ MS-COCO Dataset ▸ Train set: 118287 ▸ COCO Api: Get annotations(instance) ▸ Use images which have person instance such that smaller than 1/4 of the image bigger than 1/20 of the image ▸ 30830, (rescale to 256x256) 1
  • 14. MY WORK 14 ▸ Limitation of contextual loss: less influence of farther part on inpainting ▸ Naive approach: for each grid of image, find pixel influence(attention_ratio) on finding optimal z_hat ▸ Do it subsequently, grid by grid occlusio 0.1 0.1 0.1 0.4 0.6 0.4 0.3 0.1 0.7 0.5 0.3 0.8 0.7 0.6 0.7 0.2 0.40.1 0.3 0.1 0.1 0.2 0.1 0.7 0.1 occlusio 2
  • 15. MY WORK 15 ▸ After finding optimal attention_ratio for each grid ▸ Find noize z hat based on ‘Original * Attn_Ratio image’ to reconstruct image ▸ Visualization of pixel influence on inpainting ORIGINAL ORIGINAL*ATTN_RATIOMASKED 3
  • 16. MY WORK 16 ▸ However… because of computation inefficiency, unable to learn ▸ (Current situation) Rethinking about the attention method.. WITHOUT ATTENTION, 1000 EPOCH WITH ATTENTION, 20 EPOCH
  • 18. REFERENCE ▸ Semantic image inpainting with Deep Generative Models, Raymond A. Yeh, Chen Chen, Teck Yian Lim, Alexander G. Schwing, Mark Hasegawa- Johnson, Minh N. Do, CVPR 2017, https://arxiv.org/abs/1607.07539 ▸ MS COCO dataset, http://cocodataset.org/#home 18