Add Batch 1d06761f-f11f-499d-86bf-a2b106831a51
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_content_list.json +3 -0
- onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_model.json +3 -0
- onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_origin.pdf +3 -0
- onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/full.md +341 -0
- onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/images.zip +3 -0
- onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/layout.json +3 -0
- onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_content_list.json +3 -0
- onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_model.json +3 -0
- onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_origin.pdf +3 -0
- onlineknowledgedistillationviacollaborativelearning/full.md +329 -0
- onlineknowledgedistillationviacollaborativelearning/images.zip +3 -0
- onlineknowledgedistillationviacollaborativelearning/layout.json +3 -0
- oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_content_list.json +3 -0
- oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_model.json +3 -0
- oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_origin.pdf +3 -0
- oopspredictingunintentionalactioninvideo/full.md +373 -0
- oopspredictingunintentionalactioninvideo/images.zip +3 -0
- oopspredictingunintentionalactioninvideo/layout.json +3 -0
- opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_content_list.json +3 -0
- opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_model.json +3 -0
- opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_origin.pdf +3 -0
- opencompounddomainadaptation/full.md +318 -0
- opencompounddomainadaptation/images.zip +3 -0
- opencompounddomainadaptation/layout.json +3 -0
- opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_content_list.json +3 -0
- opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_model.json +3 -0
- opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_origin.pdf +3 -0
- opticalflowindensefoggyscenesusingsemisupervisedlearning/full.md +383 -0
- opticalflowindensefoggyscenesusingsemisupervisedlearning/images.zip +3 -0
- opticalflowindensefoggyscenesusingsemisupervisedlearning/layout.json +3 -0
- opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_content_list.json +3 -0
- opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_model.json +3 -0
- opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_origin.pdf +3 -0
- opticalflowinthedark/full.md +250 -0
- opticalflowinthedark/images.zip +3 -0
- opticalflowinthedark/layout.json +3 -0
- opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_content_list.json +3 -0
- opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_model.json +3 -0
- opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_origin.pdf +3 -0
- opticalnonlineofsightphysicsbased3dhumanposeestimation/full.md +265 -0
- opticalnonlineofsightphysicsbased3dhumanposeestimation/images.zip +3 -0
- opticalnonlineofsightphysicsbased3dhumanposeestimation/layout.json +3 -0
- optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_content_list.json +3 -0
- optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_model.json +3 -0
- optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_origin.pdf +3 -0
- optimalleastsquaressolutiontothehandeyecalibrationproblem/full.md +429 -0
- optimalleastsquaressolutiontothehandeyecalibrationproblem/images.zip +3 -0
- optimalleastsquaressolutiontothehandeyecalibrationproblem/layout.json +3 -0
- optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_content_list.json +3 -0
- optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_model.json +3 -0
onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d8c3ba3abdc0cd9c153c5c5bbf4bd077e6a43b025a980d879d80392e83879c8
|
| 3 |
+
size 79274
|
onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:50667f0a5de125b19a3acb8080a3ddfcf461d54b32b6eacabac9aabcb64ab9f4
|
| 3 |
+
size 95482
|
onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab27414107ea5b9779db416ef0956df6911d89bbc4e4ebd422d3091852d1c73b
|
| 3 |
+
size 2261554
|
onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/full.md
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Online Joint Multi-Metric Adaptation from Frequent Sharing-Subset Mining for Person Re-Identification
|
| 2 |
+
|
| 3 |
+
Jiahuan Zhou $^{1}$ , Bing Su $^{2}$ , Ying Wu $^{1}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ Department of Electrical and Computer Engineering, Northwestern University, US
|
| 6 |
+
|
| 7 |
+
$^{2}$ Institute of Software, Chinese Academy of Science, China
|
| 8 |
+
|
| 9 |
+
zhoujh09@gmail.com, subingats@gmail.com, yingwu@northwestern.edu
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Person Re-Identification (P-RID), as an instance-level recognition problem, still remains challenging in computer vision community. Many P-RID works aim to learn faithful and discriminative features/metrics from offline training data and directly use them for the unseen online testing data. However, their performance is largely limited due to the severe data shifting issue between training and testing data. Therefore, we propose an online joint multi-metric adaptation model to adapt the offline learned P-RID models for the online data by learning a series of metrics for all the sharing-subsets. Each sharing-subset is obtained from the proposed novel frequent sharing-subset mining module and contains a group of testing samples which share strong visual similarity relationships to each other. Unlike existing online P-RID methods, our model simultaneously takes both the sample-specific discriminant and the set-based visual similarity among testing samples into consideration so that the adapted multiple metrics can refine the discriminant of all the given testing samples jointly via a multi-kernel late fusion framework. Our proposed model is generally suitable to any offline learned P-RID baselines for online boosting, the performance improvement by our model is not only verified by extensive experiments on several widely-used P-RID benchmarks (CUHK03, Market1501, DukeMTMCreID and MSMT17) and state-of-the-art P-RID baselines but also guaranteed by the provided in-depth theoretical analyses.
|
| 14 |
+
|
| 15 |
+
# 1. Introduction
|
| 16 |
+
|
| 17 |
+
Person Re-Identification (P-RID), aiming to retrieve the same identity images of a query probe from a gallery set, is not only an attractive research task in computer vision community, but also a critical link to the practical applications such as public camera surveillance. A popular solution to P-RID is to perform supervised feature/metric learn
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1. The normalized pair-wise distance distributions of both training and testing samples based on the well-trained HA-CNN model on Market1501 dataset demonstrate the severe training-testing data distribution shifting issue, where the extremely challenging hard negative distractors (in blue box) will significantly influence the retrieval accuracy (the Original top-10 retrieval results). Even using the state-of-the-art online re-ranking method [45] (RR), the ground-truth (in red box) still has a lower rank than the distractors. Our method succeeds in handling the distractors so that the true-match is successfully re-ranked to the top position in the list (Ours).
|
| 21 |
+
|
| 22 |
+
ing [2, 29, 18, 30, 6, 40, 12] from the offline training data, then directly apply them to the online unsupervised testing data for evaluation. However, due to the severe training-testing data distribution shifting (testing data are drawn from totally different classes against the training data as shown in Fig. 1) caused by large variations in visual appearance, human pose, camera viewpoint, illumination change, and background clutter, the performance of offline learned models is limited indeed.
|
| 23 |
+
|
| 24 |
+
The root of such a limited performance is its treatment regardless of the information of online testing data themselves. So a straightforward solution is adapting the offline learned models for the online testing data to narrow the distribution gap. Recently, various online P-RID methods are proposed which can be roughly categorized into two branches. The set-centric re-ranking approaches [35, 9, 43, 3, 1] focus on optimizing the ranking list of queries based on the similarity relationships among
|
| 25 |
+
|
| 26 |
+
testing samples. Their performances totally rely on the offline learned models from training data while treat different testing samples equally ignoring the individual characteristics, hence the improvement is neither significant nor stable. The other category is query-specific metric adaptation [17, 38, 45] which aims to enhance the discriminant of each query individually. The generic offline learned metric is adapted to an instance-specific local metric for each query. Compared with the set-centric ones, the individual discriminant of queries is enhanced while the visual similarity relationships among given testing samples are ignored. Moreover, existing query-specific models [17, 38, 45] completely ignore the counterpart gallery data during adaptation. Even a discriminative probe-specific metric can be learned, the "hard" gallery samples with large intra-class and small inter-class variances will tremendously degrade its performance since they are still indistinguishable under the learned query-specific metric (Fig. 1).
|
| 27 |
+
|
| 28 |
+
In order to tackle the aforementioned issues, we propose a novel online joint multi-metric adaptation algorithm which not only takes individual characteristics of testing samples into consideration but also fully explore the visual similarity relationships among both query and gallery samples. As shown by Fig. 2, at the online P-RID testing stage, the redundant intrinsic visual similarity relationships among unlabeled query (gallery) set are utilized by our proposed frequent sharing-subsets mining model to automatically mine the concise and strong visual sharing associations of samples. Since a sharing-subset contains a group of queries (galleries) sharing strong visual similarity to each other, their local distributions will be jointly adjusted by efficiently learning a Mahalanobis metric for all of them. Once a series of such kind of sharing-subset based Mahalanobis metrics are learned, for each query (gallery), its instance-specific local metric is obtained via a multimetric late fusion of all the sharing-subset based Mahalanobis metrics. Therefore, our proposed online joint Multi-Metric adaptation model based on the frequent sharing-subsets Mining (denoted as $\mathbf{M}^3$ ) is able to refine the ranking performance online. The success of learning from sharing relies on discovering the latent sharing relationships among samples, which cannot be found by treating each instance independently [4]. Learning from sharing is good at handling such condition that only a limited number of learning data are available by taking the sharing relationships as data augmentation. Therefore the sharing strategy is particularly suitable for online P-RID learning in where each testing sample itself is the only positive sample available for learning.
|
| 29 |
+
|
| 30 |
+
The main contributions of this paper are as follows: (1) To handle the severe shifted training-testing data distribution issue in P-RID, we leap from offline global learning to online instance-specific metric adaptation. We propose
|
| 31 |
+
|
| 32 |
+
a general and flexible learning objective to simultaneously enhance the local discriminant of testing query and gallery data. (2) By mining various frequent sharing-subsets, the intrinsic visual similarity sharing relationships are fully explored. Therefore the online time cost of learning metrics from sharing is much more smaller than learning local metrics independently. (3) To fulfill the time-efficient requirement of online testing, a theoretical sound optimization solution is proposed for efficient learning which is also proven to guarantee the improvement of performance. (4) Our proposed model can be readily applied to any existing offline P-RID baselines for online performance improvement. The efficiency and effectiveness of our method are further verified by the extensive experiments on four challenging P-RID benchmarks (CUHK03, Market1501, DukeMTMCreID and MSMT17) based on various state-of-the-art P-RID models.
|
| 33 |
+
|
| 34 |
+
# 2. Related Work
|
| 35 |
+
|
| 36 |
+
Online Re-Ranking in P-RID: In recent years, increasing efforts have been paid to online P-RID re-ranking. Ye et al. [35] revised the ranking list by considering the nearest neighbors of both the global and local features. An unsupervised re-ranking model proposed by Garcia et al. [9] takes advantage of the content and context information in the ranking list. Zhong et al. [43] proposed a $k$ -reciprocal encoding approach for re-ranking, which relies on a hypothesis that if a gallery image is similar to the probe in the $k$ -reciprocal nearest neighbors, it is more likely to be a true-match. Zhou et al. [45] proposed to learn an instance-specific Mahalanobis metric for each query sample by using extra negative learning samples at online stage. Barman et al. [3] focused on how to make a consensus-based decision for retrieval by aggregating the ranking results from multiple algorithms, only the matching scores are needed. Bai et al. [1] concentrated on re-ranking with the capacity of metric fusion for P-RID by proposing an Unified Ensemble Diffusion (UED) framework. However, the aforementioned online re-ranking methods either simply treat different testing samples equally without considering the instance-specific characteristics or completely ignore the intrinsic visual similarity relationships among testing samples, so that the performance improvement is neither stable nor significant.
|
| 37 |
+
|
| 38 |
+
CNN-based Feature Extraction in P-RID: CNN-based feature extraction has achieved the state-of-the-art performance in P-RID. A novel Harmonious Attention CNN (HA-CNN) proposed by Li et al. [18] tries to jointly learn attention selection and feature representation in a CNN by maximizing the complementary information of different levels of visual attention (soft attention and hard attention). Wang et al. [30] proposed a novel deeply supervised fully attentional block that can be plugged into any CNNs to solve
|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
Figure 2. The online testing query and gallery samples are fed into the offline learned baseline model to obtain the feature descriptors firstly. The proposed frequent sharing-subset (SSSet) mining model is performed to the extracted features to generate multiple sharing-subsets which are further utilized by the proposed joint multi-metric adaptation model (The same sample may be contained by multiple SSSets since it shares different visual similarity relationships with different samples.). By fusing the learned matching metrics for each query and gallery sample, our final ranking list is obtained by a bi-directional retrieval matching (Sec. 3.5).
|
| 42 |
+
|
| 43 |
+
P-RID problem, and a novel deep network called Mancs is designed to learn stable features for P-RID. Hou et al. [12] proposed the Spatial Interaction-and-Aggregation (SIA) and Channel Interaction-and-Aggregation (CIA) modules to improve the representational capacity of deep convolutional networks. Chen et al. [6] proposed an Attentive but Diverse Network (ABD-Net) which integrates attention modules and diversity regularizations throughout the entire network to learn features that are representative, robust, and more discriminative for P-RID. Zheng et al. [40] aimed at improving the learned P-RID features by better leveraging the generated data by designing a joint learning framework that couples P-RID learning and data generation end-to-end. However, these well-trained networks are directly applied to the testing data for feature extraction and evaluation, the data distribution shifting between training and testing samples definitely limits the performance of these models. Therefore, our proposed method is suitable for any CNNs for sample-specific local metric adaptation at inference stage aiming to address the data shifting issue well and gain a further performance improvement.
|
| 44 |
+
|
| 45 |
+
# 3. $\mathbf{M}^3$ : Online Joint Multi-Metric Adaptation from Frequent Sharing-Subset Mining
|
| 46 |
+
|
| 47 |
+
# 3.1. Problem Settings and Notations
|
| 48 |
+
|
| 49 |
+
At the online testing stage of P-RID, two disjoint datasets, a query set $\mathcal{Q}$ and a gallery set $\mathcal{G}$ are given as:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
\mathcal {Q} = \{(q _ {i}, l _ {i} ^ {q}) \} _ {i = 1} ^ {n _ {q}} \quad \mathcal {G} = \{(g _ {i}, l _ {i} ^ {g}) \} _ {i = 1} ^ {n _ {g}}
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
that $q_{i}, g_{i} \in \mathbb{R}^{d}$ are the extracted feature representations from an offline baseline model, either handcraft features or learned deep features. $l_{i}^{q}, l_{i}^{g} \in \{1,2,\dots,c\}$ are the labels from $c$ classes which are totally different from the training
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
Figure 3. A CFI-Tree is constructed based on $\mathcal{T}$ . The same identity may be contained by multiple $t_i$ so that there may be multiple nodes for the same identity.
|
| 59 |
+
|
| 60 |
+
sample classes. P-RID aims to rank $\mathcal{G}$ for a query probe $q$ based on the pair-wise similarity distance to a gallery $g$ , $d(q, g) = \| q, g\|^2$ . Our goal is to re-rank $\mathcal{G}$ for $q$ by refining $d(q, g)$ to improve the rank of true-matches for $q$ .
|
| 61 |
+
|
| 62 |
+
# 3.2. Unsupervised Frequent Sharing-Subset Mining
|
| 63 |
+
|
| 64 |
+
Although the identity label $\{l_i^q\} (\{l_i^g\})$ is unknown during testing, the visual similarity relationships of $\mathcal{Q}$ $(\mathcal{G})$ are intrinsic and verified to be effective in investigating the underlying similarity structure of samples by previous online re-ranking methods [9, 43]. However, due to the large-scale sample size (especially for $\mathcal{G}$ ), the redundancy and repeatability of visual similarity relationships significantly limit the performance of previous online P-RID methods. Inspired by the well-established frequent itemset mining technique [8], we propose an unsupervised frequent sharing-subset (SSSet) mining algorithm to automatically mine frequent SSSets $\{\mathcal{S}_i\}_{i = 1}^{n_s}$ from $\mathcal{Q}$ , that all the samples in $\mathcal{S}_i$ share a Strong Association Rule on visual similarity [8].
|
| 65 |
+
|
| 66 |
+
Therefore, the mined SSSets not only keep the strong and reliable visual similarity sharing information but also significantly alleviate the redundancy. Compared with the original combinatorial problem suffering from exponential computation complexity $O(2^n)$ , the time complexity of our proposed algorithm is $O(n^2)$ which is much more efficient when a large scale of testing samples are given.
|
| 67 |
+
|
| 68 |
+
Considering $\mathcal{Q}$ as the given Item set, we firstly prepare a Transaction set $\mathcal{T} = \{t_i\}_{i=1}^{n_t}$ from $\mathcal{Q}$ where each $t_i$ is a subset of $\mathcal{Q}$ . The affinity matrix $\mathbf{A} \in \mathbb{R}^{n_q \times n_q}$ of $\mathcal{Q}$ is defined as:
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
A _ {i, j} = \left\{ \begin{array}{l} \exp \left(\frac {- d \left(q _ {i} , q _ {j}\right)}{2 \sigma}\right) / \sum_ {j} \exp \left(\frac {- d \left(q _ {i} , q _ {j}\right)}{2 \sigma}\right), j \neq i \\ 0, j = i \end{array} \right. \tag {1}
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
where $\sigma$ is the variance parameter of distance matrix from $\mathcal{Q}$ so that $A_{i,j}$ represents the soft-max normalized visual similarity between $q_{i}$ and $q_{j}$ . The $i$ -th row of $\mathbf{A}$ represents the similarity distribution between $q_{i}$ and the other samples in $\mathcal{Q}$ . To keep only the most reliable sharing relationships, a threshold $\Theta$ defined as the average affinity of $\mathcal{Q}$ is used for outlier filtering: $\Theta = \sum_{i=1}^{n_q} \sum_{j=1}^{n_q} A_{i,j} / n_q \cdot n_q$ . Therefore, a binary index map $\mathbf{B}$ is obtained by:
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
B _ {i, j} = \left\{ \begin{array}{l l} 1, & A _ {i, j} \geq \Theta \\ 0, & A _ {i, j} < \Theta \end{array} \right. \tag {2}
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
The non-zero $B_{i,j}$ implies the strong similarity sharing relationship between $q_i$ and $q_j$ . Therefor each non-zero row $\mathbf{B}_j$ of $\mathbf{B}$ can be considered as a Transaction $t_i$ .
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
\mathcal {T} = \left\{t _ {i} \right\} = \left\{\mathbf {B} _ {j} \right\}, \forall \sum \mathbf {B} _ {j} \geq 1 \tag {3}
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
Once the transaction set $\mathcal{T}$ is obtained, we propose to mine the frequent sharing-subsets from $\mathcal{T}$ that each sharing-subset is represented by a mined frequent pattern from a classical FP-Close mining algorithm [10]. To do so, a Closed Frequent Itemset Tree (CFI-Tree) is firstly constructed based on $\mathcal{T}$ under a minimum support 5 (Fig. 3), then the FP-Close mining algorithm in [10] is performed to the constructed CFI-Tree to obtain all the closed frequent patterns $\{S_i\}_{i=1}^{n_s}$ that each $S_i$ represents a sharing-subset.
|
| 87 |
+
|
| 88 |
+
# 3.3. Joint Multi-Metric Adaptation From SSSets
|
| 89 |
+
|
| 90 |
+
Once all the frequent SSSets $\{\mathcal{S}_i\}_{i=1}^{n_s}$ are obtained, our goal is to jointly learn $n_s$ SSSets-based local Mahalanobis metrics for $\{\mathcal{S}_i\}_{i=1}^{n_s}$ by optimizing Eqn. 4:
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\arg \min _ {\left\{\mathbf {M} _ {i} \right\}} \frac {1}{2} \sum_ {i = 1} ^ {n _ {s}} \left\| \mathbf {M} _ {i} \right\| ^ {2}
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
w. r. t: \mathbf {M} _ {i} \succeq 0
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\left(s _ {u} ^ {i} - s _ {v} ^ {j}\right) ^ {T} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) \left(s _ {u} ^ {i} - s _ {v} ^ {j}\right) \geq 2, \forall s _ {u} ^ {i} \in \mathcal {S} _ {i}, s _ {v} ^ {j} \in \mathcal {S} _ {j}
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
\left(s _ {u} ^ {i} - s _ {v} ^ {i}\right) ^ {T} \mathbf {M} _ {i} \left(s _ {u} ^ {i} - s _ {v} ^ {i}\right) = 0, \forall s _ {u} ^ {i} \in \mathcal {S} _ {i}, s _ {v} ^ {i} \in \mathcal {S} _ {i} \tag {4}
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
The learned metric $\mathbf{M}_i$ from Eqn. 4 is shared by all the samples in $S_{i}$ . Suppose we have $n_s$ SSSets and $O(n)$ samples in each $S_{i}$ , there are totally $O(n_s^2 n^2)$ inequality constraints and $O(n_{s}n^{2})$ equality constraints in Eqn. 4 which are too difficult to deal with, so that we aim to reduce the constraint size in Eqn. 4. We find out that Eqn. 4 has an exactly equivalent form by only keeping the constraints related to one anchor sample $s^i$ in $S_{i}$ , that $s^i$ can be any sample in $S_{i}$ . Therefore the equivalent form is shown by Eqn. 5:
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
\arg \min _ {\left\{\mathbf {M} _ {i} \right\}} \frac {1}{2} \sum_ {i = 1} ^ {n _ {s}} \left\| \mathbf {M} _ {i} \right\| ^ {2}
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
w. r. t: \mathbf {M} _ {i} \succeq 0
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
\left(s ^ {i} - s _ {v} ^ {j}\right) ^ {T} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) \left(s ^ {i} - s _ {v} ^ {j}\right) \geq 2, \forall s ^ {i} \in \mathcal {S} _ {i}, s _ {v} ^ {j} \in \mathcal {S} _ {j}
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\left(s ^ {i} - s _ {v} ^ {i}\right) ^ {T} \mathbf {M} _ {i} \left(s ^ {i} - s _ {v} ^ {i}\right) = 0, \forall s ^ {i} \in \mathcal {S} _ {i}, s _ {v} ^ {i} \in \mathcal {S} _ {i} \tag {5}
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
Revisit Eqn. 4, its equality constraints propose to collapse all $s_u^i \in S_i$ together. Therefore keeping only the equality constraints related to the anchor sample $s^i$ achieves the same collapsing performance. So as to the inequality constraints in Eqn. 4. Finally, we can reduce the constraint size by only keeping the constraints related to $s^i$ as in Eqn. 5. The re-formed objective Eqn. 5 has only $O(n_s^2 n)$ and $O(n_s n)$ inequality and equality constraints respectively. An important merit of Eqn. 5 is that it can be efficiently optimized:
|
| 127 |
+
|
| 128 |
+
Theorem 1 All the vectors $s^i - s_v^i$ in Eqn. 5 form a spanning space $H = \text{span}(\sum_v \lambda_v (s^i - s_v^i))$ . Eqn. 5 is equivalent to replace $s^i - s_v^j$ by $h_v^\perp$ , the projection of $s^i - s_v^j$ in $H^\perp$ , that $H^\perp$ is the orthogonal space of $H$ .
|
| 129 |
+
|
| 130 |
+
Proof 1 Since $\mathbf{M}_i$ is positive semi-definite, we have $\left(s^i - s_v^i\right)^T \mathbf{M}_i \left(s^i - s_v^i\right) = 0 \Leftrightarrow \mathbf{M}_i \left(s^i - s_v^i\right) = 0 \Leftrightarrow \mathbf{M}_i h = 0$ , $\forall h \in H$ . Projecting $s^i - s_v^j$ to $H$ and $H^\perp$ generates two orthogonal bases $h_v$ and $h_v^\perp$ respectively, so $s^i - s_v^j = h_v + h_v^\perp$ . Replace the inequality constraints in Eqn. 5 by $h_v + h_v^\perp$ :
|
| 131 |
+
|
| 132 |
+
$$
|
| 133 |
+
\begin{array}{l} \left(s ^ {i} - s _ {v} ^ {j}\right) ^ {T} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) \left(s ^ {i} - s _ {v} ^ {j}\right) \\ = \left(h _ {v} + h _ {v} ^ {\perp}\right) ^ {T} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) \left(h _ {v} + h _ {v} ^ {\perp}\right) \tag {6} \\ = h _ {v} ^ {\perp} ^ {T} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) h _ {v} ^ {\perp} \\ \end{array}
|
| 134 |
+
$$
|
| 135 |
+
|
| 136 |
+
Now Eqn. 5 has an equivalent form as:
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
\begin{array}{l} \arg \min _ {\left\{\mathbf {M} _ {i} \right\}} \frac {1}{2} \sum_ {i = 1} ^ {n _ {s}} \left\| \mathbf {M} _ {i} \right\| ^ {2} \\ w. r. t: \quad M _ {i} \succeq 0 \tag {7} \\ h _ {v} ^ {\perp} ^ {T} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) h _ {v} ^ {\perp} \geq 2, \forall s ^ {i} \in \mathcal {S} _ {i}, s _ {v} ^ {j} \in \mathcal {S} _ {j} \\ \boldsymbol {M} _ {i} h = 0, \forall h \in \boldsymbol {H} \\ \end{array}
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
Finally, we prove that Eqn. 7 has the same solution to Eqn. 4 by eliminating its PSD and equality constraints.
|
| 143 |
+
|
| 144 |
+
Theorem 2 The solution to Eqn. 4 is exactly the same as solving the Eqn. 7 by relaxing its equality and PSD constraints, since they are indeed off-the-shelf.
|
| 145 |
+
|
| 146 |
+
Proof 2 If we get rid of the PSD and equality constraints in Eqn. 7, the new form is:
|
| 147 |
+
|
| 148 |
+
$$
|
| 149 |
+
\begin{array}{l} \arg \min _ {\left\{\mathbf {M} _ {i} \right\}} \frac {1}{2} \sum_ {i = 1} ^ {n _ {s}} \left\| \mathbf {M} _ {i} \right\| ^ {2} \\ w. r. t: h _ {v} ^ {\perp^ {T}} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) h _ {v} ^ {\perp} \geq 2, \forall s ^ {i} \in \mathcal {S} _ {i}, s _ {v} ^ {j} \in \mathcal {S} _ {j} \tag {8} \\ \end{array}
|
| 150 |
+
$$
|
| 151 |
+
|
| 152 |
+
Eqn. 8 is exactly in the same form of a multi-kernel SVM problem so that it can be efficiently solved.
|
| 153 |
+
|
| 154 |
+
Thus the positive semi-definiteness of $M_{i}$ is guaranteed since $M_{i} = \sum \alpha_{v}\varphi (h_{v}^{\perp}) = \sum \alpha_{v}h_{v}^{\perp}\cdot h_{v}^{\perp T}\succeq 0$ . For the equality constraints in Eqn. 7, given a member $s$ of $\mathbf{S}$ , we have:
|
| 155 |
+
|
| 156 |
+
$$
|
| 157 |
+
\boldsymbol {M} _ {i} h = \left(\sum \alpha_ {v} h _ {v} ^ {\perp} \cdot h _ {v} ^ {\perp^ {T}}\right) h = \sum \alpha_ {v} h _ {v} ^ {\perp} \cdot \left(h _ {v} ^ {\perp^ {T}} h\right) = 0 \tag {9}
|
| 158 |
+
$$
|
| 159 |
+
|
| 160 |
+
which proves that the solution to Eqn. 8 satisfies the equality constraints as well.
|
| 161 |
+
|
| 162 |
+
# 3.4. Bi-Directional Discriminant Enhancement
|
| 163 |
+
|
| 164 |
+
At online testing stage, the gallery set $\mathcal{G}$ , the counterpart of query set $\mathcal{Q}$ , also plays an important role. As shown by Fig. 1, the re-ranking performance by using only the query-centric metric adaptation may suffer from ambiguous gallery distractors. The similar gallery images from different identities will significantly degrade the discriminant of $\mathbf{M}_p$ since these gallery distractors are still indistinguishable under $\mathbf{M}_p$ . Therefore, we aim to handle these indistinguishable gallery samples by performing a gallery-centric local discriminant enhancement method as Eqn. 4. The SSSets of $\mathcal{G}$ and the corresponding joint metrics are obtained via Sec. 3.2 and Eqn. 4 respectively.
|
| 165 |
+
|
| 166 |
+
# 3.5. Multi-Metric Late Fusion For Re-Ranking
|
| 167 |
+
|
| 168 |
+
For one query probe $q$ , it may be contained by multiple SSSets so that there will be multiple learned metrics $\mathbf{M}_i$ associated to $q$ . The final metric $\mathbf{M}_q$ for $q$ is obtained via a boosting-form multi-metric late fusion [24, 23]:
|
| 169 |
+
|
| 170 |
+
$$
|
| 171 |
+
\mathbf {M} _ {q} = \left(\sum_ {i = 1} ^ {n _ {s}} \gamma_ {i} \mathbf {M} _ {i}\right) / \sum \gamma_ {i} \tag {10}
|
| 172 |
+
$$
|
| 173 |
+
|
| 174 |
+
where $\gamma_{i} = 1$ if $q\in S_{i}$ . For a gallery sample $g$ , a similar fused metric $\mathbf{M}_g$ can be obtained likewise. Therefor the refined distance between $q$ and $g$ is defined as Eqn. 11 based on which the re-ranking list of $q_{i}$ is obtained.
|
| 175 |
+
|
| 176 |
+
$$
|
| 177 |
+
d (q, g) = (q - g) ^ {T} \left(\mathbf {M} _ {q} + \lambda \mathbf {M} _ {g}\right) (q - g) \tag {11}
|
| 178 |
+
$$
|
| 179 |
+
|
| 180 |
+
# 4. Theoretical Analyses and Justifications
|
| 181 |
+
|
| 182 |
+
As demonstrated by Theorem 2, the solution of our joint multi-metric adaptation objective can be readily transformed to the equivalent form as [45]. Therefore, the appealing theoretical properties in [45] can be inherited by our learned $\mathbf{M}_i$ as presented in Theorem 3. Moreover, our late multi-kernel fusion metric Eqn. 10 will guarantee a further reduction of generalization error bound as in Theorem 4.
|
| 183 |
+
|
| 184 |
+
Theorem 3 (The reduction of both asymptotic and practical error bound by the learned $M_i$ ): As demonstrated by the Theorem.2 in [45], for an input $x$ , its asymptotic error $\mathbb{P}^a(e|x)$ by using extra negative data $\mathcal{D}^a$ is:
|
| 185 |
+
|
| 186 |
+
$$
|
| 187 |
+
\mathbb {P} ^ {a} (e | x) = \frac {(2 - q) \mathbb {P} (e | x)}{2 - 2 q \mathbb {P} (e | x)} \leq \mathbb {P} (e | x) \tag {12}
|
| 188 |
+
$$
|
| 189 |
+
|
| 190 |
+
where $q$ is a probability scalar that $0 \leq q \leq 1$ and $\mathbb{P}(e|x)$ is the Bayesian error. Moreover, the asymptotic error $\mathbb{P}^a(e|x)$ can be best approximated by the practical error rate $\mathbb{P}_n(e|x)$ ( $n$ is finite) by finding a local metric $\pmb{M}_x$ which turns out to be the one for our Eqn. 4.
|
| 191 |
+
|
| 192 |
+
Theorem 4 (The reduction of generalization error bound by using $M_{q / g}$ in Eqn. 10): Our fused multi-kernel metric $\pmb{M}_{q} = (\sum_{i = 1}^{n_{s}}\gamma_{i}\pmb{M}_{i}) / \sum \gamma_{i}$ is a linear combinations of several base kernels $\pmb{M}_{i}$ from the family of finite Gaussian kernels: $\mathcal{K}_G^d \coloneqq \{K_M : (x_1, x_2) \mapsto e^{-(x_1 - x_2)^T M(x_1 - x_2)} \mid M \in \mathbb{R}^{d \times d}, M \succeq 0\}$ which is bounded by $B_k$ . Therefore, for a fixed $\delta \in (0, 1)$ , $n_s < n_k$ is the number of metrics (kernels) involved in our final joint multi-metric learning solution. With probability at least $1 - \delta$ over the choice of a random training set $\mathcal{X} = \{x_i\}_{i=1}^n$ of size $n$ we have:
|
| 193 |
+
|
| 194 |
+
$$
|
| 195 |
+
\mathcal {E} _ {e s t} \left(\boldsymbol {M} _ {i}\right) \simeq \mathcal {O} \left(\sqrt {\frac {n _ {k} + B _ {k}}{n}}\right) \tag {13}
|
| 196 |
+
$$
|
| 197 |
+
|
| 198 |
+
$$
|
| 199 |
+
\mathcal {E} _ {e s t} \left(\boldsymbol {M} _ {q}\right) \simeq \mathcal {O} \left(\sqrt {\frac {\log n _ {k} + B _ {k} + 2 n _ {s}}{n}}\right) \tag {14}
|
| 200 |
+
$$
|
| 201 |
+
|
| 202 |
+
In our work, we have $n_s \ll n_k$ , that the selected number of kernels is much fewer than the total kernel number, so that $\mathcal{E}_{est}(\pmb{M}_q) \simeq \mathcal{O}\left(\sqrt{\frac{\log n_k + B_k}{n}}\right) \ll \mathcal{E}_{est}(\pmb{M}_i) \simeq \mathcal{O}\left(\sqrt{\frac{n_k + B_k}{n}}\right)$ . The generalization error by using $\pmb{M}_q$ is much smaller than using only any $\pmb{M}_i$ . The same conclusion can be obtained for $\pmb{M}_g$ likewise.
|
| 203 |
+
|
| 204 |
+
Proof 3 The classification rule of our learned $M_{i}$ can be defined as $\zeta_{j} \left( \tilde{q}^{T} M_{i} \tilde{x}_{j} - 1 \right) \geq 1$ so that the margin is 1. Motivated by [25], the generalization error $\mathcal{E}_{\text{est}}(M_{i})$ of using kernel $M_{i}$ is bounded by $\mathcal{O}\left(\sqrt{\frac{n_{k} + B_{k}}{n}}\right)$ . While by
|
| 205 |
+
|
| 206 |
+

|
| 207 |
+
Figure 4. The visualization of rank improvement on CUHK03 (1th, 2nd) and Market1501 (3rd, 4th) based on HA-CNN. For each case, its top-10 (left to right) matches are presented and the true-match is labeled by the red box. The 1st row is the baseline result, the 2nd row is the result only using $\mathbf{M}_q$ and the 3rd row is the result using both $\mathbf{M}_q$ and $\mathbf{M}_g$ .
|
| 208 |
+
|
| 209 |
+
using $M_q$ , which is a linear combination of all $M_i$ from the family of finite Gaussian kernel $\mathcal{K}_G^d$ , its generalization error $\mathcal{E}_{est}(M_q)$ is bounded by $\mathcal{O}\left(\sqrt{\frac{\log n_k + B_k + 2n_s}{n}}\right)$ which is guaranteed by the Theorem.2 in [14]. For the kernel family $\mathcal{K}_G^d$ , $n_k \simeq \mathcal{O}(d^2)$ and in our work, $d \approx 10^3$ so that $n_k \approx 10^6$ . The selected kernels for combination is about 20 in average so that $n_s \ll n_k$ which means $\mathcal{E}_{est}(M_q) \ll \mathcal{E}_{est}(M_i)$ .
|
| 210 |
+
|
| 211 |
+
# 5. Experiments
|
| 212 |
+
|
| 213 |
+
# 5.1. Experimental Settings
|
| 214 |
+
|
| 215 |
+
Datasets. We evaluate our proposed $\mathbf{M}^3$ model on CUHK03 [17], Market1501 [39], DukeMTMC-reID [41] and MSMT17 [33] benchmarks. The statistic details of the above datasets are summarized in Table. 1. For CUHK03<sup>1</sup>, the new splitting protocol proposed by [43] is adopted in our experiment so that 767 identities are used for training as well as the left 700 identities are used for testing. As for the other three benchmarks, Market1501, DukeMTMC-reID and MSMT17, the pre-determined probe and gallery sets are directly utilized with no modification.
|
| 216 |
+
|
| 217 |
+
<table><tr><td>Dataset</td><td>cuhk03</td><td>market</td><td>duke</td><td>msmt17</td></tr><tr><td>#T-IDs</td><td>767</td><td>751</td><td>702</td><td>1040</td></tr><tr><td>#Q-IDs</td><td>700</td><td>750</td><td>702</td><td>3060</td></tr><tr><td>#G-IDs</td><td>700</td><td>751</td><td>1110</td><td>3060</td></tr><tr><td>#cam</td><td>2</td><td>6</td><td>8</td><td>15</td></tr><tr><td>#images</td><td>28192</td><td>32668</td><td>36411</td><td>126441</td></tr></table>
|
| 218 |
+
|
| 219 |
+
Table 1. The statistics of P-RID benchmarks. #T/Q/G-IDs denote the number of training/query/gallery ids.
|
| 220 |
+
|
| 221 |
+
Baselines. Our proposed $\mathbf{M}^3$ method is evaluated based on several state-of-the-art CNN-based P-RID models: ResNet50 [11], DenseNet121 [13], HA-CNN [18], MLFN [5] and ABDNet[6]. The general CNN models, ResNet50 and DenseNet121, are well trained on each benchmark for feature extraction. HA-CNN, MLFN and ABDNet are the P-RID specific CNNs so that the original works are directly utilized in our experiments. Besides, the
|
| 222 |
+
|
| 223 |
+
other state-of-the-art P-RID methods [15, 21, 37, 27, 28, 5, 26, 40, 46, 6] are further compared. Moreover, related online P-RID methods including [45] (OL) and [43] (RR) are compared with our $\mathbf{M}^3$ method.
|
| 224 |
+
|
| 225 |
+
Evaluation. We follow the same official evaluation protocols in [39, 41, 17, 33], the single-shot evaluation setting is adopted and all the results are shown in the form of Cumulated Matching Characteristic (CMC) at several selected ranks and mean Average Precision (mAP). Various ablation studies of our proposed model are explored in Sec. 5.5.
|
| 226 |
+
|
| 227 |
+
# 5.2. Comparison with the State-of-the-arts
|
| 228 |
+
|
| 229 |
+
Evaluation on CUHK03: The comparison results on CUHK03 (767/700 splitting protocol) are presented in Table. 2. Our $\mathbf{M}^3$ model significantly boosts the baseline Rank@1(mAP) performance of ResNet50, DenseNet12, HA-CNN and MLFN to $66.9\% (60.7\%)$ , $61.6\% (54.4\%)$ , $69.8\% (63.5\%)$ and $73.4\% (71.2\%)$ with a $40.0\% (29.7\%)$ , $50.2\% (35.7\%)$ , $45.4\% (33.4\%)$ and $34.2\% (44.7\%)$ relative improvement respectively. Even compared with the state-of-the-art method MGN [31], our results outperform it by $5\%$ at Rank@1. The reason for such a large improvement is that the "hard" gallery distractors which are still indistinguishable under $\mathbf{M}_q$ is well handled by our $\mathbf{M}^3$ method (Fig. 4), so the ranking of true-match gallery targets is significantly improved.
|
| 230 |
+
|
| 231 |
+
Evaluation on Market1501: The superiority of our $\mathbf{M}^3$ method is further verified by the experiments on Market1501. Table. 2 demonstrates that although the state-of-the-art approach ABDNet [6] has achieved a pretty high performance ( $\geq 94\%$ ) on Market1501, the improvement of our $\mathbf{M}^3$ is still over $3.7\% (10\%)$ on Rank@1(mAP) based on ABDNet (visualization results in Fig. 4).
|
| 232 |
+
|
| 233 |
+
Evaluation on DukeMTMC-reID: DukeMTMC-reID is a recent benchmark proposed for P-RID, but the latest methods have obtained promising performances. As shown in Table. 2, the recently published OSNet [46] has raised the state-of-the-art to $87.0\% (70.2\%)$ . Our ABDNet+M³ improves the Rank@1(mAP) result to $87.5\% (73.3\%)$ , which beats OSNet by a large margin on mAP.
|
| 234 |
+
|
| 235 |
+
Evaluation on MSMT17: MSMT17 is the latest and largest benchmark so far which is pretty challenging due to the extreme large-scale identities and distractors. We eval
|
| 236 |
+
|
| 237 |
+
<table><tr><td colspan="3">CUHK03(767/700)</td><td colspan="3">Market1501</td><td colspan="3">DukeMTMC-reID</td></tr><tr><td>Method</td><td>R@1</td><td>mAP</td><td>Method</td><td>R@1</td><td>mAP</td><td>Method</td><td>R@1</td><td>mAP</td></tr><tr><td>ResNet50[11]</td><td>47.9</td><td>46.8</td><td>ResNet50[11]</td><td>88.5</td><td>71.3</td><td>ResNet50[11]</td><td>77.7</td><td>58.8</td></tr><tr><td>DenseNet121[13]</td><td>41.0</td><td>40.1</td><td>DenseNet121[13]</td><td>88.2</td><td>69.2</td><td>DenseNet121[13]</td><td>78.6</td><td>58.5</td></tr><tr><td>HA-CNN[18]</td><td>48.0</td><td>47.6</td><td>HA-CNN[18]</td><td>90.6</td><td>75.3</td><td>HA-CNN[18]</td><td>80.7</td><td>64.4</td></tr><tr><td>MLFN[5]</td><td>54.7</td><td>49.2</td><td>MLFN[5]</td><td>90.1</td><td>74.3</td><td>MLFN[5]</td><td>81.0</td><td>62.8</td></tr><tr><td>ABDNet[6]</td><td>N/A</td><td>N/A</td><td>ABDNet[6]</td><td>93.7</td><td>85.5</td><td>ABDNet[6]</td><td>84.1</td><td>67.7</td></tr><tr><td>OSNet[46]</td><td>N/A</td><td>N/A</td><td>OSNet[46]</td><td>94.2</td><td>82.6</td><td>OSNet[46]</td><td>87.0</td><td>70.2</td></tr><tr><td>PCB[28]</td><td>63.7</td><td>67.5</td><td>PCB[28]</td><td>83.3</td><td>69.2</td><td>PCB[28]</td><td>83.3</td><td>69.2</td></tr><tr><td>SVDNet[27]</td><td>41.5</td><td>37.3</td><td>SVDNet[27]</td><td>82.3</td><td>62.1</td><td>SVDNet[27]</td><td>76.7</td><td>56.8</td></tr><tr><td>DPFL[7]</td><td>40.7</td><td>37.0</td><td>DNSL[36]</td><td>61.0</td><td>35.6</td><td>DuATM[22]</td><td>81.8</td><td>64.6</td></tr><tr><td>PAN[42]</td><td>36.3</td><td>34.0</td><td>Part-aligned[26]</td><td>91.7</td><td>79.6</td><td>Part-aligned[26]</td><td>84.4</td><td>69.3</td></tr><tr><td>ResNeXt[34]</td><td>43.8</td><td>38.7</td><td>PN-GAN[19]</td><td>77.1</td><td>63.6</td><td>PAN[42]</td><td>71.6</td><td>51.5</td></tr><tr><td>DaRe[32]</td><td>55.1</td><td>51.3</td><td>DeepCC[20]</td><td>89.5</td><td>75.7</td><td>GAN[41]</td><td>67.7</td><td>47.1</td></tr><tr><td>MGN[31]</td><td>68.0</td><td>67.4</td><td>Mancs[30]</td><td>93.1</td><td>82.3</td><td>SPreID[16]</td><td>85.9</td><td>73.3</td></tr><tr><td>M3+ResNet50</td><td>66.9</td><td>60.7</td><td>M3+ResNet50</td><td>95.4</td><td>82.6</td><td>M3+ResNet50</td><td>84.7</td><td>68.5</td></tr><tr><td>M3+DenseNet121</td><td>61.6</td><td>54.4</td><td>M3+DenseNet121</td><td>95.3</td><td>81.2</td><td>M3+DenseNet121</td><td>84.9</td><td>68.0</td></tr><tr><td>M3+HA-CNN</td><td>69.8</td><td>63.5</td><td>M3+HA-CNN</td><td>96.5</td><td>85.2</td><td>M3+HA-CNN</td><td>87.1</td><td>72.2</td></tr><tr><td>M3+MLFN</td><td>73.4</td><td>71.2</td><td>M3+MLFN</td><td>96.4</td><td>85.0</td><td>M3+MLFN</td><td>86.5</td><td>71.5</td></tr><tr><td>M3+ABDNet</td><td>N/A</td><td>N/A</td><td>M3+ABDNet</td><td>97.9</td><td>92.6</td><td>M3+ABDNet</td><td>87.5</td><td>73.3</td></tr></table>
|
| 238 |
+
|
| 239 |
+

|
| 240 |
+
Figure 5. The influence of $\lambda$ on (left) CUHK03, (mid) Market1501 and (right) DukeMTMC-reID based on HA-CNN.
|
| 241 |
+
|
| 242 |
+

|
| 243 |
+
|
| 244 |
+

|
| 245 |
+
|
| 246 |
+
Table 2. Compared with the state-of-the-arts on CUHK03, Market1501, and DukeMTMC-reID.
|
| 247 |
+
|
| 248 |
+
<table><tr><td rowspan="2">MSMT17
|
| 249 |
+
Method</td><td colspan="2">Baseline</td><td colspan="2">Baseline+M³</td></tr><tr><td>R@1</td><td>mAP</td><td>R@1</td><td>mAP</td></tr><tr><td>ResNet50[11]</td><td>63.4</td><td>34.2</td><td>72.8</td><td>55.0</td></tr><tr><td>DenseNet121[13]</td><td>66.0</td><td>34.6</td><td>75.5</td><td>43.1</td></tr><tr><td>HA-CNN[18]</td><td>64.7</td><td>37.2</td><td>74.3</td><td>43.8</td></tr><tr><td>MLFN[5]</td><td>66.4</td><td>37.2</td><td>72.8</td><td>43.4</td></tr><tr><td>ABDNet[6]</td><td>82.3</td><td>60.8</td><td>85.7</td><td>64.2</td></tr></table>
|
| 250 |
+
|
| 251 |
+
uate the performance of selected baselines on the MSMT17 dataset with(w/) and without(w/o) our $\mathbf{M}^3$ model in Table. 3. For all the baselines, our $\mathbf{M}^3$ model significantly improves their Rank@1(mAP) performance. The performance of ABDNet is boosted from $82.3\% (60.8\%)$ to a state-of-the-art level of $85.7\% (64.2\%)$ . Table. 3 verifies the scalability of our proposed $\mathbf{M}^3$ model, even for the extremely large-scale query/gallery sets, our method is still able to consistently improve the baseline performance.
|
| 252 |
+
|
| 253 |
+
Table 3. Compared with the state-of-the-arts on MSMT17.
|
| 254 |
+
|
| 255 |
+
<table><tr><td>Method</td><td>CUHK03</td><td>Market</td><td>Duke</td></tr><tr><td>HA-CNN[18]</td><td>48.0(47.6)</td><td>90.6(75.3)</td><td>80.7(64.4)</td></tr><tr><td>HA-CNN+RR [43]</td><td>54.8(55.7)</td><td>91.4(79.0)</td><td>82.5(69.9)</td></tr><tr><td>HA-CNN+OL [45]</td><td>62.3(56.5)</td><td>92.7(78.9)</td><td>83.7(67.8)</td></tr><tr><td>HA-CNN+M3</td><td>69.8(63.5)</td><td>96.5(85.2)</td><td>87.1(72.2)</td></tr><tr><td>Dense121[13]</td><td>41.0(40.1)</td><td>88.2(69.2)</td><td>78.6(58.5)</td></tr><tr><td>Dense121+RR [43]</td><td>48.1(51.5)</td><td>90.2(85.0)</td><td>83.7(76.9)</td></tr><tr><td>Dense121+OL [45]</td><td>53.1(49.3)</td><td>90.4(74.0)</td><td>80.2(64.1)</td></tr><tr><td>Dense121+M3</td><td>61.6(54.4)</td><td>95.3(81.2)</td><td>84.9(68.0)</td></tr></table>
|
| 256 |
+
|
| 257 |
+
Table 4. Compared with online P-RID refinement methods.
|
| 258 |
+
|
| 259 |
+
# 5.3. Comparison with Online P-RID Re-ranking
|
| 260 |
+
|
| 261 |
+
Two state-of-the-art online P-RID re-ranking methods, OL [45] and RR [43], are compared with our $\mathbf{M}^3$ since all the three methods can be readily utilized at online testing stage for further performance improvement. The comparison results in Table. 4 show that the query-specific method OL [45] works better on improving Rank@1 per
|
| 262 |
+
|
| 263 |
+
<table><tr><td rowspan="2">Method</td><td colspan="5">Market1501 → DukeMTMC</td><td colspan="5">DukeMTMC → Market1501</td></tr><tr><td>R@1</td><td>R@5</td><td>R@10</td><td>R@20</td><td>mAP</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@20</td><td>mAP</td></tr><tr><td>MLFN[5]</td><td>45.8</td><td>63.9</td><td>71.6</td><td>78.1</td><td>20.3</td><td>30.4</td><td>47.5</td><td>53.9</td><td>59.5</td><td>17.1</td></tr><tr><td>MLFN+M3</td><td>67.6</td><td>78.8</td><td>83.0</td><td>86.6</td><td>32.7</td><td>43.7</td><td>57.0</td><td>62.6</td><td>68.2</td><td>24.7</td></tr><tr><td>DenseNet121[13]</td><td>41.0</td><td>56.6</td><td>62.8</td><td>68.5</td><td>23.2</td><td>55.0</td><td>71.3</td><td>78.5</td><td>84.3</td><td>25.3</td></tr><tr><td>DenseNet121+M3</td><td>53.1</td><td>67.1</td><td>72.1</td><td>75.7</td><td>32.7</td><td>76.9</td><td>85.6</td><td>89.1</td><td>91.9</td><td>40.4</td></tr><tr><td>HA-CNN[18]</td><td>43.3</td><td>59.7</td><td>66.7</td><td>74.6</td><td>18.9</td><td>24.0</td><td>39.0</td><td>45.1</td><td>51.6</td><td>13.5</td></tr><tr><td>HA-CNN+M3</td><td>61.6</td><td>73.6</td><td>78.7</td><td>82.9</td><td>25.8</td><td>37.6</td><td>51.9</td><td>56.8</td><td>62.8</td><td>20.5</td></tr></table>
|
| 264 |
+
|
| 265 |
+
Table 5. Cross-dataset validation results with $(+{\bf M}^{3})$ our $\mathbf{M}^3$ model on Market1501 and DukeMTMC-reID. Market1501 $\rightarrow$ DukeMTMC mean using the model trained on Market1501 to evaluate DukeMTMC-reID.
|
| 266 |
+
|
| 267 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">CUHK03</td><td colspan="3">Market1501</td><td colspan="3">DukeMTMC-reID</td><td colspan="3">MSMT17</td></tr><tr><td>R@1</td><td>R@20</td><td>mAP</td><td>R@1</td><td>R@20</td><td>mAP</td><td>R@1</td><td>R@20</td><td>mAP</td><td>R@1</td><td>R@20</td><td>mAP</td></tr><tr><td>HA-CNN[18]</td><td>48.0</td><td>85.4</td><td>47.6</td><td>90.6</td><td>98.3</td><td>75.3</td><td>80.7</td><td>94.3</td><td>64.4</td><td>64.7</td><td>87.1</td><td>37.2</td></tr><tr><td>Our only w/ Mq</td><td>63.4</td><td>87.6</td><td>63.5</td><td>93.8</td><td>98.8</td><td>81.2</td><td>83.9</td><td>95.3</td><td>69.0</td><td>68.7</td><td>88.7</td><td>40.6</td></tr><tr><td>Our only w/ Mg</td><td>65.4</td><td>86.2</td><td>57.3</td><td>94.2</td><td>98.4</td><td>79.1</td><td>83.6</td><td>94.4</td><td>65.7</td><td>66.3</td><td>86.4</td><td>37.5</td></tr><tr><td>Our-Full</td><td>69.8</td><td>88.8</td><td>63.5</td><td>96.5</td><td>98.9</td><td>85.2</td><td>87.1</td><td>95.8</td><td>72.2</td><td>74.3</td><td>90.0</td><td>43.8</td></tr></table>
|
| 268 |
+
|
| 269 |
+
Table 6. The influence of each component in our ${\mathrm{M}}^{3}$ algorithm.
|
| 270 |
+
|
| 271 |
+
formance but has little improvement on mAP due to the lack of gallery-specific local discriminant enhancement. In contrast, since RR [43] considers the k-reciprocal nearest neighbors of both query and gallery data, it achieves a large improvement on mAP but with limited improvement on Rank@1 owing to the lack of instance-specific local adaptation. Our $\mathbf{M}^3$ outperforms the other two approaches significantly at both Rank@1 and mAP due to the fully utilization of both the group-level visual similarity sharing information and instance-specific local discriminant enhancement.
|
| 272 |
+
|
| 273 |
+
# 5.4. Cross-Set Generalization Ability Validation
|
| 274 |
+
|
| 275 |
+
We explore the generalization ability of our proposed $\mathbf{M}^3$ . We claim the improvement by $\mathbf{M}^3$ is from the testing sample itself which is independent of how the baseline models are trained. Therefore we conduct a cross-set generalization ability validation experiment as shown in Table. 5. Following the setting in [44], the baseline model trained by Market1501 with our $\mathbf{M}^3$ is evaluated on DukeMTMC-reID and vice versa. The results show our $\mathbf{M}^3$ model is able to consistently and significantly improve the baseline performance regardless of whether the baseline is trained by the same-source data or not.
|
| 276 |
+
|
| 277 |
+
# 5.5. Ablation Study
|
| 278 |
+
|
| 279 |
+
The Influence of Model Components: The final retrieval performance of Eqn. 11 relies on a bi-directional retrieval matching, so the influence of each component is shown in Table. 6. As can be seen, by only keeping the query-specific metric adaptation $\mathbf{M}_q$ or the gallery-centric one $\mathbf{M}_g$ , we still can achieve a significant improvement. While by performing a full-model bi-directional matching, the performance is further boosted by a large margin which demonstrates the necessity of bi-directional local discriminant enhancement. More visualizations are shown in Fig. 4.
|
| 280 |
+
|
| 281 |
+
The Influence of $\lambda$ in Eqn. 11: The weighting parameter $\lambda$ in Eqn. 11 aims to balance the importance of $\mathbf{M}_q$ and $\mathbf{M}_g$ . The full CMC curves w.r.t $\lambda$ of HA-CNN on CUHK03, Market1501 and DukeMTMC-reID are plotted in Fig. 5 respectively. As can be seen, setting $\lambda = 1$ gives the best performance since we perform a max-normalization to both $\mathbf{M}_q$ and $\mathbf{M}_g$ , over-weighting either side is prone to suppress the other side's impact.
|
| 282 |
+
|
| 283 |
+
# 6. Conclusion
|
| 284 |
+
|
| 285 |
+
Unlike previous online P-RID works, in this paper, we propose a novel online joint multi-metric adaptation algorithm which not only takes individual characteristics of testing samples into consideration but also fully utilizes the visual similarity relationships among both query and gallery samples. Our $\mathbf{M}^3$ method can be readily applied to any existing P-RID baselines with the guarantee of performance improvement, and a theoretical sound optimization solution to $\mathbf{M}^3$ keeps a low online computational burden. Compared with the other state-of-the-art online P-RID refinement approaches, our method achieves significant improvement on Rank@1(mAP) performance. Moreover, by implementing our method to the state-of-the-art baselines, their performance is further boosted by a large margin on four challenging large-scale P-RID benchmarks.
|
| 286 |
+
|
| 287 |
+
# Acknowledgements
|
| 288 |
+
|
| 289 |
+
This work was supported in part by National Science Foundation grant IIS-1619078, IIS-1815561, and the Army Research Office ARO W911NF-16-1-0138, in part by National Natural Science Foundation of China under Grant No. 61976206, No. 61603373, Youth Innovation Promotion Association CAS No. 2019110.
|
| 290 |
+
|
| 291 |
+
# References
|
| 292 |
+
|
| 293 |
+
[1] Song Bai, Peng Tang, Philip HS Torr, and Longin Jan Latecki. Re-ranking via metric fusion for object retrieval and person re-identification. In CVPR, 2019. 1, 2
|
| 294 |
+
[2] Sławomir Bak and KP Carr. One-shot metric learning for person re-identification. In CVPR, 2017. 1
|
| 295 |
+
[3] Arko Barman and Shishir K Shah. Shape: A novel graph theoretic algorithm for making consensus-based decisions in person re-identification systems. In ICCV, 2017. 1, 2
|
| 296 |
+
[4] R Caruna. Multitask learning: A knowledge-based source of inductive bias. In ICML, 1993. 2
|
| 297 |
+
[5] Xiaobin Chang, Timothy M Hospedales, and Tao Xiang. Multi-level factorisation net for person re-identification. In CVPR, 2018. 6, 7, 8
|
| 298 |
+
[6] Tianlong Chen, Shaojin Ding, Jingyi Xie, Ye Yuan, Wuyang Chen, Yang Yang, Zhou Ren, and Zhangyang Wang. Abdnet: Attentive but diverse person re-identification. 2019. 1, 3, 6, 7
|
| 299 |
+
[7] Yanbei Chen, Xiatian Zhu, and Shaogang Gong. Person re-identification by deep learning multi-scale representations. In ICCV, 2017. 7
|
| 300 |
+
[8] Basura Fernando, Elisa Fromont, and Tinne Tuytelaars. Effective use of frequent itemset mining for image classification. In ECCV, 2012. 3
|
| 301 |
+
[9] Jorge Garcia, Niki Martinel, Christian Micheloni, and Alfredo Gardel. Person re-identification ranking optimisation by discriminant context information analysis. In ICCV, 2015. 1, 2, 3
|
| 302 |
+
[10] Gösta Grahne and Jianfei Zhu. Efficiently using prefix-trees in mining frequent itemsets. In FIMI, volume 90, 2003. 4
|
| 303 |
+
[11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 6, 7
|
| 304 |
+
[12] Ruibing Hou, Bingpeng Ma, Hong Chang, Xinqian Gu, Shiguang Shan, and Xilin Chen. Interaction-and-aggregation network for person re-identification. In CVPR, 2019. 1, 3
|
| 305 |
+
[13] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, 2017. 6, 7, 8
|
| 306 |
+
[14] Zakria Hussain and John Shawe-Taylor. Improved loss bounds for multiple kernel learning. In AISTATS, 2011. 6
|
| 307 |
+
[15] Forrest N Iandola, Song Han, Matthew W Moskewicz, Khalid Ashraf, William J Dally, and Kurt Keutzer. SqueezeNet: Alexnet-level accuracy with 50x fewer parameters and; 0.5 mb model size. arXiv, 2016. 6
|
| 308 |
+
[16] Mahdi M Kalayeh, Emrah Basaran, Muhittin Gokmen, Mustafa E Kamasak, and Mubarak Shah. Human semantic parsing for person re-identification. In CVPR, 2018. 7
|
| 309 |
+
[17] Wei Li, Rui Zhao, and Xiaogang Wang. Human reidentification with transferred metric learning. In ACCV, 2012. 2, 6
|
| 310 |
+
[18] Wei Li, Xiatian Zhu, and Shaogang Gong. Harmonious attention network for person re-identification. In CVPR, 2018. 1, 2, 6, 7, 8
|
| 311 |
+
[19] Xuelin Qian, Yanwei Fu, Tao Xiang, Wenxuan Wang, Jie Qiu, Yang Wu, Yu-Gang Jiang, and Xiangyang Xue. Pose-
|
| 312 |
+
|
| 313 |
+
normalized image generation for person re-identification. In ECCV, 2018.7
|
| 314 |
+
[20] Ergys Ristani and Carlo Tomasi. Features for multi-target multi-camera tracking and re-identification. In CVPR, 2018. 7
|
| 315 |
+
[21] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhoginov, and Liang-Chieh Chen. *Mobilenetv2: Inverted residuals and linear bottlenecks*. In *CVPR*, 2018. 6
|
| 316 |
+
[22] Jianlou Si, Honggang Zhang, Chun-Guang Li, Jason Kuen, Xiangfei Kong, Alex C Kot, and Gang Wang. Dual attention matching network for context-aware feature sequence based person re-identification. 7
|
| 317 |
+
[23] Soren Sonnenburg, Gunnar Ratsch, and Christin Schäfer. A general and efficient multiple kernel learning algorithm. In NIPS, 2006. 5
|
| 318 |
+
[24] Soren Sonnenburg, Gunnar Ratsch, Christin Schäfer, and Bernhard Schölkopf. Large scale multiple kernel learning. JMLR, 2006. 5
|
| 319 |
+
[25] Nathan Srebro and Shai Ben-David. Learning bounds for support vector machines with learned kernels. In COLT, 2006. 5
|
| 320 |
+
[26] Yumin Suh, Jingdong Wang, Siyu Tang, Tao Mei, and Kyoung Mu Lee. Part-aligned bilinear representations for person re-identification. In ECCV, 2018. 6, 7
|
| 321 |
+
[27] Yifan Sun, Liang Zheng, Weijian Deng, and Shengjin Wang. Svdnet for pedestrian retrieval. In ICCV, 2017. 6, 7
|
| 322 |
+
[28] Yifan Sun, Liang Zheng, Yi Yang, Qi Tian, and Shengjin Wang. Beyond part models: Person retrieval with refined part pooling. 6, 7
|
| 323 |
+
[29] M Feroz T Ali and Subbasis Chaudhuri. Maximum margin metric learning over discriminative nullspace for person re-identification. In ECCV, 2018. 1
|
| 324 |
+
[30] Cheng Wang, Qian Zhang, Chang Huang, Wenyu Liu, and Xinggang Wang. Mancs: A multi-task attentional network with curriculum sampling for person re-identification. In ECCV, 2018. 1, 2, 7
|
| 325 |
+
[31] Guanshuo Wang, Yufeng Yuan, Xiong Chen, Jiwei Li, and Xi Zhou. Learning discriminative features with multiple granularities for person re-identification. In ACM Multimedia Conference, 2018. 6, 7
|
| 326 |
+
[32] Yan Wang, Lequn Wang, Yurong You, Xu Zou, Vincent Chen, Serena Li, Gao Huang, Bharath Hariharan, and Kilian Q Weinberger. Resource aware person re-identification across multiple resolutions. In CVPR, 2018. 7
|
| 327 |
+
[33] Longhui Wei, Shiliang Zhang, Wen Gao, and Qi Tian. Persontrasfer gan to bridge domain gap for person re-identification. In CVPR, 2018. 6
|
| 328 |
+
[34] Saining Xie, Ross Girshick, Piotr Dolkar, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In CVPR, 2017. 7
|
| 329 |
+
[35] Mang Ye, Jun Chen, Qingming Leng, Chao Liang, Zheng Wang, and Kaimin Sun. Coupled-view based ranking optimization for person re-identification. In ICMM, 2015. 1, 2
|
| 330 |
+
[36] Li Zhang, Tao Xiang, and Shaogang Gong. Learning a discriminative null space for person re-identification. In CVPR, 2016. 7
|
| 331 |
+
|
| 332 |
+
[37] Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. In CVPR, 2018. 6
|
| 333 |
+
[38] Ying Zhang, Baohua Li, Huchuan Lu, Atshushi Irie, and Xiang Ruan. Sample-specificsvm learning for person re-identification. In CVPR, 2016. 2
|
| 334 |
+
[39] Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In ICCV, 2015. 6
|
| 335 |
+
[40] Zhedong Zheng, Xiaodong Yang, Zhiding Yu, Liang Zheng, Yi Yang, and Jan Kautz. Joint discriminative and generative learning for person re-identification. In ICCV, 2019. 1, 3, 6
|
| 336 |
+
[41] Zhedong Zheng, Liang Zheng, and Yi Yang. Unlabeled samples generated by gan improve the person re-identification baseline in vitro. In ICCV, 2017. 6, 7
|
| 337 |
+
[42] Zhedong Zheng, Liang Zheng, and Yi Yang. Pedestrian alignment network for large-scale person re-identification. TCSVT, 2018. 7
|
| 338 |
+
[43] Zhun Zhong, Liang Zheng, Donglin Cao, and Shaozi Li. Reranking person re-identification with k-reciprocal encoding. 2017. 1, 2, 3, 6, 7, 8
|
| 339 |
+
[44] Zhun Zhong, Liang Zheng, Shaozi Li, and Yi Yang. Generalizing a person retrieval model hetero-and homogeneously. In ECCV, 2018. 8
|
| 340 |
+
[45] Jiahuan Zhou, Pei Yu, Wei Tang, and Ying Wu. Efficient online local metric adaptation via negative samples for person re-identification. In ICCV, 2017. 1, 2, 5, 6, 7
|
| 341 |
+
[46] Kaiyang Zhou, Yongxin Yang, Andrea Cavallaro, and Tao Xiang. Omni-scale feature learning for person re-identification. In ICCV, 2019. 6, 7
|
onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b56e543255c2d922c022c277bd0ffbdf8005ceb483328e250af6b26961a1398
|
| 3 |
+
size 832076
|
onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1adc9aadd605c51ea0a382189de09faa4c1e557e28f291b0aed6319be88b4ec
|
| 3 |
+
size 482271
|
onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1f511a3a6d0d6d3883977e073294604e908bd5d855450b3fd2cbb2211d69a61
|
| 3 |
+
size 75424
|
onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78d5f939ce8adb926aee9acac4f10ea53c285f936cf2967c445dd9e8e44ca2c9
|
| 3 |
+
size 90544
|
onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef5f0c601fc8f11ece7e0d9d07368a57092ed976f7d93039cbc4790f3491271d
|
| 3 |
+
size 990244
|
onlineknowledgedistillationviacollaborativelearning/full.md
ADDED
|
@@ -0,0 +1,329 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Online Knowledge Distillation via Collaborative Learning
|
| 2 |
+
|
| 3 |
+
Qiushan Guo $^{1}$ , Xinjiang Wang $^{2}$ , Yichao Wu $^{2}$ , Zhipeng Yu $^{2}$ , Ding Liang $^{2}$ , Xiaolin Hu $^{3}$ , Ping Luo $^{4}$ $^{1}$ Beijing University of Posts and Telecommunications $^{2}$ SenseTime Group Limited
|
| 4 |
+
$^{3}$ Tsinghua University $^{4}$ The University of Hong Kong
|
| 5 |
+
|
| 6 |
+
qsguo@bupt.edu.cn xlhu@mail.tsinghua.edu.cn pluo@cs.hku.hk
|
| 7 |
+
|
| 8 |
+
{wangxinjiang, wuyichao, yuzhipeng, liangding}@sensetime.com
|
| 9 |
+
|
| 10 |
+
# Abstract
|
| 11 |
+
|
| 12 |
+
This work presents an efficient yet effective online Knowledge Distillation method via Collaborative Learning, termed KDCL, which is able to consistently improve the generalization ability of deep neural networks (DNNs) that have different learning capacities. Unlike existing two-stage knowledge distillation approaches that pre-train a DNN with large capacity as the "teacher" and then transfer the teacher's knowledge to another "student" DNN unidirectionally (i.e. one-way), KDCL treats all DNNs as "students" and collaboratively trains them in a single stage (knowledge is transferred among arbitrary students during collaborative training), enabling parallel computing, fast computations, and appealing generalization ability. Specifically, we carefully design multiple methods to generate soft target as supervisions by effectively ensembling predictions of students and distorting the input images. Extensive experiments show that KDCL consistently improves all the "students" on different datasets, including CIFAR100 and ImageNet. For example, when trained together by using KDCL, ResNet-50 and MobileNetV2 achieve $78.2\%$ and $74.0\%$ top-1 accuracy on ImageNet, outperforming the original results by $1.4\%$ and $2.0\%$ respectively. We also verify that models pre-trained with KDCL transfer well to object detection and semantic segmentation on MS COCO dataset. For instance, the FPN detector is improved by $0.9\%$ mAP.
|
| 13 |
+
|
| 14 |
+
# 1. Introduction
|
| 15 |
+
|
| 16 |
+
Knowledge distillation [10] is typically formulated as "teacher-student" learning setting. It is able to improve performance of a compact 'student' deep neural network because the representation of a 'teacher' network can be used as structured knowledge to guide the training of student. The predictions (e.g. soft target) produced by the teacher can be easily learned by a student and encourage it to generalize better than that trained from scratch. However,
|
| 17 |
+
|
| 18 |
+

|
| 19 |
+
(a) Baseline
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
(b) DML
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
(c) ONE
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
(d) KDCL
|
| 29 |
+
Figure 1: (a) [10] transfers knowledge from the static pre-trained teacher to student model. (b) Students can learn from each other in [32]. (c) [15] establishes teacher using multiple branch design. The gate is to ensemble all the branches. (d) KDCL consistently gains extra information from ensembling soft target produced by all students, outperforming existing approaches. The input of each model is randomly distorted separately to increase its generalization ability. When model pair is trained with KDCL on ImageNet, ResNet-18 is improved by $1.9\%$ and ResNet-50 gets $1.0\%$ improvement due to the knowledge from ResNet-18.
|
| 30 |
+
|
| 31 |
+
in traditional offline knowledge distillation framework, the teacher is pre-trained first and then fixed, meaning that the knowledge can be only transferred from the teacher to the student (i.e. one-way) as shown in Fig. 1a.
|
| 32 |
+
|
| 33 |
+
The online distillation methods [32, 15] are more attractive because the training process is simplified to a single stage, and all the networks are treated as students. These approaches merge the training processes of all student networks, enabling them to gain extra knowledge from each other. Students directly learn from the prediction of other students in Deep Mutual Learning (DML) [32], as illustrated in Fig. 1b. However, the output of students can be diverse, conflicting with each other and even the ground truth. When the performances are significantly different among models, this method does harm to the model of high perfor
|
| 34 |
+
|
| 35 |
+
mance.
|
| 36 |
+
|
| 37 |
+
An alternative method proposed by [15] (ONE) is to train a multi-branch network while establishing teacher on the fly, as shown in Fig. 1c. Nonetheless, this method is inflexible because the network is compelled to share lower layers and knowledge transfer occurs only at the upper layers within a single model rather than other models, limiting the extra knowledge and the performance. The gate module is not a guarantee of high quality soft target.
|
| 38 |
+
|
| 39 |
+
Self-distillation [6] shows that distilling a converged teacher model into a student model of identical network architecture can further improve the generalization ability compared to the teacher. The efficacy of self-distillation and online distillation leads us to the following question: Could we use a small network to improve the model with larger capacity in a one-stage distillation framework?
|
| 40 |
+
|
| 41 |
+
In this work, we propose a novel online knowledge distillation method via collaborative learning. In KDCL, student networks with different capacities learn collaboratively to generate high-quality soft target supervision, which distills the additional knowledge to each student as illustrated in Fig.1d. The high-quality soft target supervision aims at instructing students with significant performance gaps to consistently converge with higher generalization ability and less variance to the input perturbation in the data domain.
|
| 42 |
+
|
| 43 |
+
The major challenge is to generate soft target supervision that can boost the performance of all students with high confidence, which have different learning capacities or significant performance gaps. Ensembling tends to yield better results when diversity presents among the outputs of models [14]. Therefore, we propose to generate high-quality soft target supervision by carefully ensembling the output of students with the information of ground truth in an online manner. Furthermore, we propose to estimate generalization error by measuring model on the validation set. The soft target is generated for stronger generalization ability on the validation set.
|
| 44 |
+
|
| 45 |
+
For improving invariance against perturbations in the input data domain, the soft target should encourage the students to output similarly with similar distorted input images. Therefore, students are fed with the images, which are individually perturbed from identical inputs, and the soft target is generated by combining the outputs and fusing the information of data augmentation. In this case, the benefits of model ensembling are further exploited.
|
| 46 |
+
|
| 47 |
+
To evaluate the effect of KDCL, we conduct extensive experiments on benchmarks for image classification, CIFAR-100 [13] and ImageNet-2012 [4]. We demonstrate that, with KDCL, ResNet-50 [8] and ResNet-18 trained in pair achieve $77.8\%$ and $73.1\%$ val accuracy. ResNet-18 outperforms the baseline by $1.9\%$ and ResNet-50 gains $1.0\%$ improvement as a benefit of the extra knowledge from ResNet-18. We also verify that models pre-trained with
|
| 48 |
+
|
| 49 |
+
KDCL transfer well to object detection and semantic segmentation on the COCO dataset [17].
|
| 50 |
+
|
| 51 |
+
Our contributions are listed as follows.
|
| 52 |
+
|
| 53 |
+
- A new pipeline of knowledge distillation based on collaborative learning is designed. Models of various learning capacity can benefit from collaborative training.
|
| 54 |
+
- A series of model ensembling methods are designed to dynamically generate high-quality soft targets in a one-stage online knowledge distillation framework.
|
| 55 |
+
- Invariance against perturbations in the input domain is enhanced by transferring knowledge and fusing the output of images with different distortion.
|
| 56 |
+
|
| 57 |
+
# 2. Related work
|
| 58 |
+
|
| 59 |
+
Knowledge transfer for the neural network is advocated by [2, 10] to distill the knowledge from teacher to student. An obvious way is to let the student imitate the output of the teacher model. [2] proposes to improve shallow networks by penalizing the difference of logits between the student and the teacher. [10] realizes knowledge distillation by minimizing the Kullback-Leibler (KL) divergence loss of their output categorical probability.
|
| 60 |
+
|
| 61 |
+
Structure knowledge Based on the pioneering work, many methods have been proposed to excavate more information from the teacher. [20] introduces more supervision by further exploiting the feature of intermediate hidden layers. [31] defines additional attention information combined with distillation. [18] mines mutual relations of data examples by distance-wise and angle-wise losses. [23] establishes an equivalence between Jacobian matching and distillation. [9] transfers more accurate information via the route to the decision boundary. A few recent papers about self-distillation [29, 3, 6, 28] have shown that a converged teacher model supervising a student model of identical architecture could improve the generalization ability over the teacher. In contrast to mimicking complex models, KDCL involves all networks in learning and provides hint via fusing the information of the students. Without any additional loss for intermediate layers, KDCL reduces the difficulty of optimizing model.
|
| 62 |
+
|
| 63 |
+
Collaborative learning In online distillation framework, students imitate the teacher in the training process. DML [32] suggests peer students learn from each other through the cross-entropy loss between each pair of students. Co-distillation [1] is similar to DML, whereas it forces student networks to maintain their diversity longer by adding distillation loss after updating enough steps. Inspired by self-distillation, training a multiple branch variant of the target network is proposed to establish a strong teacher on-the-fly. ONE [15] constructs multiple branch classifiers and trains a gate controller to align the teacher's prediction. CLNN [22] promotes the diversity of each
|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
Figure 2: Overview of knowledge distillation via collaborative learning (KDCL). We input images distorted separately for each network to increase the invariance against perturbations in the data domain. KDCL dynamically ensembles soft target produced by all students to improve students consistently. $h(x, \epsilon)$ means random distortion and $\epsilon$ is the random seed.
|
| 67 |
+
|
| 68 |
+
branch by a hierarchical multiple branch design and proposes to scale the gradient accordingly. Different from generating a soft target by averaging the logits, which the above methods adopt, KDCL is proposed to generate a soft target dynamically to improve all students, even with significant performance gaps. The soft target is also designed to improve invariance in the input data domain.
|
| 69 |
+
|
| 70 |
+
**Ensemble method** Our work is also related to network ensemble approaches. Majority Voting, Stacked Generalization [27], GASEN [33], and Super Learner [12] explicitly select reliable prediction. Dropout [24], Drop-Connection [26] and Stochastic Depth [11] generally create exponent numbers of with shared weights during training and then average them at test time. Our method focuses on fusing information of students and guaranteeing the quality of soft target to improve the generalization ability of students.
|
| 71 |
+
|
| 72 |
+
# 3. Collaborative Learning for Knowledge Distillation
|
| 73 |
+
|
| 74 |
+
# 3.1. Background
|
| 75 |
+
|
| 76 |
+
Knowledge distillation is to optimize the student network under the supervision of the teacher network. More precisely, the loss is the KL divergence of the soften output of teacher network and student network as [10] defines
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
L _ {K D} = \frac {1}{n} \sum_ {i = 1} ^ {n} T ^ {2} K L \left(\mathbf {p} _ {i}, \mathbf {q} _ {i}\right), \tag {1}
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
where $n$ is the batch size, $T$ is the temperature parameter, $\mathbf{p}$ and $\mathbf{q}$ represent the soften probability distribution produced by teacher network and student network. We note
|
| 83 |
+
|
| 84 |
+
<table><tr><td>Teacher Model</td><td>Teacher Top-1</td><td>Student Top-1</td></tr><tr><td>ResNet-34</td><td>73.5</td><td>70.8</td></tr><tr><td>ResNet-50</td><td>76.5</td><td>71.2</td></tr><tr><td>ResNet-101</td><td>77.9</td><td>71.4</td></tr></table>
|
| 85 |
+
|
| 86 |
+
Table 1: Top-1 accuracy on ImageNet-2012 validation set. The second column is the pre-trained teacher model's performance, and the third one is student model accuracy trained with KD loss. The student gets $70.1\%$ accuracy supervised by the hard target.
|
| 87 |
+
|
| 88 |
+
the logit of student and teacher as $\mathbf{z}_s$ and $\mathbf{z}_t$ . Then $\mathbf{q} = \text{softmax}(\mathbf{z}_s / T)$ and the soft target $\mathbf{p} = \text{softmax}(\mathbf{z}_t / T)$ .
|
| 89 |
+
|
| 90 |
+
A high-quality teacher is important for optimizing a good student. If the teacher is not well optimized and provides noisy supervision, the risk that soft target and ground truth conflict with each other becomes high. We evaluate the impact of teacher quality using ResNet-18 [8] as the student model on ImageNet dataset. All the teacher models and student models are trained for 100 epochs. In Tab. 1, the performance of the same student network is compared under the supervision of different teacher models. When the teacher size is not too large for the student, teacher's performance increases, thus it provides better supervision for the student by being a better predictor.
|
| 91 |
+
|
| 92 |
+
# 3.2. Our method
|
| 93 |
+
|
| 94 |
+
Overview. We propose KDCL to automatically generate a soft target in an online manner, as illustrated in Fig. 2. The framework can be viewed as a super network composed of multiple individual sub-networks. The raw images are augmented separately with different random seeds, and the soft target is generated to supervise all networks. We propose
|
| 95 |
+
|
| 96 |
+
a series of methods to generate a soft target, which ensures that students with different capacity benefit from collaborative learning and enhances the invariance of the network against input perturbations. Note that all the models can predict independently, so the improvement does not incur additional test computational cost.
|
| 97 |
+
|
| 98 |
+
Loss function To improve the generalization performance, we distill the knowledge of soft target to each sub-network via the KD loss. All the sub-networks are trained from scratch. With the standard cross-entropy loss, all the networks are trained end-to-end with a multi-task loss function:
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
L = \sum_ {i = 1} ^ {m} L _ {C E} ^ {i} + \lambda L _ {K D} ^ {i}, \tag {2}
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
where $L_{KD}$ is the KL divergence between the output of students and the soft target and $\lambda$ is the trade-off weight.
|
| 105 |
+
|
| 106 |
+
KDCL-Naive. In our framework, all the models are student models and the supervision is generated by combining the output of the models. Assuming that there are $m$ subnetworks, the logit of the $k$ -th sub-network is defined as $\mathbf{z}_k$ . The teacher logit $\mathbf{z}_t$ is expressed as
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
\mathbf {z} _ {t} = h \left(\mathbf {z} _ {1}, \mathbf {z} _ {2}, \dots , \mathbf {z} _ {m}\right), \tag {3}
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
where $h$ is a function to produce higher quality logit compared with the logits of students. Assuming that training samples and test samples follow the same distribution, a model predicting with less loss on training set encourages students to converge faster.
|
| 113 |
+
|
| 114 |
+
A naive combination method is to choose the logit with the smallest cross-entropy loss among all students, which can be defined as
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
\mathbf {z} _ {t} = \mathbf {z} _ {k}, k = \underset {i} {\arg \min } L _ {C E} (\mathbf {z} _ {i}, \mathbf {y}), \tag {4}
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
where $\mathbf{y}$ is the one-hot label and $L_{CE}$ is the standard cross-entropy loss.
|
| 121 |
+
|
| 122 |
+
KDCL-Linear. The naive combination is easy to implement, but the teacher logit is not quality enough. KDCL-Linear defines the teacher logit as the best linear combination of sub-network logits, which is a simple but useful information fusion. Finding out the best linear combination can be treated as an optimization problem. Let matrix $\mathbf{Z} = (\mathbf{z}_1^T;\mathbf{z}_2^T;\dots;\mathbf{z}_m^T)$ . Each column of the matrix $\mathbf{Z}$ represents the logit of a student. The problem can be illustrated as follow:
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
\min _ {\alpha \in \mathbb {R} ^ {m}} L _ {C E} \left(\alpha^ {T} \mathbf {Z}, \mathbf {y}\right), \text {s u b j e c t} \sum_ {i = 1} ^ {m} \alpha_ {i} = 1, \alpha_ {i} \geq 0 \tag {5}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
Eq. 5 is a convex optimization problem and is easy to solve.
|
| 129 |
+
|
| 130 |
+
KDCL-MinLogit. The KDCL-Linear incurs another optimization problem during training, whereas we hope network ensemble is efficient. As an alternative, we propose the KDCL-MinLogit method to generate the soft target. The difference between values in logit decides the probability distribution produced by the softmax function. Therefore the output probability is expressed as
|
| 131 |
+
|
| 132 |
+
$$
|
| 133 |
+
\mathbf {p} = \operatorname {s o f t m a x} (\mathbf {z}) = \operatorname {s o f t m a x} \left(\mathbf {z} - z ^ {c}\right), \tag {6}
|
| 134 |
+
$$
|
| 135 |
+
|
| 136 |
+
where $z^c$ is the element corresponding to target class $c$ in logit. Define $\mathbf{z}^c = \mathbf{z} - z^c$ , then the $c$ -th element of $\mathbf{z}^c$ is 0 for all sub-networks. When the other elements in logit become smaller, the cross-entropy loss with the one-hot label will decrease. Then a neat way to generate teacher logit is to select the minimum element of each row of matrix $\mathbf{Z}^c$ , which can be defined as $\mathbf{Z}^c = (\mathbf{z}_1^c, \mathbf{z}_2^c, \dots, \mathbf{z}_m^c)$ . More precisely, the teacher logit can be expressed as
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
z _ {t, j} = \min \left\{Z _ {j, i} ^ {c} | i = 1, 2, \dots , m \right\}, \tag {7}
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
where $z_{t,j}$ is the j-th element of soft target $\mathbf{z}_t$ and $Z_{j,i}^c$ is the element of the j-th row and i-th column in $\mathbf{Z}^c$ . This method is compatible with mainstream deep learning frameworks.
|
| 143 |
+
|
| 144 |
+
KDCL-General. The teacher with more generalization ability usually instructs the students to converge better. Performance on the validation dataset can be viewed as a measure of generalization ability. Therefore, we propose to find an optimal ensemble of the $m$ component networks to approximate the general teacher. We randomly pick $N$ examples from the training set to construct the validation set $\mathcal{D}_v$ and the predictions of the component networks are combined through weighted average. The weight should satisfy $w_i\in [0,1]$ $(i = 1,2,\dots,m)$ and $\sum_{i = 1}^{m}w_{i} = 1$ . In this setup, we focus on measuring the generalization ability directly, so the probability is discussed rather than the logit. The generalization error on the input $\mathbf{x}$ is defined as
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
E (\mathbf {x}) = (f (\mathbf {x}) - t) ^ {2}, \tag {8}
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
where $f(\mathbf{x})$ is the prediction probability of target class and $t$ is the ground truth. The generalization error of the ensemble network can be expressed as
|
| 151 |
+
|
| 152 |
+
$$
|
| 153 |
+
\begin{array}{l} E = \int_ {\mathbb {m}} \left(\sum_ {i = 1} ^ {m} w _ {i} f _ {i} (\mathbf {x}) - t\right) ^ {2} p (\mathbf {x}) d \mathbf {x} \tag {9} \\ = \sum_ {i = 1} ^ {m} \sum_ {j = 1} ^ {m} w _ {i} w _ {j} C _ {i j}, \\ \end{array}
|
| 154 |
+
$$
|
| 155 |
+
|
| 156 |
+
where $p(\mathbf{x})$ is the data distribution and $C_{ij}$ is expressed as
|
| 157 |
+
|
| 158 |
+
$$
|
| 159 |
+
\begin{array}{l} C _ {i j} = \int \left(f _ {i} (\mathbf {x}) - t\right) \left(f _ {j} (\mathbf {x}) - t\right) p (\mathbf {x}) d \mathbf {x} \\ \approx \frac {1}{N} \sum_ {k = 1} ^ {N} \left(f _ {i} \left(\mathbf {x} _ {k}\right) - t\right) \left(f _ {j} \left(\mathbf {x} _ {k}\right) - t\right) \tag {10} \\ \end{array}
|
| 160 |
+
$$
|
| 161 |
+
|
| 162 |
+
In general, the distribution of data is unknown or intractable. Hence the empirical distribution is adapted as an approximation. According to Eq. 9 and the constraint on weight, the optimum weight $\mathbf{w}$ can be solved by the Lagrange multiplier as follow:
|
| 163 |
+
|
| 164 |
+
$$
|
| 165 |
+
w _ {k} = \frac {\sum_ {j = 1} ^ {m} C _ {k j} ^ {- 1}}{\sum_ {i = 1} ^ {m} \sum_ {j = 1} ^ {m} C _ {i j} ^ {- 1}}, \tag {11}
|
| 166 |
+
$$
|
| 167 |
+
|
| 168 |
+
where $w_{k}$ is the $k$ -th element of the optimum weight $\mathbf{w}$ and $C_{ij}^{-1}$ is the value of the $i$ -th row and the $j$ -th column of the inverse matrix of $\mathbf{C}$ .
|
| 169 |
+
|
| 170 |
+
Measuring the generalization error incurs the little computational cost and updating the parameters of the neural network a few steps does not change the output drastically due to the small learning rate. Consequently, we update the optimal weight vector $\mathbf{w}$ after each training epoch. Moreover, without any prior knowledge, we assume all the component networks have equal weight $\frac{1}{m}$ in initialization and the soft target is the weighted average probability distribution.
|
| 171 |
+
|
| 172 |
+
Invariant collaborative learning. In order to improve invariance against the perturbations in the data domain, we generate identical soft target for all students fed with similar distorted images. Therefore, we randomly sample images with the same data augmentation policy for each subnetwork and fuse the knowledge with the above ensemble methods. This method increases the amount and diversity of training data. With the knowledge of the additional training data, the soft target encourages the sub-networks to have a lower generalization error.
|
| 173 |
+
|
| 174 |
+
# 4. Experiments
|
| 175 |
+
|
| 176 |
+
In this section, we perform a series of experiments to evaluate our training mechanism on image classification benchmarks and conduct transfer experiments on COCO dataset [17], a widely used benchmark in the field of object detection and segmentation.
|
| 177 |
+
|
| 178 |
+
# 4.1. Results on ImageNet
|
| 179 |
+
|
| 180 |
+
In experiments on ImageNet, we analyze the effectiveness of our method of generating soft target based on the student pair, ResNet-50 and ResNet-18, and evaluate a series of network architectures on ImageNet.
|
| 181 |
+
|
| 182 |
+
Dataset and training details. ImageNet dataset contains 1000 object classes with about 1.28 million images for training and 50,000 images for validation. We separate 20,000 images from the train set, 20 samples on each class, as the validation set to measure the generalization ability of sub-network for KDCL-General. So the original validation set is treated as the test set.
|
| 183 |
+
|
| 184 |
+
We follow the ResNet training procedure. The learning rate starts at 0.1 and warms up to 0.8 linearly after 5
|
| 185 |
+
|
| 186 |
+
<table><tr><td>Method</td><td>ResNet-50</td><td>ResNet-18</td><td>Gain</td></tr><tr><td>Vanilla</td><td>76.8</td><td>71.2</td><td>0</td></tr><tr><td>KD[10]</td><td>76.8</td><td>72.1</td><td>0.9</td></tr><tr><td>DML[32]</td><td>75.8</td><td>71.7</td><td>-0.5</td></tr><tr><td>ONE[15]</td><td>-</td><td>72.2</td><td>-</td></tr><tr><td>CLNN[22]</td><td>-</td><td>72.4</td><td>-</td></tr><tr><td>KDCL-Naive</td><td>77.5</td><td>72.9</td><td>2.4</td></tr><tr><td>KDCL-Linear</td><td>77.8</td><td>73.1</td><td>2.9</td></tr><tr><td>KDCL-MinLogit</td><td>77.8</td><td>73.1</td><td>2.9</td></tr><tr><td>KDCL-General</td><td>77.1</td><td>72.0</td><td>1.1</td></tr></table>
|
| 187 |
+
|
| 188 |
+
Table 2: Top-1 accuracy rate (\%) on ImageNet. All the models are reimplemented with our training procedure for a fair comparison. Gain indicates the sum of the component student network improvement. ONE and CLNN are incompatible with different network structures. Therefore, only the accuracy of ResNet-18 is compared.
|
| 189 |
+
|
| 190 |
+
<table><tr><td>Method</td><td>Top-1</td><td>Top-5</td><td>Params</td></tr><tr><td>Vanilla</td><td>71.2</td><td>90.0</td><td>11.7M</td></tr><tr><td>ONE[15]</td><td>72.2</td><td>90.6</td><td>29.5M</td></tr><tr><td>KDCL MobileNetV2x1.2</td><td>72.9</td><td>90.8</td><td>16.4M</td></tr><tr><td>CLNN[22]</td><td>72.4</td><td>90.7</td><td>40.5M</td></tr><tr><td>KDCL ResNet-50</td><td>73.1</td><td>91.2</td><td>37.2M</td></tr></table>
|
| 191 |
+
|
| 192 |
+
Table 3: Top-1 and Top-5 accuracy rate $(\%)$ on ImageNet. The backbone is ResNet-18. ONE is trained with 3 branches (Res4 block) and CLNN has a hierarchical design with 4 heads. For KDCL, ResNet-18 is trained with a peer network.
|
| 193 |
+
|
| 194 |
+
epochs. We set the weight decay to 0.0001, the batch size to 2048, and the momentum is 0.9. All the ResNet models are trained for 200 epochs and the learning rate drop by 0.1 at 60, 120, and 180 epoch. As a default, the MobileNetV2 [21] models are optimized for 300 epochs by stochastic gradient descent (SGD) with a warm-up learning rate to 0.8 and decay it by 0.1 at 90, 180 and 270 epoch. We apply the scale and aspect ration augmentation and the photometric distortions [25]. During test time, the images are scaled to $256 \times 256$ followed by a $224 \times 224$ center crop.
|
| 195 |
+
|
| 196 |
+
Quantitative comparison. Tab. 2 shows top-1 accuracy rate on ImageNet. KD indicates Knowledge Distillation [10]. DML represents the Deep Mutual Learning [32]. ONE [15] and CLNN [22] are self-distillation methods, which are incompatible with different network structures. Therefore, only the accuracy of ResNet-18 is compared.
|
| 197 |
+
|
| 198 |
+
From the results in Tab. 2, we can make the following key observations. DML can generate an appropriate soft target for the compact model but harm the complex model when there is a significant performance gap, as the prediction of compact model conflicts with the complex model and ground truth. KDCL-Linear outperforms KDCL-Naive as a result of the higher quality soft target.
|
| 199 |
+
|
| 200 |
+
<table><tr><td>Model 1</td><td>Top-1</td><td>Model 2</td><td>Top-1</td><td>Method</td></tr><tr><td>MBV2</td><td>72.0</td><td>MBV2x0.5</td><td>64.8</td><td>Vanilla</td></tr><tr><td>MBV2</td><td>73.1</td><td>MBV2x0.5</td><td>66.2</td><td>Linear</td></tr><tr><td>MBV2</td><td>73.1</td><td>MBV2x0.5</td><td>66.3</td><td>MinLogit</td></tr><tr><td>ResNet-18</td><td>71.2</td><td>MBV2x0.5</td><td>64.8</td><td>Vanilla</td></tr><tr><td>ResNet-18</td><td>71.8</td><td>MBV2x0.5*</td><td>65.6</td><td>Linear</td></tr><tr><td>ResNet-18</td><td>71.9</td><td>MBV2x0.5*</td><td>65.6</td><td>MinLogit</td></tr><tr><td>ResNet-18</td><td>71.2</td><td>MBV2</td><td>72.0</td><td>Vanilla</td></tr><tr><td>ResNet-18</td><td>72.1</td><td>MBV2*</td><td>72.8</td><td>Linear</td></tr><tr><td>ResNet-18</td><td>72.2</td><td>MBV2*</td><td>72.8</td><td>MinLogit</td></tr><tr><td>ResNet-50</td><td>76.8</td><td>MBV2x0.5</td><td>64.8</td><td>Vanilla</td></tr><tr><td>ResNet-50</td><td>77.5</td><td>MBV2x0.5*</td><td>67.1</td><td>Linear</td></tr><tr><td>ResNet-50</td><td>77.7</td><td>MBV2x0.5*</td><td>66.8</td><td>MinLogit</td></tr><tr><td>ResNet-50*</td><td>76.5</td><td>ResNet-18*</td><td>71.2</td><td>Vanilla</td></tr><tr><td>ResNet-50*</td><td>76.8</td><td>ResNet-18*</td><td>72.0</td><td>Linear</td></tr><tr><td>ResNet-50*</td><td>77.0</td><td>ResNet-18*</td><td>72.1</td><td>MinLogit</td></tr></table>
|
| 201 |
+
|
| 202 |
+
Table 4: The comparative result of different sub-network on ImageNet validation set. MBV2 is the abbreviation of MobileNetV2. MBV2x0.5 represents the width multiplier is 0.5. ResNet-50* and ResNet-18* are trained for 100 epochs. MBV2* and MBV2x0.5* are trained for 200 epochs.
|
| 203 |
+
|
| 204 |
+
KDCL-MinLogit can be more efficient and the performance is equal to KDCL-Linear. The result of KDCL-General is not good enough because of the imprecise estimates. The weight for ensembling the prediction is updated each epoch rather than each iteration to save computational cost, so the generated soft target is not as good as KDCL-Linear and KDCL-MinLogit.
|
| 205 |
+
|
| 206 |
+
Following the setting of ONE [15] and CLNN [22], the low-level layers are shared to save parameters. Multiple branches are ensembled, which are equal to several identical networks. For a fair comparison, we choose a single model as the peer network with fewer parameters than the multiple branch architecture. Our method surpasses the complex ONE with gate controller predicting learnable ensemble logits and carefully designed CLNN with hierarchical architecture as shown in Tab. 3. The result proves that ONE and CLNN are limited with extra knowledge due to the multi-branch design.
|
| 207 |
+
|
| 208 |
+
Our proposed method applies to various architectures. Therefore, we conduct experiments on the complex-compact pair and compact-compact pair. Tab. 4 shows that the more compact model MobileNetV2×0.5 can provide hint for MobileNetV2, ResNet-18 and even ResNet-50 because the compact model can beat the complex model on some samples as illustrated in Fig. 3. MobileNetV2×0.5 with 1.9M parameters helps to improve ResNet-50 with 25.6M. The fact proves our approach is suitable for the situation that there is a significant performance gap between
|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
Figure 3: The comparison of ResNet-50 and ResNet-18 on the part categories of ImageNet validation set.
|
| 212 |
+
|
| 213 |
+
<table><tr><td>Network</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr><tr><td>Top-1 (%)</td><td>70.1</td><td>71.3</td><td>71.61</td><td>71.75</td><td>71.87</td></tr></table>
|
| 214 |
+
|
| 215 |
+
Table 5: KDCL benefits from ensembling more sub-networks. All the networks are ResNet-18 to prevent the impact of network performance differences.
|
| 216 |
+
|
| 217 |
+
<table><tr><td>Model</td><td>Res-50</td><td>Res-18</td><td>MBV2</td><td>MBV2x0.5</td><td>Gain</td></tr><tr><td>Vanilla</td><td>76.8</td><td>71.2</td><td>72.0</td><td>64.8</td><td>0</td></tr><tr><td>KDCL</td><td>78.2</td><td>73.5</td><td>74.0</td><td>66.9</td><td>7.8</td></tr></table>
|
| 218 |
+
|
| 219 |
+
Table 6: Top-1 accuracy rate (\%) on ImageNet. ResNet-50 is significantly improved with the knowledge from three compact models.
|
| 220 |
+
|
| 221 |
+
models. Long training runs can improve accuracy by providing more various soft targets by randomly distorting the training images. Therefore, the top-1 accuracy of ResNet-50 and ResNet-18 is further increased by $0.8\%$ and $1.0\%$ for another 100 training epochs.
|
| 222 |
+
|
| 223 |
+
Ensemble more models. The main experiments show good results using two sub-networks. We also prove that assembling more models generally give better accuracy. Tab. 5 shows that assembling two sub-networks can outperform the baseline model with a remarkable margin. KDCL scales well with more sub-networks but the gain decreases as the networks increase. We conjecture that the mutual information between the strong ensemble network and the additional network increases as the ensemble size raises. Experiments are further conducted when utilizing neural networks with different capacities on ImageNet. Tab. 6 shows that ResNet-50 achieves $78.2\%$ top-1 accuracy with knowledge from three compact models.
|
| 224 |
+
|
| 225 |
+
# 4.2. Results on CIFAR
|
| 226 |
+
|
| 227 |
+
Dataset and training details. CIFAR-100 consists of $32 \times 32$ color images containing 100 classes. The dataset
|
| 228 |
+
|
| 229 |
+
<table><tr><td>Method</td><td>ICL</td><td>ResNet-32 Acc %</td><td>WRN-16-2 Acc %</td><td>Gain</td></tr><tr><td>Vanilla</td><td></td><td>69.9</td><td>72.2</td><td>0</td></tr><tr><td>2 distill 1 [10]</td><td></td><td>73.3</td><td>72.2</td><td>3.4</td></tr><tr><td>1 distill 2 [10]</td><td></td><td>69.9</td><td>74.5</td><td>2.3</td></tr><tr><td>DML [32]</td><td></td><td>73.3</td><td>74.8</td><td>6.0</td></tr><tr><td>ONE [15]</td><td></td><td>73.6</td><td>-</td><td>-</td></tr><tr><td>CLNN [22]</td><td></td><td>73.4</td><td>-</td><td>-</td></tr><tr><td>KDCL-Naive</td><td></td><td>73.7</td><td>74.8</td><td>6.4</td></tr><tr><td>KDCL-Naive</td><td>✓</td><td>73.8</td><td>74.9</td><td>6.6</td></tr><tr><td>KDCL-Linear</td><td></td><td>73.4</td><td>74.6</td><td>5.9</td></tr><tr><td>KDCL-Linear</td><td>✓</td><td>73.6</td><td>74.9</td><td>6.4</td></tr><tr><td>KDCL-MinLogit</td><td></td><td>73.0</td><td>74.1</td><td>5.0</td></tr><tr><td>KDCL-MinLogit</td><td>✓</td><td>73.5</td><td>74.6</td><td>6.0</td></tr><tr><td>KDCL-General</td><td></td><td>74.0</td><td>75.2</td><td>7.1</td></tr><tr><td>KDCL-General</td><td>✓</td><td>74.3</td><td>75.5</td><td>7.7</td></tr></table>
|
| 230 |
+
|
| 231 |
+
Table 7: The comparative and ablative result of our generate distillation method on CIFAR-100 dataset. ICL is invariant collaborative learning. We only report the accuracy of ResNet-32 as ONE and CLNN are incompatible with WRN-16-2.
|
| 232 |
+
|
| 233 |
+
is split into a training set with 50,000 images and a test set with 10,000 images. For KDCL-General, we separate 5,000 images from the training set, 50 samples on each class, as the validation set to measure the generalization ability of students. All the models are trained for 200 epochs with learning rate starting at 0.1 and the learning rate drops by 0.1 at 100 and 150 epoch. We set the weight decay to 0.0005, batch size to 128, and the momentum is 0.9. All the training images are padded with 4 pixels and a $32 \times 32$ crop is randomly sampled from the padded images or its horizontal flip. The temperature $T$ and $\lambda$ are 2 and 1 separately. Accuracy is computed as the median of 5 runs.
|
| 234 |
+
|
| 235 |
+
Knowledge distillation relieves over-fitting. The second and third row of Tab. 7 show that the student model becomes more general for knowledge distillation, even surpasses the teacher model. For distillation (2nd row in Tab. 7) from Wide-ResNet-16 [30] with a widening factor 2 (WRN-16-2) to ResNet-32, we observe that the accuracy of the student network ResNet-32 is $93.37\%$ on the train set, behind the teacher network WRN-16-2 $99.39\%$ , while the test error is lower than WRN-16-2. This phenomenon demonstrates the knowledge distillation can relieve overfitting.
|
| 236 |
+
|
| 237 |
+
Quantitative comparison. Most of our proposed methods outperform DML as a result of the effective learning mechanism and the end-to-end training manner compared with multi-stage parameters updating. An interesting phenomenon is observed that KDCL-MinLogit and KDCL-Linear do worse than KDCL-Naive, which conflicts with
|
| 238 |
+
|
| 239 |
+
<table><tr><td>Backbone</td><td>Type</td><td>box mAP</td><td>mask mAP</td></tr><tr><td>ResNet-18 (BaseLine)</td><td>Faster</td><td>32.2</td><td>-</td></tr><tr><td>ResNet-18 (Our)</td><td>Faster</td><td>33.1</td><td>-</td></tr><tr><td>ResNet-18 (BaseLine)</td><td>Mask</td><td>33.4</td><td>30.7</td></tr><tr><td>ResNet-18 (Our)</td><td>Mask</td><td>34.0</td><td>31.3</td></tr></table>
|
| 240 |
+
|
| 241 |
+
Table 8: Average precision (AP) on COCO 2017 validation set with pre-trained ResNet-18. All models are used as backbones for Faster-RCNN [19], Mask-RCNN [7] based on FPN [16].
|
| 242 |
+
|
| 243 |
+
the results on ImageNet. We conjecture that the soft target with less cross-entropy loss on CIFAR-100 train set leads to over-fitting like the one-hot label. KDCL-General significantly improves the performance by the more general teacher model according to the optimal weighted average on the validation set. This result proves that our approaches can further improve the ability of knowledge distillation to alleviate over-fitting. It also shows that there is a trade-off between the fitting ability and generalization ability when the amount of data is limited.
|
| 244 |
+
|
| 245 |
+
The ablation study in Tab. 7 shows that invariant collaborative learning is promising. The improvement comes from fusing information of different distorting images and the shared soft target also encourages the sub-network to output similarly with similar input.
|
| 246 |
+
|
| 247 |
+
# 4.3. Transfer Learning
|
| 248 |
+
|
| 249 |
+
Dataset and training details. We follow the commonly used practice [19, 7] to divide the $40\mathrm{k}$ validation set into a $35\mathrm{k}$ and $5\mathrm{k}$ subset. The training set containing $80\mathrm{k}$ images and the $35\mathrm{k}$ subset are used for training. The $5\mathrm{k}$ subset that denoted as minival set is used to validate our result. All the models are trained for 14 epochs on 8 GPUs with 4 images on each GPU. The learning rate starts at 0.04 and is decayed by 0.1 at 9 and 12 epoch. The weight decay is 0.0001 and momentum is 0.9. To fully utilize the capacity of the model, all the batch normalization layers are in sync mode and no weight is frozen. We replace ROI-Pooling with ROIAlign [7] for better results by default.
|
| 250 |
+
|
| 251 |
+
Results. Tab. 8 reports that the validation set performance of object detection and instance segmentation on standard AP metric (corresponds to the average AP for IOU from 0.5 to 0.95 with a step size of 0.05.). Based on ResNet-18 trained with KDCL, the detection head outperforms baseline by $0.9\%$ . Our proposed learning mechanism also brings improvements on instance segmentation by $0.6\%$ . The improvements come from the more powerful generalization. In summary, this set of experiments demonstrates that the improvements induced by our learning mechanism can be realized across a broad range of tasks and datasets.
|
| 252 |
+
|
| 253 |
+
# 5. Analysis
|
| 254 |
+
|
| 255 |
+
Definition of generalisation error. The L2-norm for generalisation error (Eq.8) is for simplicity and results in a neat analytic solution, which is easy and efficient to implement. Actually Eq. 11 holds as long as the function $E(\mathbf{x}) = g(f_i(\mathbf{x}), t)$ is convex and nonnegative (e.g. cross entropy loss). We can derive this using Jensen's inequality as follow:
|
| 256 |
+
|
| 257 |
+
$$
|
| 258 |
+
\begin{array}{l} E (\mathbf {x}) = g \left(\sum_ {i} ^ {m} w _ {i} f _ {i} (\mathbf {x}), t\right) \leq \left(\sum_ {i} ^ {m} w _ {i} g \left(f _ {i} (\mathbf {x}), t\right)\right) = E ^ {\prime} (\mathbf {x}) \\ E ^ {\prime 2} = \int E ^ {\prime} (\mathbf {x}) p (\mathbf {x}) d \mathbf {x} = \sum_ {i} ^ {m} \sum_ {j} ^ {m} w _ {i} w _ {j} C _ {i j} \\ C _ {i j} = \int g \left(f _ {i} (\mathbf {x}), t\right) g \left(f _ {j} (\mathbf {x}), t\right) p (\mathbf {x}) d \mathbf {x}, \tag {12} \\ \end{array}
|
| 259 |
+
$$
|
| 260 |
+
|
| 261 |
+
Minimizing the upper boundary $E^{\prime}$ can reduce the generalization error.
|
| 262 |
+
|
| 263 |
+
Sensitivity to loss hyper-parameter. In the main experiments, we simply set the hyper-parameter $\lambda$ to 1, aimed to highlight the effectiveness of KDCL. The results in Tab. 9 show that performance is insensitive to the choice of $\lambda$ over a large range from $\frac{1}{5}$ to 5, yet a carefully adjusted hyperparameter does bring some extra performance gain.
|
| 264 |
+
|
| 265 |
+
<table><tr><td>λ</td><td>0.1</td><td>0.2</td><td>0.5</td><td>1</td><td>2</td><td>5</td><td>10</td></tr><tr><td>R</td><td>71.5</td><td>73.3</td><td>73.8</td><td>74.3</td><td>74.7</td><td>74.0</td><td>72.9</td></tr><tr><td>W</td><td>73.9</td><td>74.5</td><td>75.0</td><td>75.5</td><td>76.1</td><td>74.9</td><td>74.5</td></tr></table>
|
| 266 |
+
|
| 267 |
+
Table 9: The model pair ResNet-32 and WRN-16-2 is trained with KDCL-General method on CIFAR-100.
|
| 268 |
+
|
| 269 |
+
Sensitivity to data augmentation policies. We adopted Cutout[5], which yields state-of-the-art results, to evaluate our method on CIFAR-100. The results in Tab. 10 the following table proves that our method is insensitive to the choice of data augmentation.
|
| 270 |
+
|
| 271 |
+
<table><tr><td>Method</td><td>ICL</td><td>ResNet-32</td><td>WRN-16-2</td></tr><tr><td>Vanilla</td><td></td><td>72.3</td><td>74.3</td></tr><tr><td>KDCL</td><td></td><td>74.3</td><td>75.5</td></tr><tr><td>KDCL</td><td>√</td><td>74.6</td><td>75.8</td></tr></table>
|
| 272 |
+
|
| 273 |
+
Table 10: The model pair is trained with Cutout policy.
|
| 274 |
+
|
| 275 |
+
How does ICL contribute? Invariant collaborative learning (ICL) leads to similar class probability predictions, meaning small intra-class distance. We measure the similarity of predictions by calculating the standard deviation of probability predictions of each class. The comparison is based on ResNet-32 and WRN-16-2 trained on CIFAR-100.
|
| 276 |
+
|
| 277 |
+

|
| 278 |
+
|
| 279 |
+

|
| 280 |
+
Figure 4: The curve of loss gap from KDCL-General to baseline and DML on CIFAR-100. The robustness test is based on ResNet-32 solutions found by KDCL, DML and Vanilla training.
|
| 281 |
+
|
| 282 |
+
The averages of the standard deviation are 0.347 and 0.343. ICL reduces the averages to 0.337 and 0.336.
|
| 283 |
+
|
| 284 |
+
Robustness to Noise. We bring the noise to the testing images and observe that our method is robust to random noise. The noise is sampled from independent Gaussian distribution $\mathcal{N}(0, \delta^2)$ and added to each pixel. The std $\delta$ is set ranging from 0.0 to 0.15 by step 0.01. At each magnitude scale, the loss is the average of 10 independent tests. Fig. 4 shows that the loss gap from KDCL to baseline and DML becomes more significant with the increasing of $\delta$ .
|
| 285 |
+
|
| 286 |
+
# 6. Conclusion
|
| 287 |
+
|
| 288 |
+
In this work, we introduce a novel online knowledge distillation framework based on collaborative learning strategy. With our ensemble method, models of various capacity can benefit from collaborative learning. Further, we improve the invariance by transferring knowledge via fusing information of image distorting. Experiments on ImageNet, CIFAR, and COCO show that KDCL significantly reduces the generalization error while keeping that students predict independently. The performance gain persists when the trained model is fine-tuned on other vision tasks. KDCL could be further extended to other recognition tasks and may help to optimize the collaborative learning of multiple relative tasks, like joint human parsing and pose estimation.
|
| 289 |
+
|
| 290 |
+
Acknowledgments This work was partially supported by HKU Seed Fund for Basic Research, Start-up Fund, Research Donation from SenseTime, the National Natural Science Foundation of China under Grant Nos. U19B2034 and 61836014.
|
| 291 |
+
|
| 292 |
+
# References
|
| 293 |
+
|
| 294 |
+
[1] Rohan Anil, Gabriel Pereyra, Alexandre Passos, Robert Ormandi, George E Dahl, and Geoffrey E Hinton. Large scale distributed neural network training through online distillation. arXiv preprint arXiv:1804.03235, 2018. 2
|
| 295 |
+
[2] Jimmy Ba and Rich Caruana. Do deep nets really need to be deep? In Advances in neural information processing systems, pages 2654-2662, 2014. 2
|
| 296 |
+
[3] Hessam Bagherinezhad, Maxwell Horton, Mohammad Rastegari, and Ali Farhadi. Label refinery: Improving image-net classification through label progression. arXiv preprint arXiv:1805.02641, 2018. 2
|
| 297 |
+
[4] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2009. 2
|
| 298 |
+
[5] Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017. 8
|
| 299 |
+
[6] Tommaso Furlanello, Zachary C Lipton, Michael Tschannen, Laurent Itti, and Anima Anandkumar. Born again neural networks. arXiv preprint arXiv:1805.04770, 2018. 2
|
| 300 |
+
[7] Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017. 7
|
| 301 |
+
[8] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770-778, 2016. 2, 3
|
| 302 |
+
[9] Byeongho Heo, Minsik Lee, Sangdoo Yun, and Jin Young Choi. Knowledge distillation with adversarial samples supporting decision boundary. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3771-3778, 2019. 2
|
| 303 |
+
[10] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. 1, 2, 3, 5, 7
|
| 304 |
+
[11] Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q Weinberger. Deep networks with stochastic depth. In European Conference on Computer Vision, pages 646-661. Springer, 2016. 3
|
| 305 |
+
[12] Cheng Ju, Aurélien Bibaut, and Mark van der Laan. The relative performance of ensemble methods with deep convolutional neural networks for image classification. Journal of Applied Statistics, 45(15):2800-2818, 2018. 3
|
| 306 |
+
[13] Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009. 2
|
| 307 |
+
[14] Ludmila I Kuncheva and Christopher J Whitaker. Measures of diversity in classifier ensembles and their relationship with the ensemble accuracy. Machine learning, 51(2):181-207, 2003. 2
|
| 308 |
+
[15] Xu Lan, Xiatian Zhu, and Shaogang Gong. Knowledge distillation by on-the-fly native ensemble. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 7528-7538. Curran Associates Inc., 2018. 1, 2, 5, 6, 7
|
| 309 |
+
|
| 310 |
+
[16] Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. 7
|
| 311 |
+
[17] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014. 2, 5
|
| 312 |
+
[18] Wonpyo Park, Dongju Kim, Yan Lu, and Minsu Cho. Relational knowledge distillation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
|
| 313 |
+
[19] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pages 91-99, 2015. 7
|
| 314 |
+
[20] Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014. 2
|
| 315 |
+
[21] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zh-moginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4510-4520, 2018. 5
|
| 316 |
+
[22] Guocong Song and Wei Chai. Collaborative learning for deep neural networks. In Advances in Neural Information Processing Systems, pages 1832-1841, 2018. 2, 5, 6, 7
|
| 317 |
+
[23] Suraj Srinivas and Francois Fleuret. Knowledge transfer with Jacobian matching. In Jennifer Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 4723-4731, Stockholm, Sweden, 10-15 Jul 2018. PMLR. 2
|
| 318 |
+
[24] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research, 15(1):1929-1958, 2014. 3
|
| 319 |
+
[25] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1-9, 2015. 5
|
| 320 |
+
[26] Li Wan, Matthew Zeiler, Sixin Zhang, Yann Le Cun, and Rob Fergus. Regularization of neural networks using dropconnect. In International conference on machine learning, pages 1058-1066, 2013. 3
|
| 321 |
+
[27] David H Wolpert. Stacked generalization. Neural networks, 5(2):241-259, 1992. 3
|
| 322 |
+
[28] Chenglin Yang, Lingxi Xie, Chi Su, and Alan L. Yuille. Snapshot distillation: Teacher-student optimization in one generation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
|
| 323 |
+
[29] Junho Yim, Donggyu Joo, Jihoon Bae, and Junmo Kim. A gift from knowledge distillation: Fast optimization, network
|
| 324 |
+
|
| 325 |
+
minimization and transfer learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4133-4141, 2017. 2
|
| 326 |
+
[30] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. 7
|
| 327 |
+
[31] Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. In ICLR, 2017. 2
|
| 328 |
+
[32] Ying Zhang, Tao Xiang, Timothy M Hospedales, and Huchuan Lu. Deep mutual learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4320-4328, 2018. 1, 2, 5, 7
|
| 329 |
+
[33] Zhi-Hua Zhou, Jianxin Wu, and Wei Tang. Ensembling neural networks: many could be better than all. Artificial intelligence, 137(1-2):239-263, 2002. 3
|
onlineknowledgedistillationviacollaborativelearning/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f27976b834b1317403dbebd2c3e0179cb3a9c31810a8597d598a852f1e126c75
|
| 3 |
+
size 509636
|
onlineknowledgedistillationviacollaborativelearning/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e4e37be12f942cc85b90072fe3219e55a899bfeecf8730d77ae3aa578c1abe44
|
| 3 |
+
size 378919
|
oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35f4ea4b766d443b4770d0af0ef30a76d7def5c991c62cf9b02f46b5520f9e84
|
| 3 |
+
size 85532
|
oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0e9ee83fd2fd30dc1711733b08133f791636620d64a017e8c5fdef35c24be4a
|
| 3 |
+
size 111576
|
oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65a549f7d01989533bba4481b0588689f0a155ac15276848fe90ebe97ab64bf9
|
| 3 |
+
size 2048674
|
oopspredictingunintentionalactioninvideo/full.md
ADDED
|
@@ -0,0 +1,373 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 00PS! Predicting Unintentional Action in Video
|
| 2 |
+
|
| 3 |
+
Dave Epstein Boyuan Chen Carl Vondrick Columbia University oops.cs.columbia.edu
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
From just a short glance at a video, we can often tell whether a person's action is intentional or not. Can we train a model to recognize this? We introduce a dataset of in-the-wild videos of unintentional action, as well as a suite of tasks for recognizing, localizing, and anticipating its onset. We train a supervised neural network as a baseline and analyze its performance compared to human consistency on the tasks. We also investigate self-supervised representations that leverage natural signals in our dataset, and show the effectiveness of an approach that uses the intrinsic speed of video to perform competitively with highly-supervised pretraining. However, a significant gap between machine and human performance remains.
|
| 8 |
+
|
| 9 |
+
# 1. Introduction
|
| 10 |
+
|
| 11 |
+
From just a glance at a video, we can often tell whether a person's action is intentional or not. For example, Figure 1 shows a person attempting to jump off a raft, but unintentionally tripping into the sea. In a classic series of papers, developmental psychologist Amanda Woodward demonstrated that this ability to recognize the intentionality of action is
|
| 12 |
+
|
| 13 |
+
learned by children during their first year [72, 73, 7]. However, predicting the intention behind action has remained elusive for machine vision. Recent advances in action recognition have largely focused on predicting the physical motions and atomic actions in video [30, 20, 42], which captures the means of action but not the intent of action.
|
| 14 |
+
|
| 15 |
+
We believe a key limitation for perceiving visual intentionality has been the lack of realistic data with natural variation of intention. Although there are now extensive video datasets for action recognition [30, 20, 42], people are usually competent, which causes datasets to be biased towards successful outcomes. However, this bias for success makes discriminating and localizing visual intentionality difficult for both learning and quantitative evaluation.
|
| 16 |
+
|
| 17 |
+
We introduce a new annotated video dataset that is abundant with unintentional action, which we have collected by crawling publicly available "fail" videos from the web. Figure 2 shows some examples, which cover in-the-wild situations for both intentional and unintentional action. Our video dataset, which we will publicly release, is both large (over 50 hours of video) and diverse (covering hundreds of scenes and activities). We annotate videos with the temporal location at which the video transitions from intentional to unintentional action. We define three tasks on this dataset:
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Intentional versus Unintentional: Did this person intend for this action to happen, or was it an accident? In this paper, we introduce a large in-the-wild video dataset of unintentional action. Our dataset, which we have collected by downloading "fail" videos from the web, contains over twenty thousand clips, and they span a diverse number of activities and scenes. Using this dataset, we study a variety of visual clues for learning to predict intentionality in video.
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
|
| 34 |
+

|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
|
| 38 |
+

|
| 39 |
+
Figure 2: The $00\%$ ! Dataset: Each pair of frames shows an example of intentional and unintentional action in our dataset. By crawling publicly available "fail" videos from the web, we can create a diverse and in-the-wild dataset of unintentional action. For example, the bottom-left corner shows a man failing to see a gate arm, and the top-right shows two children playing a competitive game where it is inevitable one person will fail to accomplish their goal.
|
| 40 |
+
|
| 41 |
+

|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
|
| 45 |
+

|
| 46 |
+
|
| 47 |
+
classifying the intentionality of action, localizing the transition from intentional to unintentional, and forecasting the onset of unintentional action shortly into the future.
|
| 48 |
+
|
| 49 |
+
To tackle these problems, we investigate several visual clues for learning with minimal labels to recognize intentionality. First, we propose a novel self-supervised task to learn to predict the speed of video, which is incidental supervision available in all unlabeled video, for learning an action representation. Second, we explore the predictability of the temporal context as a clue to learn features, as unintentional action often deviates from expectation. Third, we study the order of events as a clue to recognize intentionality, since intentional action usually precedes unintentional action.
|
| 50 |
+
|
| 51 |
+
Experiments and visualizations suggest that unlabeled video has intrinsic perceptual clues to recognize intentionality. Our results show that, while each self-supervised task is useful, learning to predict the speed of video helps the most. By ablating model and design choices, our analysis also suggests that models do not rely solely on low-level motion clues to solve unintentional action prediction. Moreover, although human consistency on our dataset is high, there is still a large gap in performance between our models and human agreement, underscoring that analyzing human goals from videos remains a fundamental challenge in computer vision. We hope this dataset of unintentional and unconstrained action can provide a pragmatic benchmark of progress.
|
| 52 |
+
|
| 53 |
+
This paper makes two primary contributions. Firstly, we introduce a new dataset of unconstrained videos containing a substantial variation of intention and a set of tasks on this dataset. Secondly, we present models that leverage a variety of incidental clues in unlabeled video to recognize intentionality. The remainder of this paper will describe these
|
| 54 |
+
|
| 55 |
+
contributions in detail. Section 2 first reviews related work in action recognition. Then, Section 3 introduces our dataset and summarizes its statistics. Section 4 presents several self-supervised learning approaches to learn visual representations of intentionality. In Section 5, we present quantitative and qualitative experiments to analyze our model. We release all data, software, and models on the website.
|
| 56 |
+
|
| 57 |
+
# 2. Related Work
|
| 58 |
+
|
| 59 |
+
Video datasets: Computer vision has made significant progress in recognizing human actions through video analysis. Critical to this success are datasets of diverse videos released to facilitate this research [52, 6, 34, 55, 66, 29, 8, 1, 43, 53, 30, 19, 18, 13, 20, 42]. Most modern datasets are intended for discriminating between human activities to perform action classification and localization [48, 71, 2, 11, 28, 28, 4, 78]. In our paper, we instead focus on analyzing goal-directed human action [61], and propose a dataset that allows for learning about failed goals and the transition from intentional to unintentional action. Our dataset includes both human errors caused by imperfect action execution (e.g. physical interference, limited visibility, or limited knowledge) and human errors due to mistakes in action planning (e.g. flawed goals or inadequate reasoning). Unintentional action is related to, but very different from, abnormal action. In two-player games, one player must lose, which is unintentional but not abnormal. Many unintentional actions are also relatively common (e.g. slipping on ice), so they too are not abnormal.
|
| 60 |
+
|
| 61 |
+
Action recognition and prediction: Our work builds on a large body of literature in action classification and predic
|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
(a) Video lengths
|
| 65 |
+
|
| 66 |
+

|
| 67 |
+
(b) Failure label times
|
| 68 |
+
(d) Video action classes
|
| 69 |
+
(e) Video scene classes
|
| 70 |
+
|
| 71 |
+

|
| 72 |
+
(c) Failure label standard deviations
|
| 73 |
+
|
| 74 |
+

|
| 75 |
+
Figure 3: Dataset Statistics: We summarize our dataset with the (a) distribution of clip lengths, (b) the distribution of temporal locations where failure starts, and (c) the standard deviation between human annotators. The median and mean clip lengths are 7.6 and 9.4 seconds respectively. Median standard deviation of the labels given across three workers is $6.6\%$ of the video duration, about half a second, suggesting high agreement. We also show the distribution of (d) action categories and (e) scene categories, which naturally has a long tail. For legibility, we only display the top and bottom 5 most common classes for each. Figure best viewed on a computer screen with zoom.
|
| 76 |
+
|
| 77 |
+

|
| 78 |
+
|
| 79 |
+
tion. Earlier research in action classification [36, 32, 65, 51, 47] focuses on designing features or descriptors for given input video frames. Recent progress has focused on using deep convolutional networks to solve these tasks, and many methods have been proposed to learn useful feature representations, such as visual information fusion [67, 9], two-stream CNNs [54], 3D convolutional networks that take in a chunk of video [58], and temporal reasoning for feature extraction [80, 15]. In this paper, we base our methods on 3D CNNs.
|
| 80 |
+
|
| 81 |
+
Previous work which studies future action prediction in video is also relevant to predicting unintentionality [50, 46, 74, 24, 13]. Many methods rely on action label supervision, along with other auxiliary information, to predict future actions [77, 79]. Other approaches [62, 59, 75, 84] focus on leveraging large unlabeled datasets to learn visual representations useful for action anticipation.
|
| 82 |
+
|
| 83 |
+
Self-supervised learning: Our work uses unlabeled video to learn useful representations without manual supervision. In recent years, self-supervision, which predicts information naturally present in data by manipulating or withholding part of the input, has become a popular paradigm for unsupervised learning. Various types of self-supervised signals have been used to learn strong visual representations, such as spatial arrangement [44], contextual information [14, 68], color [37, 64], the arrow of time [70, 75, 23, 38, 41, 17], future prediction [40, 63, 76, 45], consistency in motion [3, 26], view synthesis [83, 82], spatiotemporal coherence [60, 69, 16, 39, 35], and predictive coding [45, 57]. Learned representations are then used for other
|
| 84 |
+
|
| 85 |
+
downstream tasks such as image classification, object detection, video clip retrieval, and action recognition. We introduce a new self-supervised pretext task to estimate video speed, which is effective for learning video representations. Other concurrent and subsequent work further explores this signal [12, 5].
|
| 86 |
+
|
| 87 |
+
# 3. The $001 \%$ ! Dataset
|
| 88 |
+
|
| 89 |
+
We present the $00\%$ dataset for studying unintentional human action. The dataset consists of 20,338 videos from YouTube fail compilation videos, adding up to over 50 hours of data. These clips, filmed by amateur videographers in the real world, are diverse in action, environment, and intention. Our dataset includes many causes for failure and unintentional action, including physical and social errors, errors in planning and execution, limited agent skill, knowledge, or perceptual ability, and environmental factors. We plan to release the dataset, along with pre-computed optical flow, pose, and annotations, in the near future. We believe that this dataset will facilitate the development and evaluation of models that analyze human intentionality.
|
| 90 |
+
|
| 91 |
+
# 3.1. Data Collection and Processing
|
| 92 |
+
|
| 93 |
+
We build our dataset from online channels that collate "fail" videos uploaded by many different users, since the videos they share display unconstrained and diverse situations. We manually scrape selected channels with high diversity and quality of video. Figure 2 shows several example frames.
|
| 94 |
+
|
| 95 |
+
We preprocess the videos to remove editorial visual artifacts. For example, after downloading the long compilation videos from these channels, we must delineate scene boundaries to separate between unrelated clips. We experiment with various such methods and found that scikit-video gives good results.<sup>1</sup> We discard all scenes under 3 seconds long, since they are unlikely to contain a complete scene, as well as all scenes over 30 seconds, since they are likely to contain multiple scenes (due to false negatives in scene detection). Some videos were filmed in portrait orientation but collated in landscape, resulting in a "letterbox" effect. We run a Hough line transform to detect these borders, and crop out the border artifacts.
|
| 96 |
+
|
| 97 |
+
# 3.2. Annotation
|
| 98 |
+
|
| 99 |
+
We labeled the temporal locations of failure in the entire test set and some of the training set using Amazon Mechanical Turk [56]. We ask workers, whom we restrict to a $\geq 99\%$ approval rating with at least 10,000 approvals, to mark videos at the moment when failure starts to happen (i.e. when actions start to become unintentional).
|
| 100 |
+
|
| 101 |
+
Quality Control: We also use a variety of techniques to ensure high-quality annotation. We repeat annotation three times to verify label quality. We also ask workers to annotate whether the video contained unintentional action or not. We remove all videos where most workers indicate there is no failure or where the failure occurs at the very beginning or end of a video clip (indicating an error in scene detection). The majority of videos we label pass these checks. To control quality, we also manually label ground truth on a small set of videos, which we use to detect and remove poor annotations.
|
| 102 |
+
|
| 103 |
+
Human Agreement: We annotated the test set a fourth time, which we use to analyze human agreement on this task. We found that humans are very consistent across each other at labeling the time of failure. The median standard deviation across workers is about half a second, or $6.6\%$ of the video duration.
|
| 104 |
+
|
| 105 |
+
# 3.3. Dataset Statistics
|
| 106 |
+
|
| 107 |
+
Figure 3a shows the distribution of video clip lengths and Figure 3b shows the distribution of failure time labels in the dataset. Figure 3c plots standard deviation of the three labels from different workers, which is around half a second on average. Figure 3d and Figure 3e show the action and scene class distributions, as predicted by models pre-trained on the Kinetics and Places [81] datasets. The dataset covers intentions for a variety of scenes and activities.
|
| 108 |
+
|
| 109 |
+
# 3.4. Benchmark
|
| 110 |
+
|
| 111 |
+
We use our dataset as a benchmark for recognizing intentional action. We split the dataset into three sets: an
|
| 112 |
+
|
| 113 |
+
<sup>1</sup>We use the scenedet function with method='edges' and parameter1=0.7 from https://github.com/scikit-video/scikit-video
|
| 114 |
+
|
| 115 |
+

|
| 116 |
+
(a) Classification
|
| 117 |
+
|
| 118 |
+

|
| 119 |
+
(b) Localization
|
| 120 |
+
|
| 121 |
+

|
| 122 |
+
(c) Anticipation
|
| 123 |
+
Figure 4: Tasks: Our dataset has three tasks: classification of action as intentional or not, temporal localization of unintentional action, and forecasting unintentional action.
|
| 124 |
+
|
| 125 |
+
unlabeled set of videos for pre-training, a labeled training set, and a labeled test set. The entire dataset contains 20,338 videos, and the labeled training set contains 7,368 videos, which is kept relatively small because the goal of the benchmark is to evaluate self-supervised learning. The test set contains 6,739 videos, which are labeled only for quantitative evaluation. In our benchmark, models are allowed to train on any number of unlabeled videos and only a small number of labeled videos. Figure 4 shows the tasks for the benchmark.
|
| 126 |
+
|
| 127 |
+
# 4. Intentionality from Perceptual Clues
|
| 128 |
+
|
| 129 |
+
We investigate a variety of perceptual clues for learning to predict intentional action with minimal supervision. We can cast this as a self-supervised learning problem. Given incidental supervision from unlabeled video, we aim to learn a representation that can efficiently transfer to different intentionality recognition tasks.
|
| 130 |
+
|
| 131 |
+
# 4.1. Predicting Video Speed
|
| 132 |
+
|
| 133 |
+
The speed of video provides a natural visual clue to learn a video representation. We propose a self-supervised task where we synthetically alter the speed of a video, and train a convolutional neural network to predict the true frame-rate. Since speed is intrinsic to every unlabeled video, this is a self-supervised pretext task for video representation learning.
|
| 134 |
+
|
| 135 |
+
Let $x_{i,r} \in \mathbb{R}^{T \times W \times H \times 3}$ be a video clip that consists of $T$ frames and has a frame rate of $r$ frames-per-second. We use a discrete set of frame rates $r \in \{4,8,16,30\}$ and $T = 16$ . Consequently, all videos have the same number of frames, but some videos will span longer time periods than others. We train a model on a large amount of unlabeled video:
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
\min _ {f} \sum_ {i} \mathcal {L} (f (x _ {i, r}), r) \tag {1}
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
where $\mathcal{L}$ is the cross-entropy loss function. Figure 5 illustrates this task.
|
| 142 |
+
|
| 143 |
+
We hypothesize, supported by our experiments, that speed is a useful self-supervisory signal for representation learning. Firstly, estimating the speed requires the model to learn motion features because a single frame is insufficient
|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
Figure 5: Video Speed as Incidental Supervision: We propose a new self-supervised task to predict the speed of video, which is naturally available in all unlabeled video.
|
| 147 |
+
|
| 148 |
+
to distinguish between frame rates. Secondly, this task will require the model to learn features that are correlated to the expected duration of events. For example, the model could detect that a video of a person walking is synthetically sped up or slowed down by comparing it to the average human walking speed. Finally, human judgement of intentionality is substantially affected by video speed [10]. For example, a person leisurely sitting down appears intentional, but a person suddenly falling into a seat appears accidental. Recently, fake news campaigns have manipulated the speed of videos to convincingly forge and alter perception of intent.[2]
|
| 149 |
+
|
| 150 |
+
# 4.2. Predicting Video Context
|
| 151 |
+
|
| 152 |
+
Since unintentional action is often a deviation from expectation, we explore the predictability of video as another visual clue for intentions. We train a predictive visual model on our unlabeled set of videos and use the representation as a feature space. Let $x_{t}$ be a video clip centered at time $t$ , and both $x_{t - k}$ and $x_{t + k}$ be contextual clips at times $t - k$ and $t + k$ respectively. We learn a predictive model that interpolates the middle representation $\phi_t = f_\theta (x_t)$ from the surrounding contextual frames $x_{t - 1}$ and $x_{t + 1}$ :
|
| 153 |
+
|
| 154 |
+
$$
|
| 155 |
+
\max _ {f, g} \sum_ {i} \log \left(\frac {e ^ {z _ {t}}}{e ^ {z _ {t}} + \sum_ {n \in N} e ^ {z _ {n}}}\right) \quad \text {f o r} \quad z _ {j} = \frac {\phi_ {j} ^ {T} \hat {\phi} _ {t}}{\sqrt {d}} \tag {2}
|
| 156 |
+
$$
|
| 157 |
+
|
| 158 |
+
where $\hat{\phi}_t = g_\theta (\{\phi_{t - k},\phi_{t + k}\})$ such that $f_{\theta}$ and $g_{\theta}$ are convolutional networks. $d$ is the dimension of the representation for normalization, and $N$ is the negative set.
|
| 159 |
+
|
| 160 |
+
Maximizing this objective corresponds to pulling the features of the target frame, $\phi_t$ , closer to the contextual embedding, $\hat{\phi}_t$ , while pushing it further away from all other negatives in the mini-batch. This objective is an instance of noise-contrastive estimation [27] and contrastive predictive coding [45, 57, 21], which obtains strong results on other self-supervised learning tasks. We use this as a baseline.
|
| 161 |
+
|
| 162 |
+
We compute the loss over mini-batches, so the negative set for a given middle clip includes all other clip represent-
|
| 163 |
+
|
| 164 |
+
tations in the mini-batch except itself. We set $g_{\theta}$ as a two-layer fully-connected network, with hidden dimension 1024, ReLU as activation, and output dimension $d = 512$ (same dimension as output of the video encoder $f_{\theta}$ ).
|
| 165 |
+
|
| 166 |
+
# 4.3. Predicting Event Order
|
| 167 |
+
|
| 168 |
+
We also investigate the order of events as a perceptual clue for recognizing unintentional action. Since unintentional action often manifests as chaotic or irreversible motion, we implement a convolutional model that is tasked with predicting the permutation applied to shuffled input video clips as in [75, 70], which we use as a strong baseline.
|
| 169 |
+
|
| 170 |
+
We sample 3 clips with a gap of 0.5sec between subsequent clips, so there are $3! = 6$ possible sort orders. We run all clips through a neural network $f_{\theta}$ , which yields a feature vector, then concatenate feature vectors for all pairs of videos and run them through another neural network $g_{\theta}$ , to represent pairwise clip relations. Finally, we concatenate these pairwise representations and input into a third network $h_{\theta}$ to predict the sort order. The networks $g_{\theta}$ and $f_{\theta}$ are both linear layers with a ReLU activation. The output dimensions of $f_{\theta}, g_{\theta}$ , and $h_{\theta}$ are 512, 256, and 6.
|
| 171 |
+
|
| 172 |
+
# 4.4. Fitting the Classifier
|
| 173 |
+
|
| 174 |
+
We use these self-supervised clues to fit a classifier to discriminate action as intentional, unintentional, or transitional. We train the self-supervised models with unlabeled video, and fit a linear classifier with minimal annotation, allowing us to directly compare the quality of the learned representations for recognizing intentionality.
|
| 175 |
+
|
| 176 |
+
Network Architecture: We use the same convolutional network architecture throughout all approaches. Since this is a video task, we need to chose a network architecture that can robustly capture motion features. We use the ResNet3D-18 [22] as the video backbone for all networks, which obtains competitive performance on the Kinetics action recognition dataset [30]. We input 16 frames into the model. Except for the video speed model, we sample the videos at 16 fps, so that the model gets one second of temporal context. We train each network for 20 epochs.
|
| 177 |
+
|
| 178 |
+
Classifier: After learning on our unlabeled set of videos, the self-supervised models will produce a representation that we will use for our intentionality prediction tasks. We input a video into the self-supervised model, extract features at the last convolutional layer, and fit a linear classifier. While there are a variety of ways to transfer self-supervised representations to subsequent tasks, we chose to use linear classifiers because our goal is to evaluate the self-supervised features, following recommended practice in self-supervised learning [33]. We train a regularized multi-class logistic regression using a small amount of labels on the labeled portion of our training set. We formulate the task as a three-way classification task, where the three categories are: a) intentional
|
| 179 |
+
|
| 180 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">Linear Classifier</td><td>Fine-tune</td></tr><tr><td>All Labels</td><td>10% Labels</td><td>All Labels</td></tr><tr><td>Kinetics Supervision</td><td>53.6</td><td>52.0</td><td>64.0</td></tr><tr><td>Video Speed (ours)</td><td>53.4</td><td>49.9</td><td>61.6</td></tr><tr><td>Video Context [45]</td><td>50.0</td><td>47.2</td><td>60.3</td></tr><tr><td>Video Sorting [75]</td><td>49.8</td><td>46.5</td><td>60.2</td></tr><tr><td>Scratch</td><td>48.2</td><td>46.2</td><td>59.4</td></tr><tr><td>Motion Magnitude</td><td>44.0</td><td>-</td><td>44.0</td></tr><tr><td>Chance</td><td>33.3</td><td>33.3</td><td>33.3</td></tr></table>
|
| 181 |
+
|
| 182 |
+
Table 1: Classification Accuracy: We evaluate performance of each self-supervised model versus baselines. We also compare against a model trained with Kinetics supervision to understand the gap between supervision and self-supervision. This results suggests learning to predict video speed is a promising form of video self-supervision.
|
| 183 |
+
|
| 184 |
+
action, b) unintentional action, and c) transitioning from intentional to unintentional. We define an action as transitioning if the video clip overlaps with the point the worker labeled.
|
| 185 |
+
|
| 186 |
+
# 5. Experiments
|
| 187 |
+
|
| 188 |
+
The goal of our experiments is to analyze mid-level perceptual clues for recognizing intentionality in realistic video. To do this, we quantitatively evaluate the self-supervised methods on three tasks on our dataset (classification, localization, and anticipation). We also show quantitative ablations and qualitative visualizations to analyze limitations.
|
| 189 |
+
|
| 190 |
+
# 5.1. Baselines
|
| 191 |
+
|
| 192 |
+
Besides the self-supervised methods above, we additionally compare against several other baselines.
|
| 193 |
+
|
| 194 |
+
Motion Magnitude: We use simple motion detection as a baseline. To form this baseline, we compute optical flow [25] over the videos, and quantify the motion magnitude into a histogram. We experimented with several different bin sizes, and found that 100 bins performed the best. We then fit a multi-layer perceptron on the histogram, which is trained on the labeled portion of our training set to predict the three categories.
|
| 195 |
+
|
| 196 |
+
Kinetics Supervision: We compare against a model that
|
| 197 |
+
|
| 198 |
+

|
| 199 |
+
Figure 6: Multi-modal Evaluation: Unintentional actions cascade. For example, in this video, the person "fails" twice. To handle this in evaluation, we consider a prediction correct if it is sufficiently near any ground-truth label.
|
| 200 |
+
|
| 201 |
+
is trained on the full, annotated Kinetics action recognition dataset, which is either fine-tuned with our labeled training set, or used as a feature extractor. Since the model is trained on a large, labeled dataset of over 600,000 videos, we do not expect our self-supervised models to outperform it. Instead, we use this baseline to understand the gap between supervised and self-supervised methods.
|
| 202 |
+
|
| 203 |
+
Linear versus Fine-tune: Unless otherwise noted, the classifier is a linear classifier on the features from the last convolutional layer of the network. However, we also evaluated some models by fine-tuning, which we do to understand the best performance that one could obtain at this task. To fine-tune, we simply use the method as the network initialization, change the last layer to be the three-way classification task, and train the network end-to-end with stochastic gradient descent on our labeled set of videos.
|
| 204 |
+
|
| 205 |
+
Fixed Priors: We also compare against naive priors. We calculate the mode on the training set, and use this mode as the prediction. Additionally, we use chance.
|
| 206 |
+
|
| 207 |
+
Human Agreement: To establish an upper expectation of performance on this dataset, we use a fourth, held-out worker's labels to measure human performance.
|
| 208 |
+
|
| 209 |
+
# 5.2. Classification
|
| 210 |
+
|
| 211 |
+
We first evaluate each model on a classification task. Given a short video clip, the task is to categorize it into one of the three categories (intentional, unintentional, or transitional). We extract one-second temporal windows in increments of 0.25 seconds from the testing set.
|
| 212 |
+
|
| 213 |
+
Table 1 reports classification accuracy for each method. All of the self-supervised methods outperform baselines, suggesting there are perceptual clues in unlabeled video for intentionality. The model trained with full Kinetics supervision obtains the best performance overall, indicating there is still no substitute for labeled data. However, the gap between the self-supervised models and supervised models is relatively small. For example, the best performing perceptual clue (video speed) is tied with Kinetics when large amounts of labels are available for training a linear layer. We also experimented with the reducing the number of examples in our labeled training set. While accuracy is positively correlated with number of labels, reducing the number of labels by an order of magnitude only causes a minor drop in performance.
|
| 214 |
+
|
| 215 |
+
# 5.3. Localization
|
| 216 |
+
|
| 217 |
+
We next evaluate temporal localization, which is challenging because it requires the model to detect the temporal boundary between intentional and unintentional action. We use our classifier in a sliding window fashion over the temporal axis, and evaluate whether the model can detect the point in time that the action switches from intentional to unintentional. The predicted boundary is the one with the most confident score of transition across all sliding win
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
Figure 7: Example Localizations: We show example predictions for localizing the transition to unintentional action. Green indicates a correct prediction (within 0.25 sec). Red indicates an incorrect, yet reasonable, prediction. Yellow indicates a missed detection.
|
| 221 |
+
|
| 222 |
+
dows. Since videos can contain multiple transitional points, we consider the prediction correct if it sufficiently overlaps any of the ground truth positions in the dataset (Figure 6). We use two different thresholds of sufficient overlap: within one second, and within one quarter second.
|
| 223 |
+
|
| 224 |
+
Table 2 reports accuracy at localizing the transition point. For both thresholds, the best performing self-supervised method is video speed, outperforming other self-supervised methods by over $10\%$ , which suggests that our video speed task learns more fine-grained video features. Human consistency at this task is high (88% agreement), however there is still a large gap to both supervised and self-supervised approaches, underscoring the challenge of learning human intent in video. Figure 7 shows a few qualitative results of localization as well as high-scoring false positives. The incorrect predictions our model makes (bottom two rows of Figure 7) are often reasonable, such as a car hitting a pedestrian on the sidewalk (ground truth: car first hits another car) and person falling when exiting fountain (ground truth: person first falling into fountain).
|
| 225 |
+
|
| 226 |
+
# 5.4. Anticipation
|
| 227 |
+
|
| 228 |
+
We also evaluate the representation at anticipating the onset of unintentional action. To do this, we train the models with self-supervision as before, but then fine-tune them for a three-way classification task to predict the labels 1.5 seconds into the future. Table 3 reports classification accuracy for the prediction. Features from the the video speed prediction model obtain the best self-supervised performance. However, the model with full Kinetics supervision obtains
|
| 229 |
+
|
| 230 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">Accuracy within</td></tr><tr><td>1 sec</td><td>0.25 sec</td></tr><tr><td>Human Consistency</td><td>88.0</td><td>62.1</td></tr><tr><td>Kinetics Supervision (Fine-tune)</td><td>75.9</td><td>46.7</td></tr><tr><td>Kinetics Supervision (Linear)</td><td>69.2</td><td>37.8</td></tr><tr><td>Video Speed (ours)</td><td>65.3</td><td>36.6</td></tr><tr><td>Video Context [45]</td><td>52.0</td><td>25.3</td></tr><tr><td>Video Sorting [75]</td><td>43.3</td><td>18.3</td></tr><tr><td>Scratch</td><td>47.8</td><td>21.6</td></tr><tr><td>Motion Magnitude</td><td>50.7</td><td>23.1</td></tr><tr><td>Middle Prior</td><td>53.1</td><td>21.0</td></tr><tr><td>Chance</td><td>25.9</td><td>6.8</td></tr></table>
|
| 231 |
+
|
| 232 |
+
Table 2: Temporal Localization: We evaluate the model at localizing the onset of unintentional action for two different temporal thresholds of correctness. Although there is high human agreement on this task, there is still a large gap for both supervised and self-supervised models.
|
| 233 |
+
|
| 234 |
+
<table><tr><td>Method</td><td>Accuracy</td></tr><tr><td>Kinetics Supervision</td><td>59.7</td></tr><tr><td>Video Speed (ours)</td><td>56.7</td></tr><tr><td>Video Context [45]</td><td>51.2</td></tr><tr><td>Video Sorting [75]</td><td>51.0</td></tr><tr><td>Scratch</td><td>50.8</td></tr><tr><td>Chance</td><td>50.0</td></tr></table>
|
| 235 |
+
|
| 236 |
+
Table 3: Anticipation: We evaluate performance at predicting the onset of failure before it happens (1.5 seconds into future) by fine-tuning our models. The best performing self-supervised visual clue we considered is video speed.
|
| 237 |
+
|
| 238 |
+
about $3\%$ higher performance, suggesting there is still room for self-supervised learning to improve on this task.
|
| 239 |
+
|
| 240 |
+
# 5.5. Analysis
|
| 241 |
+
|
| 242 |
+
Our results so far have suggested that there are perceptual clues in unlabeled video that we can leverage to learn to recognize intentionality. In this subsection, we break down performance to analyze strengths and limitations.
|
| 243 |
+
|
| 244 |
+
Frequent Confusions: Figure 8 compares the confusion matrices for both the video speed representation and Kinetics supervised representation. In both cases, the most challenging point to predict is the boundary between intentional and unintentional action, which we label the "Failure" point. Moreover, a key difference between models is that the self-supervised model more often confuses intentional action with the start of failure. Since the supervised model performs better here, this suggests there is still substantial room to improve self-supervised models at fine-grained localization of intentionality.
|
| 245 |
+
|
| 246 |
+
Visualization of Learned Features: To qualitatively an-
|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
(a) Kinetics + Fine-tune
|
| 250 |
+
|
| 251 |
+

|
| 252 |
+
(b) Video Speed + Linear
|
| 253 |
+
|
| 254 |
+
alyze the learned feature space, Figure 9 visualizes nearest neighbors between videos using the representation learned by predicting the video speed, which is the best performing self-supervised model. We use one video clip as a query, compute features from the last convolutional layer, and calculate the nearest neighbors using cosine similarity over a large set of videos not seen during training. Although this feature space is learned without ground-truth labels, the nearest neighbors are often similar activities and objects, suggesting that learning to predict the video speed is promising incidental supervision for learning features of activity.
|
| 255 |
+
|
| 256 |
+
Performance Breakdown: We manually labeled a diagnostic set of 270 videos into nine types that characterize the cause of unintentional action. Figure 10 reports performance of models broken down by video type. The most challenging cases for our models are when the unintentional action is caused by environmental factors (such as slipping on ice) or unexpected interventions (such as a bird swooping in suddenly). Moreover, performance is comparatively low when the person in the video has limited visibility, such as due to occlusions, which motivates further work in gaze estimation [49, 31], especially in video. Another challenge is due to limited knowledge, such as understanding that fire is hot. In contrast, the model has better performance at recognizing unintentional action in multi-agent scenes, likely because multi-agent interaction is more visually apparent.
|
| 257 |
+
|
| 258 |
+
# 6. Discussion
|
| 259 |
+
|
| 260 |
+
This paper investigates mid-level perceptual clues to recognize unintentional action in video. We present an "in-the-wild" video dataset of intentional and unintentional action, and we also leverage the speed of video for representation learning with minimal annotation, which is a natural signal
|
| 261 |
+
|
| 262 |
+

|
| 263 |
+
|
| 264 |
+

|
| 265 |
+
|
| 266 |
+

|
| 267 |
+
|
| 268 |
+

|
| 269 |
+
Figure 8: Classification Confusion Matrices: We compare the confusion matrices for (a) Kinetics supervision and (b) self-supervision. One key difference is the self-supervised model often confuses intentional action with the start of failure, suggesting there is substantial room for improving fine-grained localization of intentionality.
|
| 270 |
+
Figure 9: Nearest Neighbors on Self-supervised Features: We visualize some of the nearest neighbors from the feature spaced learned by predicting video frame rate. The nearest neighbors tend to be similar activities despite significant variation in appearance.
|
| 271 |
+
|
| 272 |
+
Figure 10: Performance Breakdown: We annotate a diagnostic set of videos into different categories of unintentional action in order to break down model performance and limitations. See text for discussion.
|
| 273 |
+

|
| 274 |
+
Human Kinetics fine-tuning
|
| 275 |
+
Video speed fine-tuning
|
| 276 |
+
|
| 277 |
+
available in every unlabeled video. However, since a significant gain remains to match human agreement, learning human intentions in video remains a fundamental challenge.
|
| 278 |
+
|
| 279 |
+
Acknowledgements: We thank Dídac Surís, Parita Pooj, Hod Lipson, and Andrew McCallum for helpful discussion. Funding was provided by DARPA MCS, NSF NRI 1925157, and an Amazon Research Gift. We thank NVidia for donating GPUs.
|
| 280 |
+
|
| 281 |
+
# References
|
| 282 |
+
|
| 283 |
+
[1] Sami Abu-El-Haija, Nisarg Kothari, Joonseok Lee, Paul Natsev, George Toderici, Balakrishnan Varadarajan, and Sudheendra Vijayanarasimhan. Youtube-8m: A large-scale video classification benchmark. arXiv preprint arXiv:1609.08675, 2016.2
|
| 284 |
+
[2] Jake K Aggarwal and Michael S Ryoo. Human activity analysis: A review. ACM Computing Surveys (CSUR), 43(3):16, 2011. 2
|
| 285 |
+
[3] Pulkit Agrawal, Joao Carreira, and Jitendra Malik. Learning to see by moving. In Proceedings of the IEEE International Conference on Computer Vision, pages 37-45, 2015. 3
|
| 286 |
+
[4] Maryam Asadi-Aghbolaghi, Albert Clapes, Marco Bellantonio, Hugo Jair Escalante, Víctor Ponce-López, Xavier Baró, Isabelle Guyon, Shohreh Kasaei, and Sergio Escalera. A survey on deep learning based approaches for action and gesture recognition in image sequences. In 2017 12th IEEE international conference on automatic face & gesture recognition (FG 2017), pages 476-483. IEEE, 2017. 2
|
| 287 |
+
[5] Anonymous Authors. Speednet: Learning the speediness in videos. CVPR 2020, 2020. 3
|
| 288 |
+
[6] Moshe Blank, Lena Gorelick, Eli Shechtman, Michal Irani, and Ronen Basri. Actions as space-time shapes. In Tenth IEEE International Conference on Computer Vision (ICCV'05) Volume 1, volume 2, pages 1395-1402. IEEE, 2005. 2
|
| 289 |
+
[7] Amanda C Brandone and Henry M Wellman. You can't always get what you want: Infants understand failed goal-directed actions. Psychological science, 20(1):85-91, 2009. 1
|
| 290 |
+
[8] Fabian Caba Heilbron, Victor Escorcia, Bernard Ghanem, and Juan Carlos Niebles. Activitynet: A large-scale video benchmark for human activity understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 961-970, 2015. 2
|
| 291 |
+
[9] Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6299-6308, 2017. 3
|
| 292 |
+
[10] Eugene M Caruso, Zachary C Burns, and Benjamin A Converse. Slow motion increases perceived intent. Proceedings of the National Academy of Sciences, 113(33):9250-9255, 2016. 5
|
| 293 |
+
[11] Guangchun Cheng, Yiwen Wan, Abdullah N Saudagar, Kamesh Namuduri, and Bill P Buckles. Advances in human action recognition: A survey. arXiv preprint arXiv:1501.05964, 2015. 2
|
| 294 |
+
[12] Hyeon Cho, Taehoon Kim, Hyung Jin Chang, and Wonjun Hwang. Self-supervised spatio-temporal representation learning using variable playback speed prediction. arXiv preprint arXiv:2003.02692, 2020. 3
|
| 295 |
+
[13] Dima Damen, Hazel Doughty, Giovanni Maria Farinella, Sanja Fidler, Antonino Furnari, Evangelos Kazakos, Davide Moltisanti, Jonathan Munro, Toby Perrett, Will Price, et al. Scaling egocentric vision: The epic-kitchens dataset. In Proceedings of the European Conference on Computer Vision (ECCV), pages 720-736, 2018. 2, 3
|
| 296 |
+
|
| 297 |
+
[14] Carl Doersch, Abhinav Gupta, and Alexei A Efros. Unsupervised visual representation learning by context prediction. In Proceedings of the IEEE International Conference on Computer Vision, pages 1422-1430, 2015. 3
|
| 298 |
+
[15] Jeffrey Donahue, Lisa Anne Hendricks, Sergio Guadarrama, Marcus Rohrbach, Subhashini Venugopalan, Kate Saenko, and Trevor Darrell. Long-term recurrent convolutional networks for visual recognition and description. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2625-2634, 2015. 3
|
| 299 |
+
[16] Debidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet, and Andrew Zisserman. Temporal cycle-consistency learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1801-1810, 2019. 3
|
| 300 |
+
[17] Basura Fernando, Hakan Bilen, Efstratios Gavves, and Stephen Gould. Self-supervised video representation learning with odd-one-out networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3636-3645, 2017. 3
|
| 301 |
+
[18] David F Fouhey, Wei-cheng Kuo, Alexei A Efros, and Jitendra Malik. From lifestyle vlogs to everyday interactions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4991-5000, 2018. 2
|
| 302 |
+
[19] Raghav Goyal, Samira Ebrahimi Kahou, Vincent Michalski, Joanna Materzynska, Susanne Westphal, Heuna Kim, Valentin Haenel, Ingo Fruend, Peter Yianilos, Moritz Mueller-Freitag, et al. The" something something" video database for learning and evaluating visual common sense. In ICCV, volume 1, page 3, 2017. 2
|
| 303 |
+
[20] Chunhui Gu, Chen Sun, David A Ross, Carl Vondrick, Caroline Pantofaru, Yeqing Li, Sudheendra Vijayanarasimhan, George Toderici, Susanna Ricco, Rahul Sukthankar, et al. Ava: A video dataset of spatio-temporally localized atomic visual actions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6047-6056, 2018. 1, 2
|
| 304 |
+
[21] Tengda Han, Weidi Xie, and Andrew Zisserman. Video representation learning by dense predictive coding. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 0–0, 2019. 5
|
| 305 |
+
[22] Kensho Hara, Hirokatsu Kataoka, and Yutaka Satoh. Can spatiotemporal 3d cnns retrace the history of 2d cnns and imageNet? In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 6546-6555, 2018. 5
|
| 306 |
+
[23] R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. arXiv preprint arXiv:1808.06670, 2018. 3
|
| 307 |
+
[24] Minh Hoai and Fernando De la Torre. Max-margin early event detectors. International Journal of Computer Vision, 107(2):191-202, 2014. 3
|
| 308 |
+
[25] Eddy Ilg, Nikolaus Mayer, Tonmoy Saikia, Margret Keuper, Alexey Dosovitskiy, and Thomas Brox. Flownet 2.0: Evolution of optical flow estimation with deep networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2462-2470, 2017. 6
|
| 309 |
+
|
| 310 |
+
[26] Dinesh Jayaraman and Kristen Grauman. Learning image representations tied to ego-motion. In Proceedings of the IEEE International Conference on Computer Vision, pages 1413-1421, 2015. 3
|
| 311 |
+
[27] Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. 5
|
| 312 |
+
[28] Soo Min Kang and Richard P Wildes. Review of action recognition and detection methods. arXiv preprint arXiv:1610.06906, 2016. 2
|
| 313 |
+
[29] Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Li Fei-Fei. Large-scale video classification with convolutional neural networks. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 1725–1732, 2014. 2
|
| 314 |
+
[30] Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, et al. The kinetics human action video dataset. arXiv preprint arXiv:1705.06950, 2017. 1, 2, 5
|
| 315 |
+
[31] Petr Kellnhofer, Adria Recasens, Simon Stent, Wojciech Ma-tusik, and Antonio Torralba. Gaze360: Physically unconstrained gaze estimation in the wild. In Proceedings of the IEEE International Conference on Computer Vision, pages 6912-6921, 2019. 8
|
| 316 |
+
[32] Alexander Klaser, Marcin Marszalek, and Cordelia Schmid. A spatio-temporal descriptor based on 3d-gradients. 2008. 3
|
| 317 |
+
[33] Alexander Kolesnikov, Xiaohua Zhai, and Lucas Beyer. Revisiting self-supervised visual representation learning. arXiv preprint arXiv:1901.09005, 2019. 5
|
| 318 |
+
[34] Hildegard Kuehne, Hueihan Jhuang, Estíbaliz Garrote, Tomaso Poggio, and Thomas Serre. Hmdb: a large video database for human motion recognition. In 2011 International Conference on Computer Vision, pages 2556-2563. IEEE, 2011. 2
|
| 319 |
+
[35] Zihang Lai and Weidi Xie. Self-supervised learning for video correspondence flow. arXiv preprint arXiv:1905.00875, 2019.3
|
| 320 |
+
[36] Ivan Laptev. On space-time interest points. International journal of computer vision, 64(2-3):107-123, 2005. 3
|
| 321 |
+
[37] Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Colorization as a proxy task for visual understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6874-6883, 2017. 3
|
| 322 |
+
[38] Hsin-Ying Lee, Jia-Bin Huang, Maneesh Singh, and Ming-Hsuan Yang. Unsupervised representation learning by sorting sequences. In Proceedings of the IEEE International Conference on Computer Vision, pages 667-676, 2017. 3
|
| 323 |
+
[39] Xueting Li, Sifei Liu, Shalini De Mello, Xiaolong Wang, Jan Kautz, and Ming-Hsuan Yang. Joint-task self-supervised learning for temporal correspondence. arXiv preprint arXiv:1909.11895, 2019. 3
|
| 324 |
+
[40] Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond mean square error. arXiv preprint arXiv:1511.05440, 2015. 3
|
| 325 |
+
[41] Ishan Misra, C Lawrence Zitnick, and Martial Hebert. Shuffle and learn: unsupervised learning using temporal order veri
|
| 326 |
+
|
| 327 |
+
fication. In European Conference on Computer Vision, pages 527-544. Springer, 2016. 3
|
| 328 |
+
[42] Mathew Monfort, Alex Andonian, Bolei Zhou, Kandan Ramakrishnan, Sarah Adel Bargal, Yan Yan, Lisa Brown, Quanfu Fan, Dan Gutfreund, Carl Vondrick, et al. Moments in time dataset: one million videos for event understanding. IEEE transactions on pattern analysis and machine intelligence, 2019. 1, 2
|
| 329 |
+
[43] Phuc Xuan Nguyen, Gregory Rogez, Charless Fowlkes, and Deva Ramanan. The open world of micro-videos. arXiv preprint arXiv:1603.09439, 2016. 2
|
| 330 |
+
[44] Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In European Conference on Computer Vision, pages 69-84. Springer, 2016. 3
|
| 331 |
+
[45] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. 3, 5, 6, 7
|
| 332 |
+
[46] Mingtao Pei, Yunde Jia, and Song-Chun Zhu. Parsing video events with goal inference and intent prediction. In 2011 International Conference on Computer Vision, pages 487-494. IEEE, 2011. 3
|
| 333 |
+
[47] Hamed Pirsiavash and Deva Ramanan. Parsing videos of actions with segmental grammars. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 612-619, 2014. 3
|
| 334 |
+
[48] Ronald Poppe. A survey on vision-based human action recognition. Image and vision computing, 28(6):976-990, 2010. 2
|
| 335 |
+
[49] Adria Recasens, Aditya Khosla, Carl Vondrick, and Antonio Torralba. Where are they looking? In Advances in Neural Information Processing Systems, pages 199–207, 2015. 8
|
| 336 |
+
[50] Michael S Ryoo. Human activity prediction: Early recognition of ongoing activities from streaming videos. In 2011 International Conference on Computer Vision, pages 1036-1043. IEEE, 2011. 3
|
| 337 |
+
[51] Sreemanananth Sadanand and Jason J Corso. Action bank: A high-level representation of activity in video. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pages 1234-1241. IEEE, 2012. 3
|
| 338 |
+
[52] Christian Schuldt, Ivan Laptev, and Barbara Caputo. Recognizing human actions: a localsvm approach. In Proceedings of the 17th International Conference on Pattern Recognition, 2004.ICPR 2004., volume 3,pages 32-36.IEEE,2004.2
|
| 339 |
+
[53] Gunnar A Sigurdsson, Gül Varol, Xiaolong Wang, Ali Farhadi, Ivan Laptev, and Abhinav Gupta. Hollywood in homes: Crowdsourcing data collection for activity understanding. In European Conference on Computer Vision, pages 510-526. Springer, 2016. 2
|
| 340 |
+
[54] Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In Advances in neural information processing systems, pages 568-576, 2014. 3
|
| 341 |
+
[55] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012. 2
|
| 342 |
+
[56] Alexander Sorokin and David Forsyth. Utility data annotation with amazon mechanical turk. In 2008 IEEE Computer Soci
|
| 343 |
+
|
| 344 |
+
ety Conference on Computer Vision and Pattern Recognition Workshops, pages 1-8. IEEE, 2008. 4
|
| 345 |
+
[57] Chen Sun, Fabien Baradel, Kevin Murphy, and Cordelia Schmid. Contrastive bidirectional transformer for temporal representation learning. arXiv preprint arXiv:1906.05743, 2019. 3, 5
|
| 346 |
+
[58] Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In Proceedings of the IEEE international conference on computer vision, pages 4489-4497, 2015. 3
|
| 347 |
+
[59] Vinh Tran, Yang Wang, and Minh Hoai. Back to the future: Knowledge distillation for human action anticipation. arXiv preprint arXiv:1904.04868, 2019. 3
|
| 348 |
+
[60] Hsiao-Yu Tung, Hsiao-Wei Tung, Ersin Yumer, and Katerina Fragkiadaki. Self-supervised learning of motion capture. In Advances in Neural Information Processing Systems, pages 5236–5246, 2017. 3
|
| 349 |
+
[61] J David Velleman. Intention, plans, and practical reason. The Philosophical Review, 100(2):277-284, 1991. 2
|
| 350 |
+
[62] Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Anticipating visual representations from unlabeled video. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 98-106, 2016. 3
|
| 351 |
+
[63] Carl Vondrick, Hamed Piriavash, and Antonio Torralba. Generating videos with scene dynamics. In Advances In Neural Information Processing Systems, pages 613-621, 2016. 3
|
| 352 |
+
[64] Carl Vondrick, Abhinav Shrivastava, Alireza Fathi, Sergio Guadarrama, and Kevin Murphy. Tracking emerges by colorizing videos. In Proceedings of the European Conference on Computer Vision (ECCV), pages 391-408, 2018. 3
|
| 353 |
+
[65] Heng Wang, Alexander Kläser, Cordelia Schmid, and Liu Cheng-Lin. Action recognition by dense trajectories. 2011. 3
|
| 354 |
+
[66] Limin Wang, Yu Qiao, and Xiaou Tang. Action recognition and detection by combining motion and appearance features. THUMOS14 Action Recognition Challenge, 1(2):2, 2014. 2
|
| 355 |
+
[67] Limin Wang, Yuanjun Xiong, Zhe Wang, Yu Qiao, Dahua Lin, Xiaou Tang, and Luc Van Gool. Temporal segment networks: Towards good practices for deep action recognition. In European conference on computer vision, pages 20-36. Springer, 2016. 3
|
| 356 |
+
[68] Xiaolong Wang and Abhinav Gupta. Unsupervised learning of visual representations using videos. In Proceedings of the IEEE International Conference on Computer Vision, pages 2794-2802, 2015. 3
|
| 357 |
+
[69] Xiaolong Wang, Allan Jabri, and Alexei A Efros. Learning correspondence from the cycle-consistency of time. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2566-2576, 2019. 3
|
| 358 |
+
[70] Donglai Wei, Joseph J Lim, Andrew Zisserman, and William T Freeman. Learning and using the arrow of time. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8052-8060, 2018. 3, 5
|
| 359 |
+
[71] Daniel Weinland, Remi Ronfard, and Edmond Boyer. A survey of vision-based methods for action representation, segmentation and recognition. Computer vision and image understanding, 115(2):224-241, 2011. 2
|
| 360 |
+
|
| 361 |
+
[72] Amanda L Woodward. Infants' ability to distinguish between purposeful and non-purposeful behaviors. Infant Behavior and Development, 22(2):145-160, 1999. 1
|
| 362 |
+
[73] Amanda L Woodward. Infants' grasp of others' intentions. Current directions in psychological science, 18(1):53-57, 2009. 1
|
| 363 |
+
[74] Dan Xie, Sinisa Todorovic, and Song-Chun Zhu. Inferring. In Proceedings of the IEEE International Conference on Computer Vision, pages 2224-2231, 2013. 3
|
| 364 |
+
[75] Dejing Xu, Jun Xiao, Zhou Zhao, Jian Shao, Di Xie, and Yueting Zhuang. Self-supervised spatiotemporal learning via video clip order prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10334-10343, 2019. 3, 5, 6, 7
|
| 365 |
+
[76] Tianfan Xue, Jiajun Wu, Katherine Bouman, and Bill Freeman. Visual dynamics: Probabilistic future frame synthesis via cross convolutional networks. In Advances in neural information processing systems, pages 91-99, 2016. 3
|
| 366 |
+
[77] Gang Yu, Junsong Yuan, and Zicheng Liu. Predicting human activities using spatio-temporal structure of interest points. In Proceedings of the 20th ACM international conference on Multimedia, pages 1049-1052. ACM, 2012. 3
|
| 367 |
+
[78] Hong-Bo Zhang, Yi-Xiang Zhang, Bineng Zhong, Qing Lei, Lijie Yang, Ji-Xiang Du, and Duan-Sheng Chen. A comprehensive survey of vision-based human action recognition methods. Sensors, 19(5):1005, 2019. 2
|
| 368 |
+
[79] Xin Zhao, Xue Li, Chaoyi Pang, Xiaofeng Zhu, and Quan Z Sheng. Online human gesture recognition from motion data streams. In Proceedings of the 21st ACM international conference on Multimedia, pages 23-32. ACM, 2013. 3
|
| 369 |
+
[80] Bolei Zhou, Alex Andonian, Aude Oliva, and Antonio Torralba. Temporal relational reasoning in videos. In Proceedings of the European Conference on Computer Vision (ECCV), pages 803-818, 2018. 3
|
| 370 |
+
[81] Bolei Zhou, Agata Lapedriza, Aditya Khosla, Aude Oliva, and Antonio Torralba. Places: A 10 million image database for scene recognition. IEEE transactions on pattern analysis and machine intelligence, 40(6):1452-1464, 2017. 4
|
| 371 |
+
[82] Tinghui Zhou, Matthew Brown, Noah Snavely, and David G Lowe. Unsupervised learning of depth and ego-motion from video. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1851-1858, 2017. 3
|
| 372 |
+
[83] Tinghui Zhou, Shubham Tulsiani, Weilun Sun, Jitendra Malik, and Alexei A Efros. View synthesis by appearance flow. In European conference on computer vision, pages 286-301. Springer, 2016. 3
|
| 373 |
+
[84] Mohammadreza Zolfaghari, Özgün Çiçek, Syed Mohsin Ali, Farzaneh Mahdisoltani, Can Zhang, and Thomas Brox. Learning representations for predicting future activities. arXiv preprint arXiv:1905.03578, 2019. 3
|
oopspredictingunintentionalactioninvideo/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8430db2b6632e7911845826e06712f695de5dd101a7349f37264aeb93654cbe0
|
| 3 |
+
size 633199
|
oopspredictingunintentionalactioninvideo/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb6453fae73ed10b325038d7dd5b12b34bef09dddf72a4f97767dca7f0e307bf
|
| 3 |
+
size 428324
|
opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b29d5fb710053f2d79ba5bec2a84ec5bf2232c942ff6616a869d70881ba0850d
|
| 3 |
+
size 69753
|
opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85dea1724912bd598f981af2e2986f5def7140fe3860e2a9757856ab583c0f98
|
| 3 |
+
size 88940
|
opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3686d53254d55a07286f53002767c1b0d5694f1b45dd3ef9acf83e0ec925ff44
|
| 3 |
+
size 1670690
|
opencompounddomainadaptation/full.md
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Open Compound Domain Adaptation
|
| 2 |
+
|
| 3 |
+
Ziwei Liu $^{1*}$ Zhongqi Miao $^{2*}$ Xingang Pan $^{1}$ Xiaohang Zhan $^{1}$
|
| 4 |
+
|
| 5 |
+
Dahua Lin<sup>1</sup> Stella X. Yu<sup>2</sup> Boqing Gong<sup>3</sup>
|
| 6 |
+
|
| 7 |
+
<sup>1</sup> The Chinese University of Hong Kong <sup>2</sup> UC Berkeley / ICSI <sup>3</sup> Google Inc.
|
| 8 |
+
|
| 9 |
+
https://liuzwei7.github.io/projects/CompoundDomain.html
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
A typical domain adaptation approach is to adapt models trained on the annotated data in a source domain (e.g., sunny weather) for achieving high performance on the test data in a target domain (e.g., rainy weather). Whether the target contains a single homogeneous domain or multiple heterogeneous domains, existing works always assume that there exist clear distinctions between the domains, which is often not true in practice (e.g., changes in weather). We study an open compound domain adaptation (OCDA) problem, in which the target is a compound of multiple homogeneous domains without domain labels, reflecting realistic data collection from mixed and novel situations. We propose a new approach based on two technical insights into OCDA: 1) a curriculum domain adaptation strategy to bootstrap generalization across domains in a data-driven self-organizing fashion and 2) a memory module to increase the model's agility towards novel domains. Our experiments on digit classification, facial expression recognition, semantic segmentation, and reinforcement learning demonstrate the effectiveness of our approach.
|
| 14 |
+
|
| 15 |
+
# 1. Introduction
|
| 16 |
+
|
| 17 |
+
Supervised learning can achieve competitive performance for a visual task when the test data is drawn from the same underlying distribution as the training data. This assumption, unfortunately, often does not hold in reality, e.g., the test data may contain the same class of objects as the training data but different backgrounds, poses, and appearances [39, 44].
|
| 18 |
+
|
| 19 |
+
The goal of domain adaptation is to adapt the model learned on the training data to the test data of a different distribution [39, 32, 11]. Such a distributional gap is often formulated as a shift between discrete concepts of well defined data domains, e.g., images collected in sunny weather versus those in rainy weather. Though domain generalization [22, 20] and latent domain adaptation [15,
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Open compound domain adaptation. Unlike existing domain adaptation which assumes clear distinctions between discrete domains (cf. the examples in gray frames), our compound target domain is a combination of multiple traditionally homogeneous domains without any domain labels. We also allow novel domains to show up at the inference time.
|
| 23 |
+
|
| 24 |
+
10] have attempted to tackle complex target domains, most existing works usually assume that there is a known clear distinction between domains [11, 7, 46, 28, 40].
|
| 25 |
+
|
| 26 |
+
Such a known and clear distinction between domains is hard to define in practice, e.g., test images could be collected in mixed, continually varying, and sometimes never seen weather conditions. With numerous factors jointly contributing to data variance, it becomes implausible to separate data into discrete domains.
|
| 27 |
+
|
| 28 |
+
We propose to study open compound domain adaptation (OCDA), a continuous and more realistic setting for domain
|
| 29 |
+
|
| 30 |
+
Table 1: Comparison of domain adaptation settings. Domain Labels tell to which domain each instance belongs. Open Classes refer to novel classes showing up during testing but not training. Open Domains are the domains of which no instances are seen during training.
|
| 31 |
+
|
| 32 |
+
<table><tr><td>Domain Adaptation Setting</td><td># Target Domains</td><td>Domain Labels</td><td>Open Classes</td><td>Open Domains</td></tr><tr><td>Unsupervised Domain Adaptation</td><td>single</td><td>known</td><td>×</td><td>×</td></tr><tr><td>Multi-Target Domain Adaptation</td><td>multiple</td><td>known</td><td>×</td><td>×</td></tr><tr><td>Open/Partial Set Domain Adaptation</td><td>single</td><td>known</td><td>✓</td><td>×</td></tr><tr><td>Open Compound Domain Adaptation</td><td>multiple</td><td>unknown</td><td>×</td><td>✓</td></tr></table>
|
| 33 |
+
|
| 34 |
+
adaptation (cf. Figure 1 and Table 1). The task is to learn a model from labeled source domain data and adapt it to unlabeled compound target domain data which could differ from the source domain on various factors. Our target domain can be regarded as a combination of multiple traditionally homogeneous domains where each is distinctive on one or two major factors, and yet none of the domain labels are given. For example, the five well-known datasets on digits recognition (SVHN [31], MNIST [19], MNIST-M [6], USPS [18], and SynNum [6]) mainly differ from each other by the backgrounds and text fonts. It is not necessarily the best practice, and not feasible under some scenarios, to consider them as distinct domains. Instead, our compound target domain pools them together. Furthermore, at the inference stage, OCDA tests the model not only in the compound target domain but also in open domains that have previously unseen during training.
|
| 35 |
+
|
| 36 |
+
In our OCDA setting, the target domain no longer has a predominantly uni-modal distribution, posing challenges to existing domain adaptation methods. We propose a novel approach based on two technical insights into OCDA: 1) a curriculum domain adaptation strategy to bootstrap generalization across domain distinction in a data-driven self-organizing fashion and 2) a memory module to increase the model's agility towards novel domains.
|
| 37 |
+
|
| 38 |
+
Unlike existing curriculum adaptation methods [54, 5, 27, 23, 56, 55] that rely on some holistic measure of instance difficulty, we schedule the learning of unlabeled instances in the compound target domain according to their individual gaps to the labeled source domain, so that we solve an incrementally harder domain adaptation problem till we cover the entire target domain.
|
| 39 |
+
|
| 40 |
+
Specifically, we first train a neural network to 1) discriminate between classes in the labeled source domain and to 2) capture domain invariance from the easy target instances which differ the least from labeled source domain data. Once the network can no longer differentiate between the source domain and the easy target domain data, we feed the network harder target instances, which are further away from the source domain. The network learns to remain discriminative to the classification task and yet grow more robust to the entire compound target domain.
|
| 41 |
+
|
| 42 |
+
Technically, we must address the challenge of characterizing each instance's gap to the source domain. We
|
| 43 |
+
|
| 44 |
+
first extract domain-specific feature representations from the data and then rank the target instances according to their distances to the source domain in that feature space, assuming that such features do not contribute to and even distract the network from learning discriminative features for classification. We use a class-confusion loss to distill the domain-specific factors and formulate it as a conventional cross-entropy loss with a randomized class label twist.
|
| 45 |
+
|
| 46 |
+
Our second technical insight is to prepare our model for open domains during inference with a memory module that effectively augments the representations of an input for classification. Intuitively, if the input is close enough to the source domain, the feature extracted from itself can most likely already result in accurate classification. Otherwise, the input-activated memory features can step in and play a more important role. Consequently, this memory-augmented network is more agile at handling open domains than its vanilla counterpart.
|
| 47 |
+
|
| 48 |
+
To summarize, we make the following contributions. 1) We extend the traditional discrete domain adaptation to OCDA, a more realistic continuous domain adaptation setting. 2) We develop an OCDA solution with two key technical insights: instance-specific curriculum domain adaptation for handling the target of mixed domains and memory augmented features for handling open domains. 3) We design several benchmarks on classification, recognition, segmentation, and reinforcement learning, and conduct comprehensive experiments to evaluate our approach under the OCDA setting.
|
| 49 |
+
|
| 50 |
+
# 2. Related Works
|
| 51 |
+
|
| 52 |
+
# We review literature according to Table 1.
|
| 53 |
+
|
| 54 |
+
Unsupervised Domain Adaptation. The goal is to retain recognition accuracies in new domains without ground truth annotations [39, 44, 47, 36]. Representative techniques include latent distribution alignment [11], backpropagation [6], gradient reversal [7], adversarial discrimination [46], joint maximum mean discrepancy [28], cycle consistency [16] and maximum classifier discrepancy [40]. While their results are promising, this traditional domain adaptation setting focuses on "one source domain, one target domain", and cannot deal with more complicated scenarios where multiple target domains are present.
|
| 55 |
+
|
| 56 |
+

|
| 57 |
+
Figure 2: Overview of disentangling domain characteristics and curriculum domain adaptation. We separate characteristics specific to domains from those discriminative between classes. It is achieved by a class-confusion algorithm in an unsupervised manner. The teased out domain feature is used to construct a curriculum for domain-robust learning.
|
| 58 |
+
|
| 59 |
+
Latent & Multi-Target Domain Adaptation. The goal is to extend unsupervised domain adaptation to latent [15, 49, 30] or multiple [10, 8, 52] or continuous [2, 12, 29, 48] target domains, when only the source domain has class labels. These methods usually assume clear domain distinction or require domain labels (e.g. test instance $i$ belongs to the target domain $j$ ), but this assumption rarely holds in the real-world scenario. Here we take one step further towards compound domain adaptation, where both category labels and domain labels in the test set are unavailable.
|
| 60 |
+
|
| 61 |
+
Open/Partial Set Domain Adaptation. Another route of research aims to tackle the category sharing/unsharing issues between source and target domain, namely open set [35, 41] and partial set [53, 3] domain adaptation. They assume that the target domain contains either 1) new categories that don't appear in source domain; or 2) only a subset of categories that appear in source domain. Both settings concern the "openness" of categories. Instead, here we investigate the "openness" of domains, i.e. there are novel domains existing that are absent in the training phase.
|
| 62 |
+
|
| 63 |
+
Domain Generalized/Agnostic Learning. Domain generalization [50, 21, 20] and domain agnostic learning [37, 4] aim to learn universal representations that can be applied in a domain-invariant manner. Since these methods focus on learning semantic representations that are invariant to the domain shift, they largely neglect the latent structures inside the target domains. In this work, we explicitly model the latent structures inside the compound target domain by leveraging the learned domain-focused factors for curriculum scheduling and dynamic adaptation.
|
| 64 |
+
|
| 65 |
+
# 3. Our Approach to OCDA
|
| 66 |
+
|
| 67 |
+
Figures 2 and 3 present our overall workflows. There are three major components: 1) disentangling domain characteristics with only class labels in the source domain, 2) scheduling data for curriculum domain adaptation, and 3) a memory module for handling new domains.
|
| 68 |
+
|
| 69 |
+
# 3.1. Disentangling Domain Characteristics
|
| 70 |
+
|
| 71 |
+
We separate characteristics specific to domains from those discriminative between classes. They allow us to construct a curriculum for increment domain adaptation.
|
| 72 |
+
|
| 73 |
+
We first train a neural network classifier using the labeled source domain data $\{x^i, y^i\}_i$ . Let $E_{class}(\cdot)$ denote the encoder up to the second-to-the-last layer and $\Phi(E_{class}(\cdot))$ the classifier. The encoder captures primarily the class-discriminative representation of the data.
|
| 74 |
+
|
| 75 |
+
We assume that all the factors not covered by this class-discriminative encoder reflect domain characteristics. They can be extracted by another encoder $E_{domain}(\cdot)$ that satisfies two properties: 1) Completeness: $\text{Decoder}(E_{class}(x), E_{domain}(x)) \approx x$ , i.e., the outputs of the two encoders shall provide sufficient information for a decoder to reconstruct the input, and 2) Orthogonality: the domain encoder $E_{domain}(x)$ shall have little mutual information with the class encoder $E_{class}(x)$ . We leave the algorithmic details for meeting the first property to the appendices as they are not our novelty.
|
| 76 |
+
|
| 77 |
+
For the orthogonality between $E_{domain}(x)$ and $E_{class}(x)$ , we propose a class-confusion algorithm, which
|
| 78 |
+
|
| 79 |
+

|
| 80 |
+
Figure 3: Overview of the memory-enhanced deep neural network. We enhance our network with a memory module that facilitates knowledge transfer from the source domain to target domain instances, so that the network can dynamically balance the input information and the memory-transferred knowledge for more agility towards previously unseen domains.
|
| 81 |
+
|
| 82 |
+
alternates between the two sub-problems below:
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\min _ {E _ {\text {d o m a i n}}} - \sum_ {i} z _ {\text {r a n d o m}} ^ {i} \log D (E _ {\text {d o m a i n}} (x ^ {i})), \quad (1)
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\min _ {D} \quad - \sum_ {i} y ^ {i} \log D \left(E _ {\text {d o m a i n}} \left(x ^ {i}\right)\right), \tag {2}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
where superscript $i$ is the instance index, and $D(\cdot)$ is a discriminator the domain-encoder $E_{domain}(\cdot)$ tries to confuse. We first train the discriminator $D(\cdot)$ with the labeled data in the source domain. For the data in the target domain, we assign them pseudo-labels by the classifier $\Phi(E_{class}(\cdot))$ we have trained earlier. The learned domain encoder $E_{domain}(\cdot)$ is class-confusing due to $z_{random}^{i}$ , a random label uniformly chosen in the label space. As the classifier $D(\cdot)$ is trained, the first sub-problem essentially learns the domain-encoder such that it classifies the input $x^{i}$ into a random class $z_{random}^{i}$ . Algorithm 1 details our domain disentanglement process.
|
| 93 |
+
|
| 94 |
+
Figure 4 (a) and (b) visualize the examples embedded by the class encoder $E_{\text{class}}(\cdot)$ and domain encoder $E_{\text{domain}}(\cdot)$ , respectively. The class encoder places instances in the same class in a cluster, while the domain encoder places instances according to their common appearances, regardless of their classes.
|
| 95 |
+
|
| 96 |
+
# 3.2. Curriculum Domain Adaptation
|
| 97 |
+
|
| 98 |
+
We rank all the instances in the compound target domain according to their distances to the source domain, to be used for curriculum domain adaptation [54]. We compute the domain gap between a target instance $x_{t}$ and the source domain $\{x_s^m\}$ as their mean distance in the domain feature space: $\text{mean}_m(\| E_{domain}(x_t) - E_{domain}(x_s^m)\|_2)$ .
|
| 99 |
+
|
| 100 |
+
We train the network in stages, a few epochs at a time, gradually recruiting more instances that are increasingly far from the source domain. At each stage of the curriculum
|
| 101 |
+
|
| 102 |
+
Algorithm 1 Domain Disentanglement.
|
| 103 |
+
|
| 104 |
+
Input: The class encoder $E_{class}(\cdot)$ and classifier $\Phi$ have been trained using source-domain data, $Decoder(\cdot)$ : the decoder, $C$ : the number of classes, $\gamma$ : a constant.
|
| 105 |
+
|
| 106 |
+
for k iterations do
|
| 107 |
+
|
| 108 |
+
Sample mini-batch $\{x^i\}$ .
|
| 109 |
+
|
| 110 |
+
Compute pseudo labels $y_{pseudo}^{i} \gets \Phi \left(E_{class}\left(x^{i}\right)\right)$ .
|
| 111 |
+
|
| 112 |
+
Update the discriminator $D$
|
| 113 |
+
|
| 114 |
+
Prepare random labels $z_{random}^{i}$ \~ uniform{0,1,...,C-1}.
|
| 115 |
+
|
| 116 |
+
Compute adversarial loss: $L_{adv}$
|
| 117 |
+
|
| 118 |
+
$\sum_{i} - z_{random}^{i}\log \left(D\left(E_{domain}(x^{i})\right)\right)$
|
| 119 |
+
|
| 120 |
+
Compute reconstruction loss: $L_{rec}$
|
| 121 |
+
|
| 122 |
+
$\sum_{i}\| \text{Decoder}\left(E_{\text{class}}\left(x^{i}\right),E_{\text{domain}}\left(x^{i}\right)\right) - x^{i}\|_{2}.$
|
| 123 |
+
|
| 124 |
+
Update the domain encoder $E_{domain}$ with: $E_{domain}(L_{adv} + \gamma L_{rec})$
|
| 125 |
+
|
| 126 |
+
end for
|
| 127 |
+
|
| 128 |
+
learning, we minimize two losses: One is the cross-entropy loss defined over the labeled source domain, and the other is the domain-confusion loss [46] computed between the source domain and the currently covered target instances. Figure 4 (c) illustrates a curriculum in our experiments.
|
| 129 |
+
|
| 130 |
+
# 3.3. Memory Module for Open Domains
|
| 131 |
+
|
| 132 |
+
Existing domain adaptation methods often use the features $v_{direct}$ extracted directly from the input for adaptation. When the input comes from a new domain that significantly differs from the seen domains during training, this representation becomes inadequate and could fool the classifier. We propose a memory module to enhance our model; It allows knowledge transfer from the source domain so that the network can dynamically balance the input-conveyed information and the memory-transferred knowledge for more classification agility towards previously unseen domains.
|
| 133 |
+
|
| 134 |
+

|
| 135 |
+
Figure 4: t-SNE Visualization of our (a) class-discriminative features, (b) domain features, and (c) curriculum. Our framework disentangles the mixed-domain data into class-discriminative factors and domain-focused factors. We use the domain-focused factors to construct a learning curriculum for domain adaptation.
|
| 136 |
+
|
| 137 |
+
Class Memory $M$ . We design a memory module $M$ to store the class information from the source domain. Inspired by [43, 34, 26] on prototype analysis, we also use class centroids $\{c_k\}_{k=1}^K$ to construct our memory $M$ , where $K$ is the number of object classes.
|
| 138 |
+
|
| 139 |
+
Enhancer $v_{enhance}$ . For each input instance, we build an enhancer to augment its direct representation $v_{direct}$ with knowledge in the memory about the source domain: $v_{enhance} = (\Psi(v_{direct}))^T M = \sum_{k=1}^{K} \psi_k c_k$ , where $\Psi(\cdot)$ is a softmax function. We add this enhancer to the direct representation $v_{direct}$ , weighted by a domain indicator.
|
| 140 |
+
|
| 141 |
+
Domain Indicator $e_{domain}$ . With open domains, the network must dynamically calibrate how much knowledge to transfer from the source domain and how much to rely on the direct representation $v_{direct}$ of the input. Intuitively, the larger domain gap between an input $x$ and the source domain, the more weight on the memory feature. We design a domain indicator for such domain awareness: $e_{domain} = T(E_{domain}(x))$ , where $T(\cdot)$ is a lightweight network with the tanh activation functions and $E_{domain}(\cdot)$ is the domain encoder we have learned earlier.
|
| 142 |
+
|
| 143 |
+
Source-Enhanced Representation $v_{transfer}$ . Our final representation of the input is a dynamically balanced version between the direct image feature and the memory enhanced feature:
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
v _ {\text {t r a n s f e r}} = v _ {\text {d i r e c t}} + e _ {\text {d o m a i n}} \otimes v _ {\text {e n h a n c e}}, \tag {3}
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
which transfers class-discriminative knowledge from the labeled source domain to the input in a domain-aware manner. Operator $\otimes$ is element-wise multiplication. Adopting cosine classifiers [25, 9], we $\ell_2$ -normalize this representation before sending it to the softmax classification layer. All of these choices help cope with domain mismatch when the input is significantly different from the source domain.
|
| 150 |
+
|
| 151 |
+
# 4. Experiments
|
| 152 |
+
|
| 153 |
+
Datasets. To facilitate a comprehensive evaluation on various tasks (i.e., classification, segmentation, and navigation), we carefully design four open compound domain adaptation (OCDA) benchmarks: C-Digits, C-Faces, C-Driving, and C-Mazes, respectively.
|
| 154 |
+
|
| 155 |
+
1. C-Digits: This benchmark aims to evaluate the classification adaptation ability under different appearances and backgrounds. It is built upon five classic digits datasets (SVHN [31], MNIST [19], MNIST-M [6], USPS [18] and SynNum [6]), where SVHN is used as the source domain, MNIST, MNIST-M, and USPS are mixed as the compound target domain, and SynNum is the open domain. We employ SWIT [1] as an additional open domain for further analysis.
|
| 156 |
+
2. C-Faces: This benchmark aims to evaluate the classification adaptation ability under different camera poses. It is built upon the Multi-PIE dataset [13], where C05 (frontal view) is used as source domain, C08-C14 (left side view) are combined as the compound target domain, and C19 (right side view) is kept out as the open domain.
|
| 157 |
+
3. C-Driving: This benchmark aims to evaluate the segmentation adaptation ability from simulation to different real driving scenarios. The GTA-5 [38] dataset is adopted as the source domain, while the BDD100K dataset [51] (with different scenarios including "rainy", "snowy", "cloudy", and "overcast") is taken for the compound and open domains.
|
| 158 |
+
4. C-Mazes: This benchmark aims to evaluate the navigation adaptation ability under different environmental appearances. It is built upon the GridWorld environment [17], where mazes with different colors are used
|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
Figure 5: Results of ablation studies about (a) the memory-enhanced embeddings and curriculum domain adaptation, (b) the domain-focused factors disentanglement, and (c) the memory-induced domain indicator vs. gaps to the source.
|
| 162 |
+
|
| 163 |
+

|
| 164 |
+
|
| 165 |
+

|
| 166 |
+
|
| 167 |
+

|
| 168 |
+
|
| 169 |
+
Table 2: Performance on the C-Digits benchmark. The methods in gray are especially designed for multi-target domain adaptation. ${}^{ \dagger }$ MTDA uses domain labels,while ${}^{ \ddagger }$ BTDA and DADA use the open domain images during training.
|
| 170 |
+
|
| 171 |
+
<table><tr><td rowspan="2">Src. Domain
|
| 172 |
+
SVHN →</td><td colspan="3">Compound Domains (C)</td><td rowspan="2">Open (O)
|
| 173 |
+
SynNum</td><td colspan="2">Avg.</td></tr><tr><td>MNIST</td><td>MNIST-M</td><td>USPS</td><td>C</td><td>C+O</td></tr><tr><td>ADDA [46]</td><td>80.1±0.4</td><td>56.8±0.7</td><td>64.8±0.3</td><td>72.5±1.2</td><td>67.2±0.5</td><td>68.6±0.7</td></tr><tr><td>JAN [28]</td><td>65.1±0.1</td><td>43.0±0.1</td><td>63.5±0.2</td><td>85.6±0.0</td><td>57.2±0.1</td><td>64.3±0.1</td></tr><tr><td>MCD [40]</td><td>69.6±1.4</td><td>48.6±0.5</td><td>70.6±0.2</td><td>89.8±2.9</td><td>62.9±1.0</td><td>69.9±1.3</td></tr><tr><td>MTDA† [8]</td><td>84.6±0.3</td><td>65.3±0.2</td><td>70.0±0.2</td><td>-</td><td>73.3±0.2</td><td>-</td></tr><tr><td>BTDA‡ [4]</td><td>85.2±1.6</td><td>65.7±1.3</td><td>74.3±0.9</td><td>84.4±2.2</td><td>75.1±1.3</td><td>77.4±1.5</td></tr><tr><td>DADA‡ [37]</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>80.1±0.4</td></tr><tr><td>Ours</td><td>90.9±0.2</td><td>65.7±0.5</td><td>83.4±0.3</td><td>88.2±0.8</td><td>80.0±0.3</td><td>82.1±0.5</td></tr></table>
|
| 174 |
+
|
| 175 |
+
as the source and open domains. Since reinforcement learning often assumes no prior access to the environments, there are no compound target domains here.
|
| 176 |
+
|
| 177 |
+
Network Architectures. To make a fair comparison with previous works [46, 8, 37], the modified LeNet-5 [19] and ResNet-18 [14] are used as the backbone networks for C-Digits and C-Faces, respectively. Following [45, 56, 33], a pre-trained VGG-16 [42] is the backbone network for C-Driving. We additionally test our approach on reinforcement learning using ResNet-18 following [17].
|
| 178 |
+
|
| 179 |
+
Evaluation Metrics. The C-digits performance is measured by the digit classification accuracy, and the C-Faces performance is measured by the facial expression classification accuracy. The C-Driving performance is measured by the standard mIOU, and the C-Mazes performance is measured by the average successful rate in 300 steps. We evaluate the performance of each method with five runs and report both the mean and standard deviation. Moreover, we report both results of individual domains and the averaged results for a comprehensive analysis.
|
| 180 |
+
|
| 181 |
+
Comparison Methods. For classification tasks, we choose for comparison state-of-the-art methods in both conventional unsupervised domain adaptation (ADDA [46], JAN [28], MCD [40]) and the recent multi-target domain adaptation methods (MTDA [8], BTDA [4], DADA [37]). Since MTDA [8], BTDA [4] and DADA [37] are the most related to our work, we directly contrast our results to
|
| 182 |
+
|
| 183 |
+
the numbers reported in their papers. For the segmentation task, we compare with three state-of-the-art methods, AdaptSeg [45], CBST [56], IBN-Net [33] and PyCDA [24]. For the reinforcement learning task, we benchmark with MTL, MLP [17] and SynPo [17], a representative work for adaptation across environments. We apply these methods to the same backbone networks as ours for a fair comparison.
|
| 184 |
+
|
| 185 |
+
# 4.1. Ablation Study
|
| 186 |
+
|
| 187 |
+
Effectiveness of the Domain-Focused Factors Disentanglement. Here we verify that the domain-focused factors disentanglement helps discover the latent structures in the compound target domain. It is probed by the domain identification rate within the $k$ -nearest neighbors found by different encodings. Figure 5 (b) shows that features produced by our disentanglement have a much higher identification rate ( $\sim 95\%$ ) than the counterparts without disentanglement ( $\sim 65\%$ ).
|
| 188 |
+
|
| 189 |
+
Effectiveness of the Curriculum Domain Adaptation. Figure 5 (a) also reveals that, in the compound domain, the curriculum training contributes to the performance on USPS more than MNIST and MNITS-M. On the other hand, we can observe from Figure 4 and Table 2 that USPS is the furthest target domain from the source domain SVHN. It implies that curriculum domain adaptation makes it easy to adapt to the distant target domains through an easy-to-hard adaptation schedule.
|
| 190 |
+
|
| 191 |
+
Table 3: Performance on the C-Faces benchmark. The methods in gray are especially designed for multi-target domain adaptation. ${}^{ \dagger }$ MTDA uses domain labels during training.
|
| 192 |
+
|
| 193 |
+
<table><tr><td>S
|
| 194 |
+
C05</td><td>O
|
| 195 |
+
C19</td><td>C19</td></tr><tr><td>C
|
| 196 |
+
C08</td><td>C09</td><td>C13</td></tr></table>
|
| 197 |
+
|
| 198 |
+
<table><tr><td rowspan="2">Src. Domain
|
| 199 |
+
C05 →</td><td colspan="4">Compound Domains (C)</td><td rowspan="2">Open (O)
|
| 200 |
+
C19</td><td colspan="2">Avg.</td></tr><tr><td>C08</td><td>C09</td><td>C13</td><td>C14</td><td>C</td><td>C+O</td></tr><tr><td>ADDA [46]</td><td>46.9±0.2</td><td>36.4±0.5</td><td>39.1±0.3</td><td>65.4±0.4</td><td>71.8±0.8</td><td>47.0±0.4</td><td>51.9±0.4</td></tr><tr><td>JAN [28]</td><td>63.5±0.3</td><td>40.6±1.0</td><td>83.5±0.4</td><td>92.0±0.8</td><td>52.5±1.5</td><td>69.7±0.6</td><td>66.2±0.8</td></tr><tr><td>MCD [40]</td><td>50.4±0.5</td><td>45.8±0.2</td><td>77.8±0.1</td><td>88.0±0.1</td><td>60.4±0.9</td><td>65.7±0.2</td><td>64.6±0.4</td></tr><tr><td>MTDA† [8]</td><td>49.0±0.2</td><td>48.2±0.1</td><td>53.1±0.2</td><td>84.3±0.1</td><td>-</td><td>58.7±0.2</td><td>-</td></tr><tr><td>Ours</td><td>73.3±0.2</td><td>55.1±0.4</td><td>84.1±0.1</td><td>88.9±0.3</td><td>72.7±0.6</td><td>75.4±0.3</td><td>74.8±0.3</td></tr></table>
|
| 201 |
+
|
| 202 |
+
Table 4: Performance on the C-Driving (left) and C-Mazes benchmarks (right). "SynPo+Aug." indicates that we equip SynPo with proper color augmentation/randomization during training. Visual illustrations of both datasets are in Figure 6.
|
| 203 |
+
|
| 204 |
+
<table><tr><td rowspan="2">Source
|
| 205 |
+
GTA-5 →</td><td colspan="3">Compound (C)</td><td rowspan="2">Open (O)
|
| 206 |
+
Overcast</td><td colspan="2">Avg.</td></tr><tr><td>Rainy</td><td>Snowy</td><td>Cloudy</td><td>C</td><td>C+O</td></tr><tr><td>Source Only</td><td>16.2</td><td>18.0</td><td>20.9</td><td>21.2</td><td>18.9</td><td>19.1</td></tr><tr><td>AdaptSeg [45]</td><td>20.2</td><td>21.2</td><td>23.8</td><td>25.1</td><td>22.1</td><td>22.5</td></tr><tr><td>CBST [56]</td><td>21.3</td><td>20.6</td><td>23.9</td><td>24.7</td><td>22.2</td><td>22.6</td></tr><tr><td>IBN-Net [33]</td><td>20.6</td><td>21.9</td><td>26.1</td><td>25.5</td><td>22.8</td><td>23.5</td></tr><tr><td>PyCDA [24]</td><td>21.7</td><td>22.3</td><td>25.9</td><td>25.4</td><td>23.3</td><td>23.8</td></tr><tr><td>Ours</td><td>22.0</td><td>22.9</td><td>27.0</td><td>27.9</td><td>24.5</td><td>25.0</td></tr></table>
|
| 207 |
+
|
| 208 |
+
<table><tr><td rowspan="2">Source
|
| 209 |
+
M0 →</td><td colspan="4">Open(O)</td><td rowspan="2">Avg.
|
| 210 |
+
O</td></tr><tr><td>M1</td><td>M2</td><td>M3</td><td>M4</td></tr><tr><td>Source Only</td><td>0±0</td><td>0±0</td><td>0±0</td><td>0±0</td><td>0±0</td></tr><tr><td>MTL</td><td>0±0</td><td>30±5</td><td>75±0</td><td>65±5</td><td>42.5±2.5</td></tr><tr><td>MLP [17]</td><td>5±5</td><td>45±10</td><td>75±5</td><td>80±10</td><td>51.2±7.5</td></tr><tr><td>SynPo [17]</td><td>5±5</td><td>30±20</td><td>80±5</td><td>30±5</td><td>36.3±8.8</td></tr><tr><td>SynPo+Aug.</td><td>0±5</td><td>40±10</td><td>95±5</td><td>45±5</td><td>45.0±6.3</td></tr><tr><td>Ours</td><td>80±2.5</td><td>75±10</td><td>85±5</td><td>90±5</td><td>82.5±5.6</td></tr></table>
|
| 211 |
+
|
| 212 |
+
Effectiveness of Memory-Enhanced Representations. Recall that the memory-enhanced representations consist of two main components: the enhancer coming from the memory and the domain indicator. From Figure 5 (a), we observe that the class enhancer leads to large improvements on all target domains. It is because the enhancer from the memory transfers useful semantic concepts to the input of any domain. Another observation is that the domain indicator is the most effective on the open domain ("SynNum"), because it helps dynamically calibrate the representations by leveraging domain relations (Figure 5 (c)).
|
| 213 |
+
|
| 214 |
+
# 4.2. Comparison Results
|
| 215 |
+
|
| 216 |
+
C-Digits. Table 2 shows the comparison performances of different methods. We have the following observations. Firstly, ADDA [46] and JAN [28] boost the performance on the compound domain by enforcing global distribution alignment. However, they also sacrifice the performance on the open domain since there is no built-in mechanism for handling any new domains, "overfitting" the model to the seen domains. Secondly, MCD [40] improves the results on the open domain, but its accuracy degrades on the compound target domain. Maximizing the classifier discrepancy increases the robustness to the open domain; however, it also fails to capture the fine-grained latent structure in the compound target domain. Lastly, compared to other multi-target domain adaptation methods (MTDA [8] and DADA [37]), our approach discovers domain structures and performs domain-aware knowledge transfer, achieving substantial advantages on all the test domains.
|
| 217 |
+
|
| 218 |
+
C-Faces. Similar observations can be made on the C-Faces benchmark as shown in Table 3. Since face representations are inherently hierarchical, JAN [28] demonstrates com
|
| 219 |
+
|
| 220 |
+
petitive results on C14 due to its layer-wise transferring strategy. Under the domain shift with different camera poses, our approach still consistently outperforms other alternatives for both the compound and open domains.
|
| 221 |
+
|
| 222 |
+
C-Driving. We compare with the state-of-the-art semantic segmentation adaptation methods such as AdaptSeg [45], CBST [56], and IBN-Net [33]. All methods are tested under real-world driving scenarios in the BDD100K dataset [51]. We can see that our approach has clear advantages on both the compound domain (1.1% gains) and the open domain (2.4% gains) as shown in Table 4 (left). We show detailed per-class accuracies in the appendices. The qualitative comparisons are shown in Figure 6 (a).
|
| 223 |
+
|
| 224 |
+
C-Mazes. To directly compare with SynPo [17], we also evaluate on the GridWorld environments they provided. The task in this benchmark is to learn navigation policies that can successfully collect all the treasures in the given mazes. Existing reinforcement learning methods suffer from environmental changes, which we simulate as the appearances of the mazes here. The final results are listed in Table 4 (right). Our approach transfers visual knowledge among navigation experiences and achieves more than $30\%$ improvements over the prior arts.
|
| 225 |
+
|
| 226 |
+
# 4.3. Further Analysis
|
| 227 |
+
|
| 228 |
+
Robustness to the Complexity of the Compound Target Domain. We control the complexity of the compound target domain by varying the number of traditional target domains / datasets in it. Here we gradually increase constituting domains from a single target domain (i.e., MNIST) to two, and eventually three (i.e., MNIST + MNIST-M + USPS). From Figure 7 (a), we observe that as the number of datasets increase, our approach only undergoes a moderate
|
| 229 |
+
|
| 230 |
+

|
| 231 |
+
(a) C-Driving Benchmark
|
| 232 |
+
|
| 233 |
+

|
| 234 |
+
|
| 235 |
+

|
| 236 |
+
(b) C-Mazes Benchmark
|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
Figure 6: (a) Qualitative results comparison of semantic segmentation on the source domain (S), the compound target domain (C), and the open domain (O). (b) Illustrations of the 5 different domains in the C-Mazes benchmark. Our approach consistently outperforms existing domain adaptation methods across all compound and open target domains.
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
Figure 7: Further analysis on the (a) robustness to the complexity of the compound target domain and (b) robustness to the number of open domains. “M”, “MM” and “U” stand for MNIST, MNIST-M, and USPS, respectively, while “SN”, “UM” and “SW” stand for SynNum, USPS-M, and SWIT, respectively.
|
| 243 |
+
|
| 244 |
+
performance drop. The learned curriculum enables gradual knowledge transfer that is capable of coping with complex structures in the compound target domain.
|
| 245 |
+
|
| 246 |
+
Robustness to the Number of Open Domains. The performance change w.r.t. the number of open domains is demonstrated in Figure 7 (b). Here we include two new digits datasets, USPS-M (crafted in a similar way as MNIST-M) and SWIT [1], as the additional open domains. Compared to JAN [28] and MCD [40], our approach is more resilient to the various numbers of open domains. The domain indicator module in our framework helps dynamically calibrate the embedding, thus enhancing the robustness to open domains. Figure 8 presents the t-SNE visualization comparison between the obtained embeddings of JAN [28], MCD [40], and our approach.
|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
Figure 8: t-SNE visualization of the obtained embeddings. Compared to other methods, our approach is capable of producing class-discriminative features on both compound and open target domains.
|
| 250 |
+
|
| 251 |
+
# 5. Summary
|
| 252 |
+
|
| 253 |
+
We formalize a more realistic topic called open compound domain adaptation for domain-robust learning. We propose a novel model which includes a self-organizing curriculum domain adaptation to bootstrap generalization and a memory enhanced feature representation to build agility towards open domains. We develop several benchmarks on classification, recognition, segmentation, and reinforcement learning and demonstrate the effectiveness of our model.
|
| 254 |
+
|
| 255 |
+
Acknowledgements. This research was supported, in part, by the General Research Fund (GRF) of Hong Kong (No. 14236516 & No. 14203518), Berkeley Deep Drive, DARPA, NSF 1835539, and US Government fund through Etegent Technologies on Low-Shot Detection in Remote Sensing Imagery.
|
| 256 |
+
|
| 257 |
+
# References
|
| 258 |
+
|
| 259 |
+
[1] Switzerland handwritten digits dataset. https://github.com/kensanata/numbers. Accessed: 2019-03-15, 5, 8
|
| 260 |
+
[2] Andreea Bobu, Eric Tzeng, Judy Hoffman, and Trevor Darrell. Adapting to continuously shifting domains. *ICLR Workshop*, 2018. 3
|
| 261 |
+
[3] Zhangjie Cao, Lijia Ma, Mingsheng Long, and Jianmin Wang. Partial adversarial domain adaptation. In ECCV, 2018. 3
|
| 262 |
+
[4] Ziliang Chen, Jingyu Zhuang, Xiaodan Liang, and Liang Lin. Blending-target domain adaptation by adversarial meta-adaptation networks. In CVPR, 2019. 3, 6
|
| 263 |
+
[5] Dengxin Dai, Christos Sakaridis, Simon Hecker, and Luc Van Gool. Model adaptation with synthetic and real data for semantic dense foggy scene understanding. IJCV, 2019. 2
|
| 264 |
+
[6] Yaroslav Ganin and Victor Lempitsky. Unsupervised domain adaptation by backpropagation. In ICML, 2015. 2, 5
|
| 265 |
+
[7] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. JMLR, 2016. 1, 2
|
| 266 |
+
[8] Behnam Gholami, Pritish Sahu, Ognjen Rudovic, Konstantinos Bousmalis, and Vladimir Pavlovic. Unsupervised multi-target domain adaptation: An information theoretic approach. arXiv preprint arXiv:1810.11547, 2018. 3, 6, 7
|
| 267 |
+
[9] Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In CVPR, 2018. 5
|
| 268 |
+
[10] Boqing Gong, Kristen Grauman, and Fei Sha. Reshaping visual datasets for domain adaptation. In NIPS, 2013. 1, 3
|
| 269 |
+
[11] Boqing Gong, Yuan Shi, Fei Sha, and Kristen Grauman. Geodesic flow kernel for unsupervised domain adaptation. In CVPR, 2012. 1, 2
|
| 270 |
+
[12] Rui Gong, Wen Li, Yuhua Chen, and Luc Van Gool. Dlow: Domain flow for adaptation and generalization. In CVPR, 2019. 3
|
| 271 |
+
[13] R. Gross, I. Matthews, J. Cohn, T. Kanade, and S. Baker. Multi-pie. In 2008 8th IEEE International Conference on Automatic Face Gesture Recognition, 2008. 5
|
| 272 |
+
[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 6
|
| 273 |
+
[15] Judy Hoffman, Brian Kulis, Trevor Darrell, and Kate Saenko. Discovering latent domains for multisource domain adaptation. In ECCV, 2012. 1, 3
|
| 274 |
+
[16] Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei A Efros, and Trevor Darrell. Cycada: Cycle-consistent adversarial domain adaptation. In ICML, 2018. 2
|
| 275 |
+
[17] Hexiang Hu, Liyu Chen, Boqing Gong, and Fei Sha. Synthesized policies for transfer and adaptation across tasks and environments. In NIPS, 2018. 5, 6, 7
|
| 276 |
+
[18] J. J. Hull. A database for handwritten text recognition research. TPAMI, 1994. 2, 5
|
| 277 |
+
|
| 278 |
+
[19] Yann LeCun, Léon Bottou, Yoshua Bengio, Patrick Haffner, et al. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 1998. 2, 5, 6
|
| 279 |
+
[20] Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M Hesperides. Learning to generalize: Meta-learning for domain generalization. In AAAI, 2018. 1, 3
|
| 280 |
+
[21] Haoliang Li, Sinno Jialin Pan, Shiqi Wang, and Alex C Kot. Domain generalization with adversarial feature learning. In CVPR, 2018. 3
|
| 281 |
+
[22] Wen Li, Zheng Xu, Dong Xu, Dengxin Dai, and Luc Van Gool. Domain generalization and adaptation using low rank exemplar svms. TPAMI, 2017. 1
|
| 282 |
+
[23] Xiaoxiao Li, Ziwei Liu, Ping Luo, Chen Change Loy, and Xiaou Tang. Not all pixels are equal: Difficulty-aware semantic segmentation via deep layer cascade. In CVPR, 2017. 2
|
| 283 |
+
[24] Qing Lian, Fengmao Lv, Lixin Duan, and Boqing Gong. Constructing self-motivated pyramid curriculums for cross-domain semantic segmentation: A non-adversarial approach. In ICCV, 2019. 6, 7
|
| 284 |
+
[25] Weiyang Liu, Yandong Wen, Zhiding Yu, Ming Li, Bhiksha Raj, and Le Song. Spherical face: Deep hypersphere embedding for face recognition. In CVPR, 2017. 5
|
| 285 |
+
[26] Ziwei Liu, Zhongqi Miao, Xiaohang Zhan, Jiayun Wang, Boqing Gong, and Stella X Yu. Large-scale long-tailed recognition in an open world. In CVPR, 2019. 5
|
| 286 |
+
[27] Ziwei Liu, Sijie Yan, Ping Luo, Xiaogang Wang, and Xiaou Tang. Fashion landmark detection in the wild. In ECCV, 2016. 2
|
| 287 |
+
[28] Mingsheng Long, Han Zhu, Jianmin Wang, and Michael I Jordan. Deep transfer learning with joint adaptation networks. In ICML, 2017. 1, 2, 6, 7, 8
|
| 288 |
+
[29] Massimiliano Mancini, Samuel Rota Bulo, Barbara Caputo, and Elisa Ricci. Adagraph: Unifying predictive and continuous domain adaptation through graphs. In CVPR, 2019. 3
|
| 289 |
+
[30] Massimiliano Mancini, Lorenzo Porzi, Samuel Rota Bulo, Barbara Caputo, and Elisa Ricci. Inferring latent domains for unsupervised deep domain adaptation. TPAMI, 2019. 3
|
| 290 |
+
[31] Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. NIPS, 2011. 2, 5
|
| 291 |
+
[32] Sinno Jialin Pan, Ivor W Tsang, James T Kwok, and Qiang Yang. Domain adaptation via transfer component analysis. IEEE Transactions on Neural Networks, 2010. 1
|
| 292 |
+
[33] Xingang Pan, Ping Luo, Jianping Shi, and Xiaou Tang. Two at once: Enhancing learning and generalization capacities via ibn-net. In ECCV, 2018. 6, 7
|
| 293 |
+
[34] Yingwei Pan, Ting Yao, Yehao Li, Yu Wang, Chong-Wah Ngo, and Tao Mei. Transferrable prototypical networks for unsupervised domain adaptation. In CVPR, 2019. 5
|
| 294 |
+
[35] Pau Panareda Busto and Juergen Gall. Open set domain adaptation. In ICCV, 2017. 3
|
| 295 |
+
[36] Xingchao Peng, Qinxun Bai, Xide Xia, Zijun Huang, Kate Saenko, and Bo Wang. Moment matching for multi-source domain adaptation. In ICCV, 2019. 2
|
| 296 |
+
[37] Xingchao Peng, Zijun Huang, Xineng Sun, and Kate Saenko. Domain agnostic learning with disentangled representations. In ICML, 2019. 3, 6, 7
|
| 297 |
+
|
| 298 |
+
[38] Stephan R. Richter, Vibhav Vineet, Stefan Roth, and Vladlen Koltun. Playing for data: Ground truth from computer games. In ECCV, 2016. 5
|
| 299 |
+
[39] Kate Saenko, Brian Kulis, Mario Fritz, and Trevor Darrell. Adapting visual category models to new domains. In ECCV, 2010. 1, 2
|
| 300 |
+
[40] Kuniaki Saito, Kohei Watanabe, Yoshitaka Ushiku, and Tatsuya Harada. Maximum classifier discrepancy for unsupervised domain adaptation. In CVPR, 2018. 1, 2, 6, 7, 8
|
| 301 |
+
[41] Kuniaki Saito, Shohei Yamamoto, Yoshitaka Ushiku, and Tatsuya Harada. Open set domain adaptation by backpropagation. In ECCV, 2018. 3
|
| 302 |
+
[42] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 6
|
| 303 |
+
[43] Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In NIPS, 2017. 5
|
| 304 |
+
[44] Antonio Torralba and Alexei A Efros. Unbiased look at dataset bias. In CVPR, 2011. 1, 2
|
| 305 |
+
[45] Yi-Hsuan Tsai, Wei-Chih Hung, Samuel Schulter, Kiyuk Sohn, Ming-Hsuan Yang, and Manmohan Chandraker. Learning to adapt structured output space for semantic segmentation. In CVPR, 2018. 6, 7
|
| 306 |
+
[46] Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. Adversarial discriminative domain adaptation. In CVPR, 2017. 1, 2, 4, 6, 7
|
| 307 |
+
[47] Hemanth Venkateswara, Jose Eusebio, Shayok Chakraborty, and Sethuraman Panchanathan. Deep hashing network for unsupervised domain adaptation. In CVPR, 2017. 2
|
| 308 |
+
[48] Zuxuan Wu, Xin Wang, Joseph E Gonzalez, Tom Goldstein, and Larry S Davis. Ace: Adapting to changing environments for semantic segmentation. In ICCV, 2019. 3
|
| 309 |
+
[49] Caiming Xiong, Scott McCloskey, Shao-Hang Hsieh, and Jason J Corso. Latent domains modeling for visual domain adaptation. In AAAI, 2014. 3
|
| 310 |
+
[50] Zheng Xu, Wen Li, Li Niu, and Dong Xu. Exploiting low-rank structure from latent domains for domain generalization. In ECCV, 2014. 3
|
| 311 |
+
[51] Fisher Yu, Wenqi Xian, Yingying Chen, Fangchen Liu, Mike Liao, Vashisht Madhavan, and Trevor Darrell. Bdd100k: A diverse driving video database with scalable annotation tooling. arXiv preprint arXiv:1805.04687, 2018. 5, 7
|
| 312 |
+
[52] Huanhuan Yu, Mengei Hu, and Songcan Chen. Multi-target unsupervised domain adaptation without exactly shared categories. arXiv preprint arXiv:1809.00852, 2018. 3
|
| 313 |
+
[53] Jing Zhang, Zewei Ding, Wanqing Li, and Philip Ogunbona. Importance weighted adversarial nets for partial domain adaptation. In CVPR, 2018. 3
|
| 314 |
+
[54] Yang Zhang, Philip David, Hassan Foroosh, and Boqing Gong. A curriculum domain adaptation approach to the semantic segmentation of urban scenes. TPAMI, 2019. 2, 4
|
| 315 |
+
[55] Yang Zou, Zhiding Yu, Xiaofeng Liu, BVK Kumar, and Jinsong Wang. Confidence regularized self-training. In ICCV, 2019. 2
|
| 316 |
+
[56] Yang Zou, Zhiding Yu, BVK Vijaya Kumar, and Jinsong Wang. Unsupervised domain adaptation for semantic seg
|
| 317 |
+
|
| 318 |
+
mentation via class-balanced self-training. In ECCV, 2018. 2,6,7
|
opencompounddomainadaptation/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68de989a75983234a9121efeae459ad4e8c8530727add32b41d3b261b06b5d49
|
| 3 |
+
size 838512
|
opencompounddomainadaptation/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba535a62464b25bdf04c702ed08965fc48ec223f336a87201804aebc59f24c35
|
| 3 |
+
size 362377
|
opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9124901f702199836cb110b0cfabbd4daa9ba9244c0c6cdf5fc8bfb25c15bbee
|
| 3 |
+
size 79536
|
opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bec5fb67222857abc708498caa95997d1098127305eebd8a499688dfc14ff3d3
|
| 3 |
+
size 98287
|
opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:37d9fd428bbfe72ec70f7d626ed563a52fa7cb9c31b5cf028c189de73533c1ab
|
| 3 |
+
size 1671424
|
opticalflowindensefoggyscenesusingsemisupervisedlearning/full.md
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Optical Flow in Dense Foggy Scenes using Semi-Supervised Learning
|
| 2 |
+
|
| 3 |
+
Wending Yan\*1, Aashish Sharma\*1, and Robby T. Tan\*1,2 1National University of Singapore, 2Yale-NUS College
|
| 4 |
+
|
| 5 |
+
eleyanw@nus.edu.sg, aashish.sharma@u.nus.edu, robbed.tan@{nus,yale-nus}.edu.sg
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
In dense foggy scenes, existing optical flow methods are erroneous. This is due to the degradation caused by dense fog particles that break the optical flow basic assumptions such as brightness and gradient constancy. To address the problem, we introduce a semi-supervised deep learning technique that employs real fog images without optical flow ground-truths in the training process. Our network integrates the domain transformation and optical flow networks in one framework. Initially, given a pair of synthetic fog images, its corresponding clean images and optical flow ground-truths, in one training batch we train our network in a supervised manner. Subsequently, given a pair of real fog images and a pair of clean images that are not corresponding to each other (unpaired), in the next training batch, we train our network in an unsupervised manner. We then alternate the training of synthetic and real data iteratively. We use real data without ground-truths, since to have ground-truths in such conditions is intractable, and also to avoid the overfitting problem of synthetic data training, where the knowledge learned on synthetic data cannot be generalized to real data testing. Together with the network architecture design, we propose a new training strategy that combines supervised synthetic-data training and unsupervised real-data training. Experimental results show that our method is effective and outperforms the state-of-the-art methods in estimating optical flow in dense foggy scenes.
|
| 10 |
+
|
| 11 |
+
# 1. Introduction
|
| 12 |
+
|
| 13 |
+
Fog is a common and inevitable weather phenomenon. It degrades visibility by weakening the background scene information, and washing out the colors of the scene. This degradation breaks the Brightness Constancy Constraint (BCC) and Gradient Constancy Constraint (GCC) used in existing optical flow methods. To our knowledge, none of the existing methods can handle dense foggy scenes robustly. This is because most of them (e.g. [42, 6, 14, 38, 30,
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
(a) Input Image
|
| 21 |
+
(c) Our Result
|
| 22 |
+
Figure 1: (a) Input dense foggy image (first frame). (b) Optical flow result from the existing baseline method PwCNet [38]. We can observe that the result is erroneous and the method cannot handle dense fog. As shown in (c), compared to it, our method performs more robustly.
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
(b) PwCNet [38]
|
| 26 |
+
(d) Ground-Truth
|
| 27 |
+
|
| 28 |
+
43]) are designed under the assumption of clear visibility.
|
| 29 |
+
|
| 30 |
+
One of the possible solutions is to render synthetic fog images based on the commonly used physics model (i.e., the Koschmieder model [18]), and then to train a network on the synthetic fog images and their corresponding optical flow ground-truths in a supervised manner. While in our investigation, it works to some extent, when applied to real dense fog images in the testing stage, it does not perform adequately. The main cause is the domain gap between the synthetic and real fog images. The synthetic images are too crude to represent the complexity of real fog images. This problem can be fixed by using real fog images, instead of synthetic fog images for training. However, to obtain the correct optical flow ground-truths for real fog images is extremely challenging [3].
|
| 31 |
+
|
| 32 |
+
Another possible solution is to defog the real fog images using an existing defogging method (e.g., [39, 7, 12, 1, 45, 21]), and then to estimate the flow using an existing optical flow method. This two-stage solution, however, is not effective either. First, existing defogging methods are not designed for optical flow, hence their outputs might not be optimum for flow computation. Second, defogging, particularly for dense fog, is still an open problem. Hence, the
|
| 33 |
+
|
| 34 |
+
outputs of existing defogging methods are still inadequate to make the estimation of optical flow accurate and robust.
|
| 35 |
+
|
| 36 |
+
Our goal in this paper is to estimate the optical flow from dense fog images robustly. To achieve the goal, we introduce a novel deep learning method that integrates domain transformation (e.g. [15, 47]) and optical flow estimation in a single framework. Initially, given a pair of synthetic fog images, its corresponding clean images and optical flow ground-truths, in one training batch, we train our network in a supervised manner. Subsequently, given a pair of real fog images and a pair of clean images that are not corresponding to each other (unpaired data), in the next training batch, we train our network in an unsupervised manner. The training of synthetic and real data are carried out alternately. We use the synthetic data with ground-truths to guide the network to learn the transformation correctly, so that we can mitigate the fake-content generation problem that is commonly observed in unpaired training [47, 25, 36]. We use the real data without ground-truths to avoid the overfitting problem of the synthetic data training, where the knowledge learned from synthetic data in the training cannot be generalized to real data in the testing.
|
| 37 |
+
|
| 38 |
+
In essence, our method is a semi-supervised method. Our domain transformation enables our network to learn directly from real data without ground-truths. When the training input is a pair of clean images, our domain transformation renders the corresponding foggy images, and our optical flow module estimates the flow map. Moreover, from the rendered foggy images, our optical flow module also estimates the flow map. Hence, these two different flow maps must be identical. If they are not, then we can backpropagate the error. The same mechanism applies when the training input is a pair of foggy images. Another advantage of our architecture is that the transformation and optical flow modules can benefit each other: Our domain transformation helps our optical flow module reconstruct the fog-invariant cost volume, and our optical flow module enables our domain transformation module to distinguish some objects from the background through the flow information. As a summary, here are our contributions:
|
| 39 |
+
|
| 40 |
+
- We introduce an architecture that integrates domain transformation and optical flow modules in one framework. The two modules work in mutual cooperation benefiting each other at the feature pyramid levels.
|
| 41 |
+
- We propose a training strategy combining synthetic data with ground-truths, clean and fog real data without ground-truths in one integrated learning process.
|
| 42 |
+
- We provide a domain adaptive method, which can predict optical flow from both clean and fog images. We also show the effectiveness of using photometric and hazeline [2] constraints to make our network learn better about optical flow and fog.
|
| 43 |
+
|
| 44 |
+
# 2. Related Work
|
| 45 |
+
|
| 46 |
+
Many methods have been proposed to tackle optical flow estimation ([8] for a comprehensive survey). More recently, deep learning is widely used in optical flow methods. Dosovitskiy et. al. [6] design FlowNetS and FlowNetC based on the U-Net architecture [34]. Their method is a pioneer work in showing the possibility of using a deep-learning method to solve the optical flow problem. Ilg et al. [14] design FlowNet2 by stacking multiple FlowNetS and FlowNetC networks. FlowNet2 is trained in a stack-wise manner, and thus is not end-to-end. Sun et al. [38] propose PwCNet. Its performance is comparable to FlowNet2, yet it is significantly smaller in terms of network parameters. All these methods are fully supervised and trained using synthetic data. In contrast, our method uses semi-supervised learning, employing labeled synthetic and unlabeled real data.
|
| 47 |
+
|
| 48 |
+
Jason et al. [16] propose an unsupervised learning method for flow estimation, for the first time. Ren et al. [33] publish a method with a more complex structure. These two methods simply use the brightness constancy and motion smoothness losses. Some other methods combined depth, ego-motion and optical flow together, such as Yin and Shi [44] and Ranjan et al. [31]. These methods, however, use three independent networks to estimate depth, ego-motion and optical flow, and require camera calibration. Generally, the performance of the current unsupervised methods cannot be as accurate and sharp as that of the fully supervised methods. To take the advantages of both fully supervised and unsupervised learning, Lai et al. [19] proposed a semi-supervised method, which uses the discriminative loss from the warping difference between two frames. Recently, there is progress in unsupervised optical flow (e.g. [46, 41, 31]), under the assumption that the input images are clean. Liu et al. [26] propose a self-supervised method for learning optical flow from unlabeled data. They use photometric loss to obtain reliable flow estimations, which are later used as ground-truths for training. To our knowledge, none of these methods are designed to handle dense foggy scenes. While some previous non-learning-based works (e.g. [28]) can handle illumination variations in the images, these methods also cannot handle dense foggy scenes. This is because fog is more than just intensity/illumination changes in the images, and robustness to illumination variations does not necessarily ensure robustness to fog.
|
| 49 |
+
|
| 50 |
+
Some works address the problem of semantic segmentation under fog (e.g. [35, 5]). However, they employ a gradual learning scheme, where the network is first trained on labeled synthetic fog data. Then, the network is used to generate flow results on light real fog data. The network is then trained again on labeled synthetic fog data and light fog real data, for which the results predicted before are used as ground-truths. The entire process is repeated for dense
|
| 51 |
+
|
| 52 |
+
fog real data. While this learning scheme is simple to implement, it has a few problems. First, it makes the entire learning scheme manual. In contrast, our method is completely end-to-end trainable and requires no manual intervention. Second, the results predicted for real data in the previous stage are used as ground-truths for training in the next stage, which could be erroneous. This can lead the network to learning inaccurate flow estimations. In contrast, our method uses accurate flow ground truths from synthetic data, to learn on rendered real fog data. This ensures that the flow network always learns from correct flow ground-truths.
|
| 53 |
+
|
| 54 |
+
One possible solution of estimating optical flow in foggy scenes is a two-stage solution: defog first and optical flow estimation afterwards. Many methods in defogging/dehazing have been proposed. (see [23] for a comprehensive review). A few methods are based on deep learning, e.g. [4, 32, 20, 21]. All these methods are based on a single image, and thus can cause inconsistent defogging outputs, which in turn causes the violation of the BCC and GCC. Moreover, defogging, particularly for dense fog is still an open problem. Hence, the outputs of existing defogging methods can still be inadequate to generate robust optical flow estimation.
|
| 55 |
+
|
| 56 |
+
# 3. Proposed Method
|
| 57 |
+
|
| 58 |
+
# 3.1. Network Architecture
|
| 59 |
+
|
| 60 |
+
Optical Flow Network Our optical flow module consists of two encoders $E_{f}$ , $E_{c}$ and a decoder $D_{of}$ , which are shown in Fig. 2, where subscripts $f$ , $c$ , and $of$ stand for fog, clean, and optical flow, respectively. The two encoders $(E_{f}$ and $E_{c}$ ) extract features from the fog and clean input images respectively. They have the same architecture, but independent weights. As recent works [30, 38] show that pyramid features improve the estimation of optical flow, we design our encoders in the same way. Our decoder correlates the pyramid features from two input images to form a cost volume, which is used to predict optical flow. Since our decoder receives features from the two encoders working on different domains (fog and clean), it encourages the two encoders to generate domain adaptive features. This domain adaptation ensures that robust optical flow is generated from the two domain inputs.
|
| 61 |
+
|
| 62 |
+
Domain Transformation Network Our domain transformation module is formed by the encoders, $E_{f}$ and $E_{c}$ , and two decoders, $D_{f}$ and $D_{c}$ . The fog encoder, $E_{f}$ , takes the fog images as the input, and outputs feature pyramids. The clean decoder, $D_{c}$ , processes the features, and constructs the clean version of the input images. The other encoder, $E_{c}$ , does the same, however instead of fog images, it takes clean images as the input. The fog decoder, $D_{f}$ , processes
|
| 63 |
+
|
| 64 |
+
the features produced by $E_{c}$ , and transforms them to fog images. To ensure the proper quality of our transformed clean and fog images, we employ the discriminative loss [11]. While domain transformation is not our main goal, the quality of the transformed images can affect the optical flow result. Note that, we employ feature pyramids in computing the features, so that the same features can also be used by our optical flow network.
|
| 65 |
+
|
| 66 |
+
# 3.2. Semi-Supervised Training Strategy
|
| 67 |
+
|
| 68 |
+
To train our network, ideally we should use real fog data with the corresponding optical flow ground-truths. Unfortunately, to obtain the ground-truths of real fog images is extremely intractable. The best possible technology we can employ currently is LIDAR sensors. However, LIDAR captures only sparse depths and stationary objects. Moreover, it has limited depth range and its accuracy is affected by fog dense particles [3]. An alternative solution is to use synthetic fog images, whose corresponding optical flow is easy to obtain. However, it is known that there are significant gaps between synthetic and real fog images. Synthetic fog images are too simplistic and cannot represent real fog and its complexity in many conditions. Because of these problems, we utilize real clean (no fog) images to help our network learn about fog, clean background scenes, and optical flow. While there are domain gaps between clean real images and fog real images, we bridge the gaps through our domain transformation network.
|
| 69 |
+
|
| 70 |
+
Our training strategy includes datasets both with and without ground-truths, involving real fog images, synthetic fog images, and real clean images. The reason we use the synthetic fog images is because, they can help guide the network to transform the features from different image domains more correctly by mitigating the generation of fake contents during the transformation. The whole process of our training strategy can be separated into three stages: Synthetic-fog training stage, real-clean training stage, and real-fog training stage.
|
| 71 |
+
|
| 72 |
+
# 3.3. Synthetic-Data Training Stage
|
| 73 |
+
|
| 74 |
+
Given synthetic fog images, their corresponding synthetic clean background images, and their corresponding optical flow ground-truths, we can train our network in a fully supervised manner. First, to train the optical flow module: $\{E_f,E_c,D_{of}\}$ , we use EPE (End-Point Error) losses between the predicted optical flow and the corresponding ground-truths for both synthetic fog and clean input images:
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\mathcal {L} _ {\mathrm {E P E} _ {s} ^ {f}} \left(E _ {f}, D _ {o f}\right) = \mathbb {E} _ {\left(x _ {s 1} ^ {f}, x _ {s 2} ^ {f}\right)} \left[ \| \widehat {\boldsymbol {o f}} ^ {f} - o f _ {g t} ^ {f} \| _ {2} \right], \tag {1}
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\mathcal {L} _ {\mathrm {E P E} _ {s} ^ {c}} \left(E _ {c}, D _ {o f}\right) = \mathbb {E} _ {\left(x _ {s 1} ^ {c}, x _ {s 2} ^ {c}\right)} \left[ \| \widehat {o f} ^ {c} - o f _ {g t} ^ {c} \| _ {2} \right], \tag {2}
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
Input: Foggy Image Pair
|
| 86 |
+
|
| 87 |
+

|
| 88 |
+
Input: Clean Image Pair
|
| 89 |
+
|
| 90 |
+

|
| 91 |
+
Figure 2: Overall architecture of our network.
|
| 92 |
+
|
| 93 |
+
with:
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\widehat {o f} ^ {f} = D _ {o f} \left[ \left(E _ {f} \left[ x _ {s 1} ^ {f} \right], E _ {f} \left[ x _ {s 2} ^ {f} \right]\right) \right], \tag {3}
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\widehat {o f} ^ {c} = D _ {o f} \left[ \left(E _ {c} \left[ x _ {s 1} ^ {c} \right], E _ {c} \left[ x _ {s 2} ^ {c} \right]\right) \right], \tag {4}
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
where $(x_{s1}^{f}, x_{s2}^{f})$ and $(x_{s1}^{c}, x_{s2}^{c})$ are the synthetic fog and synthetic clean image pairs. $of_{gt}^{f}$ and $of_{gt}^{c}$ are the optical flow ground-truths of the synthetic fog and synthetic clean images respectively.
|
| 104 |
+
|
| 105 |
+
To train the domain transformation module: $\{E_f, D_c\}$ and $\{E_c, D_f\}$ , we define L1 losses:
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\mathcal {L} _ {L 1 _ {s} ^ {f}} \left(E _ {f}, D _ {c}\right) = \mathbb {E} _ {x _ {s} ^ {f}} \left[ \| \hat {x} _ {s} ^ {c} - x _ {g t} ^ {c} \| _ {1} \right], \tag {5}
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\mathcal {L} _ {L 1 _ {s} ^ {c}} \left(E _ {c}, D _ {f}\right) = \mathbb {E} _ {x _ {s} ^ {c}} \left[ \| \hat {x} _ {s} ^ {f} - x _ {g t} ^ {f} \| _ {1} \right], \tag {6}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
where, $\hat{x}_s^c = D_c[(E_f[x_s^f]]]$ , and $\hat{x}_s^f = D_f[(E_c[x_s^c]])$ are the rendered clean and fog images, respectively. $x_{gt}^{c}$ , $x_{gt}^{f}$ are the synthetic clean and synthetic fog ground-truth images, respectively. In addition, we also apply the discriminative loss [11] to ensure that the transformations from clean-to-fog images and from fog-to-clean images are consistent with the appearance of synthetic fog and synthetic clean images.
|
| 116 |
+
|
| 117 |
+
# 3.4. Real Clean Data Training Stage
|
| 118 |
+
|
| 119 |
+
In this stage, we use the real clean images without optical flow ground-truths and without real fog image ground-truths to train the network. As shown in the second row of Fig. 2, first, we compute the optical flow directly from the input real clean images, $x_{r1}^{c}, x_{r2}^{c}$ :
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\widehat {o f} ^ {c} = D _ {o f} \left[ \left(E _ {c} \left[ x _ {r 1} ^ {c} \right], E _ {c} \left[ x _ {r 2} ^ {c} \right]\right). \right. \tag {7}
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
Concurrently, we transform the input clean images, $x_{r1}^{c}, x_{r2}^{c}$ to fog images, $\hat{x}_{r1}^{f}, \hat{x}_{r2}^{f}$ :
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\hat {x} _ {r 1} ^ {f} = D _ {f} \left[ E _ {c} \left[ x _ {r 1} ^ {c} \right] \right], \tag {8}
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
$$
|
| 132 |
+
\hat {x} _ {r 2} ^ {f} = D _ {f} \left[ E _ {c} \left[ x _ {r 2} ^ {c} \right] \right]. \tag {9}
|
| 133 |
+
$$
|
| 134 |
+
|
| 135 |
+
From the rendered fog images, $\hat{x}_{r1}^{f},\hat{x}_{r2}^{f}$ , subsequently we transform them further to obtain the rendered clean images, $\hat{\hat{x}}_{r1}^{c},\hat{\hat{x}}_{r2}^{c}$ ..
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
\hat {\hat {x}} _ {r 1} ^ {c} = D _ {c} \left[ E _ {f} \left[ \hat {x} _ {r 1} ^ {f} \right] \right], \tag {10}
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
\hat {\hat {x}} _ {r 2} ^ {c} = D _ {c} \left[ E _ {f} \left[ \hat {x} _ {r 2} ^ {f} \right] \right]. \tag {11}
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
At the same time, we also compute the optical flow from the rendered fog images, $\hat{x}_{r1}^{f},\hat{x}_{r2}^{f}$
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
\widehat {\text {o f} ^ {f}} = D _ {o f} \left[ \hat {x} _ {r 1} ^ {f}, \hat {x} _ {r 2} ^ {f} \right]. \tag {12}
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
The whole process above, from the input real clean images, $x_{r1}^{c}, x_{r2}^{c}$ to the rendered clean, $\hat{\hat{x}}_{r1}^{c}, \hat{\hat{x}}_{r2}^{c}$ , and to the estimated optical flow, $\widehat{of}^{c}$ and $\widehat{\overline{off}}$ is a feedforward process. Initially, we rely on the network's weights learned from synthetic data for this feedforward process. To refine the weights, we train the network further using our current real data. The training is based on a few losses: Transformation consistency, EPE, discriminative, and hazeline losses.
|
| 152 |
+
|
| 153 |
+
Transformation Consistency Loss To train the domain transformation modules: $E_{f}, E_{c}, D_{f}, D_{c}$ , we define our consistency loss between the clean input images, $x_{r1}^{c}, x_{r2}^{c}$
|
| 154 |
+
|
| 155 |
+
and the rendered clean images, $\hat{\hat{x}}_{r1}^{c},\hat{\hat{x}}_{r2}^{c}$ , as:
|
| 156 |
+
|
| 157 |
+
$$
|
| 158 |
+
\begin{array}{l} \mathcal {L} _ {\mathrm {C O N} _ {r} ^ {c}} \left(E _ {f}, E _ {c}, D _ {f}, D _ {c}\right) \\ = \mathbb {E} _ {x _ {r} ^ {c}} \left[ \| x _ {r 1} ^ {c} - \hat {\hat {x}} _ {r 1} ^ {c} \| _ {1} + \| x _ {r 2} ^ {c} - \hat {\hat {x}} _ {r 2} ^ {c} \| _ {1} \right]. \tag {13} \\ \end{array}
|
| 159 |
+
$$
|
| 160 |
+
|
| 161 |
+
This loss is a pixel-wise computation, since the real clean and rendered clean images must share the same optical flow up to the pixel level. In this backpropagation process, we keep $D_{of}$ frozen.
|
| 162 |
+
|
| 163 |
+
EPE Loss Since we do not have the optical flow ground-truths of the real clean input images, to train our modules $E_{f}$ and $D_{of}$ , we define the EPE loss by comparing the predicted optical flow from the real clean input images and the predicted optical flow from the rendered fog images:
|
| 164 |
+
|
| 165 |
+
$$
|
| 166 |
+
\mathcal {L} _ {\mathrm {E P E} _ {r} ^ {c}} \left(E _ {f}, D _ {o f}\right) = \mathbb {E} _ {\left(x _ {r 1} ^ {c}, x _ {r 2} ^ {c}\right)} \left[ \| \widehat {\widehat {o f}} ^ {c}, \widehat {\widehat {o f f}} \| _ {2} \right], \tag {14}
|
| 167 |
+
$$
|
| 168 |
+
|
| 169 |
+
where $\widehat{of}^c$ , $\widehat{off^f}$ are the predicted optical flow fields from the input clean images, and from the rendered fog images, respectively. During the backpropagation of this EPE loss, only $E_{f}$ and $D_{of}$ are updated, and the rest remain frozen.
|
| 170 |
+
|
| 171 |
+
Discriminative Loss To train the transformation modules, $E_{c}, D_{f}$ , we use the discriminative loss [11] to ensure that the rendered fog images look as real as possible (since we do not have the corresponding real-fog ground-truths). For this purpose, we define our discriminative loss as:
|
| 172 |
+
|
| 173 |
+
$$
|
| 174 |
+
\mathcal {L} _ {\mathrm {G A N} _ {r} ^ {c}} \left(E _ {c}, D _ {f}\right) = \mathbb {E} _ {x _ {r} ^ {c}} \left[ \right.\left( \right.\log \left( \right.1 - \operatorname {D i s} _ {f} \left[ \right. D _ {f} \left[\left(E _ {c} \left[ x _ {r} ^ {c} \right]\right)\right]\left. \right)\left. \right)\left. \right], \tag {15}
|
| 175 |
+
$$
|
| 176 |
+
|
| 177 |
+
where $Dis[.]$ is our discriminative module, which assesses the outputs of $D_{f}$ . We keep other modules frozen, while updating the weights of $E_{c}, D_{f}$ .
|
| 178 |
+
|
| 179 |
+
Hazeline Loss Since we do not have the ground-truths of the corresponding real fog images, applying the discriminative loss alone will be insufficient to train the modules $E_{c}, D_{f}$ properly. Improper training can cause the generation of fake contents [47, 25, 36]. The guidance of the synthetic training data (Sec. 3.3) can mitigate the problem; since synthetic fog images are rendered using a physics model, and thus $E_{c}, D_{f}$ learn the underlying physics model from the synthetic fog images. To strengthen the transformation even further, we add a loss based on the following physics model [12, 39, 1] (also used in the rendering of our synthetic fog images):
|
| 180 |
+
|
| 181 |
+
$$
|
| 182 |
+
x ^ {f} (\mathbf {x}) = x ^ {c} (\mathbf {x}) \alpha (\mathbf {x}) + (1 - \alpha (\mathbf {x})) \mathbf {A}, \tag {16}
|
| 183 |
+
$$
|
| 184 |
+
|
| 185 |
+
where $x^{f}$ is the fog image, $x^{c}$ is the clean (no fog) image ground-truth. $\mathbf{A}$ is the atmospheric light. $\alpha$ is the attenuation factor, and $\mathbf{x}$ is the pixel location.
|
| 186 |
+
|
| 187 |
+
Berman et al. [1] observe that in the RGB space, $x^{f}, x^{c}$ , and A are colinear, due to the linear combination described in the model (Eq. (16)). Unlike Berman et al.'s method, instead of using the RGB space, we use the 2D chromaticity space [39]; since, there is no robust way to estimate the intensity of the atmospheric light [37]. The chromaticity of the clean input image is defined as:
|
| 188 |
+
|
| 189 |
+
$$
|
| 190 |
+
\gamma_ {r, c h} ^ {c} = \frac {x _ {r , c h} ^ {c}}{x _ {r , R} ^ {c} + x _ {r , G} ^ {c} + x _ {r , B} ^ {c}}, \tag {17}
|
| 191 |
+
$$
|
| 192 |
+
|
| 193 |
+
where the index $ch = \{R, G, B\}$ is the RGB color channel. Accordingly, the chromaticity of the rendered fog image by $E_{c}, D_{f}$ is defined as:
|
| 194 |
+
|
| 195 |
+
$$
|
| 196 |
+
\sigma_ {r, c h} ^ {c} = \frac {\hat {x} _ {r , c h} ^ {f}}{\hat {x} _ {r , R} ^ {f} + \hat {x} _ {r , G} ^ {f} + \hat {x} _ {r , B} ^ {f}}. \tag {18}
|
| 197 |
+
$$
|
| 198 |
+
|
| 199 |
+
Lastly, the atmospheric light chromaticity of the rendered fog image is defined as:
|
| 200 |
+
|
| 201 |
+
$$
|
| 202 |
+
\alpha_ {r, c h} ^ {c} = \frac {A \left[ \hat {x} _ {r , c h} ^ {f} \right]}{A \left[ \hat {x} _ {r , R} ^ {f} \right] + A \left[ \hat {x} _ {r , G} ^ {f} \right] + A \left[ \hat {x} _ {r , B} ^ {f} \right]}, \tag {19}
|
| 203 |
+
$$
|
| 204 |
+
|
| 205 |
+
where $A[.]$ is the function that obtains the chromaticity or color of the atmospheric light. This function is basically a color constancy function, hence any color constancy algorithm can be used [10]. In our implementation, to obtain the atmospheric light chromaticity from fog images, we simply use the brightest patch assumption [40].
|
| 206 |
+
|
| 207 |
+
Therefore, we define our hazeline loss, which is based on the collinearity in the chromaticity space as:
|
| 208 |
+
|
| 209 |
+
$$
|
| 210 |
+
\mathcal {L} _ {\mathrm {H L} _ {r} ^ {c}} \left(E _ {c}, D _ {f}\right) = \mathbb {E} _ {x _ {r} ^ {c}} \left[ 1 - \frac {\left(\sigma_ {r} ^ {c} - \alpha_ {r} ^ {c}\right) \cdot \left(\gamma_ {r} ^ {c} - \alpha_ {r} ^ {c}\right)}{\| \left(\sigma_ {r} ^ {c} - \alpha_ {r} ^ {c}\right) \| \| \left(\gamma_ {r} ^ {c} - \alpha_ {r} ^ {c}\right) \|} \right]. \tag {20}
|
| 211 |
+
$$
|
| 212 |
+
|
| 213 |
+
Like the discriminative loss, while updating the weights of $E_{c},D_{f}$ , we keep other modules frozen.
|
| 214 |
+
|
| 215 |
+
# 3.5. Real Fog Data Training Stage
|
| 216 |
+
|
| 217 |
+
In this stage, we use the real fog images without optical flow ground-truths and without clean-image ground-truths to train the network. As shown in Fig. 2, module $E_{f}$ takes the fog images, $x_{r1}^{f}, x_{r2}^{f}$ , as the input and generate features, which are used by $D_{of}$ to predict the optical flow:
|
| 218 |
+
|
| 219 |
+
$$
|
| 220 |
+
\widehat {o f} ^ {f} = D _ {o f} \left[ \left(E _ {f} \left[ x _ {r 1} ^ {f} \right], E _ {f} \left[ x _ {r 2} ^ {f} \right]\right). \right. \tag {21}
|
| 221 |
+
$$
|
| 222 |
+
|
| 223 |
+
$D_{of}$ can handle fog images, since it was trained in the previous stage (Sec. 3.4) using the rendered fog images. At the same time, we transform the input fog images, $x_{r1}^{f}, x_{r2}^{f}$ to clean images, $\hat{x}_{r1}^{c}, \hat{x}_{r1}^{c}$ , respectively:
|
| 224 |
+
|
| 225 |
+
$$
|
| 226 |
+
\hat {x} _ {r 1} ^ {c} = D _ {c} \left[ E _ {f} \left[ x _ {r 1} ^ {f} \right] \right], \tag {22}
|
| 227 |
+
$$
|
| 228 |
+
|
| 229 |
+
$$
|
| 230 |
+
\hat {x} _ {r 2} ^ {c} = D _ {c} \left[ E _ {f} \left[ x _ {r 2} ^ {f} \right] \right]. \tag {23}
|
| 231 |
+
$$
|
| 232 |
+
|
| 233 |
+
The transformation modules $D_{c},E_{f}$ had been initially trained in the previous stage as well. From the rendered clean images, $\hat{x}_{r1}^{c},\hat{x}_{r2}^{c}$ , we transform them further to obtain the rendered fog images, $\hat{\hat{x}}_{r1}^{f},\hat{\hat{x}}_{r2}^{f}$ , respectively:
|
| 234 |
+
|
| 235 |
+
$$
|
| 236 |
+
\hat {\hat {x}} _ {r 1} ^ {f} = D _ {f} \left[ E _ {c} \left[ \hat {x} _ {r 1} ^ {c} \right] \right], \tag {24}
|
| 237 |
+
$$
|
| 238 |
+
|
| 239 |
+
$$
|
| 240 |
+
\hat {\hat {x}} _ {r 2} ^ {f} = D _ {f} \left[ E _ {c} \left[ \hat {x} _ {r 2} ^ {c} \right] \right]. \tag {25}
|
| 241 |
+
$$
|
| 242 |
+
|
| 243 |
+
We also compute the optical flow from the rendered clean images, $\hat{x}_{r1}^{c},\hat{x}_{r2}^{c}$ ..
|
| 244 |
+
|
| 245 |
+
$$
|
| 246 |
+
\widehat {\text {o f} ^ {c}} = D _ {o f} \left[ \hat {x} _ {r 1} ^ {c}, \hat {x} _ {r 2} ^ {c} \right]. \tag {26}
|
| 247 |
+
$$
|
| 248 |
+
|
| 249 |
+
Like in the previous stage, to train the network, we use all the losses we defined in Sec. 3.4, except for the EPE loss. In this training stage, we still compare the EPE loss between $\widehat{of}^f$ and $\widehat{\overline{of^c}}$ , which we call the optical flow consistency loss [36]. However, the goal is no longer for estimating flow accurately, but for the two encoders to extract proper domain adaptive features. Thus, during the backpropagation of this loss, only two encoders $E_{c}$ and $E_{f}$ are updated, and the rest are kept frozen.
|
| 250 |
+
|
| 251 |
+
# 3.6. Photometric Consistency Map
|
| 252 |
+
|
| 253 |
+
In the second training stage, we use the rendered clean images, rendered fog images, and estimated optical flow together to train our network. However, the estimated optical flow might still be inaccurate, which can affect the learning process of the whole network. To address this problem, we generate a binary mask based on the photometric consistency of the estimated optical flows. The consistency is computed from the two input clean images and their estimated optical flow. The consistency is then binarized into a mask, and then we apply the mask to the EPE loss. This enables us to filter out the inaccurate estimations of optical flow during the backpropagation.
|
| 254 |
+
|
| 255 |
+
# 4. Implementation
|
| 256 |
+
|
| 257 |
+
Our network in total has two encoders, three decoders and two discriminators. Each of the two encoders contains 6 convolution layers. From an input image, each encoder extracts pyramid features at 6 different levels. As a result, the optical flow decoder has a pyramid structure. Its inputs are the five pairs of pyramidal features from a pair of input images. These features are the five deep-layers features extracted by the encoder. The features of each layer are warped based on the previous level of optical flow, and then we compute the cost volume, which is used to estimate optical flow. As for the two decoder for the domain transformation, the input images, first layer features and second layer features are convoluted into the same shape as the third layer features by a convolution layer. Next, these four
|
| 258 |
+
|
| 259 |
+
features with the same shape are concatenated together, and put into ResNet [13]. This ResNet contains six blocks, and its output has the same shape as input. Finally, the deconvolution layers process on the output from ResNet to generate the domain transformation result. The network architecture of each discriminator is similar to that of the PatchGAN discriminator [15], containing five convolution layers.
|
| 260 |
+
|
| 261 |
+
For training images, we use randomly cropped images of $256 \times 512$ resolution. We set the batch size to 3. We use Adam [17] for the optimizers of all the modules, and its parameters, $\beta_{1}$ and $\beta_{2}$ , are set 0.5 and 0.999 respectively. The learning rate is set to 0.0002. All the modules are trained from scratch. We collected real clean and real fog images. All contain urban scenes. We use the VKITTI dataset [9] for rendering synthetic fog images for the fully supervised training, as it has both depth maps and optical flow groundtruths. We specifically select the overcast images (with no sunlight) so that the rendered fog images look more realistic. With the available depth maps, we can generate fog images from VKITTI, with random atmospheric light and attenuation coefficient. The fog in synthetic data is generated by following the physics model [18] for fog, expressed in Eq. (16).
|
| 262 |
+
|
| 263 |
+
# 5. Experimental Result
|
| 264 |
+
|
| 265 |
+
For evaluation, we compare our method with the following methods: original FlowNet2 [14], original PwC-Net [38], which are the two state-of-the-art fully supervised methods; and optical flow network in competitive collaboration (CC) [31] and SelfFlow [26], which are two state-of-the-art unsupervised methods; FlowNet2-fog and PwCNet-fog, where we retrain the original FlowNet2 and PwC-Net using our synthetic fog images and their optical flow ground-truths; FlowNet2-defog, PwCNet-defog and CC-defog which are two-stage solutions where we combine a defogging method with the original FlowNet2, PwCNet and CC. The defogging method is Berman et al.'s [2], which is one of the state-of-the-art defogging methods.
|
| 266 |
+
|
| 267 |
+
We use 2,224 real clean and 2,346 real fog image pairs for training. For evaluation, following [22], we manually annotate 100 real fog image pairs. The annotated optical flow ground-truths are done for some rigid objects using the manual flow annotation method introduced in [24]. We further use 1,770 and 200 randomly sampled image pairs from the vKITTI dataset for training and validation, respectively. We use other 100 image pairs for testing. We render fog in all the images from the vKITTI dataset using the physics model [18], with random atmospheric light and attenuation coefficient (or fog density).
|
| 268 |
+
|
| 269 |
+
Quantitative Evaluation Since we target real dense fog images in our method and design, we do the evaluation on real images. EPE and "bad pixel" are commonly used metrics
|
| 270 |
+
|
| 271 |
+

|
| 272 |
+
Figure 3: Qualitative comparison of our methods with the state-of-the-art methods and their variants on real fog images.
|
| 273 |
+
|
| 274 |
+
Table 1: Quantitative results on our real dense foggy dataset.
|
| 275 |
+
|
| 276 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">EPE</td><td colspan="2">Bad Pixel</td></tr><tr><td>δ = 3</td><td>δ = 5</td></tr><tr><td>CC [31]</td><td>7.56</td><td>76.61%</td><td>45.79%</td></tr><tr><td>CC-defog [31]</td><td>11.67</td><td>72.22%</td><td>42.31%</td></tr><tr><td>PWCNet [38]</td><td>6.36</td><td>54.90%</td><td>38.47%</td></tr><tr><td>PWCNet-defog [38]</td><td>6.16</td><td>53.98%</td><td>38.50%</td></tr><tr><td>PWCNet-fog [38]</td><td>6.10</td><td>56.39%</td><td>39.42%</td></tr><tr><td>FlowNet2 [14]</td><td>4.74</td><td>42.06%</td><td>26.75%</td></tr><tr><td>FlowNet2-defog [14]</td><td>4.72</td><td>43.12%</td><td>26.60%</td></tr><tr><td>FlowNet2-fog [14]</td><td>5.19</td><td>49.66%</td><td>31.89%</td></tr><tr><td>SelfFlow [26]</td><td>6.53</td><td>70.92%</td><td>56.01%</td></tr><tr><td>Ours</td><td>4.32</td><td>41.26%</td><td>25.24%</td></tr><tr><td>Ours (no hazeline)</td><td>4.82</td><td>43.41%</td><td>31.60%</td></tr></table>
|
| 277 |
+
|
| 278 |
+
to measure the quality of optical flow. The definition of "bad pixel" follows to that of the KITTI dataset [27]. Since the flow ground-truths in our evaluation are manually annotated, they might be inaccurate. To account for this, following the KITTI dataset [27], we compute "bad pixel" with its threshold parameter $\delta = \{3,5\}$ , to allow for an inaccuracy of 3-5 pixels. Table 1 shows the evaluation result on our manually annotated real fog images. Our method has the best performance in terms of both EPE value and "bad pixel" numbers. Table 2 shows the results on synthetic fog images from the vKITTI dataset. Since for synthetic fog images, we have accurate dense flow ground-truths, we
|
| 279 |
+
|
| 280 |
+
Table 2: Quantitative results on synthetic foggy vKITTI dataset.
|
| 281 |
+
|
| 282 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">EPE</td><td colspan="2">Bad Pixel</td></tr><tr><td>δ = 1</td><td>δ = 3</td></tr><tr><td>CC [31]</td><td>7.53</td><td>70.54%</td><td>51.46%</td></tr><tr><td>CC-defog [31]</td><td>7.91</td><td>65.51%</td><td>38.90%</td></tr><tr><td>PWCNet</td><td>3.23</td><td>52.84%</td><td>19.01%</td></tr><tr><td>PWCNet-defog [38]</td><td>3.11</td><td>43.93%</td><td>18.28%</td></tr><tr><td>PWCNet-fog [38]</td><td>1.67</td><td>34.08%</td><td>9.04%</td></tr><tr><td>FlowNet2 [14]</td><td>5.92</td><td>52.42%</td><td>30.78%</td></tr><tr><td>FlowNet2-defog [14]</td><td>5.43</td><td>50.05%</td><td>28.80%</td></tr><tr><td>FlowNet2-fog [14]</td><td>9.64</td><td>73.02%</td><td>48.79%</td></tr><tr><td>Ours</td><td>1.60</td><td>28.31%</td><td>8.45%</td></tr></table>
|
| 283 |
+
|
| 284 |
+
compute "bad pixel" with $\delta = \{1,3\}$ . While this is not our target, the evaluation shows that our method has comparable performance as the naive solutions.
|
| 285 |
+
|
| 286 |
+
Qualitative Evaluation Fig. 3 shows the qualitative results on real fog images. The first column shows the first image of the input image pair. All ground-truths in the second column are labeled manually by selecting rigid objects. The third column shows our results, and the other columns show the results of the baseline methods. As can be seen, our method in general performs better than the baseline methods, confirming our quantitative evaluation on the same data. Fig. 4 shows the qualitative defogging results on real foggy images. We compare our method with the state of the art of non-learning method Berman et al. [2] and learning-based method EPDN [29]. Although defogging is not our
|
| 287 |
+
|
| 288 |
+

|
| 289 |
+
Figure 4: Qualitative defogging results on real foggy images. Although defogging is not our main target, we can observe that our method generates less artifacts than the state of the art methods do.
|
| 290 |
+
|
| 291 |
+

|
| 292 |
+
Figure 5: Qualitative methods on real nighttime images. As the results show, our method is not limited to fog, but can also work robustly for a different domain, such as nighttime.
|
| 293 |
+
|
| 294 |
+

|
| 295 |
+
|
| 296 |
+

|
| 297 |
+
|
| 298 |
+

|
| 299 |
+
Figure 6: In each row, images from left-to-right show the input clean image, and the corresponding rendered fog images with and without the hazeline loss. The hazeline loss constrains our rendered fog images to avoid having fake colors.
|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
|
| 303 |
+

|
| 304 |
+
|
| 305 |
+

|
| 306 |
+
Input Clean Image
|
| 307 |
+
|
| 308 |
+

|
| 309 |
+
Estiamted Flow
|
| 310 |
+
|
| 311 |
+

|
| 312 |
+
Consistency map
|
| 313 |
+
Figure 7: The photometric consistency masks correctly indicate the wrong flow estimations.
|
| 314 |
+
|
| 315 |
+
main target, we can observe that our method generates less artifacts.
|
| 316 |
+
|
| 317 |
+
While our method is designed for flow estimation under dense fog, we show that our method can also be applied to other domains, such as nighttime. For this, we use our entire training procedure as is, except for the hazeline loss
|
| 318 |
+
|
| 319 |
+
described in Eq. (20). The results are shown in Fig. 5.
|
| 320 |
+
|
| 321 |
+
# 6. Ablation Study
|
| 322 |
+
|
| 323 |
+
Fig. 6 shows the efficacy of our hazeline loss. It can constrain the color shifting between the clean images and the rendered fog images. We can observe that better fog images are generated by using the constraint. Table 1 shows the performance with and without the hazeline loss. Without the hazeline loss, our performance drops by 0.5 for EPE and $2 - 6\%$ on "bad pixel" rate.
|
| 324 |
+
|
| 325 |
+
Fig. 7 shows the binary photometric consistency masks. In the first row, our estimated optical flow has error on the minibus back window, and the mask can clearly show that area is inconsistent (black indicates inconsistent predictions, and white indicates consistent predictions). In the second row, the scene is static and the camera is moving. The optical flow is only generated by ego-motion. The estimated optical flow observably has errors on the left top corner. Our consistency mask also indicates the same. The consistency mask and setting proper hyper-parameters (Sec. 4) are important for training stabilization. In our experiments, we find that the training loss can fail to converge if the consistency mask is not used. We also check the efficacy of the domain transformation module. We observe that without this module (i.e. using only $E_{f}$ and $D_{of}$ in our network in Fig. 2), the performance of our method drops by 1.99 for EPE on real fog images.
|
| 326 |
+
|
| 327 |
+
# 7. Conclusion
|
| 328 |
+
|
| 329 |
+
In this paper, we have proposed a semi-supervised learning method to estimate optical flow from dense fog images. We design a multi-task network that combines domain transformation and optical flow estimation. Our network learns from both synthetic and real data. The synthetic data is used to train our network in a supervised manner, and the real data is used in an unsupervised manner. Our experimental results show the effectiveness of our method, which outperforms the state-of-the-art methods.
|
| 330 |
+
|
| 331 |
+
# References
|
| 332 |
+
|
| 333 |
+
[1] Dana Berman, Shai Avidan, et al. Non-local image dehazing. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1674-1682, 2016. 1, 5
|
| 334 |
+
[2] D. Berman, T. Treibitz, and S. Avidan. Single image dehazing using haze-lines. IEEE Transactions on Pattern Analysis and Machine Intelligence, pages 1-1, 2018. 2, 6, 7, 8
|
| 335 |
+
[3] Mario Bijelic, Tobias Gruber, and Werner Ritter. A benchmark for lidar sensors in fog: Is detection breaking down? In 2018 IEEE Intelligent Vehicles Symposium (IV), pages 760-767. IEEE, 2018. 1, 3
|
| 336 |
+
[4] Bolun Cai, Xiangmin Xu, Kui Jia, Chunmei Qing, and Dacheng Tao. Dehazenet: An end-to-end system for single image haze removal. IEEE Transactions on Image Processing, 25(11):5187-5198, 2016. 3
|
| 337 |
+
[5] Dengxin Dai, Christos Sakaridis, Simon Hecker, and Luc Van Gool. Curriculum model adaptation with synthetic and real data for semantic foggy scene understanding. International Journal of Computer Vision, 2019. 2
|
| 338 |
+
[6] A. Dosovitskiy, P. Fischer, E. Ilg, V. Golkov, P. Häusser, C. Hazirbaş, V. Golkov, P. Smagt, D. Cremers, and T. Brox. Flownet: Learning optical flow with convolutional networks. In IEEE International Conference on Computer Vision (ICCV), 2015. 1, 2
|
| 339 |
+
[7] Raanan Fattal. Single image dehazing. ACM transactions on graphics (TOG), 27(3):72, 2008. 1
|
| 340 |
+
[8] Denis Fortun, Patrick Bouthemy, and Charles Kervrann. Optical flow modeling and computation: a survey. Computer Vision and Image Understanding, 134:1-21, 2015. 2
|
| 341 |
+
[9] A Gaidon, Q Wang, Y Cabon, and E Vig. Virtual worlds as proxy for multi-object tracking analysis. In CVPR, 2016. 6
|
| 342 |
+
[10] Arjan Gijsenij, Theo Gevers, and Joost Van De Weijer. Computational color constancy: Survey and experiments. IEEE Transactions on Image Processing, 20(9):2475-2489, 2011. 5
|
| 343 |
+
[11] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014. 3, 4, 5
|
| 344 |
+
[12] Kaiming He, Jian Sun, and Xiaou Tang. Single image haze removal using dark channel prior. IEEE transactions on pattern analysis and machine intelligence, 33(12):2341-2353, 2011. 1, 5
|
| 345 |
+
[13] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 6
|
| 346 |
+
[14] Eddy Ilg, Nikolaus Mayer, Tonmoy Saikia, Margret Keuper, Alexey Dosovitskiy, and Thomas Brox. Flownet 2.0: Evolution of optical flow estimation with deep networks. CoRR, abs/1612.01925, 2016. 1, 2, 6, 7
|
| 347 |
+
[15] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1125-1134, 2017. 2, 6
|
| 348 |
+
|
| 349 |
+
[16] J Yu Jason, Adam W Harley, and Konstantinos G Derpanis. Back to basics: Unsupervised learning of optical flow via brightness constancy and motion smoothness. In European Conference on Computer Vision, pages 3-10. Springer, 2016. 2
|
| 350 |
+
[17] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. 6
|
| 351 |
+
[18] Harald Koschmieder. Theorie der horizontalen sightweite. Beitrage zur Physik der freien Atmosphere, pages 33-53, 1924. 1, 6
|
| 352 |
+
[19] Wei-Sheng Lai, Jia-Bin Huang, and Ming-Hsuan Yang. Semi-supervised learning for optical flow with generative adversarial networks. In Advances in Neural Information Processing Systems, pages 354-364, 2017. 2
|
| 353 |
+
[20] Boyi Li, Xiulian Peng, Zhangyang Wang, Jizheng Xu, and Dan Feng. Aod-net: All-in-one dehazing network. In Proceedings of the IEEE International Conference on Computer Vision, pages 4770-4778, 2017. 3
|
| 354 |
+
[21] Runde Li, Jinshan Pan, Zechao Li, and Jinhui Tang. Single image dehazing via conditional generative adversarial network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8202-8211, 2018. 1, 3
|
| 355 |
+
[22] Ruoteng Li, Robby T Tan, Loong-Fah Cheong, Angelica I Aviles-Rivero, Qingnan Fan, and Carola-Bibiane Schonlieb. Rainflow: Optical flow under rain streaks and rain veiling effect. In Proceedings of the IEEE International Conference on Computer Vision, pages 7304-7313, 2019. 6
|
| 356 |
+
[23] Yu Li, Shaodi You, Michael S Brown, and Robby T Tan. Haze visibility enhancement: A survey and quantitative benchmarking. Computer Vision and Image Understanding, 165:1-16, 2017. 3
|
| 357 |
+
[24] Ce Liu, William T Freeman, Edward H Adelson, and Yair Weiss. Human-assisted motion annotation. In 2008 IEEE Conference on Computer Vision and Pattern Recognition, pages 1-8. IEEE, 2008. 6
|
| 358 |
+
[25] Ming-Yu Liu, Thomas Breuel, and Jan Kautz. Unsupervised image-to-image translation networks. In Advances in neural information processing systems, pages 700-708, 2017. 2, 5
|
| 359 |
+
[26] Pengpeng Liu, Michael Lyu, Irwin King, and Jia Xu. Selfflow: Self-supervised learning of optical flow. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4571-4580, 2019. 2, 6, 7
|
| 360 |
+
[27] Moritz Menze and Andreas Geiger. Object scene flow for autonomous vehicles. In Conference on Computer Vision and Pattern Recognition (CVPR), 2015. 7
|
| 361 |
+
[28] József Molnár, Dmitry Chetverikov, and Sándor Fazekas. Illumination-robust variational optical flow using cross-correlation. Computer Vision and Image Understanding, 114(10):1104–1114, 2010. 2
|
| 362 |
+
[29] Yanyun Qu, Yizi Chen, Jingying Huang, and Yuan Xie. Enhanced pix2pix dehazing network. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 7, 8
|
| 363 |
+
|
| 364 |
+
[30] Anurag Ranjan and Michael J. Black. Optical flow estimation using a spatial pyramid network. CoRR, abs/1611.00850, 2016. 1, 3
|
| 365 |
+
[31] Anurag Ranjan, Varun Jampani, Lukas Balles, Kihwan Kim, Deqing Sun, Jonas Wulff, and Michael J Black. Competitive collaboration: Joint unsupervised learning of depth, camera motion, optical flow and motion segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 12240–12249, 2019. 2, 6, 7
|
| 366 |
+
[32] Wenqi Ren, Si Liu, Hua Zhang, Jinshan Pan, Xiaochun Cao, and Ming-Hsuan Yang. Single image dehazing via multiscale convolutional neural networks. In European conference on computer vision, pages 154-169. Springer, 2016. 3
|
| 367 |
+
[33] Zhe Ren, Junchi Yan, Bingbing Ni, Bin Liu, Xiaokang Yang, and Hongyuan Zha. Unsupervised deep learning for optical flow estimation. In Thirty-First AAAI Conference on Artificial Intelligence, 2017. 2
|
| 368 |
+
[34] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pages 234-241. Springer, 2015. 2
|
| 369 |
+
[35] Christos Sakaridis, Dengxin Dai, Simon Hecker, and Luc Van Gool. Model adaptation with synthetic and real data for semantic dense foggy scene understanding. In European Conference on Computer Vision (ECCV), pages 707-724, 2018. 2
|
| 370 |
+
[36] Aashish Sharma, Robby T Tan, and Loong-Fah Cheong. Depth estimation in nighttime using stereo-consistent cyclic translations. arXiv preprint arXiv:1909.13701, 2019. 2, 5, 6
|
| 371 |
+
[37] Matan Sulami, Itamar Glatzer, Raanan Fattal, and Mike Werman. Automatic recovery of the atmospheric light in hazy images. In 2014 IEEE International Conference on Computational Photography (ICCP), pages 1-11. IEEE, 2014. 5
|
| 372 |
+
[38] Deqing Sun, Xiaodong Yang, Ming-Yu Liu, and Jan Kautz. PWC-Net: CNNs for optical flow using pyramid, warping, and cost volume. In CVPR, 2018. 1, 2, 3, 6, 7, 8
|
| 373 |
+
[39] Robby T Tan. Visibility in bad weather from a single image. In 2008 IEEE Conference on Computer Vision and Pattern Recognition, pages 1-8. IEEE, 2008. 1, 5
|
| 374 |
+
[40] Shoji Tominaga, Satoru Ebisui, and Brian A Wandell. Scene illuminant classification: brighter is better. JOSA a, 18(1):55-64, 2001. 5
|
| 375 |
+
[41] Yang Wang, Peng Wang, Zhenheng Yang, Chenxu Luo, Yi Yang, and Wei Xu. Unos: Unified unsupervised optical-flow and stereo-depth estimation by watching videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8071-8081, 2019. 2
|
| 376 |
+
[42] Philippe Weinzaepfel, Jerome Revaud, Zaid Harchaoui, and Cordelia Schmid. DeepFlow: Large displacement optical flow with deep matching. In IEEE International Conference on Computer Vision (ICCV), Sydney, Australia, Dec. 2013. 1
|
| 377 |
+
[43] Jia Xu, René Ranftl, and Vladlen Koltun. Accurate Optical Flow via Direct Cost Volume Processing. In CVPR, 2017. 1
|
| 378 |
+
[44] Zhichao Yin and Jianping Shi. Geonet: Unsupervised learning of dense depth, optical flow and camera pose. In Pro
|
| 379 |
+
|
| 380 |
+
ceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1983-1992, 2018. 2
|
| 381 |
+
[45] He Zhang and Vishal M Patel. Densely connected pyramid dehazing network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3194-3203, 2018. 1
|
| 382 |
+
[46] Alex Zihao Zhu, Liangzhe Yuan, Kenneth Chaney, and Kostas Daniilidis. Unsupervised event-based learning of optical flow, depth, and egomotion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 989-997, 2019. 2
|
| 383 |
+
[47] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 2223-2232, 2017. 2, 5
|
opticalflowindensefoggyscenesusingsemisupervisedlearning/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c3f9e7ac22b34d3dbf0d14d09cb03dc346d906d67784b798601fb62524ac838
|
| 3 |
+
size 505636
|
opticalflowindensefoggyscenesusingsemisupervisedlearning/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:63b6f4f82f9497008991c427eea22e135ff10c4a5a79b42b5f6000ee68d7696e
|
| 3 |
+
size 400151
|
opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b42739b3ab01e6b8d8d34a7ef76a7e432450a237ba41da760c1312b3690975f9
|
| 3 |
+
size 63584
|
opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b93335c38b44f316dbc55a69b838f203a4d14937323ae8f106117001eb053cd4
|
| 3 |
+
size 75352
|
opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b29342f5884f3ffb60e3570536e8caafe61fd43d3ae2383cbc040ed9e07dfc95
|
| 3 |
+
size 3112111
|
opticalflowinthedark/full.md
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Optical Flow in the Dark
|
| 2 |
+
|
| 3 |
+
Yinqiang Zheng $^{1,\ast}$ , Mingfang Zhang $^{2,3,\ast}$ , Feng Lu $^{2,4,\dagger}$ $^{1}$ National Institute of Informatics, $^{2}$ Pengcheng Laboratory, $^{3}$ Nanjing University, $^{4}$ State Key Lab. of VR Technology and Systems, School of CSE, Beihang University yqzheng@nii.ac.jp, 161220169@smail.nju.edu.cn, lufeng@buaa.edu.cn
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Many successful optical flow estimation methods have been proposed, but they become invalid when tested in dark scenes because low-light scenarios are not considered when they are designed and current optical flow benchmark datasets lack low-light samples. Even if we preprocess to enhance the dark images, which achieves great visual perception, it still leads to poor optical flow results or even worse ones, because information like motion consistency may be broken while enhancing. We propose an end-to-end data-driven method that avoids error accumulation and learns optical flow directly from low-light noisy images. Specifically, we develop a method to synthesize large-scale low-light optical flow datasets by simulating the noise model on dark raw images. We also collect a new optical flow dataset in raw format with a large range of exposure to be used as a benchmark. The models trained on our synthetic dataset can relatively maintain optical flow accuracy as the image brightness descends and they outperform the existing methods greatly on low-light images.
|
| 8 |
+
|
| 9 |
+
# 1. Introduction
|
| 10 |
+
|
| 11 |
+
Optical flow estimation can be used for motion detection, object segmentation, and so on. In real life, many of the applications need to deal with low-light data. For example, there are certain circumstances for a drone to fly at night but it's difficult to achieve the goal because optical flow is hard to obtain in dark environments, which is useful to avoid obstacles and control the speed through dense surroundings. Current optical flow methods show poor performance with low-light data. To address this problem, a straightforward solution is to use auxiliary lighting systems
|
| 12 |
+
|
| 13 |
+

|
| 14 |
+
Figure 1. A comparison between our method (e) and existing methods (d,f,g), conducted on the well-exposed input (a), underexposed input (b) and the enhanced input (c) using SID [6] method. Specifically, (a) and (b) are images of the same scene. (e,f,g) are produced by PWC-Net [28] and (d) is produced by FlowNet2 [14] which is 17 times larger than PWC-Net.
|
| 15 |
+
|
| 16 |
+
for drones, which would inevitably shorten the battery life. As a result, an efficient optical flow method to process low-light data is greatly demanded, which is the main goal of our work.
|
| 17 |
+
|
| 18 |
+
Horn and Schunck [13] introduce an energy minimization approach to compute optical flow and many excellent methods adapt it and achieve better and better results. However, the optimizing problem of a complex energy function is usually computationally expensive for real-time applications. In order to create a fast and accurate method, end-to-end convolutional neural network frameworks are pro
|
| 19 |
+
|
| 20 |
+
posed, such as FlowNetS, FlowNetC [10], FlowNet2 [14], and PWC-Net [28]. The best of them can achieve state-of-the-art performance with both better quality and faster speed than traditional methods. As a result, we choose to develop our approach based on deep-learning methods. However, they still show poor capabilities of dealing with low-light data because low-light is a complex scenario due to the low signal-to-noise ratio, and current optical flow datasets, eg. KITTI [12], Sintel [4], FlyingChairs [10] and Flyingthings3D [22], mainly consist of bright images. Low-light is not taken into consideration when current optical flow methods are designed.
|
| 21 |
+
|
| 22 |
+
A direct solution to get optical flow from dark images is to enhance them before computing optical flow. Researchers have proposed many techniques for denoising and enhancing low-light images [9, 3, 6, 20]. However, the purpose of these techniques is to get better visual quality of the enhanced images, and we get limited improvement on optical flow results or even worse ones. The main reason is that many of the methods lose information while enhancing, such as brightness constancy which is fundamental for optical flow estimation. As a result, we choose to make the network learn optical flow directly from low-light images in an end-to-end way that avoids information loss.
|
| 23 |
+
|
| 24 |
+
It is known that optical flow ground truth is hard to obtain and neural network training needs a large scale of data, so we decide to synthesize low-light effects on bright images and create low-light optical flow datasets. A variety of learning-based denoising and low-light enhancing methods synthesize their own dataset. Some of them [18, 19] use the additive white noise (AWGN) model, which is always criticized that they are not capable of simulating real noise and recent denoising works [15, 2, 23] propose to simulate camera processing features which leads to better noise models. We focus on simulating the noise on raw images, which avoids complex characteristics due to the image processing pipeline. Most existing noise analysis [2] is conducted on bright noisy images [24] in which the noise is caused by high ISO. Beside that, we mainly focus on the noise caused by the low intensity of light, since the photons arriving at the sensor are governed by Poisson distribution. And finally, we apply our noise model to create new optical flow datasets for training. In order to test a model's ability to deal with various exposure inputs, we collect a new optical flow dataset in low-light environments.
|
| 25 |
+
|
| 26 |
+
# Contribution
|
| 27 |
+
|
| 28 |
+
1. We collect a new optical flow dataset — Various Brightness Optical Flow (VBOF) dataset, consisting of 598 raw images of various brightness and 100 optical flow references to evaluate the ability of an optical flow model to deal with various exposure inputs.
|
| 29 |
+
|
| 30 |
+
2. We provide an analysis of the noise on raw images of various brightness and reveal how the noise distribution changes as the exposure descends.
|
| 31 |
+
3. We apply our noise model to synthesize a low-light optical flow dataset — FlyingChairs-DarkNoise (FCDN), and the optical flow models trained on our dataset can relatively maintain optical flow accuracy as the exposure descends and they outperform the existing methods greatly on low-light images.
|
| 32 |
+
|
| 33 |
+
# 2. Related Work
|
| 34 |
+
|
| 35 |
+
Learning-based Optical Flow Estimation. Dosovitskiy et al. [10] propose two CNN models for optical flow, FlowNetS and FlowNetC, which shows the feasibility of directly learning optical flow from images but their performances are below the state of the art therein. Ilg et al. [14] stack several FlowNetC and FlowNetS networks into a large model, FlowNet2, which achieves state-of-the-art results and runs faster than traditional methods. However, because of the large size of its model, it always takes dozens of days to train the whole model and it's not feasible to be implemented on mobile and embedded devices. Sun et al. [28] design a compact but effective CNN model, PWC-Net, according to well-established principles: pyramidal processing, warping, and the use of a cost volume, which reduces the size of CNN model and achieves better results on existing benchmarks. There are also works focusing on the robustness of optical flow, such as Robust Flow [16] and RainFlow [17]. They try to keep optical flow accuracy in rainy scenes by introducing residue channels and veiling-invariant features. However, none of these methods pays attention to the performance of optical flow in the dark and current optical flow datasets lack real low-light data.
|
| 36 |
+
|
| 37 |
+
Synthetic Low-light Dataset. FlyingChairs [10] is a synthetic optical flow dataset containing about 22k image pairs of chairs superimposed on random background images from Flickr. [22] proposes the FlyingThings3D dataset which can be seen as a three-dimensional version of the FlyingChairs. We decide to adopt the FlyingChairs dataset and synthesize low-light effect on it. Many approaches have been proposed to synthesize low-light and noisy image datasets. [19, 18] uses additive Gaussian noise and Gamma correction to simulate low-light effects. [15] simulates the degradation and noise transformation performed by camera pipelines. Very related to our work is [2, 23] in which they add read and shot noise on the raw sensor data, because 8-bitJPEG images are easy to lose information when turned dark, and we aim to derive optical flow directly from dark raw images. In addition, we conduct our noise analysis on real raw images of various brightness, while existing noise analysis is mostly on bright noisy images caused by various ISO.
|
| 38 |
+
|
| 39 |
+
Low-light Imaging. A variety of techniques have been developed for low-light imaging. Infrared information is commonly used in low-light detection [21, 20], but infrared sensors are not widely equipped, so our experiments focus on RGB image enhancing. Non-local means (NLM) [3] and BM3D [9] are denoising methods based on finding similar patches around every pixel, then average all the patches and replace the pixel with the result. Recently, Chen et al. [6, 5] propose a learning-based method to enhance dark images. They take raw data as input to a modified U-Net [25]. However, even if some of the methods could achieve good perception, it's unavoidable to lose information while post-processing and information like brightness consistency is critical to optical flow estimation.
|
| 40 |
+
|
| 41 |
+
# 3. Various Brightness Optical Flow Dataset
|
| 42 |
+
|
| 43 |
+
There are many benchmarking datasets about low-light and optical flow, such as SID [6] and SIDD [1] that provide low-light or noisy images with their corresponding bright clean images, and KITTI [12] and Sintel [4] that provide image pairs with their corresponding optical flow. However, to our knowledge, no existing dataset is able to benchmark the low-light performance of an optical flow model, so we combine the two concepts above and collect a Various Brightness Optical Flow (VBOF) dataset, which contains 598 raw images of various brightness with 100 corresponding optical flow reference.
|
| 44 |
+
|
| 45 |
+
The images are taken by 3 cameras: Sony A6000 (102 images), Canon EOS M6 (297 images), Fujilm XT2 (199 images), in which Canon and Sony have Bayer-pattern sensors while Fujilm has X-Trans sensor. We mount the camera on a tripod, control it remotely to avoid vibration and set various exposure time to get various exposure photos of the same movement.
|
| 46 |
+
|
| 47 |
+
Various exposure image pairs share the same optical flow. We took the raw images in about 10 different exposures before and after we move the objects, then we use the bright sharp image pair to calculate the optical flow with [14] to serve as a reference for the dark noisy pairs. Some samples are shown in Figure 2.
|
| 48 |
+
|
| 49 |
+
Besides the capability to evaluate the brightness robustness of an optical flow model, VBOF also has other advantages. First, we choose to present our data in 14-bit raw format so that we can use various methods to demosaic and enhance images with less information loss. Second, since the VBOF dataset is collected using 3 cameras from different manufacturers and raw format is unique to every camera model, our dataset is able to evaluate the generalization ability for different cameras. Third, the VBOF dataset consists of scenes both indoor and outdoor, with various lighting effects, so it comprehensively reflects scenes in real life.
|
| 50 |
+
|
| 51 |
+

|
| 52 |
+
Figure 2. Three samples in our Various Brightness Optical Flow (VBOF) dataset: raw images of moving objects with a large range of brightness with reference optical flow.
|
| 53 |
+
|
| 54 |
+
# 4. Method
|
| 55 |
+
|
| 56 |
+
# 4.1. End-to-end Optical Flow
|
| 57 |
+
|
| 58 |
+
We design an end-to-end pipeline to deal with low-light optical flow (showed in Figure 3). The core of our solution is to synthesize low-light raw effects on bright RGB images in the original dataset for training optical flow models and directly use raw as input when testing, instead of enhancing the low-light input before estimation using models trained on the original dataset. We get the inspiration from [27, 26], in which they achieve great image segmentation results on foggy input.
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
Figure 3. Above: two-step pipeline using existing methods for optical flow in the dark. Below: our pipeline for optical flow in the dark.
|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
Figure 4. Distribution of Gauss-related parameter $a$ and Poisson-related parameter $b$ analyzed on Canon, Sony and Fujim camera of various brightness in (a), (b) and (c) respectively, and on the See in the Dark dataset [6] and the bright Darmstadt Noise Dataset [24] in (d).
|
| 65 |
+
|
| 66 |
+
# 4.2. Noise Analysis
|
| 67 |
+
|
| 68 |
+
Unlike the noise in a processed image which may have complex characteristics because of compression and other nonlinear operations, the noise in raw sensor data is better understood. It generally comes from two sources: photon shot noise and thermal read noise. The number of photons arriving the sensor varies from exposure to exposure and from pixel to pixel, which is governed by the Poisson distribution:
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
P \left(k _ {p h}, \lambda_ {b r}\right) = \frac {\lambda_ {b r} ^ {k _ {p h}} * e ^ {- \lambda_ {b r}}}{k _ {p h} !} \tag {1}
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
where $\lambda_{br}$ is the expected number of occurrences which rises as the image gets brighter, and $k_{ph}$ is the number of photons arriving. Various $k_{ph}$ of different pixels on the sensor would lead to unavoidable photon shot noise. And the other main noise source is thermal noise in readout circuitry, which doesn't have a fixed pattern and the only solution to this is cooling, so we simulate the thermal read noise using Gaussian distribution.
|
| 75 |
+
|
| 76 |
+
Considering the two types of noise and that we want to simulate the image noise of low-light data, we carefully collect a Various Brightness Raw (VBR) dataset, setting the brightness as the only variable. In order to reveal the changing noise pattern as the brightness descends, we fix the exposure time and ISO to get invariant thermal read noise and only change the size of the aperture to get images of different brightness. We also repeat the process on different cameras to get general results. Finally, we get 1200 raw images of a large range of brightness both indoor and outdoor, in the day and the night environments.
|
| 77 |
+
|
| 78 |
+
To analyze the noise model, we employ the noise estimation method in [11] to estimate the Poisson-related parameter $a$ and the Gaussian-related parameter $b$ . Specifically, we assume that the noisy image $z$ can be decomposed by the following formula:
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
z (x) = y (x) + \eta_ {p} (y (x)) + \eta_ {g} (x) \tag {2}
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
where $x\in X\subset N^2$ is the pixel position, $y$ is the original
|
| 85 |
+
|
| 86 |
+
noise-free image, and
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\left. \right.\left(y (x) + \eta_ {p} (y (x))) / a \sim \mathcal {P} (y (x) / a), \eta_ {g} (x) \sim \mathcal {N} (0, b) \right. \tag {3}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
in which $\mathcal{P}$ and $\mathcal{N}$ denote Poisson and Gaussian distribution respectively. We approximate these together as a single heteroscedastic Gaussian:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
z (x) \sim \mathcal {N} (\mu = x, \sigma^ {2} = a x + b) \tag {4}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
The analysis result is showed in Figure 4, where we can see that generally the noise level rises as the brightness descends and that in low-intensity dark images, $a$ and $b$ are more tightly coupled and Poisson-related parameter becomes relatively larger than Gaussian-related parameter, which means the noise is more signal-dependent. It's also obvious that the noise parameters analyzed on the bright Darmstadt dataset [24] which is used in [2] are quite different from the ones we analyze on our low-light dataset and the See in the Dark dataset [6].
|
| 99 |
+
|
| 100 |
+
# 4.3. Synthesize New Optical Flow Dataset
|
| 101 |
+
|
| 102 |
+
In order to generate synthetic noisy raw images from clean images, we first randomly invert the gamma correction of RGB channels respectively to simulate the uncorrected light effects and white balance on raw images, then we randomly sample shot and read parameter $a$ and $b$ from ranges that match what we observe in real data and add noise by sampling from the distribution of Eq. 4. We choose to perform our operations based on the FlyingChairs [10] dataset after normalizing the 8-bit images in it to [0-1]. Note that we don't reduce the brightness in the 8-bit training data to preserve information. To match the training input, when testing we scaled the low-light 14-bit raw input to a normal brightness since raw format can keep the weak signals.
|
| 103 |
+
|
| 104 |
+
Specifically, we sample the noise parameters from our VBR dataset, VBOF dataset, and SID [6] dataset, so that the parameters we sample from would cover various brightness and ISO. Also, we deliberately arrange our synthetic dataset to have an average distribution of noise levels. The final training set is called FlyingChairs-DarkNoise (FCDN).
|
| 105 |
+
|
| 106 |
+
Finally, we analyze the general variance of the real raw data and our synthetic data using the method in [7] showed in the table 1, in which the noise level is defined by variance * 255 of Normal distribution.
|
| 107 |
+
|
| 108 |
+
<table><tr><td rowspan="2">Datasets</td><td colspan="4">Noise Level (variance * 255)</td></tr><tr><td>0 - 10</td><td>10 - 20</td><td>20 - 30</td><td>>30</td></tr><tr><td>VBR-bright</td><td>266</td><td>34</td><td>0</td><td>0</td></tr><tr><td>VBR-dark</td><td>42</td><td>248</td><td>10</td><td>0</td></tr><tr><td>VBR-darker</td><td>0</td><td>46</td><td>242</td><td>12</td></tr><tr><td>VBR-darkest</td><td>0</td><td>32</td><td>202</td><td>66</td></tr><tr><td>FlyingChairs</td><td>45744</td><td>0</td><td>0</td><td>0</td></tr><tr><td>FCDN</td><td>17021</td><td>14214</td><td>14166</td><td>343</td></tr></table>
|
| 109 |
+
|
| 110 |
+
Table 1. Statistics of images numbers of various levels of noise on different datasets analyzed by the method in [7]. VBR is the dataset we collect of Various Brightness Raw images. FlyingChairs is from [10] and FlyingChairs-DarkNoise (FCDN) is the one we synthesize.
|
| 111 |
+
|
| 112 |
+
# 5. Experiments
|
| 113 |
+
|
| 114 |
+
# 5.1. Setup
|
| 115 |
+
|
| 116 |
+
To evaluate our method we use our Various Brightness Optical Flow dataset since it's the only dataset that is able to benchmark brightness robustness for optical flow models so far. The performance is evaluated by End-Point Error (EPE), which is the Euclidean norm of the difference between the estimated optical flow vector $(V_{est})$ and a reference optical flow vector $(V_{rf})$ . $V_{est}$ and $V_{rf}$ have the shape of $(H, W, 2)$ where $H$ and $W$ represent the size of the input image, and 2 represents a 2-dimension vector for each pixel, with its direction and length indicating the direction and speed of the movement in that pixel.
|
| 117 |
+
|
| 118 |
+
Network Choice. We choose to use FlowNetC, FlowNetS [10] and PWC-Net [28] to evaluate our method. The reason is that they can represent the mainstream two kinds of architectures of optical flow networks (U-Net and spatial pyramid) and many other networks are based on them, such as FlowNet2 [14] which stacks several FlowNetC and FlowNetS networks together. And PWC-Net [28] is one of the state-of-the-art optical flow networks. The three networks are all compact but effective, and they can all be trained in a reasonable amount of time.
|
| 119 |
+
|
| 120 |
+
Training Set Synthesis. We want to use raw images as input to avoid information loss when testing, so we need to generate raw features on RGB images in the original training dataset, which is the core of our solution. Brooks et al. [2] propose a method to "unprocess" RGB images to RAW for denoising purpose, which includes adding noise,
|
| 121 |
+
|
| 122 |
+

|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
(a) Frame 1
|
| 126 |
+
|
| 127 |
+

|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
(b) Frame 2
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
|
| 134 |
+

|
| 135 |
+
Figure 5. A comparison of final results using different training set synthesizing method: "unprocess" [2] and ours. (a,b) are inputs scaled from dark raw images. In our result, the object is painted red and purple meaning moving to the right and upper right, which is the correct output.
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
|
| 139 |
+

|
| 140 |
+
(c) Unprocess
|
| 141 |
+
(d) Ours
|
| 142 |
+
|
| 143 |
+
inverting tone mapping, gamma decompression, inverting white balance and digital gain, etc. We try to synthesize a "raw" FlyingChairs dataset using their method but after training and evaluating, we find the final optical flow result turns out to be inaccurate compared to our solution (See Figure 5). We think the main reason is that we analyze the noise and synthesize it based on multiple datasets covering a large range of exposure and ISO, while their analysis is on the DND dataset [24] which is relatively limited (See (d) in Figure 4) and other operations like compression tend to destroy signal in 8-bit images.
|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
Figure 6. Different inputs of the same movement and optical flow. Our result produced directly from dark input is better than the one produced from the SID enhanced image [6], and even better than the one produced from the original bright image using PWC-Net author-trained model [28].
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
|
| 150 |
+

|
| 151 |
+
|
| 152 |
+
<table><tr><td rowspan="2">Evaluating Dataset</td><td rowspan="2">Model</td><td rowspan="2">Training Set</td><td colspan="7">End-Point Error of Various Exposure Input (0: brightest, 6: darkest)</td></tr><tr><td>Exp-0</td><td>Exp-1</td><td>Exp-2</td><td>Exp-3</td><td>Exp-4</td><td>Exp-5</td><td>Exp-6</td></tr><tr><td rowspan="6">VBOF</td><td rowspan="2">FlowNetC</td><td>FlyingChairs</td><td>5.78</td><td>6.21</td><td>6.98</td><td>7.98</td><td>9.48</td><td>12.21</td><td>14.73</td></tr><tr><td>FCDN</td><td>5.76</td><td>5.78</td><td>5.78</td><td>5.86</td><td>5.98</td><td>6.11</td><td>6.55</td></tr><tr><td rowspan="2">FlowNetS</td><td>FlyingChairs</td><td>11.15</td><td>11.34</td><td>11.60</td><td>11.57</td><td>10.77</td><td>10.09</td><td>9.76</td></tr><tr><td>FCDN</td><td>5.46</td><td>5.53</td><td>5.51</td><td>5.53</td><td>5.61</td><td>5.67</td><td>6.26</td></tr><tr><td rowspan="2">PWC-Net</td><td>FlyingChairs</td><td>7.13</td><td>7.04</td><td>7.08</td><td>7.52</td><td>7.58</td><td>9.21</td><td>10.88</td></tr><tr><td>FCDN</td><td>5.31</td><td>5.32</td><td>5.29</td><td>5.34</td><td>5.37</td><td>5.63</td><td>6.09</td></tr><tr><td rowspan="6">VBOF + NLM</td><td rowspan="2">FlowNetC</td><td>FlyingChairs</td><td>5.34</td><td>5.39</td><td>5.78</td><td>7.02</td><td>8.96</td><td>11.36</td><td>13.69</td></tr><tr><td>FCDN</td><td>5.89</td><td>5.95</td><td>5.92</td><td>5.92</td><td>6.04</td><td>6.12</td><td>6.55</td></tr><tr><td rowspan="2">FlowNetS</td><td>FlyingChairs</td><td>11.38</td><td>11.81</td><td>12.69</td><td>11.64</td><td>10.44</td><td>9.73</td><td>9.55</td></tr><tr><td>FCDN</td><td>5.80</td><td>5.93</td><td>5.98</td><td>5.83</td><td>5.72</td><td>5.64</td><td>6.25</td></tr><tr><td rowspan="2">PWC-Net</td><td>FlyingChairs</td><td>6.14</td><td>6.15</td><td>7.12</td><td>7.12</td><td>7.31</td><td>8.59</td><td>10.19</td></tr><tr><td>FCDN</td><td>5.50</td><td>5.57</td><td>5.51</td><td>5.50</td><td>5.48</td><td>5.57</td><td>6.04</td></tr><tr><td rowspan="6">VBOF (only Sony part) + SID (Sony model)</td><td rowspan="2">FlowNetC</td><td>FlyingChairs</td><td>5.61</td><td>5.75</td><td>5.75</td><td>5.97</td><td>6.40</td><td>6.40</td><td>6.81</td></tr><tr><td>FCDN</td><td>4.74</td><td>4.77</td><td>4.84</td><td>4.87</td><td>4.93</td><td>5.28</td><td>5.13</td></tr><tr><td rowspan="2">FlowNetS</td><td>FlyingChairs</td><td>9.28</td><td>10.05</td><td>10.31</td><td>10.65</td><td>11.27</td><td>12.43</td><td>11.83</td></tr><tr><td>FCDN</td><td>4.47</td><td>4.59</td><td>4.76</td><td>4.78</td><td>5.24</td><td>6.13</td><td>6.22</td></tr><tr><td rowspan="2">PWC-Net</td><td>FlyingChairs</td><td>4.27</td><td>4.41</td><td>4.58</td><td>4.99</td><td>5.35</td><td>5.58</td><td>5.48</td></tr><tr><td>FCDN</td><td>4.31</td><td>4.27</td><td>4.25</td><td>4.37</td><td>4.30</td><td>4.41</td><td>4.60</td></tr></table>
|
| 153 |
+
|
| 154 |
+
Table 2. Performance of our solution compared to existing solutions. The evaluation is done on our Various Brightness Optical Flow (VBOF) dataset and the processed VBOF dataset using Non-local Means [3] and Learning to See in the Dark (SID) [6]. Because the SID method is camera-sensitive, relevant experiments are only done on the Sony part of our VBOF dataset. We choose FlowNetC and FlowNetS [10] and PWC-Net [28] as our optical flow model and they are trained on the FlyingChairs dataset [10] and our FlyingChairs-DarkNoise (FCDN) dataset. The VBOF dataset is separated by multiple brightness levels, we select 7 of them listed as 'Exp-0' to 'Exp-6'. From the table we can see that models trained on our dataset always get a performance improvement almost on every brightness level and the accuracy is much more stable while the brightness is changing.
|
| 155 |
+
|
| 156 |
+
# 5.2. "Bad" Enhancement
|
| 157 |
+
|
| 158 |
+
The direct solution to get optical flow from dark images is to apply an image-enhancing method before optical flow estimation. Scaling is the simplest way to enhance a dark image and it is a reversible process with little information loss. However, because the scaled raw images suffer from serious noise and color aberration, it unsurprisingly leads to poor optical flow results using existing methods. We then try advanced methods — a traditional enhancing method and a learning-based enhancing method.
|
| 159 |
+
|
| 160 |
+
We present the result of Non-local Means (NLM) [3] as a representative of traditional enhancing methods. It searches similar patches and averages them together to remove the noise. From Figure 7 input block, we can see NLM doesn't correct the color aberration but it produces a relatively stable denoising result. From table 2, we can see that followed by an optical flow model trained on existing FlyingChairs dataset [10], NLM doesn't solve the problem that optical flow models' performance gets worse on low-light images,
|
| 161 |
+
|
| 162 |
+
which is much worse than our result produced from VBOF dataset without NLM processing.
|
| 163 |
+
|
| 164 |
+
We present the result of Learning to See in the Dark (SID) [6] as a representative of learning-based enhancing methods. Chen et al. [6] propose to use U-Net [25] to enhance dark raw images, and they provide their model trained on Sony raw images, so we also use the Sony part of our VBOF dataset to test the method, and we get visually great images using the provided model. (See Figure 6,7) SID does a good job on white balance and the result images are noiseless, but if zooming in to take a closer look, one will find the signal in the image is unstable especially for the extremely dark images. Followed by an optical flow model trained on the existing FlyingChairs dataset [10], SID also doesn't solve the problem of optical flow in the dark. Sometimes SID may lead to worse optical flow results showed in Figure 7.
|
| 165 |
+
|
| 166 |
+
<table><tr><td></td><td colspan="2">Reference</td><td colspan="2">Input (for every block below)</td></tr><tr><td></td><td>First Frame</td><td>Second Frame</td><td>Dark</td><td>Very Dark</td></tr><tr><td></td><td>Optical Flow</td><td></td><td>NLM / SID (Dark)</td><td>NLM / SID (Very Dark)</td></tr></table>
|
| 167 |
+
|
| 168 |
+
<table><tr><td></td><td colspan="3">Existing Method (FlyingChairs)</td><td colspan="3">Our Method (FCDN)</td></tr><tr><td rowspan="3">FlowNetS</td><td>Dark</td><td>Very Dark</td><td>Dark</td><td colspan="3">Very Dark</td></tr><tr><td>NLM / SID</td><td>NLM / SID</td><td>NLM / SID</td><td colspan="3">NLM / SID</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td rowspan="3">FlowNetC</td><td>Dark</td><td>Very Dark</td><td>Dark</td><td colspan="3">Very Dark</td></tr><tr><td>NLM / SID</td><td>NLM / SID</td><td>NLM / SID</td><td colspan="3">NLM / SID</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td rowspan="3">PWC-Net</td><td>Dark</td><td>Very Dark</td><td>Dark</td><td colspan="3">Very Dark</td></tr><tr><td>NLM / SID</td><td>NLM / SID</td><td>NLM / SID</td><td colspan="3">NLM / SID</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 169 |
+
|
| 170 |
+
Figure 7. A detailed evaluation of existing methods and our method. The upper right block serves as the input for all the blocks below, where we evaluate the performance of deriving optical flow from dark images and the enhanced images [3, 6] with various optical flow models [10, 28]. The upper left block serves as a good reference with bright input images and optical flow.
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
|
| 176 |
+
we can see that for everyon our FCDN datasetbrightness descendsg with extreme low
|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
From Table 2 and Figure 7,
|
| 180 |
+
light image inputs.
|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
(a) Sony outdoor ISO 1000
|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
(b) Canon indoor ISO 3200
|
| 191 |
+
|
| 192 |
+

|
| 193 |
+
|
| 194 |
+

|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
(c) Fujifilm outdoor ISO 2500
|
| 198 |
+
Figure 8. Generalization performance of our solution (right) compared to existing methods (middle) evaluated with PWC-Net[28] on images in our VBOF dataset (left) of various cameras, ISO, indoor and outdoor.
|
| 199 |
+
|
| 200 |
+

|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
|
| 204 |
+
There are some other advantages of our solution that are worth pointing out. First, given the same optical flow network and the same light condition, our method's performance on the underexposed input is even better than the existing method's performance on well-exposed input (See Figure 6, Table 2). The reason is that a well-exposed image captured with long exposure or high ISO has different noise distribution from that of a bright one captured in a well-illuminated condition, and the network trained on the latter might not generalize well to the former bright image. Through realistic noise simulation, the network trained on our synthesized data is able to deal with various noise at different brightness levels. Second, from Figure 7,8, we can see that our method can generalize on different camera models in various environments and it's effective for multiple optical flow models.
|
| 205 |
+
|
| 206 |
+
# 6. Discussion
|
| 207 |
+
|
| 208 |
+
Although PWC-Net [28] achieves a higher accuracy on many of optical flow benchmark datasets using a 17 times smaller model than the FlowNet2 model [14], large models like FlowNet2 still performs better on complex real data like the well-exposed images in our VBOF dataset. From this point of view and our statistics, besides achieving a
|
| 209 |
+
|
| 210 |
+
higher performance on low-light images, training a compact model like PWC-Net on our FCDN dataset can also help such small optical flow models learn to deal with complex situations in real images of any exposure more accurately.
|
| 211 |
+
|
| 212 |
+
There are also works published achieving relevant goals in the semantic image segmentation area by adapting models from daytime to nighttime [8] and from clear weather conditions to foggy conditions [26], which bears resemblance to works from the broad field of transfer learning. They mix synthetic data and real data, then gradually adapt a model from clean easy training data to corrupted hard training data, such as from clear weather to light synthetic fog, and finally to dense real fog in multiple steps. We have already proved that directly training optical flow models on our synthetic low-light data is effective, and we believe that training models with our data in a manner of gradually model adaption may also lead to promising results, which can be tried in future work.
|
| 213 |
+
|
| 214 |
+
# 7. Conclusion
|
| 215 |
+
|
| 216 |
+
In this paper, we have presented a data-driven solution to improve optical flow accuracy especially in low-light environments. By synthesizing training data based on the noise model we analyzed on raw images collected in various brightness conditions, we succeed in training optical flow models that outperform the state-of-the-art on the real low-light optical flow dataset — Various Brightness Optical Flow (VBOF) dataset that we collect. VBOF consists of 598 raw images of various brightness with corresponding reference optical flow, aiming to benchmark the brightness robustness of optical flow models. We believe the proposed method, the noise analysis, and the VBOF dataset will be very useful for optical flow tasks in real scenes.
|
| 217 |
+
|
| 218 |
+
# References
|
| 219 |
+
|
| 220 |
+
[1] Abdelrahman Abdelhamed, Stephen Lin, and Michael S. Brown. A high-quality denoising dataset for smartphone cameras. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 3
|
| 221 |
+
[2] Tim Brooks, Ben Mildenhall, Tianfan Xue, Jiawen Chen, Dillon Sharlet, and Jonathan T Barron. Unprocessing images for learned raw denoising. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 11036-11045, 2019. 2, 4, 5
|
| 222 |
+
[3] Antoni Buades, Bartomeu Coll, and Jean-Michel Morel. Non-local means denoising. Image Processing On Line, 1:208-212, 2011. 2, 3, 6, 7
|
| 223 |
+
[4] Daniel J Butler, Jonas Wulff, Garrett B Stanley, and Michael J Black. A naturalistic open source movie for optical flow evaluation. In European conference on computer vision, pages 611-625. Springer, 2012. 2, 3
|
| 224 |
+
[5] Chen Chen, Qifeng Chen, Minh Do, and Vladlen Koltun. Seeing motion in the dark. 2019. 3
|
| 225 |
+
[6] Chen Chen, Qifeng Chen, Jia Xu, and Vladlen Koltun.
|
| 226 |
+
|
| 227 |
+
Learning to see in the dark. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3291-3300, 2018. 1, 2, 3, 4, 5, 6, 7
|
| 228 |
+
[7] Guangyong Chen, Fengyuan Zhu, and Pheng Ann Heng. An efficient statistical method for image noise level estimation. In Proceedings of the IEEE International Conference on Computer Vision, pages 477-485, 2015. 5
|
| 229 |
+
[8] Dengxin Dai and Luc Van Gool. Dark model adaptation: Semantic image segmentation from daytime to nighttime. In 2018 21st International Conference on Intelligent Transportation Systems (ITSC), pages 3819-3824. IEEE, 2018. 8
|
| 230 |
+
[9] Aram Danielyan, Vladimir Katkovnik, and Karen Egiazarian. Bm3d frames and variational image deblurring. IEEE Transactions on Image Processing, 21(4):1715-1728, 2011. 2, 3
|
| 231 |
+
[10] Alexey Dosovitskiy, Philipp Fischer, Eddy Ilg, Philip Hausser, Caner Hazirbas, Vladimir Golkov, Patrick Van Der Smagt, Daniel Cremers, and Thomas Brox. Flownet: Learning optical flow with convolutional networks. In Proceedings of the IEEE international conference on computer vision, pages 2758-2766, 2015. 2, 4, 5, 6, 7
|
| 232 |
+
[11] Alessandro Foi, Mejdi Trimeche, Vladimir Katkovnik, and Karen Egiazarian. Practicaloissonian-gaussian noise modeling and fitting for single-image raw-data. IEEE Transactions on Image Processing, 17(10):1737-1754, 2008. 4
|
| 233 |
+
[12] Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. Vision meets robotics: The kitti dataset. The International Journal of Robotics Research, 32(11):1231-1237, 2013. 2, 3
|
| 234 |
+
[13] Berthold KP Horn and Brian G Schunck. Determining optical flow. Artificial intelligence, 17(1-3):185–203, 1981. 1
|
| 235 |
+
[14] Eddy Ilg, Nikolaus Mayer, Tonmoy Saikia, Margret Keuper, Alexey Dosovitskiy, and Thomas Brox. Flownet 2.0: Evolution of optical flow estimation with deep networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2462-2470, 2017. 1, 2, 3, 5, 8
|
| 236 |
+
[15] Ronnachai Jaroensri, Camille Biscarrat, Miika Aittala, and Frédo Durand. Generating training data for denoising real rgb images via camera pipeline simulation. arXiv preprint arXiv:1904.08825, 2019. 2
|
| 237 |
+
[16] Ruoteng Li, Robby T Tan, and Loong-Fah Cheong. Robust optical flow in rainy scenes. In Proceedings of the European Conference on Computer Vision (ECCV), pages 288-304, 2018. 2
|
| 238 |
+
[17] Ruoteng Li, Robby T Tan, Loong-Fah Cheong, Angelica I Aviles-Rivero, Qingnan Fan, and Carola-Bibiane Schonlieb. Rainflow: Optical flow under rain streaks and rain veiling effect. In Proceedings of the IEEE International Conference on Computer Vision, pages 7304-7313, 2019. 2
|
| 239 |
+
[18] Kin Gwn Lore, Adedotun Akintayo, and Soumik Sarkar. Linet: A deep autoencoder approach to natural low-light image enhancement. Pattern Recognition, 61:650-662, 2017. 2
|
| 240 |
+
[19] Feifan Lv, Feng Lu, Jianhua Wu, and Chongsoon Lim. Mblen: Low-light image/video enhancement using cnns. In BMVC, page 220, 2018. 2
|
| 241 |
+
[20] Feifan Lv, Yinqiang Zheng, Yicheng Li, and Feng Lu. An integrated enhancement solution for 24-hour colorful imaging. In Proceedings of the AAAI conference on artificial intelligence, 2020. 2, 3
|
| 242 |
+
|
| 243 |
+
[21] Feifan Lv, Yinqiang Zheng, Bohan Zhang, and Feng Lu. Turn a silicon camera into an ingaas camera. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5987-5995, 2019. 3
|
| 244 |
+
[22] Nikolaus Mayer, Eddy Ilg, Philip Hausser, Philipp Fischer, Daniel Cremers, Alexey Dosovitskiy, and Thomas Brox. A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4040-4048, 2016. 2
|
| 245 |
+
[23] Ben Mildenhall, Jonathan T Barron, Jiawen Chen, Dillon Sharlet, Ren Ng, and Robert Carroll. Burst denoising with kernel prediction networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2502-2510, 2018. 2
|
| 246 |
+
[24] Tobias Plotz and Stefan Roth. Benchmarking denoising algorithms with real photographs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1586-1595, 2017. 2, 4, 5
|
| 247 |
+
[25] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pages 234-241. Springer, 2015. 3, 6
|
| 248 |
+
[26] Christos Sakaridis, Dengxin Dai, Simon Hecker, and Luc Van Gool. Model adaptation with synthetic and real data for semantic dense foggy scene understanding. In Proceedings of the European Conference on Computer Vision (ECCV), pages 687-704, 2018. 3, 8
|
| 249 |
+
[27] Christos Sakaridis, Dengxin Dai, and Luc Van Gool. Semantic foggy scene understanding with synthetic data. International Journal of Computer Vision, 126(9):973-992, 2018. 3
|
| 250 |
+
[28] Deqing Sun, Xiaodong Yang, Ming-Yu Liu, and Jan Kautz. Pwc-net: Cnns for optical flow using pyramid, warping, and cost volume. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8934-8943, 2018. 1, 2, 5, 6, 7, 8
|
opticalflowinthedark/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1149c2bc158c5c0013f8674a1a59fb6caf57adc4597c8151c3fa8609f4a3d8fd
|
| 3 |
+
size 681778
|
opticalflowinthedark/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10f7408e40213b4c1e16b40733685ac6b10b794f54951c84619c2f53690283ab
|
| 3 |
+
size 280544
|
opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:906d3d601faa94071875bd1d799a9e3f79f48207ad2cb30a8407814d67f6d2fe
|
| 3 |
+
size 70154
|
opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7491468d32bce364cb06cb28250563fd423f5a95bc701579ccd393d8d72e8afb
|
| 3 |
+
size 86199
|
opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c36952b0af403c663e7059b1f2fb945250b284359bd44770de8a2a429e8db0e
|
| 3 |
+
size 4577071
|
opticalnonlineofsightphysicsbased3dhumanposeestimation/full.md
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Optical Non-Line-of-Sight Physics-based 3D Human Pose Estimation
|
| 2 |
+
|
| 3 |
+
Mariko Isogawa, Ye Yuan, Matthew O'Toole, Kris Kitani Carnegie Mellon University
|
| 4 |
+
|
| 5 |
+

|
| 6 |
+
Figure 1. Non-Line-of-Sight (NLOS) Physics-Based 3D Human Pose Estimation. A pulsed laser and a transient sensor record the time light takes to travel from a point on a wall to the person hidden from sight (left). Given a sequence of 3D transient measurements from an optical NLOS system (top right), our method estimates a 3D pose sequence using a physics-based policy (bottom right).
|
| 7 |
+
|
| 8 |
+

|
| 9 |
+
|
| 10 |
+
# Abstract
|
| 11 |
+
|
| 12 |
+
We describe a method for 3D human pose estimation from transient images (i.e., a 3D spatio-temporal histogram of photons) acquired by an optical non-line-of-sight (NLOS) imaging system. Our method can perceive 3D human pose by 'looking around corners' through the use of light indirectly reflected by the environment. We bring together a diverse set of technologies from NLOS imaging, human pose estimation and deep reinforcement learning to construct an end-to-end data processing pipeline that converts a raw stream of photon measurements into a full 3D human pose sequence estimate. Our contributions are the design of data representation process which includes (1) a learnable inverse point spread function (PSF) to convert raw transient images into a deep feature vector; (2) a neural humanoid control policy conditioned on the transient image feature and learned from interactions with a physics simulator; and (3) a data synthesis and augmentation strategy based on depth data that can be transferred to a real-world NLOS imaging system. Our preliminary experiments suggest that our method is able to generalize to real-world NLOS measurement to estimate physically-valid 3D human poses. $^{1}$
|
| 13 |
+
|
| 14 |
+
# 1. Introduction
|
| 15 |
+
|
| 16 |
+
Our goal is to develop a vision-based human pose estimation technique capable of inferring the 3D pose sequence
|
| 17 |
+
|
| 18 |
+
of a person without direct line of sight from the sensing device (see Fig. 1). To this end, this work brings together, for the first time, state-of-the-art techniques in computational imaging, human pose estimation, humanoid control, and deep reinforcement learning – all under one system architecture. From computational imaging, we use volumetric reconstruction algorithms that efficiently process transient measurements (a 3D spatio-temporal histogram of photons) captured from a non-line-of-sight (NLOS) imaging system. From vision-based pose estimation and humanoid control, we make use of deep reinforcement learning in a physics simulator to learn an image feature-conditioned 3D human pose policy that abides by the laws of physics. All components are integrated into a single end-to-end learnable architecture which takes the raw transient images, converts them to a deep feature representation using a learnable inverted point spread function (PSF), and uses a neural humanoid control policy conditioned on the deep feature to estimate physically valid 3D human poses. In short, our proposed end-to-end system models the complete flow of information from the photon-level all the way to the high-level cognitive task of 3D human pose estimation.
|
| 19 |
+
|
| 20 |
+
In order to capture the actions of a person around a corner, we employ a NLOS imaging technique using a pulsed laser and a time-of-flight sensor [30]. The imaging process involves sending light pulses towards a visible surface, and measuring the travel time of light reflected back in response; this represents a "transient image" [31, 4, 16]. The transient image used here is a 3D volume that encodes the ar
|
| 21 |
+
|
| 22 |
+
rival of individual photons over a spatial region (first two dimensions) and over time (third dimension); see Fig. 1 for a sequence of transient images. Optical NLOS imaging at visible or near-IR wavelengths offers several advantages, such as the ability to image at long-ranges [3], reconstruct surfaces at micron-scales [32], and robustly perform imaging for multiple objects with different BRDFs [13].
|
| 23 |
+
|
| 24 |
+
While NLOS imaging gives us the ability to look around corners, the raw transient measurements acquired by a NLOS system have several unique properties that make 3D human pose estimation difficult. In order to attain fast image acquisition necessary for 3D human pose understanding, existing NLOS solutions limit the resolution of the transient image in both space and time [13]. This makes it difficult to capture small shape details and fast motion, both of which are important for estimating a human pose sequence. Furthermore, due to the light lost after multiple scattering events, very few photons reach the sensor and the acquired transient image can therefore be very noisy. All of these characteristics make it very challenging to estimate 3D human pose directly from the transient image.
|
| 25 |
+
|
| 26 |
+
Due to the noisy nature of transient images, it is important to make use of prior information about the body and its dynamics to help solve the 3D human pose estimation problem. In particular, we have prior knowledge about the structure of the human body (e.g., arms, head, and legs are connected to the torso) and we also know that human pose must abide by the laws of physics. Based on this prior knowledge, we make use of a parametrized humanoid model and a physics-based deep reinforcement learning approach to estimate 3D human pose from a sequence of transient images. Inspired by [35], we first define a Markov Decision process (MDP) where the state is defined as the current pose of a humanoid model and a sequence of transient images, the action is defined as the target joint angles of a humanoid, the environment is a physics simulator (i.e., MuJoCo [28]) and the reward function is an imitation-based objective function [18]. By solving the MDP via reinforcement learning, we are able to learn an optimal policy that maps states to actions. In our scenario, the policy function encodes how the humanoid should move such that it best explains the 3D pose information captured in the transient image sequence.
|
| 27 |
+
|
| 28 |
+
The deep neural network design used to implement the policy of the MDP is a critical representational element of the system, as it must have the computational components necessary to map a 3D transient image to a vector of humanoid joint angles. Inspired by recent NLOS imaging techniques, we model our network based on existing reconstruction algorithms used to process transient images, and introduce P2PSF Net: a neural network that learns "corrections" that improve the NLOS image reconstruction process. A deep feature computed by the P2PSF Net is then passed to a bi-directional recurrent neural architecture to
|
| 29 |
+
|
| 30 |
+
ensure that the output of the policy (the next joint position) follows the laws of motion and matches demonstrated human pose dynamics. The ambitious goals of the policy is to estimate fine-scale 3D human pose from transient images and overcome the resolution limits and noisy characteristics of NLOS imaging.
|
| 31 |
+
|
| 32 |
+
As mentioned above, the MDP formulation for human pose estimation makes use of an imitation-based reward function which requires a large amount of annotated data in the form of transient images and a corresponding 3D human pose sequence. As a practical matter, current NLOS imaging systems are quite costly to build and non-trivial to calibrate. As such, the need for a large amount of annotated data and the cost of collecting such data are at odds with each other. While we do believe that these practical hurdles will be resolved through new innovations over time, for this work, we address them by synthesizing pseudo-transient images using the 3D body volume recovered with a depth camera. To learn our MDP policy, we rely solely on this synthetic data synchronized with ground truth 3D human pose acquired by a motion capture system.
|
| 33 |
+
|
| 34 |
+
Synthesizing transient images from depth maps for training can create a large domain gap between the training and test data distributions. To ensure that we minimize the size of this domain gap, it is critical to implement principled data augmentation techniques based on the physics of the imaging process, e.g., reproducing the noise characteristics associated with real transient images. We introduce several augmentation techniques to make the 3D human pose estimation policy able to handle real-world NLOS data.
|
| 35 |
+
|
| 36 |
+
To summarize, our contributions are as follows:
|
| 37 |
+
|
| 38 |
+
(1) We are the first to propose an end-to-end data processing pipeline that models information flow from optical NLOS transient measurements to 3D human pose estimation.
|
| 39 |
+
(2) We present a novel policy network architecture that integrates a inverse point spread function (PSF), transient images, and human pose as one deep neural network.
|
| 40 |
+
(3) We describe a method for generating pseudo (i.e., synthetic) transient images from depth images. We propose several critical processes for augmenting pseudo-transient images to help the learned 3D human pose policy to generalize better to real-world data.
|
| 41 |
+
(4) We provide extensive experimentation with both synthetic and real transient images and show that our model outperforms other baseline methods.
|
| 42 |
+
|
| 43 |
+
# 2. Related Work
|
| 44 |
+
|
| 45 |
+
NLOS Imaging and Its Applications. NLOS imaging has received significant attention recently [1, 2, 3, 6, 8, 9, 10, 12, 13, 17, 30, 14, 21, 27, 29, 32, 36]. This includes a wide variety of solutions, in terms of hardware systems and reconstruction algorithms, that operate in different parts of the electromagnetic spectrum. Most NLOS solutions
|
| 46 |
+
|
| 47 |
+
work with visible (380-740 nm) or near-IR (740-1500 nm) light [3, 13, 32]; we refer to these as optical NLOS systems. Others choose to operate at longer wavelengths, including long-wave IR (8-15 um) [14], terahertz (millimeter scale) [21], WiFi and radio frequency (RF) (centimeter scale) [10], or even sound waves [12].
|
| 48 |
+
|
| 49 |
+
Operating in a specific part of the spectrum affects the nature of the NLOS signal that can be used for pose estimation. For example, RF or WiFi signals enable through-the-wall pose estimation [1, 10, 36], since longer electromagnetic waves tend to pass through objects; however, as highlighted in Fig. 2, this also comes at a number of fundamental limitations when estimating pose dynamics: the spatial and angular resolution must be limited, making it hard to distinguish small objects or motions; objects tend to behave specularly at long wavelengths, presenting a challenge when attempting to form images; RF signals can be highly attenuated when passing through thick objects; and RF signals are blocked entirely when passing through other surfaces, like metal or water. As a result, they cannot always be applied to scenes shown in Fig. 2 (a), (c) and (d).
|
| 50 |
+
|
| 51 |
+
Rather than using RF signals to attempt imaging through walls, most NLOS works choose to operate in the optical domain and image around corners. This is done by reflecting light off of walls to indirectly illuminate a hidden scene, and measuring the time light takes to return to the wall with transient sensors, e.g., single photon avalanche diodes (SPADs). Amongst these works, many attempt to reconstruct 3D volumes [6, 13, 17, 30] where each voxel represents the scene's reflectivity at a 3D location; or compute a surface representation [29, 32], offering the potential for more accurate reconstructions. Even regular cameras can be used to track a person walking around in a room under either passive [2] or active [8, 9, 27] illumination.
|
| 52 |
+
|
| 53 |
+
Data-driven methods for optical NLOS imaging have also received some attention, e.g., to discretely classify the pose of a human from raw transient measurements [24] or form NLOS images with a regular camera [27]. Network architectures have also been proposed for denoising transient measurements from SPADs, in the context of line-of-sight imaging [11]. However, there has been no prior work addressing the task of learning full physics-based 3D human pose estimation in a NLOS context.
|
| 54 |
+
|
| 55 |
+
Physics Based 3D Human Pose Estimation. Enforcing physics-based on constraints on human pose dynamics is used commonly for simulated humanoid control [18, 19, 20, 34, 35]. These methods use deep reinforcement learning (DeepRL) to learn control policies that can reproduce humanoid motion inside a physics simulator. Among these methods, [34, 35] use the optical flow of egocentric videos as additional inputs to the motion policy to estimate physically-valid human poses. We use a similar RL-based pose estimation framework proposed in [35] for its ability to
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
Figure 2. Overview of WiFi/RF (i.e., through-the-wall) and visible/near-IR (i.e., around-the-corner) NLOS human pose estimation. (a) The person is hidden from view in a nearby corridor, but seen indirectly by reflecting light off of a visible surface. (b) The person is hidden in an enclosed room, which can only be accessed with WiFi/RF that pass through walls. (c) The person is within a partially-enclosed space that can be accessed through either method. (d) The walls are either too thick or made from a material that prevents WiFi and RF signals from passing through.
|
| 59 |
+
|
| 60 |
+
estimate physically-accurate human poses with only limited amounts of visually information. However, the transient images that we use as input present many new challenges when learning the policy, which we address in this paper.
|
| 61 |
+
|
| 62 |
+
# 3. Methodology
|
| 63 |
+
|
| 64 |
+
There are three key ideas behind our method. First, to model physically-valid human pose, we use a humanoid model inside a physics simulator and model hidden 3D human pose as the result of a humanoid control policy conditioned on the input transient images (Sec. 3.1). Second, to make our model applicable to real captured data, we synthesize "pseudo-transient" images as training data which replicates the visual characteristics of real transient measurements (Sec. 3.2). Third, to enhance our pose estimation, we further introduce P2PSF Net that improves the NLOS imaging process (Sec. 3.3).
|
| 65 |
+
|
| 66 |
+
# 3.1. Physics-based 3D Pose Estimation Framework
|
| 67 |
+
|
| 68 |
+
Given a sequence of transient images $\tau_{1:T}$ , the goal of our physics-based pose estimation pipeline is to predict a physically-valid pose sequence $p_{1:T}$ . As shown in Fig. 3, the pipeline contains two main parts: (1) We use a feature extractor consisting of the NLOS imaging pipeline and P2PSF Net to extract transient features $\psi_{1:T}$ from the transient images $\tau_{1:T}$ ; (2) We use a humanoid policy conditioned on the transient features $\psi_{1:T}$ to control the humanoid inside a physics simulator and generate the pose sequence $p_{1:T}$ underlying the transient images. In this section, we will focus on part 2, i.e., humanoid control, and leave details on how to extract transient features (part 1) to Sec. 3.2 and 3.3.
|
| 69 |
+
|
| 70 |
+
Following [35], we formalize the task of estimating a
|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
Figure 3. Our DeepRL based photons to 3D human pose estimation framework under the laws of physics.
|
| 74 |
+
|
| 75 |
+

|
| 76 |
+
|
| 77 |
+
pose sequence $p_{1:T}$ from a transient image sequence $\tau_{1:T}$ with a Markov Decision process (MDP). The MDP is defined by a tuple $\mathcal{M} = (S, A, P, R, \gamma)$ of states, actions, transition dynamics, a reward function, and a discount factor. As Fig. 3 shows, at each time step, the humanoid agent samples an action $a_t$ from a policy $\pi(a_t|s_t)$ whose input state $s_t$ contains both the visual context $\phi_t$ (defined later) and the humanoid state $z_t$ (i.e., position and velocity of the human model joints). Next, the environment generates the next state $s_{t+1}$ through physics simulation and gives the agent a reward $r_t$ based on how well the humanoid's 3D pose aligns with the ground-truth. To solve this MDP, we apply the PPO policy gradient method [25] to obtain the optimal policy $\pi^*$ that maximizes the expected discounted return $\mathbb{E}[\sum_{t=1}^{T} \gamma^{t-1} r_t]$ . At test time, starting from some initial state $s_1$ , we roll out the policy $\pi^*$ to generate state sequence $s_{1:T}$ , from which we extract the output pose sequence $p_{1:T}$ . In the following, we will discuss the details of each component.
|
| 78 |
+
|
| 79 |
+
State $s_t$ consists of the state of the humanoid $z_t$ and the visual context $\phi_t$ . $z_t$ consists of the pose $p_t$ (root position/orientation and joint angles) and velocity $v_t$ (root linear/angular velocities and joint velocities). The visual context $\phi_t$ is extracted from the transient feature $\psi_{1:T}$ with a bi-directional LSTM (BiLSTM) as shown in Fig. 3. During training, we set the starting state $z_1$ to the ground-truth $\hat{z}_1$ . Since we have no access to the ground truth at test time, we learn a regressor $\mathcal{F}$ that maps the visual context $\phi_t$ to its corresponding state $z_t$ .
|
| 80 |
+
|
| 81 |
+
Action $a_{t}$ specifies the target joint angles of the Proportional-Derivative (PD) controller for each degree of freedom (DoF) of the humanoid joints except for the root. The joint torques are computed based on the stable PD controllers in [26] using the specified target joint angles $a_{t}$ .
|
| 82 |
+
|
| 83 |
+
Policy $\pi_{\theta}(a_t|s_t)$ is represented by a Gaussian distribution $\mathcal{N}(\mu; \Sigma)$ with a fixed diagonal covariance matrix treated as hyperparameters. We use a $\theta$ -parametrized multilayer perceptron (MLP) with two hidden layers (300, 200) and ReLU
|
| 84 |
+
|
| 85 |
+
activations to model the mapping from $s_t$ to the mean $\mu_t$ . Reward function. To encourage the policy to output a pose sequence $p_{1:T}$ that matches the ground-truth $\hat{p}_{1:T}$ , we use the reward function proposed in [35]. The specific design of the reward function is given in the supplementary materials.
|
| 86 |
+
|
| 87 |
+
# 3.2. Pseudo-Transient Image
|
| 88 |
+
|
| 89 |
+
Before introducing our transient data synthesis from depth maps (Sec. 3.2.2), we provide background on the NLOS imaging procedure used in this work in Sec. 3.2.1.
|
| 90 |
+
|
| 91 |
+
# 3.2.1 Background: Confocal NLOS Imaging
|
| 92 |
+
|
| 93 |
+
Confocal NLOS imaging refers to a specialized raster-scanning procedure for capturing transient measurements [17]. Measurements are the result of illuminating and imaging a common point $(x', y')$ on a visible surface. After illuminating this point with a pulse laser, light scatters to hidden regions of an environment and returns back to the wall at a later instant of time. A SPAD measures the transient response at this same point, represented as a histogram of photon arrival times [16]. This procedure is repeated for a uniform and planar 2D grid of points across the surface; the collection of transients is stored as a 3D transient image $\tau(x, y, t)$ .
|
| 94 |
+
|
| 95 |
+
The objective of NLOS imaging is to convert this 3D transient $\tau(x', y', t)$ into a discretized reconstruction volume $\rho(x, y, z)$ , which represents the reflectivity at every point $(x, y, z)$ in space. The presence of an object in voxel $(x, y, z)$ produces a non-zero reflectance value $\rho(x, y, z)$ where the wall is located at $z = 0$ .
|
| 96 |
+
|
| 97 |
+
After resampling the transient measurements $\tau$ along the time dimension $(\tilde{\tau} = R_{t}\{\tau\})$ and resampling the reconstruction volume $\rho$ along the depth dimension $(\tilde{\rho} = R_{z}\{\rho\})$ , the forward image formation model for confocal NLOS images becomes a simple 3D convolution operation [17]:
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\tilde {\tau} = h * \tilde {\rho}, \tag {1}
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
where the hidden volume $\tilde{\rho}$ is convolved with a known 3D point spread function (PSF) represented by $h$ . This PSF $h$ describes the transient response of a single scatterer.
|
| 104 |
+
|
| 105 |
+
Equivalently, we can rewrite this convolution in matrix-vector form as follows:
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\tau = R _ {t} ^ {- 1} F ^ {- 1} \hat {H} F R _ {z} \rho , \tag {2}
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
where we vectorize volumes $\tau$ and $\rho$ . The matrix $F$ represents a 3D discrete Fourier transform and $\hat{H}$ is a diagonal matrix representing the Fourier transform of the PSF $h$ .
|
| 112 |
+
|
| 113 |
+
The NLOS imaging process reconstructs a 3D volume $\rho_{*}$ from a transient image $\tau$ by inverting Eq. 2 and solving a 3D deconvolution procedure (e.g., using the Wiener filter):
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\rho_ {*} = R _ {z} ^ {- 1} F ^ {- 1} \underbrace {\left[ \frac {\hat {H} ^ {*}}{| \hat {H} | ^ {2} + \frac {1}{\alpha}} \right]} _ {\text {t h e i n v e r s e P S F}} F R _ {t} \tau , \tag {3}
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
where a user-defined parameter $\alpha$ controls how sensitive the inverse PSF is to noise.
|
| 120 |
+
|
| 121 |
+
# 3.2.2 Pseudo-Transient Image Synthesis
|
| 122 |
+
|
| 123 |
+
We propose a procedure for synthesizing pseudo-transient images to generate annotated training data for our pose estimator. This involves using a motion capture (MoCap) system to obtain 3D ground truth human pose, which is synchronized with a depth camera to capture depth images used for synthesizing pseudo-transient images.
|
| 124 |
+
|
| 125 |
+
Given a depth map $d(x,y)$ , we compute a corresponding synthesized reflectance volume for our scene: $\rho_s(x,y,z) = a$ when $z = d(x,y)$ , and zero otherwise. The scalar $a = 100$ is a constant value representing the amount of light reflected by voxels in the volume. We then convert the synthesized volume $\rho_s$ into transient measurements $\tau$ by using the image formation model described in Eq. 2.
|
| 126 |
+
|
| 127 |
+
Note, however, that the image formation model is currently incomplete, since it does not model all characteristics of real-world transient measurements. For dynamic scenes (e.g., a person walking around in a room), acquisition times must be short. Raster scanning transient measurements, therefore, is affected by motion, and the number of sampled points on the wall may be limited. The sensors used for NLOS imaging (e.g., SPADs) are also affected by different types of sensor noise.
|
| 128 |
+
|
| 129 |
+
To close the domain gap that exists between the synthesized data and the real transient measurements, we introduce Poisson noise, temporal blur, temporal shifts, and temporal re-sampling into the image formation model.
|
| 130 |
+
|
| 131 |
+
Poisson noise. At low light levels, the number of photons detected by a SPAD approximately follow Poisson noise
|
| 132 |
+
|
| 133 |
+
characteristics [16]. We therefore apply Poisson noise to our synthetic transient measurements, as a post-process operation on Eq. 2.
|
| 134 |
+
|
| 135 |
+
Temporal blur. The temporal profile of a transient measurement is affected by jitter and the shape of the laser pulse. The result is that the transient measurements become blurred in the time domain. Before the Poisson noise step, we introduce temporal blur by convolving the transients measurements with a Gaussian [16]. The standard deviation of the Gaussian is characterized by its full width at half maximum (FWHM), which is reported to be 70 picoseconds for the real-world NLOS data used in this work [13].
|
| 136 |
+
|
| 137 |
+
Temporal shift. The arrival times of photons are correlated with the distance of the hidden person from the wall. We augment our data by biasing the depth values by a constant amount $d$ prior to synthesizing pseudo-transient images, which temporally shifts the transient images. In our experiments, we make use of five levels of shifts, augmenting the training data up to a factor of five.
|
| 138 |
+
|
| 139 |
+
Temporal re-sampling. Confocal NLOS imaging requires raster scanning a visible surface point by point. The mechanics of current systems impose limits on the speed of this raster scanning procedure. For example, we make use of NLOS data sampled at $32 \times 32$ locations at a frame rate of only $4\mathrm{Hz}$ [13]. Since points and corresponding transients are scanned sequentially, performance of pose estimation can be affected by fast moving body parts.
|
| 140 |
+
|
| 141 |
+
We propose a procedure to temporally re-sample transient data. First, to simulate the raster scanning procedure, we capture depth maps at $30\mathrm{Hz}$ , convert them to pseudotransient measurements, and simulate raster-scanned measurements by down-sampling the result to $4\mathrm{Hz}$ . Second, we up-sample the pseudo-transient data from $4\mathrm{Hz}$ back to $30\mathrm{Hz}$ . Each transient image is a collection of transients scanned from time $t_k$ to $t_k + \frac{1}{4}$ , where $t_k = \frac{k}{4}$ represents the start time of the $k^{\mathrm{th}}$ frame (in seconds). To generate a 30 Hz transient sequence, we simply assemble transients captured within the same time range, but set the start time of the $k^{\mathrm{th}}$ frame to $t_k = \frac{k}{30}$ . For real transient images used at test time, we also perform above procedure to up-sample them to $30\mathrm{Hz}$ to be compatible with the humanoid policy.
|
| 142 |
+
|
| 143 |
+
# 3.3. P2PSF Net: Photon to Inverse PSF Network
|
| 144 |
+
|
| 145 |
+
To predict 3D human pose from transient images, as discussed in Sec. 3.1, Our DeepRL based framework needs a feature extractor to obtain transient feature $\psi_t$ from transient image $\tau_t$ . We model the feature extractor by incorporating aspects of the confocal NLOS imaging process (described in Sec. 3.2.1) into our feature extractor network. Note that learning to estimate 3D human pose from transient images is challenging for two key reasons: (1) the transient images are noisy, have low spatial resolution, and are recorded at slow frame rates; (2) the inverse PSF, labeled
|
| 146 |
+
|
| 147 |
+
in Eq. 3, makes several simplifying assumptions about the NLOS imaging process.
|
| 148 |
+
|
| 149 |
+
To overcome these challenges, we propose P2PSF Net: the photon-to-inverse-PSF network. Its objective is to adjust the inverse PSF volume used in the confocal NLOS reconstruction process (e.g., to help handle realistic sensor noise, calibration errors, motion during the acquisition period). P2PSF Net is a 3D volume-to-volume network with nine 3D convolution layers (see Fig. 3). It also has two residual connections, which are inspired by past works [5, 22]. Given a transient image of resolution $(x,y,t) = 32\times 32\times 64$ , the network outputs a volume $(x,y,d) = 128\times 64\times 64$ matching the size of the inverse PSF volume used in confocal NLOS imaging.
|
| 150 |
+
|
| 151 |
+
To extract transient features $\psi_t$ , we first reconstruct the reflectance volume $\rho_*$ following the procedure used in confocal NLOS imaging (Eq. 3) with the modification that we add the output of P2PSF Net as a corrective volume to the inverted PSF volume. Given the reconstructed reflectance volume $\rho_*$ , we then generate a 2D heat map by applying a single max pooling layer across the depth axis of the volume. The 2D heat map is then passed to a ResNet-18 [5] pretrained on ImageNet [23] to extract $\psi_t$ .
|
| 152 |
+
|
| 153 |
+
# 4. Experimental Settings
|
| 154 |
+
|
| 155 |
+
# 4.1. Datasets
|
| 156 |
+
|
| 157 |
+
Pseudo-Transient Image Dataset. We generated a large set of synthetic pseudo-transient images from MoCap data. The dataset is 1 hour long and has 103200 frames with 30 FPS. It consists of five subjects performing various complex motions: walking, jumping, turning, bending backward/forward, rotating, and transitioning between all of these motions. Our method does not require segmenting the pose sequences or labeling the actions.
|
| 158 |
+
|
| 159 |
+
Real Captured Transient Image Dataset. To further showcase our methods applicability, we also test our method on actual transient images [13]. This is a challenging dataset since it contains a different subject and the data acquisition conditions are different compared to the training data. This test data also contains significant noise, samples a sparse grid $(32 \times 32)$ , and records measurements at a low frame-rate (i.e., $4\mathrm{Hz}$ ). The person is wearing a retroreflective tracksuit to increase the light signal used in NLOS imaging. Through our temporal re-sampling procedure (Sec. 3.2.2), we up-sampled this data to 30 FPS and 1000 frames. Since this dataset has no pose ground truth, we extract 2D keypoint ground truth with AlphaPose [33] using a third-person RGB camera.
|
| 160 |
+
|
| 161 |
+
# 4.2. Baseline Methods
|
| 162 |
+
|
| 163 |
+
1. V2V-PoseNet [15]: Since there is no existing work on optical NLOS human pose estimation from tran
|
| 164 |
+
|
| 165 |
+
sient images, we compare against the state-of-the-art method, V2V-PoseNet, for depth volume-based pose estimation [15]. We train V2V-PoseNet using the reconstructed depth volume $\rho_{*}$ computed from our synthetic pseudo-transient images using the regular NLOS imaging process (without P2PSF Net) defined in Eq. 3.
|
| 166 |
+
|
| 167 |
+
2. **PoseReg:** To investigate the effect of physics inside our physics-based pose estimation framework, we compare our method a regression-based method, which directly maps the visual context $\phi_t$ to the humanoid state $z_t$ without using any physics. We integrate root linear/angular velocities to generate global positions and orientations of the pose sequence.
|
| 168 |
+
3. PoseReg w/o P2PSF: a variant of PoseReg that does not use proposed P2PSF Net in the NLOS imaging process.
|
| 169 |
+
4. Ours w/o P2PSF: a variant of our method that does not use proposed P2PSF Net.
|
| 170 |
+
|
| 171 |
+
# 4.3. Evaluation Metrics
|
| 172 |
+
|
| 173 |
+
We use the following metrics to evaluate both the accuracy and physical correctness of each method:
|
| 174 |
+
|
| 175 |
+
1. Mean Per-Joint Position Error (MPJPE): a pose-based metric that measures the Euclidean distance (measured in millimeters) between the ground truth and prediction for a joint defined as $\frac{1}{T} \Sigma_{t=1}^{T} \Sigma_{j=1}^{J} \left\| \left(x_{t}^{j} - x_{t}^{root}\right) - \left(\hat{x}_{t}^{j} - \hat{x}_{t}^{root}\right) \right\|_{2}$ , where $x_{t}^{j}$ is the $j^{\text{th}}$ joint position of estimated pose and $\hat{x}_{t}^{j}$ is the ground truth. $x_{t}^{root}$ and $\hat{x}_{t}^{root}$ represent root joint positions of the estimate and the ground truth.
|
| 176 |
+
2. 2D Keypoint Error $(\mathbf{E}_{\mathrm{key}})$ : A pose-based metric used for real captured dataset, calculated as $\frac{1}{TJ}\Sigma_{t=1}^{T}\Sigma_{j=1}^{J}||y_t^j - \hat{y}_t^j||_2$ . Here, $y_t^j$ is the $j^{\mathrm{th}}$ 2D keypoint of estimated pose and $\hat{y}_t^j$ is the ground truth. For both estimated and ground-truth, we set the hip keypoint as the origin and scale the coordinates to make the height between shoulder and hip equal to 0.5.
|
| 177 |
+
3. Velocity Error $(\mathbf{E}_{\mathrm{vel}})$ : A physics-based metric that measures the Euclidean distance between the generated velocity sequence $v_{1:T}$ and the ground-truth $\hat{v}_{1:T}$ , calculated as $\frac{1}{T}\Sigma_{t=1}^{T}||v_t - \hat{v}_t||_2$ .
|
| 178 |
+
4. Average Acceleration $(\mathbf{A}_{\mathrm{accl}})$ : A physics-based metric that uses the average magnitude of joint accelerations to measure the smoothness of the pose sequence, calculated as $\frac{1}{TN}\sum_{t=1}^{T}||\dot{v}^t||_1$ where $\dot{v}_t$ denotes joint accelerations and $N$ is the number of actuated DoFs.
|
| 179 |
+
|
| 180 |
+
# 4.4. Implementation Details
|
| 181 |
+
|
| 182 |
+
Simulation Environment. We use MuJoCo [28] as the physics simulator for a humanoid that consists of 58 DoFs and 21 rigid bodies. We use stable PD controllers [26] to compute joint torques. The gains $k_{p}$ ranges from 50 to 500,
|
| 183 |
+
|
| 184 |
+

|
| 185 |
+
Figure 4. Qualitative results for (a) single-subject and (b) cross-subject pose estimation.
|
| 186 |
+
|
| 187 |
+
where joints such as legs and spine have larger gains while arms and head have smaller gains; $k_{d}$ is set to $0.1k_{p}$ .
|
| 188 |
+
|
| 189 |
+
Networks and Training. We set the reward weights $(w_{q}, w_{e}, w_{p}, w_{v})$ to (0.5, 0.3, 0.1, 0.1). We use PPO [25] with a clipping epsilon of 0.2 for policy optimization. The discount factor $\gamma$ is 0.95. We use Adam [7] to optimize the policy and value function with learning rate 5e-5. The policy typically converges after 3k iterations, which takes about a day on a GeForce RTX 2080 Ti.
|
| 190 |
+
|
| 191 |
+
# 5. Experiments and Results
|
| 192 |
+
|
| 193 |
+
We evaluate our method against the baselines in three different experiment settings and one ablation study: (1) single subject with pseudo-transient data, using the same subject in both training and testing; (2) cross-subject with pseudo-transient data, using different subjects for training and testing; (3) cross-subject with real captured data, where we use real transient images even though our model is trained solely on synthetic data. We further conduct an ablation study to show the importance of each augmentation in our proposed pseudo-transient image synthesis procedure.
|
| 194 |
+
|
| 195 |
+
Single-Subject Evaluation. We train our model for each subject. We use a 80-20 train-test data split. As shown in the quantitative results (Table 1 (left)), we can see our approach outperforms other baselines in terms of both pose-based
|
| 196 |
+
|
| 197 |
+
metric (MPJPE) and physics-based metrics $(\mathbf{E}_{\mathrm{vel}}, \mathbf{A}_{\mathrm{accel}})$ . We also present qualitative results in Fig. 4 (a). As the white dotted rectangles show, V2V-PoseNet and our method without P2PSF Net are not able to reproduce finer motion like walking. Also, non-physics-based methods (i.e., all baselines except Ours w/o P2PSF) often cause the humanoid's foot to sink into the ground (highlighted by the yellow circles). In contrast, our method produces 3D human pose closer to the ground-truth than any other baseline.
|
| 198 |
+
|
| 199 |
+
Cross-Subject Evaluation. To further evaluate the robustness and generalization of our method, we perform cross-subject experiments where we train our models on four subjects and test on the other subject. This is challenging since different people have unique action characteristics. As shown in Table 1(middle), our method once again outperforms other baselines in terms of MPJPE and $\mathbf{E}_{\mathrm{vel}}$ . For the smoothness metric $\mathbf{A}_{\mathrm{accel}}$ , V2V-PoseNet is quantitatively the best but this is because it mainly outputs a single pose only (indicated by the high MPJPE) and cannot estimate finer movement such as walking or raising hands, as shown in Fig. 4(b). As the qualitative results in Fig. 4(b) shows, our method with P2PSF Net produces poses closest to the ground truth, although it still fails during difficult sequences. Green arrows in Fig. 4(b) highlight large differences in the estimated pose compared to the ground truth.
|
| 200 |
+
|
| 201 |
+
Table 1. Results on single (left), cross-subject (middle), and real captured data (right).
|
| 202 |
+
|
| 203 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">Single Subject</td><td colspan="3">Cross Subject</td><td>Real Data</td></tr><tr><td>MPJPE ↓</td><td>Evel ↓</td><td>Aaccl ↓</td><td>MPJPE ↓</td><td>Evel ↓</td><td>Aaccl ↓</td><td>Ekey ↓</td></tr><tr><td>V2V-PoseNet [15]</td><td>123.9</td><td>5.12</td><td>4.61</td><td>137.7</td><td>4.85</td><td>3.67</td><td>0.185</td></tr><tr><td>PoseReg w/o P2PSF</td><td>109.0</td><td>5.96</td><td>9.92</td><td>114.8</td><td>5.53</td><td>8.93</td><td>0.178</td></tr><tr><td>PoseReg w/ P2PSF</td><td>100.8</td><td>5.99</td><td>9.98</td><td>108.7</td><td>5.54</td><td>8.74</td><td>0.175</td></tr><tr><td>Ours w/o P2PSF</td><td>98.0</td><td>4.96</td><td>4.61</td><td>110.8</td><td>4.83</td><td>4.39</td><td>0.176</td></tr><tr><td>Ours</td><td>96.1</td><td>4.92</td><td>4.33</td><td>108.6</td><td>4.77</td><td>4.16</td><td>0.173</td></tr></table>
|
| 204 |
+
|
| 205 |
+
Table 2. Ablation study results.
|
| 206 |
+
|
| 207 |
+
<table><tr><td>Method</td><td>Ekey ↓</td></tr><tr><td>(a) w/o Poisson</td><td>0.174</td></tr><tr><td>(b) w/o temp. blur</td><td>0.179</td></tr><tr><td>(c) w/o temp. shift</td><td>0.197</td></tr><tr><td>(d) w/o temp. resampling</td><td>0.185</td></tr><tr><td>(e) All noise types</td><td>0.173</td></tr></table>
|
| 208 |
+
|
| 209 |
+

|
| 210 |
+
Figure 5. Qualitative results for real captured transient.
|
| 211 |
+
|
| 212 |
+
Real Captured Cross-Subject Evaluation. To show our approach's ability to work with real-world data, we further test our method on the real captured transient image dataset described in Sec. 4.1, with our model trained with the same dataset with single subject experiment. As shown in Table 1 (Right), our approach produces more accurate poses than the baselines. We also present qualitative results in Fig. 5. As the figure shows, our method with P2PSF Net is better than the baselines in estimating human poses, including jumping (second from the left) and hand raising (sixth from the left, first from the right). Again, non-physics-based methods cause the humanoid's foot to sink into the ground (highlighted by the yellow circle). The green arrows once again identify large discrepancies with the ground truth.
|
| 213 |
+
|
| 214 |
+
Ablative Analysis. As described in Sec. 3.2, our pseudotangent images model the characteristics of real captured transient measurements. This ablation test investigates the effect of the four operations used to minimize the domain
|
| 215 |
+
|
| 216 |
+
gap between the pseudo and real transient images: (a) Poisson noise, (b) temporal blur, (c) temporal shift, and (d) temporal re-sampling. To investigate the importance of each of them, we train our model four times under the real captured cross-subject setting, and each time exclude one of the four operations. As indicated in Table 2, the temporal shifts are of critical importance for performance. Temporal re-sampling also improves accuracy. Removing Poisson noise and temporal blur independently does not severely affect performance. The combination of all four operations result in the best pose accuracy.
|
| 217 |
+
|
| 218 |
+
# 6. Conclusion
|
| 219 |
+
|
| 220 |
+
This work brings together a diverse set of sub-areas of computer vision, including state-of-the-art in computational imaging, physics-based vision, human pose estimation and physics-based deep reinforcement learning. As a result of this integration, we have shown for the first time that it is possible to take noisy real-world photon-level measurements of human motion and transform that information into a high-level understanding of human body dynamics aided by the power of data-driven machine learning.
|
| 221 |
+
|
| 222 |
+
While the primary technical focus of this work is to better understand how visual information should be represented and processed to enable 3D pose estimation from NLOS imaging, the technology described in this work also has some practical applications for next generation autonomous systems. In the context of autonomous driving, the ability to detect and track people outside of the line of sight of its sensors can be instrumental in informing planning algorithms and preventing accidents. In the context of domestic robots, the ability to see around walls could help robots make more informed decisions when entering a room or avoiding collisions. Though more research is necessary to lower the financial cost and computational complexity of the NLOS imaging system described in this work, we believe that this preliminary work shows the remarkable potential for higher-level reasoning using NLOS imaging in the real-world.
|
| 223 |
+
|
| 224 |
+
Acknowledgements. We thank Ioannis Gkioulekas for many helpful suggestions. M. Isogawa is supported by NTT Corporation. M. O'Toole is supported by the DARPA RE-VEAL program.
|
| 225 |
+
|
| 226 |
+
# References
|
| 227 |
+
|
| 228 |
+
[1] Fadel Adib, Chen-Yu Hsu, Hongzi Mao, Dina Katabi, and Frédo Durand. Capturing the human figure through a wall. ACM Transactions on Graphics (TOG), 34(6):1-13, 2015. 2, 3
|
| 229 |
+
[2] Katherine L. Bouman, Vickie Ye, Adam B. Yedidia, Frédo Durand, Gregory W. Wornell, Antonio Torralba, and William T. Freeman. Turning corners into cameras: Principles and methods. In IEEE International Conference on Computer Vision (ICCV), pages 2289-2297, Oct 2017. 2, 3
|
| 230 |
+
[3] Susan Chan, Ryan E. Warburton, Genevieve Gariepy, Jonathan Leach, and Daniele Faccio. Non-line-of-sight tracking of people at long range. Optics Express, 25(9):10109-10117, 2017. 2, 3
|
| 231 |
+
[4] Ioannis Gkioulekas, Anat Levin, Frédo Durand, and Todd Zickler. Micron-scale Light Transport Decomposition Using Interferometry. ACM Transactions on Graphics (TOG), 34(4):37:1-37:14, 2015. 1
|
| 232 |
+
[5] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770-778, 2016. 6
|
| 233 |
+
[6] Felix Heide, Wolfgang Heidrich, and Matthias B Hullin. Diffuse mirrors: 3d reconstruction from diffuse indirect illumination using inexpensive time-of-flight sens. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3222-3229, 2014. 2, 3
|
| 234 |
+
[7] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015. 7
|
| 235 |
+
[8] Jonathan Klein, Christoph Peters, Martin Laurenzis, and Matthias Hullin. Tracking objects outside the line of sight using 2d intensity images. Scientific Reports, 6(32491):32491:1-32491:9, 2016. 2, 3
|
| 236 |
+
[9] Jonathan Klein, Christoph Peters, Martin Laurenzis, and Matthias Hullin. Non-line-of-sight mocap. In ACM SIGGRAPH 2017 Emerging Technologies, SIGGRAPH '17, pages 18:1-18:2. ACM, 2017. 2, 3
|
| 237 |
+
[10] Tianhong Li, Lijie Fan, Mingmin Zhao, Yingcheng Liu, and Dina Katabi. Making the invisible visible: Action recognition through walls and occlusions. In arXiv preprint, 2019. 2, 3
|
| 238 |
+
[11] David B. Lindell, Matthew O'Toole, and Gordon Wetzstein. Single-Photon 3D Imaging with Deep Sensor Fusion. ACM Transactions on Graphics (TOG, SIGGRAPH), (4), 2018. 3
|
| 239 |
+
[12] David B. Lindell, Gordon Wetzstein, and Vladlen Koltun. Acoustic non-line-of-sight imaging. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6780-6789, 2019. 2, 3
|
| 240 |
+
[13] David B. Lindell, Gordon Wetzstein, and Matthew O'Toole. Wave-Based Non-Line-of-Sight Imaging using Fast f k Migration. ACM Transactions on Graphics (TOG), 38(4):116, 2019. 2, 3, 5, 6
|
| 241 |
+
[14] Tomohiro Maeda, Yiqin Wang, Ramesh Raskar, and Achuta Kadambi. Thermal non-line-of-sight imaging. In IEEE International Conference on Computational Photography (ICCP), pages 1-11, 2019. 2, 3
|
| 242 |
+
|
| 243 |
+
[15] Gyeongsik Moon, Juyong Chang, and Kyoung Mu Lee. V2v-posenet: Voxel-to-voxel prediction network for accurate 3d hand and human pose estimation from a single depth map. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 6, 8
|
| 244 |
+
[16] Matthew O'Toole, Felix Heide, David B. Lindell, Kai Zang, Steven Diamond, and Gordon Wetzstein. Reconstructing Transient Images from Single-Photon Sensors. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2289–2297, 2017. 1, 4, 5
|
| 245 |
+
[17] Matthew O'Toole, David B. Lindell, and Gordon Wetzstein. Confocal non-line-of-sight imaging based on the light-cone transform. Nature, 555(7696):338, 2018. 2, 3, 4
|
| 246 |
+
[18] Xue Bin Peng, Pieter Abbeel, Sergey Levine, and Michiel van de Panne. Deepmimic: Example-guided deep reinforcement learning of physics-based character skills. ACM Transactions on Graphics (TOG), 37(4):143:1-143:14, July 2018, 2, 3
|
| 247 |
+
[19] Xue Bin Peng, Glen Berseth, KangKang Yin, and Michiel van de Panne. Deeploco: Dynamic locomotion skills using hierarchical deep reinforcement learning. ACM Transactions on Graphics (TOG, SIGGRAPH 2017), 36(4), 2017. 3
|
| 248 |
+
[20] Xue Bin Peng, Angjoo Kanazawa, Jitendra Malik, Pieter Abbeel, and Sergey Levine. Sfv: Reinforcement learning of physical skills from videos. ACM Transactions on Graphics (TOG), 37(6), Nov. 2018. 3
|
| 249 |
+
[21] Albert Redo-Sanchez, Barmak Heshmat, Alireza Aghasi, Salman Naqvi, Mingjie Zhang, Justin Romberg, and Ramesh Raskar. Terahertz time-gated spectral imaging for content extraction through layered structures. Nature Communications, 7:12665, 2016. 2, 3
|
| 250 |
+
[22] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention (MICCAI), pages 234-241, 2015. 6
|
| 251 |
+
[23] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2009. 6
|
| 252 |
+
[24] Guy Satat, Matthew Tancik, Otkrist Gupta, Barmak Heshmat, and Ramesh Raskar. Object classification through scattering media with deep learning on time resolved measurement. Optics Express, 25(15):17466-17479, Jul 2017. 3
|
| 253 |
+
[25] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. In arXiv preprint, volume abs/1707.06347, 2017. 4, 7
|
| 254 |
+
[26] Jie Tan, Karen Liu, and Greg Turk. Stable proportional-derivative controllers. IEEE Computer Graphics and Applications, 31(4):34-44, 2011. 4, 6
|
| 255 |
+
[27] Matthew Tancik, Guy Satat, and Ramesh Raskar. Flash photography for data-driven hidden scene recovery. In arXiv preprint, 2018. 2, 3
|
| 256 |
+
[28] Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In Intelligent Robots and Systems (IROS), pages 5026-5033. IEEE, 2012. 2, 6
|
| 257 |
+
|
| 258 |
+
[29] Chia-Yin Tsai, Aswin C. Sankaranarayanan, and Ioannis Gkioulekas. Beyond volumetric albedo - a surface optimization framework for non-line-of-sight imaging. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2, 3
|
| 259 |
+
[30] Andreas Velten, Thomas Willwacher, Otkrist Gupta, Ashok Veeraraghavan, Moungi G Bawendi, and Ramesh Raskar. Recovering three-dimensional shape around a corner using ultrafast time-of-flight imaging. Nature Communications, 3:745, 2012. 1, 2, 3
|
| 260 |
+
[31] Andreas Velten, Di Wu, Adrian Jarabo, Belen Masia, Christopher Barsi, Chinmaya Joshi, Everett Lawson, Moungi G Bawendi, Diego Gutierrez, and Ramesh Raskar. Femto-Photography: Capturing and Visualizing the Propagation of Light. ACM Transactions on Graphics (Proceedings of SIGGRAPH), 32(4), 2013. 1
|
| 261 |
+
[32] Shumian Xin, Sotiris Nousias, Kiriakos N Kutulakos, Aswin C Sankaranarayanan, Srinivasa G Narasimhan, and Ioannis Gkioulekas. A Theory of Fermat Paths for Non-Line-of-Sight Shape Reconstruction. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2, 3
|
| 262 |
+
[33] Yuliang Xiu, Jiefeng Li, Haoyu Wang, Yinghong Fang, and Cewu Lu. Pose Flow: Efficient online pose tracking. In British Machine Vision Conference (BMVC), 2018. 6
|
| 263 |
+
[34] Ye Yuan and Kris Kitani. 3D Ego-Pose Estimation via Imitation Learning. In European Conference on Computer Vision (ECCV), pages 763-778, 2018. 3
|
| 264 |
+
[35] Ye Yuan and Kris Kitani. Ego-pose estimation and forecasting as real-time pd control. In IEEE International Conference on Computer Vision (ICCV), 2019. 2, 3, 4
|
| 265 |
+
[36] Mingmin Zhao, Tianhong Li, Mohammad Abu Alsheikh, Yonglong Tian, Hang Zhao, Antonio Torralba, and Dina Katabi. Through-Wall Human Pose Estimation Using Radio Signals. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7356-7365, 2018. 2, 3
|
opticalnonlineofsightphysicsbased3dhumanposeestimation/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0747399f05a6be8a71d42e567ee957e4194d485c8df3a1acdd79fee861d63860
|
| 3 |
+
size 506398
|
opticalnonlineofsightphysicsbased3dhumanposeestimation/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c0e653a266d97f49ee648217f5347f8777bc110cecee3194930b071a133ef56
|
| 3 |
+
size 375388
|
optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5e95eb0b33512901a810a3fc107533e6f51e48e627bfaf128278600048e27fc
|
| 3 |
+
size 88694
|
optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77b0bd493dd37bcce4e4cdfecb14da1d9980a978c7cc25c33ef7cbaad9fa3c88
|
| 3 |
+
size 101076
|
optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da11fdf9721f6700ad34e98878cc7fa6af9d56d5a5e17583ce3a1f2a6e04aade
|
| 3 |
+
size 483088
|
optimalleastsquaressolutiontothehandeyecalibrationproblem/full.md
ADDED
|
@@ -0,0 +1,429 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Optimal least-squares solution to the hand-eye calibration problem
|
| 2 |
+
|
| 3 |
+
Amit Dekel Linus Harenstam-Nielsen Sergio Caccamo Univrses
|
| 4 |
+
|
| 5 |
+
{amit.dekel, linus.arenstam, sergio.caccamo}@univrses.com
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
We propose a least-squares formulation to the noisy hand-eye calibration problem using dual-quaternions, and introduce efficient algorithms to find the exact optimal solution, based on analytic properties of the problem, avoiding nonlinear optimization. We further present simple analytic approximate solutions which provide remarkably good estimations compared to the exact solution. In addition, we show how to generalize our solution to account for a given extrinsic prior in the cost function. To the best of our knowledge our algorithm is the most efficient approach to optimally solve the hand-eye calibration problem.
|
| 10 |
+
|
| 11 |
+
# 1. Introduction
|
| 12 |
+
|
| 13 |
+
Hand-eye calibration is a common problem in computer vision where one wishes to find the transformation between two rigidly attached frames. One popular formulation of the problem is in terms of the following equation
|
| 14 |
+
|
| 15 |
+
$$
|
| 16 |
+
\Delta C \circ X = X \circ \Delta H, \tag {1}
|
| 17 |
+
$$
|
| 18 |
+
|
| 19 |
+
where $\Delta C, \Delta H, X$ are $SE(3)$ elements and $\circ$ is the group multiplication operation [1]. $\Delta C$ and $\Delta H$ represent the sources relative poses (e.g. camera and robot hand) and $X$ is the rigid transformation between the two frames.
|
| 20 |
+
|
| 21 |
+
In the literature one can find plenty of strategies to solve the problem for a given set of poses, as well as different representations and metrics being used, see [2, 3] for a recent review. Since the $SE(3)$ group is a semi-direct product of the special orthogonal group and the translational group $(SO(3) \ltimes T(3))$ , starting with (1), one usually ends up with two equations which we will refer to as the rotational equation (the quotient by the normal subgroup) and the translational equation (the normal subgroup). In practice, due to noisy data these equations cannot be satisfied exactly, and a numerical minimization approach or an approximating procedures are often used.
|
| 22 |
+
|
| 23 |
+
Some authors approach the problem by solving the two equations separately by first minimizing a term related to the rotational equation and then substituting the solution in
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: The hand-eye calibration problem for two rigidly attached cameras.
|
| 27 |
+
|
| 28 |
+
the translational equation and minimizing this term in turn, where a closed form solution can be found [4, 5, 6]. Others try to minimize both terms simultaneously.
|
| 29 |
+
|
| 30 |
+
In the later case, one approach is to perform a (constrained) nonlinear optimization procedure to minimize a cost function which takes into account the two terms (the rotational and translational parts) in some representation and specified metrics. This procedure is more costly in terms of computations, and requires a proper initial estimation in order to avoid local minima [6, 7, 8]. A linear simultaneous solution was presented in terms of dual-quaternions (or equivalently geometric algebra) [9], [10], which aims to solve (1) rather than a minimization problem, being valid for the noise free case, or requires filtering of the data.
|
| 31 |
+
|
| 32 |
+
As mentioned above, one can use different metrics for the minimization problem, usually related to the chosen representations or noise model assumptions. For the rotational part, the common (non-equivalent [11]) choices are the chordal, quaternionic or the geodesic metrics. Similarly, one can use different minimization terms for the translational part. Furthermore, rotation and translation terms have different units, and a proper relative weighting should be used. A natural choice would be the covariance of the measurements, which is not always available.
|
| 33 |
+
|
| 34 |
+
In this paper we address the problem of simultaneous minimization using the dual-quaternions (DQs) representation. The difficulties in solving the minimization problems analytically are due to nonlinear constraints. Using DQs,
|
| 35 |
+
|
| 36 |
+
one can construct a quadratic cost function in terms of the DQ d.o.f. which are subject to nonlinear constraints, which inevitably make the problem highly nonlinear.
|
| 37 |
+
|
| 38 |
+
Our approach is to add the constraints as two Lagrange multiplier terms and to study their analytic properties. The two Lagrange multipliers are related by a polynomial $p(\lambda, \mu)$ of 8th-order in $\mu$ and 4th-order in $\lambda$ , with some special properties. Over the reals, the polynomial defines four curves $\lambda_i(\mu)$ , and the optimal solution corresponds to the saddle point $d\lambda / d\mu = 0$ of the smallest $\lambda$ curve. Thus, our strategy is to efficiently find this special point in the Lagrange multipliers space. We propose several nonequivalent ways to find the optimal solutions as well as a hierarchy of analytic approximations which perform remarkably well.
|
| 39 |
+
|
| 40 |
+
We show explicitly how to extend our algorithms when adding a prior to the problem, allowing for a maximum a posteriori (MAP) analysis, or regularization in degenerate cases (e.g. planar motion).
|
| 41 |
+
|
| 42 |
+
We perform several experiments using synthetic and real data, and compare our algorithms to other available methods and to nonlinear optimization, showing that our algorithm indeed finds the optimal solution.
|
| 43 |
+
|
| 44 |
+
The paper is organized as follows: we initially establish the connection between the $SE(3)$ group and unit DQ. Then we formulate the hand-eye calibration problem using DQs, and introduce the minimization problem. Afterwards we discuss the properties of the cost function and present algorithms for solving the problem. Next, we extend the formulation to include a prior term. In the final sections, we present our experiments and comparisons to other existing methods in the literature, along with discussion and conclusions. Some technical details and more detailed experiment results are relegated to appendices.
|
| 45 |
+
|
| 46 |
+
# 2. SE(3) dual-quaternions representation
|
| 47 |
+
|
| 48 |
+
In this paper we use the dual-quaternion representation of the $SE(3)$ group. The group elements are constructed using dual-quaternions which are a sum of an ordinary quaternion and a dual part which is an ordinary quaternion multiplied by the dual-number $\epsilon$ , where $\epsilon^2 = 0$ , see for example [12, 9].
|
| 49 |
+
|
| 50 |
+
$SE(3)$ can be represented by unit DQ, $Q = q + \epsilon q'$ with $Q \otimes Q^* = 1$ , where $q, q' \in \mathbb{H}$ , $\otimes$ is the quaternionic product, and $*$ is the usual quaternion conjugation. As with ordinary quaternion double cover representation of representing $SO(3)$ , we identify $Q \sim -Q$ . The unit DQ constraint can be equivalently written as $|q| = 1$ and $q \cdot q' = 0$ where $q$ and $q'$ are treated as real four-dimensional vectors, and $\cdot$ is the dot product.
|
| 51 |
+
|
| 52 |
+
The explicit, a rotation element is given by $R_{(\hat{k},\theta)} = (\hat{k}\sin \frac{\theta}{2},\cos \frac{\theta}{2})$ with $\hat{k}$ the rotation axis and $\theta$ the rotation angle, while a translation element by a vector $\vec{a}$ is given by $T_{\vec{a}} = (\vec{0},1) + \epsilon \frac{1}{2} (\vec{a},0)$ . Our notation $(\vec{q},q_0)$ refers to the
|
| 53 |
+
|
| 54 |
+
imaginary and real parts of a quaternion respectively. Thus, a general $[R|T]$ transformation can be represented by
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
Q = T \otimes R = R + \epsilon \frac {1}{2} (\vec {a}, 0) \otimes R \equiv q + \epsilon q ^ {\prime}. \tag {2}
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
An equation concerning DQ can always be split in two equations, one for the "primal" part which is a pure quaternion, and one for the "dual" part which is the quaternion coefficient of $\epsilon$ .
|
| 61 |
+
|
| 62 |
+
# 3. Hand-eye calibration problem in terms of dual-quaternions
|
| 63 |
+
|
| 64 |
+
The hand-eye calibration problem can be formulated using the following set of equations
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
\Delta C _ {i} \circ X = X \circ \Delta H _ {i}, \quad i = 1, \dots , N, \tag {3}
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
where $\Delta C_i$ and $\Delta H_{i}$ are corresponding relative poses of two rigidly attached sources (see fig. 1), which from now on we shorten as $C_i$ and $H_{i}$ . Using the DQ representation the equation can be written as [9]
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
Q _ {C _ {i}} \otimes Q _ {X} = Q _ {X} \otimes Q _ {H _ {i}}, \quad i = 1, \dots , N, \tag {4}
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
and more explicitly as
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
q _ {C _ {i}} \otimes q _ {X} = q _ {X} \otimes q _ {H _ {i}}, \quad i = 1, \dots , N,
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
q _ {C _ {i}} \otimes q _ {X} ^ {\prime} + q _ {C _ {i}} ^ {\prime} \otimes q _ {X} = q _ {X} \otimes q _ {H _ {i}} ^ {\prime} + q _ {X} ^ {\prime} \otimes q _ {H _ {i}}, \tag {5}
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
where we separated the primal and dual parts to two equations. Next we translate the quaternionic multiplications to matrix multiplications using $q \otimes p \equiv \mathbf{L}(q)p \equiv \mathbf{R}(p)q$ , where $q$ and $p$ are treated as real four-dimensional vectors on the RHS and $\mathbf{L}, \mathbf{R}$ are $4 \times 4$ matrices, and we get
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\left(\mathbf {L} \left(q _ {C _ {i}}\right) - \mathbf {R} \left(q _ {H _ {i}}\right)\right) q _ {X} = 0, \quad i = 1, \dots , N, \tag {6}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\left(\mathbf {L} \left(q _ {C _ {i}} ^ {\prime}\right) - \mathbf {R} \left(q _ {H _ {i}} ^ {\prime}\right)\right) q _ {X} + \left(\mathbf {L} \left(q _ {C _ {i}}\right) - \mathbf {R} \left(q _ {H _ {i}}\right)\right) q _ {X} ^ {\prime} = 0.
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
For simplicity of notation we define $A_{i}\equiv \mathbf{L}(q_{C_{i}}) - \mathbf{R}(q_{H_{i}})$ $B_{i}\equiv \mathbf{L}(q_{C_{i}}^{\prime}) - \mathbf{R}(q_{H_{i}}^{\prime})$ and $q\equiv q_X,q'\equiv q_X^{\prime}$ , so we have
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
A _ {i} q = 0, \quad B _ {i} q + A _ {i} q ^ {\prime} = 0, \quad i = 1, \dots , N. \tag {7}
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
As described in [9], in the noise free case where the equations can be solved exactly, the concatenated 8-dimensional vector $(q,q^{\prime})$ is in the null space of $\left( \begin{array}{cc}A & 0\\ B & A \end{array} \right)$ , where $A$ and $B$ are a stacks of $A_{i}$ and $B_{i}$ respectively. Moreover, the relative transformation can only change the screw axis from one frame to another so the angle and screw pitch d.o.f. are omitted in the treatment of [9], which also allows to reduce $A_{i}$ and $B_{i}$ to $3\times 4$ matrices instead of $4\times 4$ matrices.
|
| 103 |
+
|
| 104 |
+
In our analysis we prefer not to cancel the invariant screw parameters since we generally expect noisy data, and these parameters act as sort of relevant weights for our data, thus, we work with the full $4 \times 4$ matrices.
|
| 105 |
+
|
| 106 |
+
# 3.1. The minimization problem
|
| 107 |
+
|
| 108 |
+
Our next step is to define the minimization problem. Generally, in the presence of noise, the RHS of (7) will differ from zero. We define our minimization problem as the simultaneous minimization of the squared $L_{2}$ norm of residuals of the two equations in (7), namely
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
\arg \min _ {q, q ^ {\prime}} \sum_ {i = 1} ^ {N} \left(| A _ {i} q | ^ {2} + \alpha^ {2} | B _ {i} q + A _ {i} q ^ {\prime} | ^ {2}\right),
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
subject to: $|q| = 1$ , $q\cdot q^{\prime} = 0$ (8)
|
| 115 |
+
|
| 116 |
+
where we introduced a fixed dimensionful parameter $\alpha \in \mathbb{R}$ with $1/\text{length}$ units, which may account for the different units of the two terms. For simplicity we will treat $\alpha$ as a fixed tunable parameter. More generally one could use a covariance matrix inside the norm based on specific measurements without changing our analysis.
|
| 117 |
+
|
| 118 |
+
Our choice for the cost function is natural given the dual-quaternion formulation, however one can find plenty of other non-equivalent choices in the literature using different metrics on $SE(3)$ , see [2] for detailed discussion.
|
| 119 |
+
|
| 120 |
+
# 3.1.1 Minimization equations
|
| 121 |
+
|
| 122 |
+
In this section we present the minimization problem in more details, and set up the notation for the rest of the paper. First, we express the cost function (8) using two Lagrange multipliers corresponding to the two constraints,
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
\begin{array}{l} L = \sum_ {i} \left(| A _ {i} q | ^ {2} + \alpha^ {2} | B _ {i} q + A _ {i} q ^ {\prime} | ^ {2}\right) + \lambda (1 - q ^ {2}) - 2 \mu q \cdot q ^ {\prime} \\ = q ^ {T} S q + q ^ {\prime T} M q ^ {\prime} + 2 q ^ {T} W q ^ {\prime} + \lambda \left(1 - q ^ {2}\right) - 2 \mu q \cdot q ^ {\prime}, \tag {9} \\ \end{array}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
where $\lambda$ and $\mu$ are Lagrange multipliers, and $S\equiv A^T A+$ $\alpha^2 B^T B,M = \alpha^2 A^T A$ and $W\equiv \alpha^{2}B^{T}A$ . The minimiza-. tion equations yield
|
| 129 |
+
|
| 130 |
+
$$
|
| 131 |
+
\begin{array}{l} \frac {1}{2} \frac {\partial L}{\partial q} = S q + W q ^ {\prime} - \lambda q - \mu q ^ {\prime} = 0, \\ \frac {1}{2} \frac {\partial L}{\partial q ^ {\prime}} = M q ^ {\prime} + W ^ {T} q - \mu q = 0, \tag {10} \\ \end{array}
|
| 132 |
+
$$
|
| 133 |
+
|
| 134 |
+
along with the two constraint equations. These equations imply that $L = \lambda$ on the solution.
|
| 135 |
+
|
| 136 |
+
Throughout the paper we assume that the matrix $M$ is full rank, which is the case of interest where the input data is noisy, otherwise one can solve analytically along the lines of [9]. Thus, we have
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
q ^ {\prime} = M ^ {- 1} (\mu - W ^ {T}) q. \tag {11}
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
Plugging $q^{\prime}$ in the first equation yields
|
| 143 |
+
|
| 144 |
+
$$
|
| 145 |
+
Z (\mu) q = \left(Z _ {0} + \mu Z _ {1} - \mu^ {2} Z _ {2}\right) q = \lambda q, \tag {12}
|
| 146 |
+
$$
|
| 147 |
+
|
| 148 |
+
where we introduce the notation
|
| 149 |
+
|
| 150 |
+
$$
|
| 151 |
+
\begin{array}{l} Z _ {0} \equiv S - W M ^ {- 1} W ^ {T}, \quad Z _ {1} \equiv W M ^ {- 1} + M ^ {- 1} W ^ {T}, \\ Z _ {2} \equiv M ^ {- 1}. \tag {13} \\ \end{array}
|
| 152 |
+
$$
|
| 153 |
+
|
| 154 |
+
The first constraint equations $|q|^2 = 1$ can be trivially satisfied by normalizing the solution, while the second constraint $q \cdot q' = 0$ implies that
|
| 155 |
+
|
| 156 |
+
$$
|
| 157 |
+
\mu = \frac {1}{2} \frac {q ^ {T} Z _ {1} q}{q ^ {T} Z _ {2} q}. \tag {14}
|
| 158 |
+
$$
|
| 159 |
+
|
| 160 |
+
While we can easily solve (12) as an eigenvalue problem for a given $\mu$ , (14) will generally not be satisfied. Unfortunately plugging (14) in (12) results in a highly non-linear problem.
|
| 161 |
+
|
| 162 |
+
# 3.1.2 Properties of the minimization equations
|
| 163 |
+
|
| 164 |
+
In order to solve the problem it is useful to notice some properties of (12) and (14). By construction, the matrix $Z(\mu)$ is real and symmetric for any real $\mu$ , so its eigenvalues are real. We further notice that $Z_{2}$ is positive semi-definite (since it is the inverse of $A^T A$ ) and so is $Z_0^1$ .
|
| 165 |
+
|
| 166 |
+
Considering these properties, the eigenvalue curves $\lambda_{i}(\mu)$ (each of the four roots ordered by their value) in (12) generally should not intersect as we change $\mu$ , as a consequence of the von Neumann-Wigner theorem [13], [14].
|
| 167 |
+
|
| 168 |
+
A useful way to think of the problem is in terms of the Lagrange multipliers parameter space, given by a real algebraic curve defined by (12),
|
| 169 |
+
|
| 170 |
+
$$
|
| 171 |
+
p (\lambda , \mu) = \det (Z (\mu) - \lambda) = \sum_ {m = 0} ^ {4} \lambda^ {m} c _ {8 - 2 m} (\mu) = 0, \tag {15}
|
| 172 |
+
$$
|
| 173 |
+
|
| 174 |
+
which is a 4-th degree polynomial in $\lambda$ and 8-th degree in $\mu$ , and $c_{n}(\mu)$ is an n-th degree real polynomial in $\mu$ (see figure 2). The functions $\lambda_{i}(\mu)$ can be found analytically, but their explicit expressions are not very illuminating.
|
| 175 |
+
|
| 176 |
+
The constraint $q(\mu)\cdot q'(\mu) = 0$ dictates which points on the curves $\lambda_{i}(\mu)$ correspond to the solution. A key observation is that these are the extrema points of $\lambda_{i}(\mu)$ . To show this we use the fact that $\lambda = q^{T}Z(\mu)q$ , so
|
| 177 |
+
|
| 178 |
+
$$
|
| 179 |
+
\begin{array}{l} \left. \frac {\partial \lambda}{\partial \mu} \right| _ {\text {s o l}} = 2 \dot {q} ^ {T} Z (\mu) q + q ^ {T} \dot {Z} (\mu) q \tag {16} \\ = 2 \lambda \dot {q} ^ {T} q - 2 q ^ {T} M ^ {- 1} (\mu - W ^ {T}) q = - 2 q ^ {T} q ^ {\prime}, \\ \end{array}
|
| 180 |
+
$$
|
| 181 |
+
|
| 182 |
+
where we used (12) so we are on the solution, and $q^2 = 1$ which implies $\dot{q}^T q = 0$ , and a dot denotes a $\mu$ derivative.
|
| 183 |
+
|
| 184 |
+
Thus, one can solve the problem by finding the extrema points of $\lambda (\mu)$ , which is equivalent to finding the real intersection points of the polynomials $p(\lambda ,\mu)$ and $\partial_{\mu}p(\lambda ,\mu)$ , which in turn is equivalent to finding the multiplicities of the 8-th degree polynomial in $\mu$ , as a function of its $\lambda$ dependent coefficients. In either case, this is equivalent to the vanishing of the determinant of the Sylvester matrix (the resultant) of the two polynomials $p(\lambda ,\mu)$ and $\partial_{\mu}p(\lambda ,\mu)$ w.r.t. $\lambda$ or $\mu$ . In both cases the result is a 28-th degree polynomial in one variable. Thus, the hand-eye calibration problem can be optimally solved by finding the smallest real positive $\lambda$ root of this polynomial.
|
| 185 |
+
|
| 186 |
+
However, considering further properties of the problem allows to find the solution in more efficient ways. We notice that for large $|\mu|$ (12) and (11) become
|
| 187 |
+
|
| 188 |
+
$$
|
| 189 |
+
- \mu^ {2} Z _ {2} q \simeq \lambda q, \quad q ^ {\prime} \simeq \mu Z _ {2} q, \tag {17}
|
| 190 |
+
$$
|
| 191 |
+
|
| 192 |
+
so $\lambda_i(|\mu|) \simeq -\mu^2\xi_i$ where $\xi_i \geq 0$ are eigenvalues of $Z_2$ . Similarly, $Z(\mu = 0) = Z_0$ which is PSD, so $\lambda_i(\mu = 0) \geq 0$ .
|
| 193 |
+
|
| 194 |
+
Combining these two observations together with the von Neumann-Wigner non-crossing theorem, each of the four eigenvalues $\lambda_{i}(\mu)$ must cross the $\mu$ axis at least twice. However, the number of solutions to $Z(\mu)q = 0$ in terms of $\mu$ is at most eight, so we conclude that every eigenvalue $\lambda_{i}(\mu)$ crosses the $\mu$ axis exactly twice, say at $\mu_{1} < 0 < \mu_{2}$ , and then goes asymptotically quadratically to $-\infty$ for $\mu \gg \mu_{2}$ and $\mu \ll \mu_{1}$ (there could be cases where the two points unite and we get one solution at $\mu = 0$ , which corresponds to the noise free case).
|
| 195 |
+
|
| 196 |
+
Next, we change our point of view and consider $\mu (\lambda)$ . We already established that the number of real solutions to $\mu (\lambda = 0)$ must be eight, which is the maximum number of solutions. As we increase $\lambda$ , the number of real solutions can either stay constant or drop by an even integer number<sup>3</sup>. The first jump from eight to six solutions corresponds to the first maximum of $\lambda (\mu)$ , which is the minimal cost solution to our problem. Furthermore, this must correspond to the maximum of $\lambda_{i=0}(\mu)$ , since otherwise the number of real solutions to the $\mu$ polynomial will exceed the maximum number (eight). Multiple extrema are allowed only for higher $\lambda_{i > 0}$ functions, see 2b. Similarly we can look for root multiplicities in terms of the discriminant, since the extrema of $\lambda (\mu)$ correspond to such points.
|
| 197 |
+
|
| 198 |
+
To summarize, we showed that the function $\lambda_0(\mu)$ , the smallest eigenvalue of (12), has one positive maximum, and asymptotically decays quadratically in $\mu$ . Finding the optimal solution is equivalent to finding the maximum of this function which is a convex problem.
|
| 199 |
+
|
| 200 |
+

|
| 201 |
+
(a) Typical $\lambda (\mu)$
|
| 202 |
+
|
| 203 |
+

|
| 204 |
+
(b) Less typical $\lambda (\mu)$
|
| 205 |
+
|
| 206 |
+

|
| 207 |
+
(c) Less typical $\lambda (\mu)$ (zoomed)
|
| 208 |
+
Figure 2: Lagrange multipliers space. Subscripts in $\lambda_{i}(\mu)$ and $f_{i}(\mu)$ indicate the $i$ -th EV for a given $\mu$ in ascending order. The optimal $\mu$ is denoted by $\mu^{*}$ and the dashed black line. In (a) and (b) the optimal solution corresponds to the maximum of the blue line. In (b) the number of real roots starts at 8, reduce to 6, 4 and then grows to 6 and reduces to 4, 2 and finally to 0. We also see the level repulsion effect where the eigenvalues almost intersect but eventually repel each other, see (c). In (d) solution $\mu^{*}$ corresponds to the intersection of $f_{0}$ with the $\mu$ -axis (same data as in (a)).
|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
(d) Typical $f(\mu)$
|
| 212 |
+
|
| 213 |
+
# 3.2. Solving the minimization problem
|
| 214 |
+
|
| 215 |
+
Based on the discussion above, we introduce various strategies to solve the minimization equations, presenting both exact and approximate solution.
|
| 216 |
+
|
| 217 |
+
# 3.2.1 Optimal 1D line search (DQOpt)
|
| 218 |
+
|
| 219 |
+
This is the simplest algorithm we present which yields the optimal solution. We first define the function
|
| 220 |
+
|
| 221 |
+
$$
|
| 222 |
+
f _ {0} (\mu) \equiv q _ {0} (\mu) \cdot q _ {0} ^ {\prime} (\mu) = - \frac {1}{2} \frac {d \lambda_ {0} (\mu)}{d \mu}, \tag {18}
|
| 223 |
+
$$
|
| 224 |
+
|
| 225 |
+
where $q_{0}$ is the smallest eigenvalue of $Z(\mu)$ , and $q_{0}'$ is computed using (11). As explained above, this is a monotonic function with a unique root, see figure 2d. To find the optimal solution we first find the root of this function, $f_{0}(\mu_{*}) = 0$ , and solve for $q$ as the eigenvector corresponding to the smallest eigenvalue of $Z(\mu_{*})$ and for $q'$ using (11). Alternatively, one can look for the maximum of $\lambda_{0}(\mu)$ directly which correspond to the same solutions, see 2a.
|
| 226 |
+
|
| 227 |
+
We further derived alternative algorithms to arrive at the
|
| 228 |
+
|
| 229 |
+
optimal solution, again, using only a 1D line search based on resultants and roots counting. These algorithms yield the same optimal solution, but are slower to evaluate. Since they are conceptually very different and provide a different view on the problem we believe it is interesting to include them in this work. However, since we shall only use the above optimal solution throughout the paper we relegate their description to appendix B.
|
| 230 |
+
|
| 231 |
+
# 3.2.2 Two steps (DQ2steps)
|
| 232 |
+
|
| 233 |
+
The two steps approximation, solving first the rotation equation, takes a very simple form in our formulation. One first solves for $q$ for finding the eigenvector corresponding to the smallest eigenvalue in
|
| 234 |
+
|
| 235 |
+
$$
|
| 236 |
+
M q = \lambda_ {0} q, \tag {19}
|
| 237 |
+
$$
|
| 238 |
+
|
| 239 |
+
and the corresponding $q^{\prime}$ is given by
|
| 240 |
+
|
| 241 |
+
$$
|
| 242 |
+
q ^ {\prime} = M ^ {- 1} \left(\frac {1}{2} \frac {q ^ {T} Z _ {1} q}{q ^ {T} Z _ {2} q} - W ^ {T}\right) q. \tag {20}
|
| 243 |
+
$$
|
| 244 |
+
|
| 245 |
+
# 3.2.3 Convex relaxation (DQCovRlx)
|
| 246 |
+
|
| 247 |
+
Here we approximate the solution while relaxing the $q \cdot q' = 0$ constraint, and then project the solution to the non-convex constraint space using (14), thus we solve
|
| 248 |
+
|
| 249 |
+
$$
|
| 250 |
+
Z _ {0} q = \lambda_ {0} q, \tag {21}
|
| 251 |
+
$$
|
| 252 |
+
|
| 253 |
+
and the corresponding $q^{\prime}$ is given by (20) again. We can also get a nice expression bounding the gap,
|
| 254 |
+
|
| 255 |
+
$$
|
| 256 |
+
\Delta \lambda = \lambda^ {c} - \lambda_ {0} = \frac {1}{4} \frac {\left(q ^ {T} Z _ {1} q\right) ^ {2}}{q ^ {T} Z _ {2} q}, \tag {22}
|
| 257 |
+
$$
|
| 258 |
+
|
| 259 |
+
where $\lambda^c$ is the constrained solution. Namely, the true cost for the non-convex problem, $\lambda^{*}$ , satisfies $\lambda_0\leq \lambda^*\leq \lambda^c$
|
| 260 |
+
|
| 261 |
+
# 3.2.4 Second order approximation (DQ2ndOrd)
|
| 262 |
+
|
| 263 |
+
Starting with the relaxed solution (21), corresponding to $\mu = 0$ (which is true in the noise free case), we can have an analytic expansion in small $\mu$ . A detailed derivation of a recursive formula for the dual-quaternion solution to any order in $\mu$ is given in appendix A. The resulting second order approximation for yields
|
| 264 |
+
|
| 265 |
+
$$
|
| 266 |
+
\mu_ {(2)} ^ {*} = \frac {1}{2} \frac {Z _ {1} ^ {0 0}}{Z _ {2} ^ {0 0} - \sum_ {a} \frac {(Z _ {1} ^ {a 0}) ^ {2}}{\lambda_ {0 a}}},
|
| 267 |
+
$$
|
| 268 |
+
|
| 269 |
+
$$
|
| 270 |
+
\begin{array}{l} q _ {(2)} = q _ {0} + \mu_ {(2)} ^ {*} \sum_ {a} \frac {Z _ {1} ^ {a 0}}{\lambda_ {0 a}} q _ {a} + \mu_ {(2)} ^ {* 2} \left(- \frac {1}{2} q _ {0} \sum_ {a} \left(\frac {Z _ {1} ^ {a 0}}{\lambda_ {0 a}}\right) ^ {2} \right. \\ \left. + \sum_ {a} \frac {\sum_ {b} \frac {Z _ {1} ^ {b 0} Z _ {1} ^ {a b}}{\lambda_ {0 b}} - Z _ {2} ^ {a 0} - \frac {Z _ {1} ^ {0 0} Z _ {1} ^ {a 0}}{\lambda_ {0 a}}}{\lambda_ {0 a}} q _ {a}\right), \tag {23} \\ \end{array}
|
| 271 |
+
$$
|
| 272 |
+
|
| 273 |
+
where the $q$ 's and $\lambda$ 's are defined by $Z_{0}q_{a} = \lambda_{a}q_{a}$ . We also introduced the short-hand notation $Z_{i}^{ab} \equiv q_{a}^{T}Z_{i}q_{b}$ and $\lambda_{0a} \equiv \lambda_{0} - \lambda_{a}$ and all the sums are running over $a = 1,2,3$ . After normalizing $q_{(2)}$ we solve for $q'$ using (20).
|
| 274 |
+
|
| 275 |
+
Since $\mu$ is not a dimensionless parameter, one might prefer to expand in $\lambda$ which is dimensionless. We can start with $\lambda_0 = 0$ which is the solution in the noise free case. However, this leads to an 8-th degree polynomial in $\mu$ when coming to solve (12) which complicates a bit the procedure. Instead, we can expand in $\lambda$ around the relaxed $(\mu = 0)$ solution, so $\lambda = \lambda_0 + \Delta \lambda$ and the expansion is in $\Delta \lambda$ , and $\lambda_0$ corresponds to the smallest eigenvalue of $Z_{0}$ . The second order expansions allowing to find $q$ is slightly more elaborated compared to the previous one and can be found in appendix A. Then as in the previous approximation we solve for $q^{\prime}$ using (20).
|
| 276 |
+
|
| 277 |
+
The results of this expansion are comparable to the previous one in our experiments, though they are not equivalent (both giving very accurate results).
|
| 278 |
+
|
| 279 |
+
# 3.2.5 Iterative solution (DQIter)
|
| 280 |
+
|
| 281 |
+
Defining the function
|
| 282 |
+
|
| 283 |
+
$$
|
| 284 |
+
\tilde {\mu} (\mu) = \frac {1}{2} \frac {q (\mu) ^ {T} Z _ {1} q (\mu)}{q (\mu) ^ {T} Z _ {2} q (\mu)}, \tag {24}
|
| 285 |
+
$$
|
| 286 |
+
|
| 287 |
+
where $q(\mu)$ is the eigenvector corresponding to the smallest eigenvalue of (12), the solution to the problem is the fixed point, namely $\tilde{\mu} (\mu) = \mu$ . Since $\tilde{\mu} (\mu)$ is bounded as explained in the previous section, iteratively estimating $\tilde{\mu}$ and plugging the value back convergence to the solution. In practice this procedure converges very quickly, though it is unstable in the noise free case.
|
| 288 |
+
|
| 289 |
+
# 3.3.Adding a prior
|
| 290 |
+
|
| 291 |
+
The hand-eye calibration problem is not always well posed, for example in the case of planar motion some d.o.f. are not fixed, and might require a regularization term for a unique solution. Furthermore, constructing the problem from a statistical model perspective, as a MAP probability estimation requires a prior. Thus, it is useful to incorporate a prior term in our formulation.
|
| 292 |
+
|
| 293 |
+
Let us assume we have some prior knowledge regarding the hand-eye calibration, namely that the unit dual-quaternion representing the calibration is close to some given $\hat{Q}$ . We define $Q = \hat{Q} \otimes \delta Q$ , such that $\delta Q = \delta q + \epsilon \delta q'$ is the deviation from the prior, which is expected to be small, namely $\delta Q \simeq 1$ , or equivalently $\delta q \simeq 1$ and $\delta q' \simeq 0$ . Thus, we introduce the prior by penalizing large $\delta Q$
|
| 294 |
+
|
| 295 |
+
$$
|
| 296 |
+
L _ {\text {p r i o r}} \left(q, q ^ {\prime}\right) = L \left(q, q ^ {\prime}\right) + a \left(1 - \delta q\right) ^ {2} + b \delta q ^ {\prime 2}, \tag {25}
|
| 297 |
+
$$
|
| 298 |
+
|
| 299 |
+
where $a, b > 0$ are constant weight parameters (notice that $q$ and $\delta q$ are not independent). The rotation term has a linear dependence on $\delta q$ . This term complicates our analysis,
|
| 300 |
+
|
| 301 |
+
where the eigenvalue problem needs to be promoted to an $8 \times 8$ instead of the $4 \times 4$ problem we had before, and our matrices lose some of their nice properties. Nonetheless, this approach is valid and yields good results.
|
| 302 |
+
|
| 303 |
+
However, we can avoid these issues by noting that $|\delta q| = 1$ , $\delta q \simeq 1$ is equivalent to the imaginary part being small. So we instead modify (25) to
|
| 304 |
+
|
| 305 |
+
$$
|
| 306 |
+
L _ {\text {p r i o r}} = L + a \delta q ^ {T} G \delta q + b \delta q ^ {\prime 2}, \quad G = \operatorname {d i a g} (1, 1, 1, 0). \tag {26}
|
| 307 |
+
$$
|
| 308 |
+
|
| 309 |
+
We can minimize this cost in the same way we minimize (9) by noting that
|
| 310 |
+
|
| 311 |
+
$$
|
| 312 |
+
\delta Q = \hat {Q} ^ {*} \otimes Q = \mathbf {L} (\hat {q} ^ {*}) q + \epsilon \left(\mathbf {L} \left(\hat {q} ^ {\prime *}\right) q + \mathbf {L} \left(\hat {q} ^ {*}\right) q ^ {\prime}\right). \tag {27}
|
| 313 |
+
$$
|
| 314 |
+
|
| 315 |
+
Thus, the two new terms are given by
|
| 316 |
+
|
| 317 |
+
$$
|
| 318 |
+
\begin{array}{l} \delta q ^ {T} G \delta q = q ^ {T} \mathbf {L} ^ {* T} G \mathbf {L} ^ {*} q, \\ \delta q ^ {\prime 2} = q ^ {T} \mathbf {L} ^ {\prime * T} \mathbf {L} ^ {\prime *} q + 2 q ^ {T} \mathbf {L} ^ {\prime * T} \mathbf {L} ^ {*} q ^ {\prime} + q ^ {\prime T} q ^ {\prime} \\ = \left| \hat {q} ^ {\prime} \right| ^ {2} q ^ {T} q + 2 q ^ {T} \tilde {W} q ^ {\prime} + q ^ {\prime T} q ^ {\prime}, \tag {28} \\ \end{array}
|
| 319 |
+
$$
|
| 320 |
+
|
| 321 |
+
where $\tilde{W} = -\tilde{W}^T = \mathbf{L}'^{*T}\mathbf{L}^* = \mathbf{L}(\hat{t})$ . Because of our constraints, the term $|\hat{q} '|^2 q^T q$ is a constant which does not change the cost function, so we can ignore it (notice that by doing that the cost function is not guaranteed to be positive anymore, but is bounded from below by $-b|\hat{q} '|^2$ ). Thus, we can solve (26) in the same way as (9) by identifying
|
| 322 |
+
|
| 323 |
+
$$
|
| 324 |
+
S \rightarrow S + a \mathbf {L} ^ {* T} G \mathbf {L} ^ {*},
|
| 325 |
+
$$
|
| 326 |
+
|
| 327 |
+
$$
|
| 328 |
+
W \rightarrow W + b \tilde {W},
|
| 329 |
+
$$
|
| 330 |
+
|
| 331 |
+
$$
|
| 332 |
+
M \rightarrow M + b \mathbf {1} _ {4 \times 4}. \tag {29}
|
| 333 |
+
$$
|
| 334 |
+
|
| 335 |
+
Notice that these modifications to (9) do not change the matrix properties discussed above regarding semi-positive definiteness and symmetries.
|
| 336 |
+
|
| 337 |
+
# 4. Experiments
|
| 338 |
+
|
| 339 |
+
In this work we perform two kinds of experiments. First we compare our optimal algorithm results with a nonlinear optimization implementation to show that our algorithm results in the optimal solution. Afterwards we compare the performance of our algorithms with other algorithms, on real and synthetic datasets.
|
| 340 |
+
|
| 341 |
+
Throughout this section we use the algorithms abbreviations introduced in sec. 3, with the addition of Dan [9], as well as ChVecOpt and QuatVecOpt which minimize
|
| 342 |
+
|
| 343 |
+
$$
|
| 344 |
+
\begin{array}{l} \sum_ {i} \left(\left| R _ {C} ^ {i} R - R R _ {H} ^ {i} \right| ^ {2} + \alpha^ {2} \right\rvert \left(R _ {C} ^ {i} - 1\right) T - R T _ {H} ^ {i} + T _ {C} ^ {i} \left| ^ {2}\right), \\ \sum_ {i} \left(| q _ {C} ^ {i} q - q q _ {H} ^ {i} | ^ {2} + \alpha^ {2} | \left(R _ {C} ^ {i} - 1\right) T - R T _ {H} ^ {i} + T _ {C} ^ {i} | ^ {2}\right) \tag {30} \\ \end{array}
|
| 345 |
+
$$
|
| 346 |
+
|
| 347 |
+
w.r.t. $R, T$ and $q, T$ using nonlinear optimization respectively. Finally, DQNLOpt and DQNLOptRnd represent nonlinear optimization of our cost function (9) initialized with DQOpt and randomly respectively.
|
| 348 |
+
|
| 349 |
+
All the algorithms are implemented using python with numpy and scipy optimize packages for 1D root finding.
|
| 350 |
+
|
| 351 |
+
# 4.1. Synthetic experiments
|
| 352 |
+
|
| 353 |
+
Our synthetic dataset consists of three scenarios:
|
| 354 |
+
|
| 355 |
+
- Random - uniformly sampled from $SO(3) \times E(3)$ .
|
| 356 |
+
- Line - straight motion + small 3d perturbations.
|
| 357 |
+
- Circle - 2d circular motion + small 3d perturbations.
|
| 358 |
+
|
| 359 |
+
The relative poses are related by the extrinsic transformation with addition of noise. For the translations we use multivariate Gaussian noise, while for the rotations we use a uniform distribution on $S^2$ for the axis and a Gaussian distribution for the angle (more details can be found in appendix D).
|
| 360 |
+
|
| 361 |
+
# 4.2. Real data experiments
|
| 362 |
+
|
| 363 |
+
We recorded poses from two rigidly attached ZED cameras running the built-in visual odometry. The cameras were moved by hand, creating a general 3d motion scenario and three approximately planar scenarios: general, straight, and circular. The collected data is significantly noisy due to the inaccuracy of the tracking algorithm and time synchronization issues. More details on the data acquisition process and pre-filtering can be found in appendix D.
|
| 364 |
+
|
| 365 |
+
# 4.3. Weighting factor
|
| 366 |
+
|
| 367 |
+
The proper choice of the weighting factor $\alpha$ , which was introduced in sec. 3.1, depends on the noise model. In order to have a fair comparison we add the $\alpha$ parameter to all the algorithm implementations, see (30), and by scaling the translation part by $\alpha$ for Dan. We introduce $\alpha_{\mathrm{best}}$ for rotation and translation, which are the values that give the best results in terms of the rotation and translation mean error respectively w.r.t. the ground-truth. Note that these values are not necessarily the same for all algorithms and even for the same dataset. In this way we treat all the algorithms in a fair way in contrast to setting one value which might benefit certain algorithms more than others.
|
| 368 |
+
|
| 369 |
+
<table><tr><td colspan="5">Relative cost difference alg=DQOpt
|
| 370 |
+
alg+DQOpt</td></tr><tr><td>alg</td><td>mean</td><td>std</td><td>min</td><td>max</td></tr><tr><td>DQNLOpt</td><td>6.3 × 10-18</td><td>5.8 × 10-16</td><td>-3.0 × 10-15</td><td>2.8 × 10-15</td></tr><tr><td>DQNLOptRnd</td><td>6.8 × 10-2</td><td>1 × 2.1-1</td><td>4.3 × 10-12</td><td>8.9 × 10-1</td></tr><tr><td>DQ2ndOrd</td><td>6.6 × 10-10</td><td>5.4 × 10-9</td><td>-2.3 × 10-15</td><td>1.3 × 10-7</td></tr><tr><td>DQConvRlx</td><td>2.7 × 10-5</td><td>7.0 × 10-5</td><td>2.15 × 10-12</td><td>5.3 × 10-4</td></tr><tr><td>DQ2Steps</td><td>8.4 × 10-3</td><td>1.6 × 10-2</td><td>2.4 × 10-5</td><td>9.7 × 10-2</td></tr></table>
|
| 371 |
+
|
| 372 |
+
<table><tr><td colspan="5">Timing in μsec</td></tr><tr><td>alg</td><td>mean</td><td>std</td><td>min</td><td>max</td></tr><tr><td>DQOpt</td><td>299</td><td>92</td><td>158</td><td>1199</td></tr><tr><td>DQ2ndOrd</td><td>155</td><td>53</td><td>98</td><td>818</td></tr><tr><td>Dan</td><td>92</td><td>33</td><td>61</td><td>1200</td></tr><tr><td>DQConvRlx</td><td>77</td><td>36</td><td>43</td><td>896</td></tr><tr><td>DQ2Steps</td><td>63</td><td>23</td><td>42</td><td>1242</td></tr></table>
|
| 373 |
+
|
| 374 |
+
Table 1: Upper table: Results for the (signed) relative difference (averaged over 2450 real data runs) between DQOpt and our other algorithms. Positive values imply that the competing algorithm has a higher cost function. Lower table: Algorithm's timing averaged over 24500 real data runs.
|
| 375 |
+
|
| 376 |
+

|
| 377 |
+
Figure 3: Synthetic experiments. We compare between Dan and DQOpt on the three different motions by showing the error response of the solvers when the relative poses are subject to increasing rotational and translational noise (sec. 4.1). The heat maps show the mean ratio (60 iterations) of the error responses (first row - rotation, second row - translation). A blue (red) color indicates that DQOpt has $e^{value}$ times lower (higher) error compared to Dan. It is possible to notice how DQOpt dramatically outperform Dan on degenerate motions (linear and circular). For the 3D case (column 3) both DQOpt and Dan show high accuracy (see table 2) and the error ratio loses its significance (i.e. they both perform well). In the last column, we compare the two solvers for a $\alpha = 1$ .
|
| 378 |
+
|
| 379 |
+
# 4.4. Verifying optimality
|
| 380 |
+
|
| 381 |
+
In order to verify that our algorithm finds the optimal solution we compare its cost with the cost of a nonlinear optimization implementation (using scipy's least_squares), designed to minimize the same cost function. When running the nonlinear optimizer we initialized it both with our solution and randomly to allow a search for a different minimum in case our algorithm ended up in a local minimum. In order for our algorithm to be optimal, the nonlinear optimizer should not change the solution when initialized with our solution, and might find higher cost solutions when initialized randomly. The results are summarized in table 1, where our algorithm always returns a lower cost up to numerical precision. We further compare with our approximate methods to show how close they get to the global minimum.
|
| 382 |
+
|
| 383 |
+
# 4.5. Timing
|
| 384 |
+
|
| 385 |
+
We compare the run time of our optimal solution implementation with the approximate solutions and Dan [9], which serves as a benchmark, as it is well known to be very efficient. The results are shown in lower table 1, ordered by the mean run time. Our optimal algorithm is found to be $\times 3$ slower than Dan. Two of the approximate algorithms are a bit faster, while approximating very well the optimal solution, see upper table 1. The nonlinear optimization algorithms are much slower, but we do not report their performance since we did not optimize their implementation.
|
| 386 |
+
|
| 387 |
+
# 5. Conclusions
|
| 388 |
+
|
| 389 |
+
In this paper we introduced a novel approach to find an optimal solution to the hand-eye calibration problem, based on a dual-quaternions formulation. We showed that our algorithm is guaranteed to find the global minimum by only using a 1D line search of a convex function. This provides a big advantage over nonlinear optimization methods which are less efficient and are sensitive to local minima.
|
| 390 |
+
|
| 391 |
+
We further introduced a hierarchy of efficient analytic approximate solutions which provide remarkably close approximations to the optimal solution. We showed that our optimal solution is very efficient being only 3 times slower than the analytic solution by Daniilidis [9], and that some of our approximation are faster while providing dramatically better estimations for ill-posed cases (comparable with the optimal solution).
|
| 392 |
+
|
| 393 |
+
We compared the performance of our algorithms with the well known analytic solution by Daniilidis and nonlinear optimization of other common formulations of the problem with different cost functions, using real and synthetic noisy datasets. We find that all the methods which provide an optimal solution are comparable in terms of accuracy, see table 2. However, for the real data we find that our methods consistently obtain slightly lower median errors in terms of both rotations and translations. The two-steps method degrades in accuracy for almost planar motions due to the ill-posedness of the rotation equation. Daniilidis's algorithm which does
|
| 394 |
+
|
| 395 |
+
<table><tr><td rowspan="2">α</td><td rowspan="2">Algorithm</td><td colspan="3">3d motion</td><td colspan="3">Rotation</td><td colspan="3">Planar</td><td colspan="3">Linear</td></tr><tr><td>εr(deg)</td><td>εt(cm)</td><td>α</td><td>εr(deg)</td><td>εt(cm)</td><td>α</td><td>εr(deg)</td><td>εt(cm)</td><td>α</td><td>εr(deg)</td><td>εt(cm)</td><td>α</td></tr><tr><td rowspan="13">best rotation α</td><td rowspan="2">DQOpt</td><td>2.03±0.73</td><td>5.32±1.95</td><td>1.47</td><td>6.91±5.45</td><td>5.05±3.08</td><td>0.20</td><td>2.55±0.44</td><td>17.7±31.4</td><td>0.37</td><td>2.89±0.22</td><td>26.3±10.5</td><td>1.14</td></tr><tr><td>0.60</td><td>1.39</td><td></td><td></td><td></td><td></td><td>0.41</td><td>9.61</td><td></td><td>0.17</td><td>9.03</td><td></td></tr><tr><td rowspan="2">DQ2ndOrd</td><td>2.03±0.73</td><td>5.32±1.95</td><td>1.47</td><td>6.91±5.45</td><td>5.05±3.08</td><td>0.20</td><td>2.55±0.44</td><td>17.7±31.4</td><td>0.37</td><td>2.89±0.22</td><td>26.3±10.5</td><td>1.1</td></tr><tr><td>0.60</td><td>1.39</td><td></td><td></td><td></td><td></td><td>0.41</td><td>9.61</td><td></td><td>0.17</td><td>9.03</td><td></td></tr><tr><td rowspan="2">DQConvRlx</td><td>2.00±0.76</td><td>5.32±1.95</td><td>1.47</td><td>6.95±5.39</td><td>5.05±3.10</td><td>0.20</td><td>2.53±0.77</td><td>17.2±27.3</td><td>0.17</td><td>2.89±0.23</td><td>25.9±10.8</td><td>1.04</td></tr><tr><td>0.58</td><td>1.40</td><td></td><td></td><td></td><td></td><td>0.51</td><td>9.64</td><td></td><td>0.17</td><td>9.01</td><td></td></tr><tr><td rowspan="2">DQ2Steps</td><td>3.26±1.24</td><td>5.27±2.05</td><td>-</td><td>17.0±13.2</td><td>7.59±4.12</td><td>-</td><td>7.17±6.77</td><td>19.5±23.1</td><td>-</td><td>9.46±8.92</td><td>43.9±45.8</td><td>-</td></tr><tr><td>0.99</td><td>1.52</td><td></td><td></td><td></td><td></td><td>3.75</td><td>10.1</td><td></td><td>3.20</td><td>17.4</td><td></td></tr><tr><td rowspan="2">Dan [9]</td><td>2.00±0.75</td><td>5.45±2.14</td><td>1.47</td><td>11.4±9.91</td><td>27.4±73.5</td><td>17.8</td><td>4.01±4.20</td><td>565.±1132</td><td>1.90</td><td>18.3±26.5</td><td>5801±4347</td><td>2.26</td></tr><tr><td>0.60</td><td>1.54</td><td></td><td></td><td></td><td></td><td>1.20</td><td>336.</td><td></td><td>10.7</td><td>2592</td><td>2.26</td></tr><tr><td rowspan="2">ChVecOpt</td><td>2.08±0.74</td><td>5.96±1.79</td><td>2.47</td><td>7.22±5.00</td><td>28.0±18.0</td><td>0.31</td><td>2.75±0.44</td><td>45.3±22.4</td><td>4.13</td><td>2.95±0.25</td><td>39.6±23.6</td><td>1.47</td></tr><tr><td>0.63</td><td>1.55</td><td></td><td></td><td></td><td></td><td>0.44</td><td>22.1</td><td></td><td>0.19</td><td>15.9</td><td>1.47</td></tr><tr><td>QuatVecOpt</td><td>2.04±0.81</td><td>5.71±2.06</td><td>0.81</td><td>7.37±5.05</td><td>16.9±11.0</td><td>0.12</td><td>2.69±0.37</td><td>45.8±23.0</td><td>1.00</td><td>2.95±0.27</td><td>38.8±25.8</td><td>0.48</td></tr><tr><td rowspan="7">best translation α</td><td rowspan="2">DQOpt</td><td>3.21±1.16</td><td>5.26±1.99</td><td>0.03</td><td>7.75±5.27</td><td>5.31±2.77</td><td>0.22</td><td>3.84±2.92</td><td>18.5±21.1</td><td>0.05</td><td>3.37±0.35</td><td>23.4±10.4</td><td>17.8</td></tr><tr><td>0.99</td><td>1.46</td><td></td><td></td><td></td><td></td><td>1.80</td><td>10.3</td><td></td><td>0.29</td><td>7.77</td><td></td></tr><tr><td rowspan="2">DQ2ndOrd</td><td>3.21±1.16</td><td>5.26±1.99</td><td>0.03</td><td>7.75±5.27</td><td>5.31±2.77</td><td>0.22</td><td>3.84±2.92</td><td>18.5±21.1</td><td>0.05</td><td>3.37±0.35</td><td>23.4±10.4</td><td>17.</td></tr><tr><td>0.99</td><td>1.46</td><td></td><td></td><td></td><td></td><td>1.80</td><td>10.3</td><td></td><td>0.29</td><td>7.77</td><td></td></tr><tr><td rowspan="2">DQConvRlx</td><td>3.21±1.16</td><td>5.26±1.99</td><td>0.03</td><td>7.72±5.38</td><td>5.34±2.74</td><td>0.22</td><td>3.83±2.89</td><td>18.4±21.1</td><td>0.05</td><td>3.35±0.36</td><td>23.3±10.3</td><td>17.8</td></tr><tr><td>0.99</td><td>1.46</td><td></td><td></td><td></td><td></td><td>1.82</td><td>10.3</td><td></td><td>0.28</td><td>7.75</td><td></td></tr><tr><td>DQ2Steps</td><td>3.26±1.24</td><td>5.27±2.05</td><td>-</td><td>17.0±13.2</td><td>7.59±4.12</td><td>-</td><td>7.17±6.77</td><td>19.5±23.1</td><td>-</td><td>9.46±8.92</td><td>43.9±45.8</td><td>-</td></tr><tr><td rowspan="6">best translation α</td><td rowspan="2">Dan [9]</td><td>2.36±0.94</td><td>5.14±2.07</td><td>3.19</td><td>10.7±11.2</td><td>20.2±55.2</td><td>32.5</td><td>4.19±5.62</td><td>270.±445</td><td>42.1</td><td>19.3±27.8</td><td>5208±3804</td><td>25.1</td></tr><tr><td>0.72</td><td>1.43</td><td></td><td></td><td></td><td></td><td>1.18</td><td>141.</td><td></td><td>11.5</td><td>2110</td><td>25.1</td></tr><tr><td rowspan="2">ChVecOpt</td><td>3.20±1.14</td><td>5.88±1.84</td><td>0.03</td><td>15.0±12.9</td><td>15.9±8.88</td><td>0.03</td><td>7.21±6.77</td><td>18.5±15.2</td><td>0.01</td><td>5.74±1.49</td><td>24.6±9.79</td><td>0.07</td></tr><tr><td>0.98</td><td>1.67</td><td></td><td></td><td></td><td></td><td>3.71</td><td>8.90</td><td></td><td>1.59</td><td>7.43</td><td></td></tr><tr><td rowspan="2">QuatVecOpt</td><td>3.17±1.14</td><td>5.69±1.93</td><td>0.13</td><td>9.82±8.03</td><td>14.8±9.11</td><td>0.06</td><td>6.45±5.12</td><td>19.9±13.5</td><td>0.01</td><td>4.94±1.47</td><td>24.2±8.55</td><td>0.07</td></tr><tr><td>1.09</td><td>1.65</td><td></td><td></td><td></td><td></td><td>3.29</td><td>8.62</td><td></td><td>1.27</td><td>7.08</td><td></td></tr></table>
|
| 396 |
+
|
| 397 |
+
<table><tr><td rowspan="2">α</td><td rowspan="2">Algorithm</td><td colspan="3">Random</td><td colspan="3">Circular</td><td colspan="3">Linear</td></tr><tr><td>εr(deg)</td><td>εt(cm)</td><td>α</td><td>εr(deg)</td><td>εt(cm)</td><td>α</td><td>εr(deg)</td><td>εt(cm)</td><td>α</td></tr><tr><td rowspan="14">best rotation α</td><td rowspan="2">DQOpt</td><td>0.0523±0.0162</td><td>0.1857±0.0487</td><td>0.26</td><td>6.29±2.17</td><td>42.5±8.92</td><td>0.57</td><td>8.31±2.63</td><td>45.3±8.94</td><td>0.62</td></tr><tr><td>0.0156</td><td>0.0563</td><td></td><td>2.02</td><td>9.09</td><td></td><td>2.42</td><td></td><td></td></tr><tr><td rowspan="2">DQ2ndOrd</td><td>0.0523±0.0162</td><td>0.1857±0.0487</td><td>0.26</td><td>6.29±2.17</td><td>42.5±8.92</td><td>0.57</td><td>8.31±2.63</td><td>45.3±8.94</td><td>0.62</td></tr><tr><td>0.0156</td><td>0.0553</td><td></td><td>2.02</td><td>9.09</td><td></td><td>2.42</td><td></td><td></td></tr><tr><td rowspan="2">DQConvRlx</td><td>0.0523±0.0162</td><td>0.1858±0.0487</td><td>0.26</td><td>6.25±2.22</td><td>42.5±8.91</td><td>0.57</td><td>8.25±2.66</td><td>45.3±8.98</td><td>0.62</td></tr><tr><td>0.0156</td><td>0.0564</td><td></td><td>1.98</td><td>9.03</td><td></td><td>2.34</td><td></td><td></td></tr><tr><td rowspan="2">DQ2Steps</td><td>0.0532±0.0171</td><td>0.1846±0.0591</td><td>-</td><td>9.02±3.24</td><td>42.9±8.91</td><td>-</td><td>12.9±4.30</td><td>46.2±8.47</td><td>-</td></tr><tr><td>0.0152</td><td>0.0526</td><td></td><td>2.86</td><td>8.90</td><td></td><td>3.72</td><td></td><td></td></tr><tr><td rowspan="2">Dan [9]</td><td>0.0524±0.0161</td><td>0.1889±0.0516</td><td>0.26</td><td>17.0±7.93</td><td>347.±139.</td><td>42.1</td><td>242.</td><td>29.9</td><td></td></tr><tr><td>0.0157</td><td>0.0548</td><td></td><td>5.73</td><td>98.8</td><td></td><td>7.22</td><td></td><td></td></tr><tr><td rowspan="2">ChVecOpt</td><td>0.0491±0.0170</td><td>0.1783±0.0521</td><td>1.04</td><td>6.43±2.53</td><td>45.6±9.01</td><td>0.57</td><td>8.65±2.54</td><td>51.3±8.93</td><td>1.00</td></tr><tr><td>0.0140</td><td>0.0504</td><td></td><td>1.93</td><td>9.04</td><td></td><td>2.38</td><td></td><td></td></tr><tr><td rowspan="2">QuatVecOpt</td><td>0.0500±0.0148</td><td>0.1753±0.0503</td><td>0.26</td><td>6.60±2.16</td><td>45.7±9.52</td><td>0.26</td><td>8.31±2.85</td><td>50.5±9.07</td><td>0.34</td></tr><tr><td>0.0151</td><td>0.0508</td><td></td><td>2.07</td><td>8.19</td><td></td><td>2.47</td><td></td><td></td></tr><tr><td rowspan="14">best translation α</td><td rowspan="2">DQOpt</td><td>0.0527±0.0171</td><td>0.1786±0.0555</td><td>0.24</td><td>6.56±2.13</td><td>40.9±10.1</td><td>0.62</td><td>9.56±3.03</td><td>45.0±8.34</td><td>1.14</td></tr><tr><td>0.0148</td><td>0.0526</td><td></td><td>2.32</td><td>8.18</td><td></td><td>2.90</td><td></td><td></td></tr><tr><td rowspan="2">DQ2ndOrd</td><td>0.0527±0.0171</td><td>0.1786±0.0555</td><td>0.24</td><td>6.56±2.13</td><td>40.9±10.1</td><td>0.62</td><td>9.56±3.03</td><td>45.0±8.35</td><td>1.14</td></tr><tr><td>0.0148</td><td>0.0526</td><td></td><td>2.32</td><td>8.18</td><td></td><td>2.90</td><td></td><td></td></tr><tr><td rowspan="2">DQConvRlx</td><td>0.0527±0.0171</td><td>0.1786±0.0554</td><td>0.24</td><td>6.55±2.12</td><td>40.9±10.0</td><td>0.62</td><td>9.56±3.03</td><td>45.0±8.50</td><td>1.14</td></tr><tr><td>0.0148</td><td>0.0525</td><td></td><td>2.40</td><td>8.21</td><td></td><td>2.85</td><td></td><td></td></tr><tr><td rowspan="2">DQ2Steps</td><td>0.0532±0.0171</td><td>0.1846±0.0591</td><td>-</td><td>9.02±3.24</td><td>42.9±8.91</td><td>-</td><td>12.9±4.30</td><td>46.2±8.47</td><td>-</td></tr><tr><td>0.0152</td><td>0.0626</td><td></td><td>2.86</td><td>8.90</td><td></td><td>3.72</td><td></td><td></td></tr><tr><td rowspan="2">Dan [9]</td><td>0.0599±0.0213</td><td>0.1809±0.0555</td><td>0.96</td><td>17.0±7.93</td><td>347.±139.</td><td>42.1</td><td>22.9±12.9</td><td>497.±263.</td><td>21.2</td></tr><tr><td>0.0172</td><td>0.0532</td><td></td><td>5.73</td><td>98.8</td><td></td><td>7.52</td><td></td><td></td></tr><tr><td rowspan="2">ChVecOpt</td><td>0.0506±0.0154</td><td>0.1689±0.0558</td><td>0.96</td><td>8.77±3.47</td><td>30.9±11.4</td><td>0.02</td><td>4.53</td><td>34.0±10.5</td><td>0.01</td></tr><tr><td>0.0140</td><td>0.0480</td><td></td><td>2.58</td><td>10.0</td><td></td><td>3.76</td><td></td><td></td></tr><tr><td rowspan="2">QuatVecOpt</td><td>0.0514±0.0155</td><td>0.1719±0.0516</td><td>0.24</td><td>9.15±2.95</td><td>30.4±10.3</td><td>0.01</td><td>4.09</td><td>34.3±10.2</td><td>0.02</td></tr><tr><td>0.0146</td><td>0.0495</td><td></td><td>2.99</td><td>8.93</td><td></td><td>3.48</td><td></td><td></td></tr></table>
|
| 398 |
+
|
| 399 |
+
Table 2: Real and synthetic data experiments. We show the median and distance to the $25\%$ and $75\%$ percentiles of the error distribution of the absolute rotation (geodesic) and translation (Euclidean) errors $(\varepsilon_r$ and $\varepsilon_t$ ). We separate the results according to different types of motions. The $\alpha$ values are picked to give either the minimal rotation or translation mean error. We highlight the best median results for each motion type and best rotation/translation $\alpha$ . Notice that it does not necessarily indicate significance, where often the different results are very close. DQ2Steps does not depend on $\alpha$ so its estimates are the same for best rotation/translation $\alpha$ .
|
| 400 |
+
|
| 401 |
+
not solve an optimization problem shows a degradation in accuracy in the same scenarios.
|
| 402 |
+
|
| 403 |
+
We also introduced a prior to our formulation which does not change the efficiency nor the optimality of our solution. The prior term can help for having maximum a posterior probability (MAP) analysis, or to regularize the estimation for ill-posed scenarios. Other generalizations, such as adding weights or a covariance, can be trivially incorporated to our formulation.
|
| 404 |
+
|
| 405 |
+
Generally we find that optimal methods are more robust to almost planar motions, however the best performing method will depend on the trajectory and noise in the given problem which dictates the residuals distribution. Our method has the
|
| 406 |
+
|
| 407 |
+
advantage of providing good results comparable with other optimal methods, while being very efficient.
|
| 408 |
+
|
| 409 |
+
# Acknowledgments
|
| 410 |
+
|
| 411 |
+
This research was done as part of a computer vision research project at Zenuity. The authors gratefully acknowledge funding and support from Zenuity. We would also like to thank Ernesto Nunes for useful discussions.
|
| 412 |
+
|
| 413 |
+
# References
|
| 414 |
+
|
| 415 |
+
[1] Yiu Cheung Shiu and Shaheen Ahmad. Calibration of wrist-mounted robotic sensors by solving homogeneous transform equations of the form $\mathrm{ax} = \mathrm{xb}$ . Robotics and Automation, IEEE Transactions on, 5(1):16-29, 1989.
|
| 416 |
+
[2] Sandro Esquivel. Eye-to-eye calibration: extrinsic calibration of multi-camera systems using hand-eye calibration methods. 2015.
|
| 417 |
+
[3] Mili Shah, Roger D. Eastman, and Tsai Hong. An overview of robot-sensor calibration methods for evaluation of perception systems. In Proceedings of the Workshop on Performance Metrics for Intelligent Systems, PerMIS '12, pages 15-20, New York, NY, USA, 2012. ACM.
|
| 418 |
+
[4] Roger Y. Tsai and Reimer K. Lenz. A new technique for fully autonomous and efficient 3d robotics hand-eye calibration. In Proceedings of the 4th International Symposium on Robotics Research, pages 287-297, Cambridge, MA, USA, 1988. MIT Press.
|
| 419 |
+
[5] Frank Chongwoo Park and Bryan J. Martin. Robot sensor calibration: solving $\text{ax} = \text{xb}$ on the euclidean group. IEEE Trans. Robotics and Automation, 10:717-721, 1994.
|
| 420 |
+
[6] Radu Horaud and Fadi Dornaika. Hand-eye calibration. The international journal of robotics research, 14(3):195-210, 1995.
|
| 421 |
+
[7] Jack C. K. Chou and M. Kamel. Finding the position and orientation of a sensor on a robot manipulator using quaternions. The International Journal of Robotics Research, 10(3):240-254, 1991.
|
| 422 |
+
[8] Klaus H. Strobl and Gerd Hirzinger. Optimal hand-eye calibration. 2006 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 4647-4653, 2006.
|
| 423 |
+
[9] Kostas Daniilidis. Hand-eye calibration using dual quaternions. I. J. Robotics Res., 18:286-298, 1999.
|
| 424 |
+
[10] Eduardo Bayro-Corrochano, Kostas Daniilidis, and Gerald Sommer. Motor algebra for 3d kinematics: The case of the hand-eye calibration. Journal of Mathematical Imaging and Vision, 13(2):79-100, Oct 2000.
|
| 425 |
+
[11] Richard Hartley, Jochen Trumpf, Yuchao Dai, and Hongdong Li. Rotation averaging. International Journal of Computer Vision, 103(3):267-305, Jul 2013.
|
| 426 |
+
[12] Y. B. Jia. Dual quaternion. Com S 477/577, Fall 2015, Course handouts, 2013. URL http://web.cs.iastate.edu/cs577/. Date accessed: January 30, 2017., 2017.
|
| 427 |
+
[13] J. von Neuman and E. Wigner. Über merkwürdige diskrete Eigenwerte. Über das Verhalten von Eigenwerten bei adiabatischen Prozessen. Physikalische Zeitschrift, 30:467-470, 1929.
|
| 428 |
+
[14] Peter D. Lax. Linear Algebra and Its Applications. Wiley-Interscience, Hoboken, NJ, second edition, 2007.
|
| 429 |
+
[15] James Arvo. Graphics gems iii. chapter Fast Random Rotation Matrices, pages 117-120. Academic Press Professional, Inc., San Diego, CA, USA, 1992.
|
optimalleastsquaressolutiontothehandeyecalibrationproblem/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb51c57fd10f1961754a284cc1082034eec51ff0d71c99420d86b94da91e8451
|
| 3 |
+
size 705622
|
optimalleastsquaressolutiontothehandeyecalibrationproblem/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54e93882c66dba48af7473b5833844441861d051478664e74852b3112d804d71
|
| 3 |
+
size 517570
|
optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb951a33ccf4524ccf294819d0d2cceb88e95f652fd0057d0258de96000d4116
|
| 3 |
+
size 93893
|
optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7f7ccea3b5dcee2b05ab896964dea6f0a90819d39d2576268284b4b12530ec8
|
| 3 |
+
size 117819
|