Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… ·...

25
Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang, Richard, Phillip Isola, and Alexei A. Efros. "Colorful image colorization." European conference on computer vision . Springer, Cham, 2016.

Transcript of Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… ·...

Page 1: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Colorful Image ColorizationCS 898 Spring 2019

Presented by: Zhixiang Meng

Zhang, Richard, Phillip Isola, and Alexei A. Efros. "Colorful image colorization." European conference on computer vision. Springer, Cham, 2016.

Page 2: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Agenda

● Problem

● Methods

○ Objective Function

○ Annealed Mean

● Evaluation

○ Perceptual Realism Test

○ Semantic Interpretability

○ Task Generalization

Page 3: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

ProblemGiven a grayscale photograph as input,

how to hallucinate a plausible color version of the photograph?

Page 4: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

ProblemGiven a grayscale photograph as input,

how to hallucinate a plausible color version of the photograph?

“could potentially fool a human observer”

Page 5: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Method

Grayscale Image: L channel Concatenate (L,ab)

L ab

Page 6: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Objective Function

● Euclidean Loss (Unimodal)

○ L2 Regression

○ Favors grayish, desaturated results

Colors in ab space(Continuous)

Page 7: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Objective Function

● Euclidean Loss (Unimodal)

● Multimodal Classification

Colors in ab space(Discrete)

Page 8: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Example

Page 9: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Objective Function

● Euclidean Loss (Unimodal)

● Multimodal Classification

○ Most of the distribution is at the center of the gamut, where

colors are desaturated and bland

○ The predictions will tend to be desaturated

Empirical Distribution of ab Values(in log scale)

Page 10: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Objective Function

● Euclidean Loss (Unimodal)

● Multimodal Classification

● Class rebalancing to encourage learning of rare colors

Empirical Distribution of ab Values(in log scale)

Page 11: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Class Rebalancing

● Class rebalancing to encourage learning of rare colors

Empirical Distribution of ab Values(in log scale)

Page 12: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Annealed Mean

● Choice A: Take the mode of the predicted distribution for each pixel

○ This provides a vibrant but sometimes spatially inconsistent result

Page 13: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Annealed Mean

● Choice A: Take the mode of the predicted distribution for each pixel

○ This provides a vibrant but sometimes spatially inconsistent result

● Choice B: Taking the mean of the predicted distribution

○ This produces spatially consistent but desaturated results

Page 14: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Annealed Mean

● Choice A: Take the mode of the predicted distribution for each pixel

○ This provides a vibrant but sometimes spatially inconsistent result

● Choice B: Taking the mean of the predicted distribution

○ This produces spatially consistent but desaturated results

● Choice C: Re-adjusting the temperature T of the softmax distribution,

and taking the mean of the result

Page 15: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Annealed Mean

Page 16: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Network Architecture

Page 17: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Evaluation

● Colorization Quality

● Perceptual Realism Test

● Set up a “colorization Turing test”

● They show participants real and

synthesized colors for an image,

and ask them to identify the fake

Page 18: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Evaluation

Page 19: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Evaluation

Page 20: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Evaluation

● Semantic Interpretability

● VGG Classification

● Feed colorized images into VGG

model and test the classification

accuracy

Page 21: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Task Generalization

● Cross-Channel Encoding as

Self-Supervised Feature Learning

● To evaluate the feature representation

● Freeze the weights of the network,

provide semantic labels, and train linear

classifiers on each convolutional layer

Page 22: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Task Generalization

● Does the feature representation transfer to other datasets and tasks?

● Fine-tune the model on PASCAL VOC on classification, detection, and segmentation

Page 23: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Task Generalization

● Does the feature representation transfer to other datasets and tasks?

Page 24: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,

Results

Page 25: Colorful Image Colorization - University of Waterlooyboykov/Courses/cs898/Presentations_201… · Colorful Image Colorization CS 898 Spring 2019 Presented by: Zhixiang Meng Zhang,