Learning a self-supervised tone mapping operator via feature contrast masking loss
Chao Wang1, Bin Chen1, Hans-Peter Seidel1
Karol Myszkowski1, Ana Serrano2
1Max-Planck-Institut für Informatik
2University of Zaragoza
Reims 2022
Luminance Mapping
2
| | | | | | |
10-6
10-4
10-2
100
102
104
106
108
Lumiance [cd/m2]
Cannot cover the real world luminance.
Reims 2022
High Dynamic Range Imaging
3
LDR | | HDR |
Up to 500 cd/m^2 | peak brightness | 2000 – 1000cd/m^2 |
50 dB | camera dynamic range | 120 dB |
1:1000 | display contrast | 1:1000 000 |
from 8 to 16 bit | quantization | Floating point or variable |
display-referred | image compression | scene-referred |
display-limited | fidelity | As good as the eye can see |
Reims 2022
High Dynamic Range Imaging
4
Display-referred | | Scene-referred |
Up to 500 cd/m^2 | peak brightness | 2000 – 1000cd/m^2 |
50 dB | camera dynamic range | 120 dB |
1:1000 | display contrast | 1:1000 000 |
from 8 to 16 bit | quantization | Floating point or variable |
display-limited | fidelity | As good as the eye can see |
Reims 2022
Tone Mapping
5
Real World
Display
Reims 2022
Challenge in Tone Mapping
6
Linear HDR
Tone Mapping Result
Reims 2022
Review
7
TMO
Traditional Methods
(Model Driven)
Global Methods
Local Methods
Learning-based Methods
(Data Driven)
[Jack 93], [Larson 97], [Drago 03], [Mantiuk 08]
[Fattal 02], [Reinhard 02], [Durand 02], [Mantiuk 06]
Reims 2022
Review
8
TMO
Traditional Methods
(Model Driven)
Global Methods
Local Methods
Learning-based Methods
(Data Driven)
Not user-friendly
Reims 2022
Review
9
TMO
Traditional Methods
(Model Driven)
Global Methods
Local Methods
Learning-based Methods
(Data Driven)
[Zhang 19], [Rana 19], [Panetta 21], [Zhang 21], [Guo 21]
Reims 2022
Review
10
TMO
Traditional Methods
(Model Driven)
Global Methods
Local Methods
Learning-based Methods
(Data Driven)
The HDR-LDR training pairs?
Not user-friendly
Reims 2022
Learning-based Methods
11
TMO 1
TMO 2
TMO 3
.....…
TMO N
TMQI 1
TMQI 2
TMQI 3
…….
TMQI N
The Best TMQI [1]
HDR
LDR Label
[1] Objective quality assessment of tone-mapped images. IEEE Transactions on Image processing, 2012
Reims 2022
Learning-based Methods
12
HDR inputs
LDR labels
Outputs
Training:
Reims 2022
Learning-based Methods
13
HDR inputs
LDR Prediction
Testing:
Reims 2022
Learning-based Methods
14
TMO
Traditional Methods
(Model Driven)
Global Methods
Local Methods
Learning-based Methods
(Data Driven)
Not user-friendly
No perfect TMO labels ;
Limited HDR image datasets
Reims 2022
Rethinking Tone Mapping
15
TM: Simpler task than image restoration
Reims 2022
Rethinking Tone Mapping
16
TM: Simpler task than image restoration
Key cues of Perception: Contrast [1]
[1] Vision science: Photons to phenomenology. MIT Press, 1999.
Reims 2022
Rethinking Tone Mapping
17
TM: Simpler task than image restoration
Key cues of Perception: Contrast [1]
[1] Vision science: Photons to phenomenology. MIT Press, 1999.
Self-supervised network & Label free (perfect image content adaptation )
Reims 2022
Rethinking Tone Mapping
18
TM: Simpler task than image restoration
Key cues of Perception: Contrast [1]
[1] Vision science: Photons to phenomenology. MIT Press, 1999.
Self-supervised network & Label free (perfect image content adaptation )
Problems to solve:
Reims 2022
HDR Distribution
19
HDR image (linear)
HDR Histogram
Reims 2022
LDR Distribution
20
LDR image
LDR Histogram
Reims 2022
μ-Law
21
[1] µ-law based hdr coding and its error analysis. IEICE Trans. (2011)
Reims 2022
μ-Law
22
X axis: Pixel value of HDR image
Y axis: Pixel value after μ law compression
[1] µ-law based hdr coding and its error analysis. IEICE Trans. (2011)
Reims 2022
Issues of μ-law
23
µ = 10
µ = 100
µ = 1000
A larger µ is better
Reims 2022
Issues of μ-law
24
A smaller µ is better
µ = 10
µ = 100
µ = 1000
Reims 2022
Issues of μ-law
25
A smaller µ is better
µ = 10
µ = 100
µ = 1000
A fixed µ cannot handle all situations!
Reims 2022
Adaptive μ-law
26
X axis: Median Value of HDR image
Y axis: Corresponding µ value
Reims 2022
Adaptive μ-law
27
X axis: Median Value of HDR image
Y axis: Corresponding µ value
Reims 2022
Distribution re-arrangement
28
HDR image (linear)
HDR image (Ada-µ)
Reims 2022
Loss Space
29
Feature Space
Image Space
Better in modeling human perception [1]
[1] Perceptual losses for real-time style transfer and super-resolution. ECCV 2016
Reims 2022
Perceptual Loss
30
Loss
Reims 2022
Perceptual Loss
31
Over exposed
Dark
Over exposed
Dark
Reims 2022
Feature Contrast Masking Loss
32
Feature Contrast
Self Feature Contrast Masking
Neighborhood Feature Contrast Masking
All contrast processing in feature space
Reims 2022
Feature Contrast
33
Convolution
Gaussian Kernel
P
Reims 2022
Self Feature Contrast Masking
34
** α promote low contrast and suppress high contrast like human visual system (HVS).
typical alpha = 0.5
Reims 2022
Neighborhood Feature Contrast Masking
35
: local standard deviation of feature maps
: local mean of feature maps
Reims 2022
Feature Contrast Masking Loss
36
Loss
FCM
FCM
Reims 2022
Visualization of FCM
37
Feature contrast masking visualization of VGG feature maps (1st layer, 18th channel).
Image
Feature map
Reims 2022
Visualization of FCM
38
Feature contrast masking visualization of VGG feature maps (1st layer, 18th channel).
Image
Feature map
FCM feature map
FCM
Self feature contrast masking map
Neighborhood feature contrast masking map
Reims 2022
FCM vs. Standard VGG Loss
39
Reims 2022
FCM vs. Standard VGG Loss
40
Reims 2022
FCM vs. Standard VGG Loss
41
Reims 2022
FCM V.S. Standard VGG Loss
42
arrow to emphasize
Reims 2022
Network Input
43
Logarithms
Darker Brightness
log2(luminance)
HDR image
-6
2
Reims 2022
Network Input
44
HDR generation
Multiple exposure sampling?
Certain number of exposures can keep all the HDR information [1]
[1] ꟻLIP: A Tool for Visualizing and Communicating Errors in Rendered Images. EG 2022.
Reims 2022
Network Input
45
Floating values;
Only the highlight region clipped;
Darker pixels are still there.
Reims 2022
Full Pipeline
46
Reims 2022
Network Structure
47
Reims 2022
Results Comparison
48
Reims 2022
Results Comparison
49
Reims 2022
Results Comparison
50
Reims 2022
Visualization Results
51
Ours
Guo
Zhang
Liang
Color shift
Blurry
Blurry & dark
Reims 2022
Visualization Results
52
Ours
Guo
Zhang
Liang
Artifacts
Blurry
Dark
Reims 2022
Visualization Results
53
Ours
Guo
Zhang
Liang
Artifacts
Blurry
Dark
Reims 2022
DeepTMO Comparison
54
Ours
DeepTMO [1]
Blurry
Saturated
[1] Deep Tone Mapping Operator for High Dynamic Range Images. IEEE Trans Image Processing (2019).
Reims 2022
DeepTMO Comparison
55
Ours
DeepTMO
Blurry
Saturated
Reims 2022
TMO-Net Comparison
56
Ours
TMO-Net [1]
Over-exposed
[1] TMO-Net: A Parameter-Free Tone Mapping Operator Using Generative Adversarial Network, and Performance Benchmarking on Large Scale HDR Dataset. IEEE Access 2021.
Reims 2022
TMO-Net Comparison
57
Ours
TMO-Net
Over-exposed
Reims 2022
Ablation Study: Adaptive μ-law
58
Adaptive μ-law
w/o Adaptive μ-law
Dark
Reims 2022
Ablation Study: Adaptive μ-law
59
Adaptive μ-law
w/o Adaptive μ-law
Artifacts
Saturated
Reims 2022
Ablation Study: FCM loss V.S VGG loss
60
FCM loss
VGG loss
Over exposed
Dark
Reims 2022
Ablation Study: FCM loss V.S VGG loss
61
FCM loss
VGG loss
Over exposed
Dark
Reims 2022
Ablation Study: MEI V.S Log inputs
62
Multiple Exposure Inputs
Log inputs
Reims 2022
Ablation Study: MEI V.S Log inputs
63
Multiple Exposure Inputs
Log inputs
Reims 2022
Limitation and Discussion
64
720 x 480: 126 s
Train image specific model
Time consuming
Offline Training
720 x 480: 0.12 s
Performance decrease a bit
Reims 2022
More contents
65
Reims 2022
Conclusion
66
Reims 2022
67
Thanks
Reims 2022