기본 정보
- 저자
- DOI
- 10.1109/ispa.2019.8868425
- 저널
- –
- 발행년도
- 2019
- 발행기관
- –
- 피인용수
- 5
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1109/ispa.2019.8868425
- 토픽
- Color Science and Applications
- OpenAlex ID
- W2961873110
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
Simple convolutional neural network was able to win ISISPA color constancy competition. Partial reimplementation of (Bianco, 2017) neural architecture would have shown even better results in this setup.
본문 17,006자
본문 펼치기
# Color Cerberus
A. Savchik <sup>1</sup>, E. Ershov <sup>1</sup>, and S. Karpenko <sup>1,2</sup>
1 _Institute_ _for_ _Information_ _Transmission_ _Problems_ _of_ _the_ _Russian_ _Academy_ _of_ _Sciences_ _(IITP_ _RAS)_
2 _Glidewell.io_
_Abstract_ —Simple convolutional neural network was able to win
ISISPA color constancy competition. Partial reimplementation of
[1] neural architecture would have shown even better results in
this setup.
I. INTRODUCTION
During the last decade, using convolutional neural network
as a baseline for almost any problem in computer vision has
became an industry standard. Time after time and setup after
setup even relatively small convolutional networks learned on
medium size datasets demonstrate excellent performance in a
wide variety of tasks.
The goal of ISISPA color constancy competition was to
predict the one ”main” light source spectrum from an image.
To be more precise, simple three dimensional lighting model
was used. About 2000 images were given, each of them having
grey cube posed into the scene. All images were taken with the
same camera (but in different modes, see below). The task was
to find three numbers, corresponding to pixel colors of some
side of the grey cube. Of course, during inference a zone with
the cube has to be masked.
Following the aforementioned approach, we have trained
classic LeNet architecture for this regression task. The winning
architecture has several tweaks as described in the last section
of the article.
As far as we know, CNN for color constancy was first
successfully tested in Bianco et al in [2] where it was applied
to reprocessed Gehler dataset [3]. Interestingly enough, that
network consisted of only one convolutional layer followed
by a single hidden fully connected layer.
That work was superseded by [1], with a slightly deeper
net as a local illuminant estimator. It also has a sophisticated
averaging procedure. After our LeNet-like net have been
submitted but before the ground truth have become available
we performed several experiments with local estimator from
Bianco et al. architecture. Now we know that it would have
shown even better results in the ISISPA contest.
We also experimented with modified Bianco et al. architecture and achieved even better results - however this
improvement is not statistically significant and requires further
investigations.
We start with analysis of datasets available in the field of
color constancy. Then we report our learning procedure and the
winning network architecture. We conclude with few general
remarks on CNN applicability to color constancy tasks.
Fig. 1. Chromaticities distribution on two-dimensional plane, where horizontal axis is R/G, while vertical B/G.
II. DATASETS
_A._ _Collecting_
During the contest we’ve tried to leverage some publicly
available datasets in addition to Cube+ [4]. such as INTELTUT [5], NUS [6], Grey Ball [7] and Color Checker [8].
At first glance one of the most promising datasets was
INTEL-TUT. First of all its huge (about 100GB), moreover
authors declare that its purpose is to be the base for cameraindependent color constancy solution development. In fact
it has just 3 different cameras: 2 photo cameras and 1
smartphone camera. Interesting fact, that INTEL-TUT images
doesn’t contain any color calibrating object in the scene. On
one hand it helps to eliminate problems with calibration object
and tripod masking, on the other hand we loose opportunity to
re-check markup consistency. The size of dataset is huge just
because its contains huge RAW files (50-100 MB each), the
number of different images is approximately 1000. Despite the
fact that dataset has corresponding paper it still remains poorly
documented: it is hard to understand how authors measure
ground truth for non-laboratory cases.
The second promising dataset was NUS, because it contains
images captured by the same sensor (Canon 550D and 600D
have the same matrix and default lens). Indeed, we found two
really close subdatasets to Cube+ that is ones collected with
Canon 600D and Nikon D40, as shown in figure 1.
Also we’ve selected a bunch of subdatasets which is a
bit less similar with Cube+. These was images captured by
Olympus EMLI6, Panasonic GX1, Canon 1D, see figure 2.
Fig. 2. Chromaticities distribution on two-dimensional plane, where horizontal axis is R/G, while vertical B/G.
Fig. 3. Chromaticities distribution on two-dimensional plane, where horizontal axis is R/G, while vertical B/G.
The rest cameras highly differ from Cube+ dataset, see
figure 3. Note that chromaticities distribution for each camera
has pretty similar structure: it is possible to select outdoor and
indoor clusters, so maybe it is possible to compute some good
projective transform between two distribution on chromaticity
plane to augment the data, but we haven’t try this idea.
The rest two datasets (ColorChecker, GreyBall) was downloaded, but we haven’t use them during context, nevertheless
these two datasets gives really good opportunity to estimate
our solution performance and in some sense Cube+ representativity.
_B._ _Cube+_ _augmentation_
The other way to obtain more data for training is the
color augmentation: we always can multiply each image pixel
and estimated source vector element-wise with 3D vector,
which in RGB (or “zonal”) model equivalent to source color
transformation.
So, theoretically we can get as many image from relatively
small dataset as we want. But, there is some peculiarity
with saturation: it is normal to multiply saturated pixel by
value greater than 1 (they are already saturated), but reverse
operation isn’t correct. If we divide saturated pixel with some
value we will get unnatural image behaviour: saturated edge
on histogram will be located far from image maximum.
It leads us to problem: how to evaluate saturation value
for particular image? Authors of the dataset write on the
corresponding web page: ”To make a conclusion about the
maximum allowed intensity values of non-clipped pixels in the
dataset images, histograms of intensities for various images
were observed. If m is the maximum intensity for a given
dataset image in any of its channels, then the best practice
is to discard all image pixels that have a channel intensity
that is greater than or equal to _m −_ 2”. But if we look at the
histogram of maximum of images for each channel, we will
see interesting behaviour: there are some peaks near 12600,
13600 and 15300, see figure 4.
Fig. 4. Histogram of image maximums for each channel.
Indeed, maximum value seems to vary from image to image.
We’ve parsed EXIF files, provided by organizers and figure
out that images was captured with different ISO level. That
means that sensitivity setup differ from image to image and
as it turned out it affect on the saturation level. Finally we’ve
figured out that images ISO and saturation level is hardly
connected as shown in table I. So, using this meta data we
can overcome problem with saturation level.
<u>Saturation</u> <u>value</u> <u>ISO</u>
<u>12652</u> <u>160,</u> <u>320,</u> <u>640,</u> <u>1250</u>
<u>13584</u> <u>100,</u> <u>125</u>
<u>15306</u> <u>200,</u> <u>250,</u> <u>400,</u> <u>500,</u> <u>800,</u> <u>1000,</u> <u>1600</u>
<u>15324</u> <u>6400</u>
<u>TABLE</u> <u>I</u>
CORRESPONDENCE BETWEEN SATURATION VALUE AND ISO LEVEL FOR
CANON 550D.
Unfortunately, such augmentation didn’t help. Probably this
is because we haven’t taken into account the type of a scene
during augmentation, which could corrupt some semantic content of the dataset. For example, outdoor scene probably wont
be illuminated by greenish light. So, may be it is reasonable
to restrict the difference between real source chromaticity and
generated or somehow take into account scene type.
_C._ _Dataset_ _and_ _contest_ _metric_ _features_
The main metric of success in this competition was median
of reproduction error [9]:
_,_ (1)
3
_E_ ( _t, p_ ) = arccos
_<u>⟨p/t,</u>_ <u>[1</u> _<u>,</u>_ <u>1</u> _<u>,</u>_ <u>1]</u> _<u>⟩</u>_
_|p/t| ·_
_~~√~~_
where _t_, _p_ - ground truth and estimated source chromaticity
correspondingly, sign “ _/_ ” means element-wise division, and
“ _⟨·, ·⟩_ ” means dot product.
The median in the score allows us to make huge mistakes
for half of all images in test dataset without any penalty.
For example we can unfettered ignore all night and indoor
images and work only with outdoor dataset (outdoor subset
is bigger than union of the rest images). Finally we’ve found
that the constant value (0 _._ 17 _,_ 0 _._ 40 _,_ 0 _._ 27) has score 2 _,_ 03, which
is better than gray world score. This value is located in the
middle of outdoor cluster located in the upper left corner in
scatter plot 1.
Despite the rest datasets, Cube+ uses SpyderCube object
to perform illuminance chromaticity evaluation. The shape
and color of the SpyderCube allows to retrieve two different
estimation of the illumination (two white cube edges) chromaticities in the scene. In fact, both estimation is a mixture of
all light sources in the scene, that is why organizers provide
ground truth for both edges of the cube, moreover they’ve
performed selection of the dominant edge, i.e. dominant light
source. In our solution we’ve made the attempt to utilize this
information.
III. SOLUTION
During the contest we’ve performed approximately 150
training experiments, tested a few different architectures, including several convolutional neural networks and U-Net-like
networks with global answer averaging. Also we’ve experimented with data augmentation, online patch selection, two
downscale methods, different patch sizes and _L_ 2 regularization
coefficients.
Training dataset was formed by randomly selected 1390 images from the Cube+ dataset. For all training images we’ve set
ROI as _x <_ 1900 to exclude SpyderCube. Then we’ve picked
100 random patches on each image (every patch was a square
with random size from the list: 64 _×_ 12, 64 _×_ 18, 64 _×_ 24), after
that each patch was downscaled with downlscale <u>local</u> <u>mean</u>
function [10] to the shape 64 _×_ 64 _×_ 3. The rest 317 images from
Cube+ (totally it contains 1707 images) were used to form
validation datasets (we’ve picked and downscaled a single
random 64 _×_ 24 patch from each image): val1 and val2.
_A._ _What_ _have_ _we_ _submit?_
The best result on our validation data was achieved by a
convolution neural network method with a GrayWorld (see
Fig. 5) calculated in the first layers with _L_ 2-regularization
parameter _r_ = 10 <sup>_−_</sup> <sup>5</sup> . As was mentioned before the network
was learned to predict not only the answer (3 numbers), but
also both sides of the grey cube, 9 number in total. So, it’s like
Fig. 5. Architecture of the winning network. AvgPool+UpSampling branch
calculates the GrayWorld method and being concatenated with the input
image.
3-headed, that’s why we’ve called this paper color cerberus.
We’ve trained several networks with the same parameters and
choose the best one according the validation (see Fig. 6). Here
“Conv 3 _×_ 3 _×_ _N_ _→_ _M_ ” denotes convolution layer with 3 _×_ 3
window size, _N_ input filter and _M_ output filter.
The best loss function happens to be the mean absolute error
(MAE), that just averages all the absolute difference values:
��� _tij_ <sup>_−_</sup> <sup>_p_</sup> _i_ <sup>_j_</sup>
_,_
3 _n_
���
_MAE_ ( _T, P_ ) =
_i,j_
_i_
where _Ti_ <sup>_j_</sup>
_i_ <sup>_j, P_</sup> _i_ <sup>_j_</sup>
where _Ti_ <sup>_j, P_</sup> _i_ <sup>_j, i_</sup> <sup>_∈{_</sup> <sup>1</sup> <sup>_, ..., n}, j_</sup> <sup>_∈{_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_,_</sup> <sup>3</sup> <sup>_}_</sup> <sup>are</sup> <sup>respectively</sup>
ground Truth and Predicted values. Also we’ve tested mean
square error (MSE) and averaged Finlayson distance but
validation results was worse.
Finally, taking into account that our goal was median
Finlayson error, at each learning step we’ve threw out outliers,
precisely we’ve ignored the worst 20% and the best 1% of
patches in every 256-length mini-batch.
During the contest we’ve tried to develop some averaging
technique to use all learning results and boost quality. We’ve
tried three ways: simple answer averaging, weighted averaging
(weights was equal to subvalidation score), searching the
closest answer to the rest answers. Unfortunately all this
methods fails, so we’ve decided simply choose network with
smallest validation value. Indeed, it can be seen from figure
(5) that there is some dependency between validation and test
scores.
Fig. 6. Median Finlayson distance on validation/test scatter plot for different
variation of winner architecture of neural networks. The red line denotes the
score of the 2nd place in the contest, the green line – the first place. Numbers
show average Finlayson distance.
Fig. 7. Architecture of the Bianco neural network [1]. There are just a few
layers, 3 outputs and no implicit GreyWorld calculation.
_B._ _What_ _does_ _really_ _work?_
After the competition was over, we thoroughly tested the
group of methods based on the [1]. It was not a full-fledged
reimplementation: only a local estimator was trained (see Fig.
7).
We experimented with them during the competition, although these nets were slower to train and showed themselves
worse on early validations. However, local estimator from [1]
shows great quality with less parameter tuning 8.
IV. CONCLUSION
Despite of their widespread use, the effectiveness of multilayer CNN is still not so easy to explain. The most popular
story - that a well trained CNN architecture enforces some
kind of hierarchical image analysis, with lower levels corresponding to local texture features and higher levels being
responsible for semantics - is not only vague and incomplete,
but also partially wrong: the texture bias of CNNs is now a
well established issue.
For the global illuminant estimation task this texture bias
is, as it seems, not a curse but a blessing.
On the other hand, more principled analysis of local illumination histograms as performed in [1] has clear advantages.
One can easily see the connections of this approach to both
Fig. 8. Bianco architecture [1] versus winner architecture. The red line denotes
the score of the 2nd place in the contest, the green line - the first place.
Numbers show average Finlayson distance.
classical gamut estimation in color vision, and a popular
PointNet architecture for 3d point cloud processing.
To make further progress the community needs better data
to check applicability of more sophisticated approaches, and
Cube+ effort is definitely a good step in that direction.
AFFILIATION
We are very grateful to Konstantin Soshin and Arseniy
Terekhin for helping with dataset collection and processing,
also to Dmitry Nikolaev for fruitful advises.
The paper was partially funded by RFBR according to the
research project #17-29-03514 .
REFERENCES
[1] S. Bianco, C. Cusano, and R. Schettini, “Single and multiple illuminant
estimation using convolutional neural networks,” _IEEE_ _Transactions_ _on_
_Image_ _Processing_, vol. 26, no. 9, pp. 4347–4362, 2017.
[2] ——, “Color constancy using cnns,” in _Proceedings_ _of_ _the_ _IEEE_
_Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition_ _Workshops_,
2015, pp. 81–89.
[3] L. Shi and B. Funt. Re-processed version of the gehler color
constancy dataset of 568 images. [Online]. Available: [http://www.cs.](http://www.cs.sfu.ca/~colour/data/)
sfu.ca/ <sup>_∼_</sup> [colour/data/](http://www.cs.sfu.ca/~colour/data/)
[4] N. Bani´c and S. Lonˇcari´c, “Unsupervised learning for color constancy,”
_arXiv_ _preprint_ _arXiv:1712.00436_, 2017.
[5] C¸ . Aytekin, J. Nikkanen, and M. Gabbouj, “A data set for camera
independent color constancy,” _IEEE_ _Transactions_ _on_ _Image_ _Processing_,
vol. 27, no. 2, pp. 530–544, 2017.
[6] D. Cheng, D. K. Prasad, and M. S. Brown, “Illuminant estimation for
color constancy: why spatial-domain methods work and the role of the
color distribution,” _JOSA_ _A_, vol. 31, no. 5, pp. 1049–1058, 2014.
[7] F. Ciurea and B. Funt, “A large image database for color constancy
research,” in _Color_ _and_ _Imaging_ _Conference_, vol. 2003, no. 1. Society
for Imaging Science and Technology, 2003, pp. 160–164.
[8] G. Hemrit, G. D. Finlayson, A. Gijsenij, P. Gehler, S. Bianco, B. Funt,
M. Drew, and L. Shi, “Rehabilitating the colorchecker dataset for
illuminant estimation,” in _Color_ _and_ _Imaging_ _Conference_, vol. 2018,
no. 1. Society for Imaging Science and Technology, 2018, pp. 350–
353.
[9] G. D. Finlayson and R. Zakizadeh, “Reproduction angular error: An
improved performance metric for illuminant estimation,” _perception_, vol.
310, no. 1, pp. 1–26, 2014.
[10] “downscale local mean,” [https://scikit-image.org/docs/dev/api/skimage.](https://scikit-image.org/docs/dev/api/skimage.transform.html)
[transform.html.](https://scikit-image.org/docs/dev/api/skimage.transform.html)
섹션 본문
섹션 본문이 없습니다.
참고문헌 6건
- Illuminant estimation for color constancy: why spatial-domain methods work and the role of the color distribution Journal of the Optical Society of America A · Optica Publishing Group · 2014 10.1364/josaa.31.001049
- A Data Set for Camera-Independent Color Constancy IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2017 10.1109/tip.2017.2764264
- Rehabilitating the ColorChecker Dataset for Illuminant Estimation Color and Imaging Conference · Society for Imaging Science & Technology · 2018 10.2352/issn.2169-2629.2018.26.350
- Color constancy using CNNs 2015 10.1109/cvprw.2015.7301275
- Reproduction Angular Error: An Improved Performance Metric for Illuminant Estimation 2014 10.5244/c.28.70
- Single and Multiple Illuminant Estimation Using Convolutional Neural Networks IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2017 10.1109/tip.2017.2713044