Add Batch 48f86038-98c0-43fd-bfe5-35bf1b553798
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- deepadversarialdecompositionaunifiedframeworkforseparatingsuperimposedimages/84bd10c9-362b-41d0-8f45-6775dca12a2f_content_list.json +3 -0
- deepadversarialdecompositionaunifiedframeworkforseparatingsuperimposedimages/84bd10c9-362b-41d0-8f45-6775dca12a2f_model.json +3 -0
- deepadversarialdecompositionaunifiedframeworkforseparatingsuperimposedimages/84bd10c9-362b-41d0-8f45-6775dca12a2f_origin.pdf +3 -0
- deepadversarialdecompositionaunifiedframeworkforseparatingsuperimposedimages/full.md +447 -0
- deepadversarialdecompositionaunifiedframeworkforseparatingsuperimposedimages/images.zip +3 -0
- deepadversarialdecompositionaunifiedframeworkforseparatingsuperimposedimages/layout.json +3 -0
- deepcapmonocularhumanperformancecaptureusingweaksupervision/1c7196bb-1ddf-4afe-84bc-4ecfd980478a_content_list.json +3 -0
- deepcapmonocularhumanperformancecaptureusingweaksupervision/1c7196bb-1ddf-4afe-84bc-4ecfd980478a_model.json +3 -0
- deepcapmonocularhumanperformancecaptureusingweaksupervision/1c7196bb-1ddf-4afe-84bc-4ecfd980478a_origin.pdf +3 -0
- deepcapmonocularhumanperformancecaptureusingweaksupervision/full.md +422 -0
- deepcapmonocularhumanperformancecaptureusingweaksupervision/images.zip +3 -0
- deepcapmonocularhumanperformancecaptureusingweaksupervision/layout.json +3 -0
- deepdeformlearningnonrigidrgbdreconstructionwithsemisuperviseddata/795ef101-9894-4242-88ef-2deca9b991c7_content_list.json +3 -0
- deepdeformlearningnonrigidrgbdreconstructionwithsemisuperviseddata/795ef101-9894-4242-88ef-2deca9b991c7_model.json +3 -0
- deepdeformlearningnonrigidrgbdreconstructionwithsemisuperviseddata/795ef101-9894-4242-88ef-2deca9b991c7_origin.pdf +3 -0
- deepdeformlearningnonrigidrgbdreconstructionwithsemisuperviseddata/full.md +328 -0
- deepdeformlearningnonrigidrgbdreconstructionwithsemisuperviseddata/images.zip +3 -0
- deepdeformlearningnonrigidrgbdreconstructionwithsemisuperviseddata/layout.json +3 -0
- deepdegradationpriorforlowqualityimageclassification/4e3b541d-0422-41a2-b064-b3a09907dd40_content_list.json +3 -0
- deepdegradationpriorforlowqualityimageclassification/4e3b541d-0422-41a2-b064-b3a09907dd40_model.json +3 -0
- deepdegradationpriorforlowqualityimageclassification/4e3b541d-0422-41a2-b064-b3a09907dd40_origin.pdf +3 -0
- deepdegradationpriorforlowqualityimageclassification/full.md +417 -0
- deepdegradationpriorforlowqualityimageclassification/images.zip +3 -0
- deepdegradationpriorforlowqualityimageclassification/layout.json +3 -0
- deepdistancetransformfortubularstructuresegmentationinctscans/f744bb37-5d0b-4865-b13d-d038df3c002a_content_list.json +3 -0
- deepdistancetransformfortubularstructuresegmentationinctscans/f744bb37-5d0b-4865-b13d-d038df3c002a_model.json +3 -0
- deepdistancetransformfortubularstructuresegmentationinctscans/f744bb37-5d0b-4865-b13d-d038df3c002a_origin.pdf +3 -0
- deepdistancetransformfortubularstructuresegmentationinctscans/full.md +301 -0
- deepdistancetransformfortubularstructuresegmentationinctscans/images.zip +3 -0
- deepdistancetransformfortubularstructuresegmentationinctscans/layout.json +3 -0
- deepemdfewshotimageclassificationwithdifferentiableearthmoversdistanceandstructuredclassifiers/abd5939a-ed49-455a-9151-ae411e3a5201_content_list.json +3 -0
- deepemdfewshotimageclassificationwithdifferentiableearthmoversdistanceandstructuredclassifiers/abd5939a-ed49-455a-9151-ae411e3a5201_model.json +3 -0
- deepemdfewshotimageclassificationwithdifferentiableearthmoversdistanceandstructuredclassifiers/abd5939a-ed49-455a-9151-ae411e3a5201_origin.pdf +3 -0
- deepemdfewshotimageclassificationwithdifferentiableearthmoversdistanceandstructuredclassifiers/full.md +343 -0
- deepemdfewshotimageclassificationwithdifferentiableearthmoversdistanceandstructuredclassifiers/images.zip +3 -0
- deepemdfewshotimageclassificationwithdifferentiableearthmoversdistanceandstructuredclassifiers/layout.json +3 -0
- deeperforensics10alargescaledatasetforrealworldfaceforgerydetection/33e379f1-c85b-4b39-9167-2e6e5cff38c5_content_list.json +3 -0
- deeperforensics10alargescaledatasetforrealworldfaceforgerydetection/33e379f1-c85b-4b39-9167-2e6e5cff38c5_model.json +3 -0
- deeperforensics10alargescaledatasetforrealworldfaceforgerydetection/33e379f1-c85b-4b39-9167-2e6e5cff38c5_origin.pdf +3 -0
- deeperforensics10alargescaledatasetforrealworldfaceforgerydetection/full.md +311 -0
- deeperforensics10alargescaledatasetforrealworldfaceforgerydetection/images.zip +3 -0
- deeperforensics10alargescaledatasetforrealworldfaceforgerydetection/layout.json +3 -0
- deepfaceflowinthewilddense3dfacialmotionestimation/5de7671c-2c82-4daa-b2e2-e0a71d4784a4_content_list.json +3 -0
- deepfaceflowinthewilddense3dfacialmotionestimation/5de7671c-2c82-4daa-b2e2-e0a71d4784a4_model.json +3 -0
- deepfaceflowinthewilddense3dfacialmotionestimation/5de7671c-2c82-4daa-b2e2-e0a71d4784a4_origin.pdf +3 -0
- deepfaceflowinthewilddense3dfacialmotionestimation/full.md +249 -0
- deepfaceflowinthewilddense3dfacialmotionestimation/images.zip +3 -0
- deepfaceflowinthewilddense3dfacialmotionestimation/layout.json +3 -0
- deepfacesuperresolutionwithiterativecollaborationbetweenattentiverecoveryandlandmarkestimation/7bdfd744-7981-467c-a1fa-cbbbdf8edc59_content_list.json +3 -0
- deepfacesuperresolutionwithiterativecollaborationbetweenattentiverecoveryandlandmarkestimation/7bdfd744-7981-467c-a1fa-cbbbdf8edc59_model.json +3 -0
deepadversarialdecompositionaunifiedframeworkforseparatingsuperimposedimages/84bd10c9-362b-41d0-8f45-6775dca12a2f_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff4fe495727fa1622c3372c95b150662de0082c16e396e16135fab6a8ca6ac40
|
| 3 |
+
size 94298
|
deepadversarialdecompositionaunifiedframeworkforseparatingsuperimposedimages/84bd10c9-362b-41d0-8f45-6775dca12a2f_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae72d4efa0e27d3a111a290498cf60983f27011e5e648748f76c74c1ddb9eb22
|
| 3 |
+
size 119818
|
deepadversarialdecompositionaunifiedframeworkforseparatingsuperimposedimages/84bd10c9-362b-41d0-8f45-6775dca12a2f_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7430bfc5a9453bd11b82ccef36217c4cb1533d0fb6929246a24ae54fac603013
|
| 3 |
+
size 4450675
|
deepadversarialdecompositionaunifiedframeworkforseparatingsuperimposedimages/full.md
ADDED
|
@@ -0,0 +1,447 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Deep Adversarial Decomposition: A Unified Framework for Separating Superimposed Images
|
| 2 |
+
|
| 3 |
+
Zhengxia Zou<sup>1*</sup>, Sen Lei<sup>2</sup>, Tianyang Shi<sup>3</sup>, Zhenwei Shi<sup>2</sup>, Jieping Ye<sup>1,4</sup>
|
| 4 |
+
<sup>1</sup>University of Michigan, Ann Arbor, <sup>2</sup>Beihang University, <sup>3</sup>NetEase Fuxi AI Lab, <sup>4</sup>Didi Chuxing
|
| 5 |
+
{zzhengxi, jpye}@umich.edu, {senlei, shizhenwei}@buaa.edu.cn, shitianyang@corp.netease.com
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Separating individual image layers from a single mixed image has long been an important but challenging task. We propose a unified framework named "deep adversarial decomposition" for single superimposed image separation. Our method deals with both linear and non-linear mixtures under an adversarial training paradigm. Considering the layer separating ambiguity that given a single mixed input, there could be an infinite number of possible solutions, we introduce a "Separation-Critic" - a discriminative network which is trained to identify whether the output layers are well-separated and thus further improves the layer separation. We also introduce a "crossroad $l_{1}$ " loss function, which computes the distance between the unordered outputs and their references in a crossover manner so that the training can be well-instructed with pixel-wise supervision. Experimental results suggest that our method significantly outperforms other popular image separation frameworks. Without specific tuning, our method achieves the state of the art results on multiple computer vision tasks, including the image deraining, photo reflection removal, and image shadow removal.
|
| 10 |
+
|
| 11 |
+
# 1. Introduction
|
| 12 |
+
|
| 13 |
+
In the computer vision field, many tasks can be considered as image layer mixture/separation problems. For example, when we take a picture on rainy days, the image obtained can be viewed as a mixture of two layers: a rain-streak layer and a clean background layer. When we look through a transparent glass, we see a mixture of the scene beyond the glass and the scene reflected by the glass.
|
| 14 |
+
|
| 15 |
+
Separating superimposed images with a single observation has long been an important but challenging task. On one hand, it forms the foundation of a large group of real-world applications, including transparency separation, shadow removal, deraining, etc. On the other hand, it is naturally a massively ill-posed problem, where the difficulty
|
| 16 |
+
|
| 17 |
+
lies not only in the absence of the mixture function but also in the lack of constraints on the output space. In recent literature, most of the above-mentioned tasks are investigated individually despite the strong correlation between them [8, 23, 48, 54, 59, 60]. In this paper, we propose a new framework for single superimposed image separation, as shown in Fig 1, which deals with all the above tasks under a unified framework.
|
| 18 |
+
|
| 19 |
+
Learning a priori for image decomposition. Given a single superimposed image, as we have no extra constraint on the output space, there could be an infinite number of possible decomposition. Previous works often integrate hard-crafted priors to apply additional constraints to their separation outputs. For example, in recent literature [17, 67], researchers introduced the "gradient exclusiveness" [67] and the "internal self-similarity" [17], where the former one emphasizes the independence of the layers to be separated in their gradient domain, and the latter one assumes that the distribution of small patches within each separate layer should be "simpler" (more uniform) than in the original mixed one. However, these hand-crafted priors may introduce unexpected bias and thus fails in complex mixture conditions. In this paper, we investigate an interesting question: can a good prior be learned from data? To answer this question, we re-examine the prior under a totally different point of view by taking advantage of the recent success of generative adversarial networks [19, 28, 47]. We introduce a "Separation-Critic" - a discriminative network $D_{C}$ , which is trained to identify whether the output layers are well-separated. The layer separation thus can be gradually enforced by fooling the Critic under an adversarial training paradigm.
|
| 20 |
+
|
| 21 |
+
Crossroad loss function. In addition to the Critic $D_C$ , we also introduce a layer separator $G$ and train it to minimize the distance between the separated outputs and the ground truth references. However, a standard $l_1$ or $l_2$ loss does not apply to our task since the $G$ may predict unordered outputs. We, therefore, introduce a "crossroad $l_1$ " loss which computes the distance between the outputs and their references in a crossover fashion. In this way, the train-
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Single Mixed Image Separation
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
Single Mixed Image Separation
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
Application: deraining
|
| 39 |
+
Input
|
| 40 |
+
Figure 1: We propose a unified framework for single mixed image separation under an adversarial training paradigm. Our method can be applied to a variety of real-world tasks, including image deraining, photo reflection removal, image shadow removal, etc.
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
Output
|
| 44 |
+
|
| 45 |
+

|
| 46 |
+
Input
|
| 47 |
+
|
| 48 |
+

|
| 49 |
+
Application: shadow removal
|
| 50 |
+
Input
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
Output
|
| 54 |
+
|
| 55 |
+
ing can be well-instructed by pixel-wise supervision.
|
| 56 |
+
|
| 57 |
+
Confronting nonlinear mixture and degradation. In some real-world image separation tasks, the mixture of images is usually beyond linear. For example, the formation of a reflection image may depend not only on the relative position of the camera to the image plane but also on lighting conditions [59]. Besides, the degradation (e.g., overexposure and noise) may further increase the difficulty of the separation. In these conditions, one may need injecting "imagination" into the algorithm to recover the hidden structure of degraded data. Inspired by the recent image translation methods [28], we further introduce two Markovian discriminators (PatchGAN) to improve the perceptual quality of the outputs.
|
| 58 |
+
|
| 59 |
+
Experimental results show that our method significantly outperforms other popular image separation frameworks [17, 35]. We apply our method to a variety of computer vision tasks. Without specifically tuning, we achieve the state of the art results on nine datasets of three different tasks, including image deraining, photo reflection removal, and image shadow removal. To our best knowledge, this is the first unified framework for solving these problems as most previous solutions on these tasks are separately investigated and designed.
|
| 60 |
+
|
| 61 |
+
# 2. Related Work
|
| 62 |
+
|
| 63 |
+
Superimposed image separation. In signal processing, a similar topic to our paper is Blind Source Separation (BSS) [5, 14-16, 27], which aims to separate source signals from a set of mixed ones. The research of this topic can be traced back to the 1990s [26], where the Independent Component Analysis (ICA) [27] was a representative
|
| 64 |
+
|
| 65 |
+
of the methods at the time. The key to estimating the ICA model is the Central Limit Theorem, i.e., the distribution of a sum of two images tends toward a Gaussian distribution, under certain conditions. Some statistics-based criteria thus have been introduced to measure the independence and non-Gaussianity of the images, e.g., Kurtosis and negative entropy. The main difference between the BSS and our task is that the former one typically requires multiple mixed inputs [14-16, 27] or additional user interactions [35], while the latter one does not. We focus on the latter case since multiple mixed inputs or user interactions are not always available in practice. Recently, Gandelsman et al. proposed a deep learning-based method called Double-DIP [17] that can separate superimposed images with a single observation under certain conditions. However, their method can only handle the input with regular mixed patterns.
|
| 66 |
+
|
| 67 |
+
Related applications. Many real-world tasks can be viewed as special cases of superimposed image separation:
|
| 68 |
+
|
| 69 |
+
1) Single Image Deraining. A rainy image can be simply viewed as a superposition of a clean background image and rain streaks. Some early deraining methods were designed based on low-rank constraints [4, 41, 42, 71] and sparse coding methods [20, 29, 43, 57], where the rain-streaks are considered as high frequency noise. However, these methods usually lead to over-smoothed results. Recent deraining methods typically formulate the deraining as a deep learning based "image-to-image" translation process which is trained with pixel-wise regression loss [12, 13, 23, 39, 55, 62, 64].
|
| 70 |
+
2) Reflection-removal. Early reflection removal methods often require additional input images [35] and hand-crafted priors on estimating the reflection layer. Such priors include
|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
Figure 2: An overview of our method. Our method consists of a separator $G$ and several discriminators. The $G$ , which is trained under a "crossroad $l_{1}$ " loss, aims to decompose a single mixed input into two individual images. To identify whether the separation is good or not, we introduce a "Critic" $D_{C}$ , which is trained together with $G$ under an adversarial training paradigm. We further use two Markovian Discriminators $(D_{M1}, D_{M2})$ to improve the perceptual quality of the outputs.
|
| 74 |
+
|
| 75 |
+
the smoothness prior [40, 51], gradient sparsity constraint [2, 36, 37], ghost cues [51], etc. In Recent methods, the priors are usually explored by data-driven methods [9, 44, 53, 60] and adversarial training/synthesis [59, 67], which better handle more complex reflections.
|
| 76 |
+
|
| 77 |
+
3) Shadow-removal. To remove shadows, some early works designed physical models based on illumination invariant assumption [10, 11]. Later, more methods based on hand-crafted features were proposed [1, 21, 25, 32, 52, 66, 69]. Similar to deraining and reflection removal, recent researches on shadow removal also suggest using deep learning or adversarial training techniques, which brings additional improvements especially on complex lightening conditions [8, 24, 30, 33, 46, 50, 54, 68].
|
| 78 |
+
|
| 79 |
+
Generative Adversarial Networks (GAN). GAN has received a great deal of attention in recent years and has achieved impressive results in a variety of computer vision tasks, e.g., image generation [7, 47], image style transfer [28, 70], image super-resolution [34], etc. A typical GAN [19] consists of two neural networks: a generator $G$ and a discriminator $D$ . The key to the GAN's success is the idea of adversarial training where the $G$ and $D$ will contest with each other in a minimax two-player game and forces the generated data to be, in principle, indistinguishable from real ones. More recently, GAN has also been applied to some image separation tasks to improve perceptual quality of the recovered images, including image deraining [38, 65], image reflection removal [44, 59, 67] and image de-shadowing [8, 24, 33, 54].
|
| 80 |
+
|
| 81 |
+
# 3. Methodology
|
| 82 |
+
|
| 83 |
+
We frame the training of our model as a pixel-wise regression process with the help of adversarial losses. Our method consists of an image separator $G$ , a Separation Critic $D_{C}$ and two Markovian discriminators $D_{M1}$ and $D_{M2}$ . Fig. 2 shows an overview of our method.
|
| 84 |
+
|
| 85 |
+
# 3.1. Crossroad $l_{1}$ Loss Function
|
| 86 |
+
|
| 87 |
+
Suppose $\hat{x}_1$ and $\hat{x}_2$ represent two individual images and $y = f(\hat{x}_1, \hat{x}_2)$ represents their mixture. We assume the operation $f(\cdot)$ is unknown and could be either a linear or a non-linear mixing function. Given a mixed input $y$ , our separator aims to predict two individual outputs $x_1$ and $x_2$ :
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
x _ {1}, x _ {2} = G (y), \tag {1}
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
that recover the two original images $\hat{x}_1$ and $\hat{x}_2$ .
|
| 94 |
+
|
| 95 |
+
We train the separator $G$ to minimize the distance between its outputs $(x_{1}, x_{2})$ and their ground truth $(\hat{x}_{1}, \hat{x}_{2})$ . Note that since we can not specify the order of the two outputs for a typical image decomposition problem (especially when the $\hat{x}_{1}$ and $\hat{x}_{2}$ are from the same image domain), the standard pixel-wise $l_{1}$ or $l_{2}$ loss functions do not apply to our task. The solution to this problem is to introduce new loss functions that can deal with unordered outputs. We therefore propose a new loss function called "crossroad $l_{1}$ " loss for our task. The main idea behind is to crossly compute the distance by exchanging the order of the outputs and then take their minimum value as the final response:
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
\begin{array}{l} l _ {c r o s s} \left(\left(x _ {1}, x _ {2}\right), \left(\hat {x} _ {1}, \hat {x} _ {2}\right)\right) \\ = \min \left\{d _ {1, 1} + d _ {2, 2}, d _ {1, 2} + d _ {2, 1} \right\} \tag {2} \\ \end{array}
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
where $d_{i,j} = \| x_i - \hat{x}_j\| _1,i,j\in \{1,2\}$ . We use the standard $l_{1}$ function rather than $l_{2}$ in $d_{i,j}$ since it encourages less blurring effect. The $G$ can be therefore trained to minimize the loss $\mathcal{L}_{cross}$ on an entire dataset:
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\mathcal {L} _ {\text {c r o s s}} (G) = E _ {\hat {x} _ {i} \sim p _ {i} (\hat {x} _ {i})} \left\{l _ {\text {c r o s s}} \left(\left(x _ {1}, x _ {2}\right), \left(\hat {x} _ {1}, \hat {x} _ {2}\right)\right) \right\}, \tag {3}
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
where $p_i(\hat{x}_i)$ represents the distribution of the image data, and $i \in \{1, 2\}$ .
|
| 108 |
+
|
| 109 |
+
# 3.2. Separation Critic
|
| 110 |
+
|
| 111 |
+
Considering the layer ambiguity, instead of applying any hand-crafted [67] or statistics-based constraints [27] to
|
| 112 |
+
|
| 113 |
+

|
| 114 |
+
(a) Linear mixture
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
(b) Linear mixture + overexposure
|
| 118 |
+
|
| 119 |
+

|
| 120 |
+
(c) Linear mixture + random gamma
|
| 121 |
+
Figure 3: We compare different decomposition priors for image separation, including the "exclusion loss" [17, 67], "Kurtosis" [27], and the proposed "Separation-Critic". For either of the three metrics, a lower score indicates a heavier mixture. In sub-figure (a), we plot the response of the three metrics given a set of mixed inputs that are synthesized based on Eq. (5). Clearly, if a metric is good enough, the response should be monotonically decreasing as $\alpha$ increases. We also test on additional nonlinear corruptions, including (b) overexposure, (c) random gamma correction, and (d) random hue transform. The proposed Critic shows better robustness in all conditions.
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
(d) Linear mixture + random hue
|
| 125 |
+
|
| 126 |
+
our output space, we learn a decomposition prior through an adversarial training process. We therefore introduce a "Separation-Critic" $D_C$ which is trained to distinguish between the outputs $(x_1,x_2)$ and a pair of clean images $(\hat{x}_1,\hat{x}_2)$ , and is independent on the order of the two inputs. We express its objective function as follows:
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\begin{array}{l} \mathcal {L} _ {\text {c r i t i c}} (G, D _ {C}) = E _ {\hat {x} _ {i} \sim p _ {i} (\hat {x} _ {i})} \left\{\log D _ {C} (\hat {x} _ {1}, \hat {x} _ {2}) \right\} \\ + E _ {x _ {i} \sim p _ {i} (x _ {i})} \left\{\log \left(1 - D _ {C} \left(x _ {1}, x _ {2}\right)\right) \right\} \tag {4} \\ + E _ {\hat {x} _ {i} \sim p _ {i} (\hat {x} _ {i})} \left\{\log \left(1 - D _ {C} \left(\operatorname {m i x} \left(\hat {x} _ {1}, \hat {x} _ {2}\right)\right)\right) \right\}. \\ \end{array}
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
Note that when training the $D_C$ with fake samples, in addition to the decomposed output $(x_{1},x_{2})$ , we also synthesize a set of "fake" images by mixing two clean images $(x_1',x_2') = \mathrm{mix}(\hat{x}_1,\hat{x}_2)$ with a random linear weight $\alpha$ to
|
| 133 |
+
|
| 134 |
+
enhance its discriminative ability on mixed images:
|
| 135 |
+
|
| 136 |
+
$$
|
| 137 |
+
x _ {1} ^ {\prime} = \alpha \hat {x} _ {1} + (1 - \alpha) \hat {x} _ {2}, \quad x _ {2} ^ {\prime} = (1 - \alpha) \hat {x} _ {1} + \alpha \hat {x} _ {2}. \tag {5}
|
| 138 |
+
$$
|
| 139 |
+
|
| 140 |
+
At the input end of the $D_C$ , we simply concatenate two images together in the channel dimension for modeling their joint probability distribution. The adversarial training of $G$ and $D_C$ is essentially a minimax optimization process, where $G$ tries to minimize this objective while $D_C$ tries to maximize it: $G^{\star} = \arg \min_{G}\max_{D_C}\mathcal{L}_{\text{critic}}(G,D_C)$ .
|
| 141 |
+
|
| 142 |
+
In Fig. 3, we give four examples to illustrate the effectiveness of our Critic. We compare a well-trained $D_C$ with two popular metrics for image separation, 1) the exclusion loss [17, 67], and 2) the Kurtosis [27], where the former one enforces separation of two images on the image gradient domain, and the latter one is widely used in BSS for measuring the independence (non-Gaussianity) of the recovered signals: Kurtosis $(u) = E\{u^4\} - 3(E\{y^2\})^2$ . For either of the three metrics, a lower score indicates a higher degree of mixture<sup>1</sup>. We mix two images by using Eq. (5) with different $\alpha$ . Clearly, if a metric is good enough, the curve should be monotonically decreasing as $\alpha$ increases. Fig. 3 (a) shows the response the above three metrics. We further add some additional nonlinear corrections on the mixed images, including (b) random overexposure, (c) random gamma correction, and (d) random hue transform. We can see our Critic shows better robustness, especially for nonlinear degradation.
|
| 143 |
+
|
| 144 |
+
# 3.3. Improving Perceptual Quality
|
| 145 |
+
|
| 146 |
+
To improve the perceptual quality of the decomposed images, we further introduce another two conditional discriminators $D_{M1}$ and $D_{M2}$ to enhance high-frequency details. We follow Isola et al. [28] and build $D_{M1}$ and $D_{M2}$ as two local perception networks - that only penalize structure at the scale of patches (a.k.a the Markovian discriminator or "PatchGAN"). The $D_{M1}$ and $D_{M2}$ try to classify if each $N \times N$ patch in an image is a clean image (real) or a decomposed one (fake). This type of architecture can be equivalently implemented by building a fully convolutional network with $N \times N$ perceptive fields, which is more computationally efficient since the responses of all patches can be obtained by taking only one time of forward propagation. We express the objective of $D_{M1}$ and $D_{M2}$ as follows:
|
| 147 |
+
|
| 148 |
+
$$
|
| 149 |
+
\begin{array}{l} \mathcal {L} _ {M i} (G, D _ {M i}) = E _ {(\hat {x} _ {i}, y) \sim p _ {i} (\hat {x} _ {i}, y)} \left\{\log D _ {M i} (\hat {x} _ {i} | y) \right\} \tag {6} \\ + E _ {\left(x _ {i}, y\right) \sim p _ {i} \left(x _ {i}, y\right)} \left\{\log \left(1 - D _ {M i} \left(x _ {i} \mid y\right)\right) \right\}, \\ \end{array}
|
| 150 |
+
$$
|
| 151 |
+
|
| 152 |
+
where $i = 1,2$ . Our final objective function is defined as follows:
|
| 153 |
+
|
| 154 |
+
$$
|
| 155 |
+
\begin{array}{l} \mathcal {L} (G, D _ {C}, D _ {M i}) = \mathcal {L} _ {c r o s s} (G) + \beta_ {C} \mathcal {L} _ {c r i t i c} (G, D _ {C}) \\ + \beta_ {M} \sum_ {i = 1, 2} \mathcal {L} _ {M i} (G, D _ {M i}) \tag {7} \\ \end{array}
|
| 156 |
+
$$
|
| 157 |
+
|
| 158 |
+

|
| 159 |
+
Input
|
| 160 |
+
|
| 161 |
+

|
| 162 |
+
|
| 163 |
+

|
| 164 |
+
|
| 165 |
+

|
| 166 |
+
|
| 167 |
+

|
| 168 |
+
|
| 169 |
+

|
| 170 |
+
|
| 171 |
+

|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
Input
|
| 175 |
+
|
| 176 |
+

|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
(a) Levin et al.
|
| 180 |
+
|
| 181 |
+

|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
(b) Double-DIP
|
| 185 |
+
|
| 186 |
+

|
| 187 |
+
|
| 188 |
+

|
| 189 |
+
(c) Ours
|
| 190 |
+
Figure 4: A comparison between our method and two image separation methods: Double-DIP [17] and a user-assisted framework proposed by Levin et al. [35]. Check out our supplementary material for more separation results.
|
| 191 |
+
|
| 192 |
+
where $\beta_{C} > 0$ and $\beta_{M} > 0$ control the balance between the different components of the objective. We aim to solve:
|
| 193 |
+
|
| 194 |
+
$$
|
| 195 |
+
G ^ {\star} = \arg \min _ {G} \max _ {D _ {C}, D _ {M i}} \mathcal {L} (G, D _ {C}, D _ {M i}), i = 1, 2. \tag {8}
|
| 196 |
+
$$
|
| 197 |
+
|
| 198 |
+
The networks $G$ , $D_{C}$ and $D_{Mi}$ thus can be alternatively updated in an end-to-end training process.
|
| 199 |
+
|
| 200 |
+
# 3.4. Implementation Details
|
| 201 |
+
|
| 202 |
+
We follow the configuration of the "UNet" [49] when designing the architecture of our separator $G$ . We build our $D_{C}$ , $D_{M1}$ and $D_{M2}$ as three standard FCNs with 4, 3, and 3 convolutional layers. The perceptive field of $D_{M1}$ and $D_{M1}$ is set to $N = 30$ . We resize the input of $D_{C}$ to a relatively small size, e.g., $64 \times 64$ , to capture the semantics of the whole image instead of adding more layers. We do not use batch-normalization in $G$ as it may introduce unexpected artifacts. As our default settings, we train our model for 200 epochs by using the Adam optimizer with batch_size = 2 and learning_rate = 0.0001. We set $\beta_{C} = \beta_{M} = 0$ for the first 10 epochs and set $\beta_{C} = \beta_{M} = 0.001$ for the rest epochs. For more implementation details, please refer to our supplementary material.
|
| 203 |
+
|
| 204 |
+
# 4. Experimental Analysis
|
| 205 |
+
|
| 206 |
+
We evaluate our methods on four tasks: 1) superimposed image separation, 2) image deraining, 3) image reflection removal, and 4) image shadow removal.
|
| 207 |
+
|
| 208 |
+
<table><tr><td></td><td>Dogs+Flwrs.</td><td>LSUN</td></tr><tr><td>Double-DIP [17] (CVPR'19)</td><td>14.70 / 0.661</td><td>13.83 / 0.590</td></tr><tr><td>Levin et al. [35] (TPAMI'07)</td><td>10.54 / 0.444</td><td>10.46 / 0.366</td></tr><tr><td>Our method (tr. on ImageNet)</td><td>23.32 / 0.803</td><td>21.63 / 0.773</td></tr><tr><td>Our method (w/ default tr. set)</td><td>25.51 / 0.849</td><td>26.32 / 0.883</td></tr></table>
|
| 209 |
+
|
| 210 |
+
Table 1: Comparisons (PSNR/SSIM) of different methods on mixed image separation: 1) Stanford-Dogs [31] + VGG-Flowers [45], 2) LSUN Classroom + LSUN Church [63]. To test on the cross-domain generalization ability of our method, we also train on ImageNet and test on the above datasets. Higher scores indicate better.
|
| 211 |
+
|
| 212 |
+
# 4.1. Separating Superimposed Images
|
| 213 |
+
|
| 214 |
+
We evaluate our method on two groups of well-known datasets: 1) Stanford-Dogs [31] + VGG-Flowers [45], 2) LSUN Classroom + LSUN Church [63]. During training phase, we randomly select two images $(\hat{x}_1, \hat{x}_2)$ from one group of the datasets and then linearly mix them as $y = \alpha \hat{x}_1 + (1 - \alpha) \hat{x}_2$ with a random linear mixing factor $\alpha$ from the range of [0.4, 0.6]. During testing, we set the mixing factor as a constant $\alpha = 0.5$ . All images are resized to 256x256 pixels. We follow the datasets' original train/test split when performing training and evaluation. For the LSUN dataset, due to its large number of images, we only train our method for 20 epochs.
|
| 215 |
+
|
| 216 |
+
We compare our method with other two popular methods for single mixed image separation: the Double-DIP (CVPR'19) [17] and Levin's method (TPAMI'07) [35], where the former one is an unsupervised deep learning based method, and the latter one is designed based on image statistics and requires additional user-interactions. Fig. 4 shows two typical results of the above three methods. Table 1 shows their quantitative evaluations<sup>2</sup>. We use the Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity (SSIM) index [58] as two basic evaluation metrics. The accuracy is crossly computed between the outputs and their references. We record the best of the two scores as the final accuracy. Our method significantly outperforms the other two methods in terms of both visual quality and quantitative scores. As Double-DIP and Levin's methods do not require training data of specific domain, we also test on the cross-domain generalization ability of our method by training on ImageNet-1M ( $\sim$ 1.28M images, randomly mixed on 1K classes, with 6 training epochs) [6] and test on the above datasets. Note that this time we do not train specifically on their own training sets and our method again shows superiority over the other two methods.
|
| 217 |
+
|
| 218 |
+

|
| 219 |
+
(a) Input
|
| 220 |
+
|
| 221 |
+

|
| 222 |
+
(b) with standard L1 loss
|
| 223 |
+
|
| 224 |
+

|
| 225 |
+
|
| 226 |
+

|
| 227 |
+
(c) with crossroad L1 loss
|
| 228 |
+
|
| 229 |
+

|
| 230 |
+
|
| 231 |
+

|
| 232 |
+
(a) Input
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
Figure 5: A comparison of image separation results with the standard $l_{1}$ loss and the proposed crossroad $l_{1}$ loss.
|
| 236 |
+
|
| 237 |
+

|
| 238 |
+
(b) cross-L1 + Zhang-loss
|
| 239 |
+
Figure 6: A comparison of the results based on different image separation priors: Zhang's exclusion loss [67], Kurtosis [27], and the Separation Critic (ours).
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
|
| 243 |
+

|
| 244 |
+
(c) cross-L1 + Kurtosis
|
| 245 |
+
|
| 246 |
+

|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
(d) cross-L1 + critic
|
| 250 |
+
|
| 251 |
+

|
| 252 |
+
|
| 253 |
+

|
| 254 |
+
(e) cross-L1 + critic + adv-pct
|
| 255 |
+
|
| 256 |
+
<table><tr><td>Ablation</td><td>PSNR</td><td>SSIM</td><td>PI</td></tr><tr><td>Ours (with standard l1 loss)</td><td>16.26</td><td>0.6768</td><td>23.34</td></tr><tr><td>Ours (with cross-l1 loss)</td><td>22.74</td><td>0.7782</td><td>21.92</td></tr></table>
|
| 257 |
+
|
| 258 |
+
Table 2: A comparison of the image separation results with standard $l_{1}$ loss and the proposed crossroad $l_{1}$ loss on Stanford-Dogs dataset [31]. PSNR/SSIM: higher scores indicate better. PI: lower scores indicate better.
|
| 259 |
+
|
| 260 |
+
<table><tr><td>Ablation</td><td>PSNR</td><td>SSIM</td><td>PI</td></tr><tr><td>cross-l1 only</td><td>17.34</td><td>0.6693</td><td>22.41</td></tr><tr><td>cross-l1 + Zhang's loss [67]</td><td>17.77</td><td>0.6840</td><td>23.09</td></tr><tr><td>cross-l1 + kurtosis [27]</td><td>18.02</td><td>0.7141</td><td>22.28</td></tr><tr><td>cross-l1 + Sep-Critic</td><td>18.29</td><td>0.7231</td><td>22.16</td></tr><tr><td>cross-l1 + Sep-Critic + adv-pcpt.</td><td>18.27</td><td>0.6938</td><td>21.97</td></tr></table>
|
| 261 |
+
|
| 262 |
+
# 4.2. Controlled Experiments
|
| 263 |
+
|
| 264 |
+
Analysis on the crossroad $l_{1}$ loss. To evaluate the importance of our crossroad $l_{1}$ loss, we replace it with a standard $l_{1}$ while keeping other settings unchanged. We train the above two models on the Stanford-Dogs [31]. Table 2 shows the evaluation results of the two models and Fig. 5 shows a group of visual comparisons. We can see our method clearly separates the two images while the standard $l_{1}$ fails to do that and encourages "averaged" outputs.
|
| 265 |
+
|
| 266 |
+
Analysis on the adversarial losses. We compare our
|
| 267 |
+
|
| 268 |
+
Table 3: Evaluation of decomposition results with different priors on Stanford-Dogs [31] + VGG-Flowers [45] datasets (with overexposure and noise). PSNR/SSIM: higher scores indicate better. PI: lower scores indicate better.
|
| 269 |
+
|
| 270 |
+
<table><tr><td></td><td>Rain100H [62]</td><td>Rain800 [65]</td></tr><tr><td>LP [41] (CVPR'16) ‡</td><td>15.05 / 0.425</td><td>20.46 / 0.730</td></tr><tr><td>DDN [13] (CVPR'17) ‡</td><td>22.26 / 0.693</td><td>21.16 / 0.732</td></tr><tr><td>JORDER [62] (CVPR'17) ‡</td><td>23.45 / 0.749</td><td>22.29 / 0.792</td></tr><tr><td>RESCAN [39] (ECCV'18) ‡</td><td>26.45 / 0.846</td><td>24.09 / 0.841</td></tr><tr><td>DID [64] (CVPR'18) †</td><td>25.00 / 0.754</td><td>- / -</td></tr><tr><td>DAF-Net [23] (CVPR'19) †</td><td>28.44 / 0.874</td><td>- / -</td></tr><tr><td>PReNet [48] (CVPR'19) ‡</td><td>29.46 / 0.899</td><td>- / -</td></tr><tr><td>Our method</td><td>30.85 / 0.932</td><td>24.49 / 0.885</td></tr></table>
|
| 271 |
+
|
| 272 |
+
Table 4: A comparison (PSNR / SSIM) of different deraining methods on two datasets: Rain100H [62] and Rain800 [65]. Results reported by: # [62], $\ddagger$ [39], $\dagger$ [23], $\mathbb{I}$ [48].
|
| 273 |
+
|
| 274 |
+
<table><tr><td></td><td>DID [64]</td><td>DDN1k [13]</td></tr><tr><td>LP [41] (CVPR'16) †</td><td>22.75 / 0.835</td><td>20.66 / 0.811</td></tr><tr><td>JORDER [62] (CVPR'17) †</td><td>24.32 / 0.862</td><td>22.26 / 0.841</td></tr><tr><td>DDN [13] (CVPR'17) †</td><td>27.33 / 0.898</td><td>25.63 / 0.885</td></tr><tr><td>JBO [71] (ICCV'17) †</td><td>23.05 / 0.852</td><td>22.45 / 0.836</td></tr><tr><td>DID [67] (CVPR'18) †</td><td>27.95 / 0.909</td><td>26.07 / 0.909</td></tr><tr><td>SPANet [55] (CVPR'19) #</td><td>30.05 / 0.934</td><td>- / -</td></tr><tr><td>Our method</td><td>31.67 / 0.942</td><td>27.91 / 0.893</td></tr></table>
|
| 275 |
+
|
| 276 |
+
Table 5: A comparison (PSNR / SSIM) of different deraining methods. All methods are trained on the training set of DID [64] and then tested on the test sets of DID and DDN1k [13]. Results reported by: † [64], # [55].
|
| 277 |
+
|
| 278 |
+
method with different decomposition priors on Stanford-Dogs [31] + VGG-Flowers [45] datasets. In addition to the linear mixing inputs, we also apply overexposure and noises to increase the separation difficulties. To better evaluate the perceptual quality, we introduce another metric called Perception Index (PI) [3]. The PI was originally introduced as a no-reference image quality assessment method based on the low-level image statistics and is recently widely used for evaluating super-resolution results [3, 56]. In Fig. 6 and Table 3, we compare our adversarial losses with the exclusion loss [17, 67] and the Kurtosis [27]. As we can see, the integration of our adversarial losses yields noticeable improvements in the output quality. We found the exclusion loss encourages blurred output and it is hard to balance it with other losses. We also found the Kurtosis may introduce a slight color-shift on its outputs.
|
| 279 |
+
|
| 280 |
+
# 4.3. Application: Deraining
|
| 281 |
+
|
| 282 |
+
We conduct our deraining experiments on several datasets: Rain100H [62], Rain800 [65], and DID [64]. To better test the generalization ability of our method, we follow Zhang et al. [64] to train our method on DID [64], and then randomly sample 1,000 images from the dataset [13] as another testing set, denoted as DDN1k. Given a rainy input image, we use its clean background and the rain streak
|
| 283 |
+
|
| 284 |
+

|
| 285 |
+
|
| 286 |
+

|
| 287 |
+
|
| 288 |
+

|
| 289 |
+
|
| 290 |
+

|
| 291 |
+
|
| 292 |
+

|
| 293 |
+
|
| 294 |
+

|
| 295 |
+
(a) Input
|
| 296 |
+
|
| 297 |
+

|
| 298 |
+
(b) Ground truth
|
| 299 |
+
|
| 300 |
+

|
| 301 |
+
(d) PReNet
|
| 302 |
+
Figure 7: Deraining results of PReNet [48] (CVPR'19) and our method on the Rain100H [62] dataset. Our method encourages fewer artifacts than PReNet. Also, the rain-streak map can be well-estimated by using our method. As a comparison, the PReNet ignores this part of the output.
|
| 303 |
+
|
| 304 |
+

|
| 305 |
+
(e) Ours (output 1)
|
| 306 |
+
|
| 307 |
+

|
| 308 |
+
(f) Ours (output 2)
|
| 309 |
+
|
| 310 |
+
<table><tr><td rowspan="2">Method</td><td colspan="5">Reflection Removal Dataset [59]</td></tr><tr><td>Focused set</td><td>Defocused set</td><td>Ghosting set</td><td>Method</td><td>Dataset [60]</td></tr><tr><td>CEILNet [9] (ICCV'17) †</td><td>19.524 / 0.742</td><td>20.122 / 0.735</td><td>19.685 / 0.753</td><td>Li & Brown [40] (CVPR'14) ¶</td><td>16.46 / 0.745</td></tr><tr><td>Zhang et al. [67] (ICCV'18) †</td><td>17.090 / 0.712</td><td>18.108 / 0.758</td><td>17.882 / 0.738</td><td>SIRP [2] (CVPR'17) ¶</td><td>19.18 / 0.760</td></tr><tr><td>BDN [60] (ECCV'18) †</td><td>14.258 / 0.632</td><td>14.053 / 0.639</td><td>14.786 / 0.660</td><td>CEILNet [9] (ICCV'17) ¶</td><td>19.80 / 0.782</td></tr><tr><td>RmNet [59] (CVPR'19) †</td><td>21.064 / 0.770</td><td>22.896 / 0.840</td><td>21.008 / 0.780</td><td>BDN [60] (ECCV'18) ¶</td><td>23.11 / 0.835</td></tr><tr><td>Our method</td><td>22.809 / 0.871</td><td>23.195 / 0.891</td><td>23.266 / 0.881</td><td>Our method</td><td>23.18 / 0.877</td></tr></table>
|
| 311 |
+
|
| 312 |
+

|
| 313 |
+
Figure 8: Deraining results of our method on some real-world rain images [65]. 1st row: input. 2nd row: output.
|
| 314 |
+
|
| 315 |
+
map as our ground truth references. Since Rain800 and DID do not provide rain streak maps, we simply set the ground truth of our second output as a "zero image" when training on these two datasets. In all our following experiments, we set $\beta_{C} = \beta_{M} = 0.0001$ , and set the input/output size of our separator $G$ to $512\times 512$ pixels.
|
| 316 |
+
|
| 317 |
+
We compare with more than five sota deraining methods, including RESCAN (ECCV'18) [39], DID (CVPR'18) [64], DAF-Net (CVPR'19) [23], PReNet (CVPR'19) [48], SPANet (CVPR'19) [55], etc. Table 4 and Table 5 show the deraining results of these methods. Our method outperforms other sota methods in most entries. Fig. 7 shows
|
| 318 |
+
|
| 319 |
+
Table 6: Reflection removal results (PSNR / SSIM) of different methods on two challenging datasets [59] and [60]. In dataset [59], the images are nonlinearly synthesized with three types of reflections: "focused", "defocused", and "ghosting". We achieve the best results in all experimental entries. Results reported by: † [59], ¶ [60].
|
| 320 |
+
|
| 321 |
+
<table><tr><td></td><td>Dataset [67]</td></tr><tr><td>Li & Brown [40] (CVPR'14) *</td><td>18.29 / 0.750</td></tr><tr><td>CEILNet [9] (ICCV'17) *</td><td>19.04 / 0.762</td></tr><tr><td>Zhang et al. [67] (ICCV'18) *</td><td>21.30 / 0.821</td></tr><tr><td>Our method</td><td>22.36 / 0.846</td></tr></table>
|
| 322 |
+
|
| 323 |
+
Table 7: Reflection removal results (PSNR / SSIM) of different methods on dataset [67]. * results reported by [67].
|
| 324 |
+
|
| 325 |
+
two examples from the dataset Rain100H with our method and PReNet (CVPR'19) [48]. Our method encourages less artifacts. Another advantage of our method is that the rain-streak map can be also estimated. As a comparison, the PReNet ignores this part of output. Fig. 8 shows a group of our deraining results on some real-world rain images.
|
| 326 |
+
|
| 327 |
+
# 4.4. Application: Image Reflection Removal
|
| 328 |
+
|
| 329 |
+
We test our method on two large scale datasets for reflection removal [59, 60]. The dataset [60] consists of over 50,000 images which are synthesized by mixing their transmission layers and reflection layers (linear mixture + Gaussian blur). The dataset [59] consists of 12,000 images with three types of reflections: "focused", "defocused",
|
| 330 |
+
|
| 331 |
+

|
| 332 |
+
(d) Input
|
| 333 |
+
|
| 334 |
+

|
| 335 |
+
(b) Ground truth
|
| 336 |
+
|
| 337 |
+

|
| 338 |
+
(d) BDN
|
| 339 |
+
|
| 340 |
+

|
| 341 |
+
(e) RmNet
|
| 342 |
+
|
| 343 |
+

|
| 344 |
+
(f) Ours
|
| 345 |
+
|
| 346 |
+

|
| 347 |
+
Figure 9: Results of different reflection removal methods: BDN [60] (ECCV'18), RmNet [59] (CVPR'19), and our method on a real-world reflection image from the dataset [67].
|
| 348 |
+
|
| 349 |
+

|
| 350 |
+
Figure 10: Reflection removal results of our method on the BDN dataset [60]. 1st row: input. 2nd row: our output.
|
| 351 |
+
Figure 11: Results of our method and DSC [22] (TPAMI19) on two datasets: ISTD [54] (1st row), SRD [46] (2nd row).
|
| 352 |
+
|
| 353 |
+
and “ghosting”, which are synthesized by using adversarial training. When we train our model, the transmission layers are used as the reference for our first output. We discard the synthesized reflection in our second output since it cannot capture ground truth reflections. We compare with several sota reflection removal methods, including the method of Zhang et al. (ICCV'18) [67], BDN (ECCV'18) [60], RmNet (CVPR'19) [59], etc. Table 6 shows the quantitative evaluations of these methods. Note that although RmNet [59] uses auxiliary images [53, 67] during training, we still achieve the best results in all experimental entries. We also test on a set of real-world reflection images [67]. We train our model on the synthetic training set [67] and then evaluate on its real-world testing set. Fig. 9 and Table 7 show some comparison results.
|
| 354 |
+
|
| 355 |
+
# 4.5. Application: Shadow Removal
|
| 356 |
+
|
| 357 |
+
In this experiment, we test our method on two shadow removal datasets: ISTD [54] and SRD [46]. The two datasets consist of 1,870 and 3,088 shadow/shadow-free image pairs
|
| 358 |
+
|
| 359 |
+
<table><tr><td></td><td>ISTD [54]</td><td>SRD [46]</td></tr><tr><td>Yang et al. [61] (TIP'12) *†</td><td>15.63</td><td>22.57</td></tr><tr><td>Guo et al. [21] (TPAMI'12) *†</td><td>9.300</td><td>12.60</td></tr><tr><td>Gong et al. [18] (BMVC'14) *†</td><td>8.530</td><td>8.730</td></tr><tr><td>DeshadowNet [46] (CVPR'17) ¶†</td><td>7.830</td><td>6.640</td></tr><tr><td>DSC [22] (TPAMI19) ¶†</td><td>7.100</td><td>6.210</td></tr><tr><td>ST-CGAN [54] (CVPR'18) *</td><td>7.470</td><td>-</td></tr><tr><td>ARGAN [8] (CVPR'19) ¶</td><td>6.680</td><td>-</td></tr><tr><td>Our method</td><td>6.566</td><td>5.823</td></tr></table>
|
| 360 |
+
|
| 361 |
+
Table 8: Shadow removal results of different methods on ISTD [54] dataset and SRD [46] dataset. We follow the evaluation metric introduced by Guo et al. (lower is better). Results reported by: * [54], † [22], ¶ [8].
|
| 362 |
+
|
| 363 |
+
that captured in real-world environments. We compare our methods with some sota shadow removal methods, including DSC (TPAMI19) [22], ST-CGAN (CVPR'18) [54], and ARGAN (CVPR'19) [8]. Table 8 shows the evaluation results of these methods. We do not compare ST-CGAN and ARGAN on SRD [46] because the authors did not report their accuracy on this dataset and the code has not been released yet. We follow the evaluation metric introduced by Guo et al. [21], where a lower score indicates a better result. Fig. 11 gives an comparison example of our method and DSC [22] on the above two datasets.
|
| 364 |
+
|
| 365 |
+
# 5. Conclusion
|
| 366 |
+
|
| 367 |
+
We propose a unified framework for single superimposed image separation - a group of challenging tasks in computer vision and signal processing field. Different from the previous methods that are either statistically or empirically designed, we shed light on the possibilities of the adversarial training for this task. Without specific tuning, our method achieves the state of the art results on multiple tasks, including image deraining, image reflection removal, and image shadow removal. In our future work, we will focus on some more general image separation tasks (e.g., on ImageNet) and also the possibility of speech signal separation by using our method.
|
| 368 |
+
|
| 369 |
+
# References
|
| 370 |
+
|
| 371 |
+
[1] Eli Arbel and Hagit Hel-Or. Shadow removal using intensity surfaces and texture anchor points. IEEE transactions on pattern analysis and machine intelligence, 33(6):1202-1216, 2010.
|
| 372 |
+
[2] Nikolaos Arvanitopoulos, Radhakrishna Achanta, and Sabine Susstrunk. Single image reflection suppression. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4498-4506, 2017.
|
| 373 |
+
[3] Yochai Blau, Roey Mechrez, Radu Timofte, Tomer Michaeli, and Lihi Zelnik-Manor. The 2018 pirm challenge on perceptual image super-resolution. In Proceedings of the European Conference on Computer Vision (ECCV), pages 0–0, 2018.
|
| 374 |
+
[4] Yi Chang, Luxin Yan, and Sheng Zhong. Transformed low-rank model for line pattern noise removal. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017.
|
| 375 |
+
[5] Andrzej Cichocki and Shun-ichi Amari. Adaptive blind signal and image processing: learning algorithms and applications, volume 1. John Wiley & Sons, 2002.
|
| 376 |
+
[6] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248-255. IEEE, 2009.
|
| 377 |
+
[7] Emily L Denton, Soumith Chintala, Rob Fergus, et al. Deep generative image models using a laplacian pyramid of adversarial networks. In Advances in neural information processing systems, pages 1486-1494, 2015.
|
| 378 |
+
[8] Bin Ding, Chengjiang Long, Ling Zhang, and Chunxia Xiao. Argan: Attentive recurrent generative adversarial network for shadow detection and removal. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
|
| 379 |
+
[9] Qingnan Fan, Jiaolong Yang, Gang Hua, Baoquan Chen, and David Wipf. A generic deep architecture for single image reflection removal and image smoothing. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017.
|
| 380 |
+
[10] Graham D Finlayson, Mark S Drew, and Cheng Lu. Entropy minimization for shadow removal. International Journal of Computer Vision, 85(1):35-57, 2009.
|
| 381 |
+
[11] Graham D Finlayson, Steven D Hordley, Cheng Lu, and Mark S Drew. On the removal of shadows from images. IEEE transactions on pattern analysis and machine intelligence, 28(1):59-68, 2005.
|
| 382 |
+
[12] Xueyang Fu, Jiabin Huang, Xinghao Ding, Yinghao Liao, and John Paisley. Clearing the skies: A deep network architecture for single-image rain removal. IEEE Transactions on Image Processing, 26(6):2944-2956, 2017.
|
| 383 |
+
[13] Xueyang Fu, Jiabin Huang, Delu Zeng, Yue Huang, Xinghao Ding, and John Paisley. Removing rain from single images via a deep detail network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3855-3863, 2017.
|
| 384 |
+
[14] Kun Gai, Zhenwei Shi, and Changshui Zhang. Blindly separating mixtures of multiple layers with spatial shifts. In 2008 IEEE Conference on Computer Vision and Pattern Recognition, pages 1-8. IEEE, 2008.
|
| 385 |
+
[15] Kun Gai, Zhenwei Shi, and Changshui Zhang. Blind separation of superimposed images with unknown motions. In 2009 IEEE Conference on Computer Vision and Pattern Recogni
|
| 386 |
+
|
| 387 |
+
tion, pages 1881-1888. IEEE, 2009.
|
| 388 |
+
[16] Kun Gai, Zhenwei Shi, and Changshui Zhang. Blind separation of superimposed moving images using image statistics. IEEE transactions on pattern analysis and machine intelligence, 34(1):19-32, 2011.
|
| 389 |
+
[17] Yosef Gandelsman, Assaf Shocher, and Michal Irani. "double-dip": Unsupervised image decomposition via coupled deep-image-priors. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
|
| 390 |
+
[18] Han Gong and Darren Cosker. Interactive shadow removal and ground truth for variable scene categories. In BMVC, 2014.
|
| 391 |
+
[19] 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.
|
| 392 |
+
[20] Shuhang Gu, Deyu Meng, Wangmeng Zuo, and Lei Zhang. Joint convolutional analysis and synthesis sparse representation for single image layer separation. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017.
|
| 393 |
+
[21] Ruiqi Guo, Qieyun Dai, and Derek Hoiem. Paired regions for shadow detection and removal. IEEE transactions on pattern analysis and machine intelligence, 35(12):2956-2967, 2012.
|
| 394 |
+
[22] X Hu, CW Fu, L Zhu, J Qin, and PA Heng. Direction-aware spatial context features for shadow detection and removal. IEEE transactions on pattern analysis and machine intelligence, 2019.
|
| 395 |
+
[23] Xiaowei Hu, Chi-Wing Fu, Lei Zhu, and Pheng-Ann Heng. Depth-attentional features for single-image rain removal. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
|
| 396 |
+
[24] Xiaowei Hu, Yitong Jiang, Chi-Wing Fu, and Pheng-Ann Heng. Mask-shadowgan: Learning to remove shadows from unpaired data. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
|
| 397 |
+
[25] Xiang Huang, Gang Hua, Jack Tumblin, and Lance Williams. What characterizes a shadow boundary under the sun and sky? In 2011 International Conference on Computer Vision, pages 898-905. IEEE, 2011.
|
| 398 |
+
[26] Aapo Hyvarinen and Erkki Oja. A fast fixed-point algorithm for independent component analysis. Neural computation, 9(7):1483-1492, 1997.
|
| 399 |
+
[27] Aapo Hyvarinen and Erkki Oja. Independent component analysis: algorithms and applications. Neural networks, 13(4-5):411-430, 2000.
|
| 400 |
+
[28] 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.
|
| 401 |
+
[29] Li-Wei Kang, Chia-Wen Lin, and Yu-Hsiang Fu. Automatic single-image-based rain streaks removal via image decomposition. IEEE Transactions on Image Processing, 21(4):1742-1755, 2011.
|
| 402 |
+
[30] Salman H Khan, Mohammed Bennamoun, Ferdous Sohel, and Roberto Togneri. Automatic shadow detection and removal from a single image. IEEE transactions on pattern analysis and machine intelligence, 38(3):431-446, 2015.
|
| 403 |
+
|
| 404 |
+
[31] Aditya Khosla, Nityananda Jayadevaprakash, Bangpeng Yao, and Fei-Fei Li. Novel dataset for fine-grained image categorization: Stanford dogs. In Proc. CVPR Workshop on Fine-Grained Visual Categorization (FGVC), volume 2, 2011.
|
| 405 |
+
[32] Jean-François Lalonge, Alexei A Efros, and Srinivasa G Narasimhan. Detecting ground shadows in outdoor consumer photographs. In European conference on computer vision, pages 322-335. Springer, 2010.
|
| 406 |
+
[33] Hieu Le and Dimitris Samaras. Shadow removal via shadow image decomposition. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
|
| 407 |
+
[34] Christian Ledig, Lucas Theis, Ferenc Huszár, Jose Caballero, Andrew Cunningham, Alejandro Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, et al. Photorealistic single image super-resolution using a generative adversarial network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4681-4690, 2017.
|
| 408 |
+
[35] Anat Levin and Yair Weiss. User assisted separation of reflections from a single image using a sparsity prior. IEEE Transactions on Pattern Analysis and Machine Intelligence, 29(9):1647-1654, 2007.
|
| 409 |
+
[36] Anat Levin, Assaf Zomet, and Yair Weiss. Learning to perceive transparency from the statistics of natural scenes. In Advances in Neural Information Processing Systems, pages 1271-1278, 2003.
|
| 410 |
+
[37] Anat Levin, Assaf Zomet, and Yair Weiss. Separating reflections from a single image using local features. In Proceedings of the 2004 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, 2004. CVPR 2004., volume 1, pages I-I. IEEE, 2004.
|
| 411 |
+
[38] Ruoteng Li, Loong-Fah Cheong, and Robby T. Tan. Heavy rain image restoration: Integrating physics model and conditional adversarial learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
|
| 412 |
+
[39] Xia Li, Jianlong Wu, Zhouchen Lin, Hong Liu, and Hongbin Zha. Recurrent squeeze-and-excitation context aggregation net for single image deraining. In The European Conference on Computer Vision (ECCV), September 2018.
|
| 413 |
+
[40] Yu Li and Michael S. Brown. Single image layer separation using relative smoothness. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2014.
|
| 414 |
+
[41] Yu Li, Robby T Tan, Xiaojie Guo, Jiangbo Lu, and Michael S Brown. Rain streak removal using layer priors. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2736-2744, 2016.
|
| 415 |
+
[42] Guangcan Liu, Zhouchen Lin, Shuicheng Yan, Ju Sun, Yong Yu, and Yi Ma. Robust recovery of subspace structures by low-rank representation. IEEE transactions on pattern analysis and machine intelligence, 35(1):171-184, 2012.
|
| 416 |
+
[43] Yu Luo, Yong Xu, and Hui Ji. Removing rain from a single image via discriminative sparse coding. In Proceedings of the IEEE International Conference on Computer Vision, pages 3397-3405, 2015.
|
| 417 |
+
[44] Daiqian Ma, Renjie Wan, Boxin Shi, Alex C. Kot, and Ling-Yu Duan. Learning to jointly generate and separate reflections. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
|
| 418 |
+
|
| 419 |
+
[45] M-E Nilsback and Andrew Zisserman. A visual vocabulary for flower classification. In 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'06), volume 2, pages 1447-1454. IEEE, 2006.
|
| 420 |
+
[46] Liangqiong Qu, Jiandong Tian, Shengfeng He, Yandong Tang, and Rynson W. H. Lau. Deshadownet: A multicontext embedding deep network for shadow removal. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
|
| 421 |
+
[47] Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
|
| 422 |
+
[48] Dongwei Ren, Wangmeng Zuo, Qinghua Hu, Pengfei Zhu, and Deyu Meng. Progressive image deraining networks: A better and simpler baseline. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
|
| 423 |
+
[49] 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.
|
| 424 |
+
[50] Li Shen, Teck Wee Chua, and Karianto Leman. Shadow optimization from structured deep edge detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2067-2074, 2015.
|
| 425 |
+
[51] YiChang Shih, Dilip Krishnan, Fredo Durand, and William T Freeman. Reflection removal using ghosting cues. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3193-3201, 2015.
|
| 426 |
+
[52] Yago Vicente, F Tomas, Minh Hoai, and Dimitris Samaras. Leave-one-out kernel optimization for shadow detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 3388-3396, 2015.
|
| 427 |
+
[53] Renjie Wan, Boxin Shi, Ling-Yu Duan, Ah-Hwee Tan, and Alex C Kot. Benchmarking single-image reflection removal algorithms. In Proceedings of the IEEE International Conference on Computer Vision, pages 3922-3930, 2017.
|
| 428 |
+
[54] Jifeng Wang, Xiang Li, and Jian Yang. Stacked conditional generative adversarial networks for jointly learning shadow detection and shadow removal. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
|
| 429 |
+
[55] Tianyu Wang, Xin Yang, Ke Xu, Shaozhe Chen, Qiang Zhang, and Rynson W.H. Lau. Spatial attentive single-image deraining with a high quality real rain dataset. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
|
| 430 |
+
[56] Xintao Wang, Ke Yu, Shixiang Wu, Jinjin Gu, Yihao Liu, Chao Dong, Yu Qiao, and Chen Change Loy. Esrgan: Enhanced super-resolution generative adversarial networks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 0-0, 2018.
|
| 431 |
+
[57] Yinglong Wang, Shuaicheng Liu, Chen Chen, and Bing Zeng. A hierarchical approach for rain or snow removing in a single color image. IEEE Transactions on Image Processing, 26(8):3936-3950, 2017.
|
| 432 |
+
[58] Zhou Wang, Alan C Bovik, Hamid R Sheikh, Eero P Simon
|
| 433 |
+
|
| 434 |
+
celli, et al. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600-612, 2004.
|
| 435 |
+
[59] Qiang Wen, Yinjie Tan, Jing Qin, Wenxi Liu, Guoqiang Han, and Shengfeng He. Single image reflection removal beyond linearity. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
|
| 436 |
+
[60] Jie Yang, Dong Gong, Lingqiao Liu, and Qinfeng Shi. Seeing deeply and bidirectionally: A deep learning approach for single image reflection removal. In The European Conference on Computer Vision (ECCV), September 2018.
|
| 437 |
+
[61] Qingxiong Yang, Kar-Han Tan, and Narendra Ahuja. Shadow removal using bilateral filtering. IEEE Transactions on Image processing, 21(10):4361-4368, 2012.
|
| 438 |
+
[62] Wenhan Yang, Robby T. Tan, Jiashi Feng, Jiaying Liu, Zongming Guo, and Shuicheng Yan. Deep joint rain detection and removal from a single image. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
|
| 439 |
+
[63] Fisher Yu, Ari Seff, Yinda Zhang, Shuran Song, Thomas Funkhouser, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015.
|
| 440 |
+
[64] He Zhang and Vishal M. Patel. Density-aware single image de-raining using a multi-stream dense network. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
|
| 441 |
+
[65] He Zhang, Vishwanath Sindagi, and Vishal M Patel. Image de-raining using a conditional generative adversarial network. arXiv preprint arXiv:1701.05957, 2017.
|
| 442 |
+
[66] Ling Zhang, Qing Zhang, and Chunxia Xiao. Shadow remover: Image shadow removal based on illumination recovering optimization. IEEE Transactions on Image Processing, 24(11):4623-4636, 2015.
|
| 443 |
+
[67] Xuaner Zhang, Ren Ng, and Qifeng Chen. Single image reflection separation with perceptual losses. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
|
| 444 |
+
[68] Quanlong Zheng, Xiaotian Qiao, Ying Cao, and Rynson W.H. Lau. Distraction-aware shadow detection. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
|
| 445 |
+
[69] Jiejie Zhu, Kegan GG Samuel, Syed Z Masood, and Marshall F Tappen. Learning to recognize shadows in monochromatic natural images. In 2010 IEEE Computer Society conference on computer vision and pattern recognition, pages 223-230. IEEE, 2010.
|
| 446 |
+
[70] 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.
|
| 447 |
+
[71] Lei Zhu, Chi-Wing Fu, Dani Lischinski, and Pheng-Ann Heng. Joint bi-layer optimization for single-image rain streak removal. In Proceedings of the IEEE international conference on computer vision, pages 2526–2534, 2017.
|
deepadversarialdecompositionaunifiedframeworkforseparatingsuperimposedimages/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99e377b74a97fa33228a45fb3d77de3b00cf241479421ef031d6ab871cd37e79
|
| 3 |
+
size 932623
|
deepadversarialdecompositionaunifiedframeworkforseparatingsuperimposedimages/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:529635e5df60aa94c6f9fc4f90f5ef87f361041855831494968bc3f73feecea3
|
| 3 |
+
size 566888
|
deepcapmonocularhumanperformancecaptureusingweaksupervision/1c7196bb-1ddf-4afe-84bc-4ecfd980478a_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a01a5594aad65dd089626f991c66c9fa6147b460ffada0fce567f34edeb28b43
|
| 3 |
+
size 96952
|
deepcapmonocularhumanperformancecaptureusingweaksupervision/1c7196bb-1ddf-4afe-84bc-4ecfd980478a_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1cf9d21860f99b9900651836c90575d32076971cb705d9599f6be56075213f1
|
| 3 |
+
size 126325
|
deepcapmonocularhumanperformancecaptureusingweaksupervision/1c7196bb-1ddf-4afe-84bc-4ecfd980478a_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aab2bbb034e331c0a11de389cd657d5d890d6d49926f30f48b30a1b7b3e6f22d
|
| 3 |
+
size 2500870
|
deepcapmonocularhumanperformancecaptureusingweaksupervision/full.md
ADDED
|
@@ -0,0 +1,422 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DeepCap: Monocular Human Performance Capture Using Weak Supervision
|
| 2 |
+
|
| 3 |
+
Marc Habermann<sup>1,2</sup> Weipeng Xu<sup>1,2</sup> Michael Zollhoefer<sup>3</sup> Gerard Pons-Moll<sup>1,2</sup> Christian Theobalt<sup>1,2</sup>
|
| 4 |
+
|
| 5 |
+
$^{1}$ Max Planck Institute for Informatics, $^{2}$ Saarland Informatics Campus, $^{3}$ Stanford University
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Human performance capture is a highly important computer vision problem with many applications in movie production and virtual/augmented reality. Many previous performance capture approaches either required expensive multi-view setups or did not recover dense space-time coherent geometry with frame-to-frame correspondences. We propose a novel deep learning approach for monocular dense human performance capture. Our method is trained in a weakly supervised manner based on multi-view supervision completely removing the need for training data with 3D ground truth annotations. The network architecture is based on two separate networks that disentangle the task into a pose estimation and a non-rigid surface deformation step. Extensive qualitative and quantitative evaluations show that our approach outperforms the state of the art in terms of quality and robustness.
|
| 10 |
+
|
| 11 |
+
# 1. Introduction
|
| 12 |
+
|
| 13 |
+
Human performance capture, i.e., the space-time coherent 4D capture of full pose and non-rigid surface deformation of people in general clothing, revolutionized the film and gaming industry in recent years. Apart from visual effects, it has many use cases in generating personalized dynamic virtual avatars for telepresence, virtual try-on, mixed reality, and many other areas. In particular for the latter applications, being able to performance capture humans from monocular video would be a game changer. The majority of established monocular methods only captures articulated motion (including hands or sparse facial expression at most). However, the monocular tracking of dense full-body deformations of skin and clothing, in addition to articulated pose, which play an important role in producing realistic virtual characters, is still at its infancy.
|
| 14 |
+
|
| 15 |
+
In literature, multi-view marker-less methods [13, 14, 15, 17, 24, 29, 50, 55, 81, 82, 86, 64, 65] have shown compelling results. However, these approaches rely on well-controlled multi-camera studios (typically with green screen), which prohibits them from being used for location shootings of films and telepresence in living spaces.
|
| 16 |
+
|
| 17 |
+
Recent monocular human modeling approaches have shown compelling reconstructions of humans, including clothing, hair and facial details [70, 99, 2, 3, 9, 60, 52].
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Input Image
|
| 21 |
+
ay
|
| 22 |
+
Figure 1. We present the first learning-based approach for dense monocular human performance capture using weak multi-view supervision that not only predicts the pose but also the space-time coherent non-rigid deformations of the model surface.
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
Input Image
|
| 28 |
+
Overlay
|
| 29 |
+
|
| 30 |
+
Image
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
3D Views
|
| 34 |
+
|
| 35 |
+
Some directly regress voxels [28, 99] or the continuous occupancy of the surface [70]. Since predictions are pixel aligned, reconstructions have nice detail, but limbs are often missing, especially for difficult poses. Moreover, the recovered motion is not factorized into articulation and non-rigid deformation, which prevents the computer-graphics style control over the reconstructions that is required in many of the aforementioned applications. Importantly, surface vertices are not tracked over time, so no space-time coherent model is captured. Another line of work predicts deformations or displacements to an articulated template, which prevents missing limbs and allows more control [2, 9, 5, 67]. However, these works do not capture motion and the surface deformations.
|
| 36 |
+
|
| 37 |
+
The state-of-the-art monocular human performance capture methods [89, 32] densely track the deformation of the surface. They leverage deep learning-based sparse keypoint detections and perform an expensive template fitting afterwards. In consequence, they can only non-rigidly fit to the input view and suffer from instability. By contrast, we present the first learning-based method that jointly infers the articulated and non-rigid 3D deformation parameters in a single feed-forward pass at much higher performance, accuracy and robustness. The core of our method is a CNN model which integrates a fully differentiable mesh template parameterized with pose and an embedded deformation graph. From a single image, our network predicts the skeletal pose, and the rotation and translation parameters for each node in the deformation graph. In stark contrast to implicit representations [70, 99, 22], our mesh-based
|
| 38 |
+
|
| 39 |
+
method tracks the surface vertices over time, which is crucial for adding semantics, and for texturing and rendering in graphics. Further, by virtue of our parameterization, our model always produces a human surface without missing limbs, even during occlusions and out-of-plane motions.
|
| 40 |
+
|
| 41 |
+
While previous methods [70, 99, 2, 9] rely on 3D ground truth for training, our method is weakly supervised from multi-view images. To this end, we propose a fully differentiable architecture which is trained in an analysis-by-synthesis fashion, without explicitly using any 3D ground truth annotation. Specifically, during training, our method only requires a personalized template mesh of the actor and a multi-view video sequence of the actor performing various motions. Then, our network learns to predict 3D pose and dense non-rigidly deformed surface shape by comparing its single image feed-forward predictions in a differentiable manner against the multi-view 2D observations. At test time, our method only requires a single-view image as input and produces a deformed template matching the actor's non-rigid motion in the image. In summary, the main technical contributions of our work are:
|
| 42 |
+
|
| 43 |
+
- A learning-based 3D human performance capture approach that jointly tracks the skeletal pose and the non-rigid surface deformations from monocular images.
|
| 44 |
+
- A new differentiable representation of deforming human surfaces which enables training from multi-view video footage directly.
|
| 45 |
+
|
| 46 |
+
Our new model achieves high quality dense human performance capture results on our new challenging dataset, demonstrating, qualitatively and quantitatively, the advantages of our approach over previous work. We experimentally show that our method produces reconstructions of higher accuracy and 3D stability, in particular in depth, than related work, also under difficult poses.
|
| 47 |
+
|
| 48 |
+
# 2. Related Work
|
| 49 |
+
|
| 50 |
+
In the following, we focus on related work in the field of dense 3D human performance capture and do not review work on sparse 2D pose estimation.
|
| 51 |
+
|
| 52 |
+
Capture using Parametric Models. Monocular human performance capture is an ill-posed problem due to its high dimensionality and ambiguity. Low-dimensional parametric models can be employed as shape and deformation prior. First, model-based approaches leverage a set of simple geometric primitives [63, 74, 71, 54]. Recent methods employ detailed statistical models learned from thousands of high-quality 3D scans [6, 33, 59, 65, 51, 41, 45, 85, 35, 97, 10]. Deep learning is widely used to obtain 2D and/or 3D joint detections or 3D vertex positions that can be used to inform model fitting [37, 48, 53, 11, 46]. An alternative is to regress model parameters directly [42, 62, 43]. Beyond
|
| 53 |
+
|
| 54 |
+
body shape and pose, recent models also include facial expressions and hand motion [61, 88, 40, 69] leading to very expressive reconstruction results. Since parametric body models do not represent garments, variation in clothing cannot be reconstructed, and therefore many methods recover the naked body shape under clothing [8, 7, 95, 90]. The full geometry of the actor can be reconstructed by non-rigidly deforming the base parametric model to better fit the observations [68, 3, 4]. But they can only model tight clothes such as T-shirts and pants, but not loose apparel which has a different topology than the body model, such as skirts. To overcome this problem, ClothCap [64] captures the body and clothing separately, but requires active multi-view setups. Physics based simulations have recently been leveraged to constrain tracking (SimulCap [78]), or to learn a model of clothing on top of SMPL (TailorNet [60]). Instead, our method is based on person-specific templates including clothes and employs deep learning to predict clothing deformation based on monocular video directly.
|
| 55 |
+
|
| 56 |
+
Depth-based Template-free Capture. Most approaches based on parametric models ignore clothing. The other side of the spectrum are prior-free approaches based on one or multiple depth sensors. Capturing general non-rigidly deforming scenes [73, 31], even at real-time frame rates [57, 39, 31], is feasible, but only works reliably for small, controlled, and slow motions. Higher robustness can be achieved by using higher frame rate sensors [30, 47] or multi-view setups [91, 27, 58, 26, 96]. Techniques that are specifically tailored to humans increase robustness [93, 94, 92] by integrating a skeletal motion prior [93] or a parametric model [94, 84]. HybridFusion [98] additionally incorporates a sparse set of inertial measurement units. These fusion-style volumetric capture techniques [36, 1, 49, 23, 66] achieve impressive results, but do not establish a set of dense correspondences between all frames. In addition, such depth-based methods do not directly generalize to our monocular setting, have a high power consumption, and typically do not work well under sunlight.
|
| 57 |
+
|
| 58 |
+
Monocular Template-free Capture. Quite recently, fueled by the progress in deep learning, many template-free monocular reconstruction approaches have been proposed. Due to their regular structure, many implicit reconstruction techniques [80, 99] make use of uniform voxel grids. DeepHuman [99] combines a coarse scale volumetric reconstruction with a refinement network to add high-frequency details. Multi-view CNNs can map 2D images to 3D volumetric fields enabling reconstruction of a clothed human body at arbitrary resolution [38]. SiCloPe [56] reconstructs a complete textured 3D model, including cloth, from a single image. PIFu [70] regresses an implicit surface representation that locally aligns pixels with the global context of the corresponding 3D object. Unlike voxel-based representations, this implicit per-pixel representation is more memory
|
| 59 |
+
|
| 60 |
+
efficient. These approaches have not been demonstrated to generalize well to strong articulation. Furthermore, implicit approaches do not recover frame-to-frame correspondences which are of paramount importance for downstream applications, e.g., in augmented reality and video editing. In contrast, our method is based on a mesh representation and can explicitly obtain the per-vertex correspondences over time while being slightly less general.
|
| 61 |
+
|
| 62 |
+
Template-based Capture. An interesting trade-off between being template-free and relying on parametric models are approaches that only employ a template mesh as prior. Historically, template-based human performance capture techniques exploit multi-view geometry to track the motion of a person [76]. Some systems also jointly reconstruct and obtain a foreground segmentation [13, 15, 50, 87]. Given a sufficient number of multi-view images as input, some approaches [21, 17, 24] align a personalized template model to the observations using non-rigid registration. All the aforementioned methods require expensive multi-view setups and are not practical for consumer use. Depth-based techniques enable template tracking from less cameras [100, 91] and reduced motion models [86, 29, 81, 50] increase tracking robustness. Recently, capturing 3D dense human body deformation just with a single RGB camera has been enabled [89] and real-time performance has been achieved [32]. However, their methods rely on expensive optimization leading either to very long per-frame computation times [89] or the need for two graphics cards [32]. Similar to them, our approach also employs a person-specific template mesh. But differently, our method directly learns to predict the skeletal pose and the non-rigid surface deformations. As shown by our experimental results, benefiting from our multi-view based self-supervision, our reconstruction accuracy significantly outperforms the existing methods.
|
| 63 |
+
|
| 64 |
+
# 3. Method
|
| 65 |
+
|
| 66 |
+
Given a single RGB video of a moving human in general clothing, our goal is to capture the dense deforming surface of the full body. This is achieved by training a neural network consisting of two components: As illustrated in Fig. 2, our pose network, PoseNet, estimates the skeletal pose of the actor in the form of joint angles from a monocular image (Sec. 3.2). Next, our deformation network, DefNet, regresses the non-rigid deformation of the dense surface, which cannot be modeled by the skeletal motion, in the embedded deformation graph representation (Sec. 3.3). To avoid generating dense 3D ground truth annotation, our network is trained in a weakly supervised manner. To this end, we propose a fully differentiable human deformation and rendering model, which allows us to compare the rendering of the human body model to the 2D image evidence and back-propagate the losses. For training, we first capture a video sequence in a calibrated multi-camera green screen
|
| 67 |
+
|
| 68 |
+
studio (Sec. 3.1). Note that our multi-view video is only used during training. At test time we only require a single RGB video to perform dense non-rigid tracking.
|
| 69 |
+
|
| 70 |
+
# 3.1. Template and Data Acquisition
|
| 71 |
+
|
| 72 |
+
Character Model. Our method relies on a person-specific 3D template model. We first scan the actor with a 3D scanner [79] to obtain the textured mesh. Then, it is automatically rigged to a kinematic skeleton, which is parameterized with joint angles $\theta \in \mathbb{R}^{27}$ , the camera relative rotation $\alpha \in \mathbb{R}^3$ and translation $\mathbf{t} \in \mathbb{R}^3$ . To model the non-rigid surface deformation, we automatically build an embedded deformation graph $\mathcal{G}$ with $K$ nodes following [77]. The nodes are parameterized with Euler angles $\mathbf{A} \in \mathbb{R}^{K \times 3}$ and translations $\mathbf{T} \in \mathbb{R}^{K \times 3}$ . Similar to [32], we segment the mesh into different non-rigidity classes resulting in pervertex rigidity weights $s_i$ . This allows us to model varying deformation behaviors of different surface materials, e.g. skin deforms less than clothing (see Eq. 13).
|
| 73 |
+
|
| 74 |
+
Training Data. To acquire the training data, we record a multi-view video of the actor doing various actions in a calibrated multi-camera studio with green screen. To provide weak supervision for the training, we first perform 2D pose detection on the sequences using OpenPose [19, 18, 72, 83] and apply temporal filtering. Then, we generate the foreground mask using color keying and compute the corresponding distance transform image $D_{f,c}$ [12], where $f \in [0,F]$ and $c \in [0,C]$ denote the frame index and camera index, respectively. During training, we randomly sample one camera view $c'$ and frame $f'$ for which we crop the recorded image with a bounding box, based on the 2D joint detections. The final training input image $I_{f',c'} \in \mathbb{R}^{256 \times 256 \times 3}$ is obtained by removing the background and augmenting the foreground with random brightness, hue, contrast and saturation changes. For simplicity, we describe the operation on frame $f'$ and omit the subscript $f'$ in following equations.
|
| 75 |
+
|
| 76 |
+
# 3.2. Pose Network
|
| 77 |
+
|
| 78 |
+
In our PoseNet, we use ResNet50 [34] pretrained on ImageNet [25] as backbone and modify the last fully connected layer to output a vector containing the joint angles $\theta$ and the camera relative root rotation $\alpha$ , given the input image $I_{c'}$ . Since generating the ground truth for $\theta$ and $\alpha$ is a nontrivial task, we propose weakly supervised training based on fitting the skeleton to multi-view 2D joint detections.
|
| 79 |
+
|
| 80 |
+
Kinematics Layer. To this end, we introduce a kinematics layer as the differentiable function that takes the joint angles $\theta$ and the camera relative rotation $\alpha$ and computes the positions $\mathbf{P}_{c'} \in \mathbb{R}^{M \times 3}$ of the $M$ 3D landmarks attached to the skeleton (17 body joints and 4 face landmarks). Note that $\mathbf{P}_{c'}$ lives in a camera-root-relative coordinate system. In order to project the landmarks to other camera views, we
|
| 81 |
+
|
| 82 |
+

|
| 83 |
+
Figure 2. Overview of our approach. Our method takes a single segmented image as input. First, our pose network, PoseNet, is trained to predict the joint angles and the camera relative rotation using sparse multi-view 2D joint detections as weak supervision. Second, the deformation network, DefNet, is trained to regress embedded graph rotation and translation parameters to account for non-rigid deformations. To train DefNet, multi-view 2D joint detections and silhouettes are used for supervision.
|
| 84 |
+
|
| 85 |
+
need to transform $\mathbf{P}_{c'}$ to the world coordinate system:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\mathbf {P} _ {m} = \mathbf {R} _ {c ^ {\prime}} ^ {T} \mathbf {P} _ {c ^ {\prime}, m} + \mathbf {t}, \tag {1}
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
where $\mathbf{R}_{c'}$ is the rotation matrix of the input camera $c'$ and $\mathbf{t}$ is the global translation of the skeleton.
|
| 92 |
+
|
| 93 |
+
Global Alignment Layer. To obtain the global translation $\mathbf{t}$ , we propose a global alignment layer that is attached to the kinematics layer. It localizes our skeleton model in the world space, such that the globally rotated landmarks $\mathbf{R}_{c'}^T\mathbf{P}_{c',m}$ project onto the corresponding detections in all camera views. This is done by minimizing the distance between the rotated landmarks $\mathbf{R}_{c'}^T\mathbf{P}_{c',m}$ and the corresponding rays cast from the camera origin $\mathbf{o}_c$ to the 2D joint detections:
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\sum_ {c} \sum_ {m} \sigma_ {c, m} \| \left(\mathbf {R} _ {c ^ {\prime}} ^ {T} \mathbf {P} _ {c ^ {\prime}, m} + \mathbf {t} - \mathbf {o} _ {c}\right) \times \mathbf {d} _ {c, m} \| ^ {2}, \tag {2}
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
where $\mathbf{d}_{c,m}$ is the direction of a ray from camera $c$ to the 2D joint detection $\mathbf{p}_{c,m}$ corresponding to landmark $m$ :
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\mathbf {d} _ {c, m} = \frac {\left(\mathbf {E} _ {c} ^ {- 1} \tilde {\mathbf {p}} _ {c , m}\right) _ {x y z} - \mathbf {o} _ {c}}{\| \left(\mathbf {E} _ {c} ^ {- 1} \tilde {\mathbf {p}} _ {c , m}\right) _ {x y z} - \mathbf {o} _ {c} \|.} \tag {3}
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
Here, $\mathbf{E}_c\in \mathbb{R}^{4\times 4}$ is the projection matrix of camera $c$ and $\tilde{\mathbf{p}}_{c,m} = (\mathbf{p}_{c,m},1,1)^T$ . Each point-to-line distance is weighted by the joint detection confidence $\sigma_{c,m}$ , which is set to zero if below 0.4. The minimization problem of Eq. 2 can be solved in closed form:
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\mathbf {t} = \mathbf {W} ^ {- 1} \sum_ {c, m} \mathbf {D} _ {c, m} \left(\mathbf {R} _ {c ^ {\prime}} ^ {T} \mathbf {P} _ {c ^ {\prime}, m} - \mathbf {o} _ {c}\right) + \mathbf {o} _ {c} - \mathbf {R} _ {c ^ {\prime}} ^ {T} \mathbf {P} _ {c ^ {\prime}, m}, \tag {4}
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
where
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
\mathbf {W} = \sum_ {c} \sum_ {m} \mathbf {I} - \mathbf {D} _ {c, m}. \tag {5}
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
Here, $\mathbf{I}$ is the $3\times 3$ identity matrix and $\mathbf{D}_{c,m} = \mathbf{d}_{c,m}\mathbf{d}_{c,m}^{T}$ . Note that the operation in Eq. 4 is differentiable with respect to the landmark position $\mathbf{P}_{c'}$ .
|
| 118 |
+
|
| 119 |
+
Sparse Keypoint Loss. Our 2D sparse keypoint loss for the PoseNet can be expressed as
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\mathcal {L} _ {\mathrm {k p}} (\mathbf {P}) = \sum_ {c} \sum_ {m} \lambda_ {m} \sigma_ {c, m} \| \pi_ {c} (\mathbf {P} _ {m}) - \mathbf {p} _ {c, m} \| ^ {2}, \tag {6}
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
which ensures that each landmark projects onto the corresponding 2D joint detections $\mathbf{p}_{c,m}$ in all camera views. Here, $\pi_c$ is the projection function of camera $c$ and $\sigma_{c,m}$ is the same as in Eq. 2. $\lambda_{m}$ is a kinematic chain-based hierarchical weight which varies during training for better convergence (see the supplementary material for details).
|
| 126 |
+
|
| 127 |
+
Pose Prior Loss. To avoid unnatural poses, we impose a pose prior loss on the joint angles
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
\mathcal {L} _ {\text {l i m i t}} (\boldsymbol {\theta}) = \sum_ {i = 1} ^ {2 7} \Psi \left(\boldsymbol {\theta} _ {i}\right) \tag {7}
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\Psi (x) = \left\{ \begin{array}{l} {\left(x - \boldsymbol {\theta} _ {\max , i}\right) ^ {2}, \text {i f} x > \boldsymbol {\theta} _ {\max , i}} \\ {\left(\boldsymbol {\theta} _ {\min , i} - x\right) ^ {2}, \text {i f} x < \boldsymbol {\theta} _ {\min , i}} \\ {0, \text {o t h e r w i s e}} \end{array} \right., \tag {8}
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
that encourages that each joint angle $\theta_{i}$ stays in a range $[\theta_{\min,i}, \theta_{\max,i}]$ depending on the anatomic constraints.
|
| 138 |
+
|
| 139 |
+
# 3.3. Deformation Network
|
| 140 |
+
|
| 141 |
+
With the skeletal pose from PoseNet alone, the non-rigid deformation of the skin and clothes cannot be fully explained. Therefore, we disentangle the non-rigid deformation and the articulated skeletal motion. DefNet takes the
|
| 142 |
+
|
| 143 |
+
input image $I_{c'}$ and regresses the non-rigid deformation parameterized with rotation angles $\mathbf{A}$ and translation vectors $\mathbf{T}$ of the nodes of the embedded deformation graph. DefNet uses the same backbone architecture as PoseNet, while the last fully connected layer outputs a $6K$ -dimensional vector reshaped to match the dimensions of $\mathbf{A}$ and $\mathbf{T}$ . The weights of PoseNet are fixed while training DefNet. Again, we do not use direct supervision on $\mathbf{A}$ and $\mathbf{T}$ . Instead, we propose a deformation layer with differentiable rendering and use multi-view silhouette-based weak supervision.
|
| 144 |
+
|
| 145 |
+
Deformation Layer. The deformation layer takes $\mathbf{A}$ and $\mathbf{T}$ from DefNet as input to non-rigidly deform the surface
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
\mathbf {Y} _ {i} = \sum_ {k \in \mathcal {N} _ {\mathrm {v n}} (i)} w _ {i, k} \left(R \left(\mathbf {A} _ {k}\right) \left(\hat {\mathbf {V}} _ {i} - \mathbf {G} _ {k}\right) + \mathbf {G} _ {k} + \mathbf {T} _ {k}\right). \tag {9}
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
Here, $\mathbf{Y},\hat{\mathbf{V}}\in \mathbb{R}^{N\times 3}$ are the vertex positions of the deformed and undeformed template mesh, respectively. $w_{i,k}$ are vertex-to-node weights, but in contrast to [77] we compute them based on geodesic distances. $\mathbf{G}\in \mathbb{R}^{K\times 3}$ are the node positions of the undeformed graph, $\mathcal{N}_{\mathrm{vn}}(i)$ is the set of nodes that influence vertex $i$ ,and $R(\cdot)$ is a function that converts the Euler angles to rotation matrices. We further apply the skeletal pose on the deformed mesh vertices to obtain the vertex positions in the input camera space
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
\mathbf {V} _ {\mathrm {c} ^ {\prime}, i} = \sum_ {k \in \mathcal {N} _ {\mathrm {v n}} (i)} w _ {i, k} \left(R _ {\mathrm {s k}, k} (\boldsymbol {\theta}, \boldsymbol {\alpha}) \mathbf {Y} _ {i} + t _ {\mathrm {s k}, k} (\boldsymbol {\theta}, \boldsymbol {\alpha})\right), \tag {10}
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+
where the node rotation $R_{\mathrm{sk},k}$ and translation $t_{\mathrm{sk},k}$ are derived from the pose parameters using dual quaternion skinning [44]. Eq. 9 and Eq. 10 are differentiable with respect to pose and graph parameters. Thus, our layer can be integrated in the learning framework and gradients can be propagated to DefNet. So far, $\mathbf{V}_{c',i}$ is still rotated relative to the camera $c'$ and located around the origin. To bring them to global space, we apply the inverse camera rotation and the global translation, defined in Eq. 4, $\mathbf{V}_i = \mathbf{R}_{c'}^T\mathbf{V}_{c',i} + \mathbf{t}$ .
|
| 158 |
+
|
| 159 |
+
Non-rigid Silhouette Loss. This loss encourages that the non-rigidly deformed mesh matches the multi-view silhouettes in all camera views. It can be formulated using the distance transform representation [12]
|
| 160 |
+
|
| 161 |
+
$$
|
| 162 |
+
\mathcal {L} _ {\mathrm {s i l}} (\mathbf {V}) = \sum_ {c} \sum_ {i \in \mathcal {B} _ {c}} \rho_ {c, i} \| D _ {c} \left(\pi_ {c} \left(\mathbf {V} _ {i}\right)\right) \| ^ {2}. \tag {11}
|
| 163 |
+
$$
|
| 164 |
+
|
| 165 |
+
Here, $\mathcal{B}_c$ is the set of vertices that lie on the boundary when the deformed 3D mesh is projected onto the distance transform image $D_{c}$ of camera $c$ , and $\rho_{c,i}$ is a directional weighting [32] that guides the gradient in $D_{c}$ . The silhouette loss ensures that the boundary vertices project onto the zero-set of the distance transform, i.e., the foreground silhouette.
|
| 166 |
+
|
| 167 |
+
Sparse Keypoint Graph Loss. Only using the silhouette loss can lead to wrong mesh-to-image assignments, especially for highly articulated motions. To this end, we use
|
| 168 |
+
|
| 169 |
+
a sparse keypoint loss to constrain the mesh deformation, which is similar to the keypoint loss for PoseNet in Eq. 6
|
| 170 |
+
|
| 171 |
+
$$
|
| 172 |
+
\mathcal {L} _ {\mathrm {k p g}} (\mathbf {M}) = \sum_ {c} \sum_ {m} \sigma_ {c, m} \| \pi_ {c} (\mathbf {M} _ {m}) - \mathbf {p} _ {c, m} \| ^ {2}. \tag {12}
|
| 173 |
+
$$
|
| 174 |
+
|
| 175 |
+
Differently from Eq. 6, the deformed and posed landmarks $\mathbf{M}$ are derived from the embedded deformation graph. To this end, we can deform and pose the canonical landmark positions by attaching them to its closest graph node $g$ in canonical pose with weight $w_{m,g} = 1.0$ . Landmarks can then be deformed according to Eq. 9, 10, resulting in $\mathbf{M}_{c'}$ which is brought to global space via $\mathbf{M}_m = \mathbf{R}_{c'}^T\mathbf{M}_{c',m} + \mathbf{t}$ . As-rigid-as-possible Loss. To enforce local smoothness of the surface, we impose an as-rigid-as-possible loss [75]
|
| 176 |
+
|
| 177 |
+
$$
|
| 178 |
+
\mathcal {L} _ {\operatorname {a r a p}} (\mathbf {A}, \mathbf {T}) = \sum_ {k} \sum_ {l \in \mathcal {N} _ {\mathrm {n}} (k)} u _ {k, l} \| d _ {k, l} (\mathbf {A}, \mathbf {T}) \| _ {1}, \tag {13}
|
| 179 |
+
$$
|
| 180 |
+
|
| 181 |
+
where
|
| 182 |
+
|
| 183 |
+
$$
|
| 184 |
+
d _ {k, l} (\mathbf {A}, \mathbf {T}) = R (\mathbf {A} _ {k}) (\mathbf {G} _ {l} - \mathbf {G} _ {k}) + \mathbf {T} _ {k} + \mathbf {G} _ {k} - (\mathbf {G} _ {l} + \mathbf {T} _ {l}).
|
| 185 |
+
$$
|
| 186 |
+
|
| 187 |
+
$\mathcal{N}_{\mathrm{n}}(k)$ is the set of indices of the neighbors of node $k$ . In contrast to [75], we propose weighting factors $u_{k,l}$ that influence the rigidity of respective parts of the graph. We derive $u_{k,l}$ by averaging all per-vertex rigidity weights $s_i$ [32] for all vertices (see Sec. 3.1), which are connected to node $k$ or $l$ . Thus, the mesh can deform either less or more depending on the surface material. For example, graph nodes that are mostly connected to vertices on a skirt can deform more freely than nodes that are mainly connected to vertices on the skin.
|
| 188 |
+
|
| 189 |
+
# 3.4. In-the-wild Domain Adaptation
|
| 190 |
+
|
| 191 |
+
Since our training set is captured in a green screen studio and our test set is captured in the wild, there is a significant domain gap between them, due to different lighting conditions and camera response functions. To improve the performance of our method on in-the-wild images, we fine-tune our networks on the monocular test images for a small number of iterations using the same 2D keypoint and silhouette losses as before, but only on a single view. This drastically improves the performance at test time as shown in the supplemental material.
|
| 192 |
+
|
| 193 |
+
# 4. Results
|
| 194 |
+
|
| 195 |
+
All our experiments were performed on a machine with an NVIDIA Tesla V100 GPU. A forward pass of our method takes around 50ms, which breaks down to 25ms for PoseNet and 25ms for DefNet. During testing, we use the off-the-shelf video segmentation method of [16] to remove the background in the input image. Our method requires OpenPose's 2D joint detections [19, 18, 72, 83] as
|
| 196 |
+
|
| 197 |
+

|
| 198 |
+
|
| 199 |
+

|
| 200 |
+
|
| 201 |
+

|
| 202 |
+
|
| 203 |
+

|
| 204 |
+
|
| 205 |
+

|
| 206 |
+
|
| 207 |
+

|
| 208 |
+
|
| 209 |
+

|
| 210 |
+
|
| 211 |
+

|
| 212 |
+
|
| 213 |
+

|
| 214 |
+
|
| 215 |
+

|
| 216 |
+
|
| 217 |
+

|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
|
| 221 |
+

|
| 222 |
+
|
| 223 |
+

|
| 224 |
+
|
| 225 |
+

|
| 226 |
+
|
| 227 |
+

|
| 228 |
+
Input Image
|
| 229 |
+
|
| 230 |
+

|
| 231 |
+
Our Result (overlayed)
|
| 232 |
+
|
| 233 |
+

|
| 234 |
+
Input Image
|
| 235 |
+
|
| 236 |
+

|
| 237 |
+
Our Result (overlayed)
|
| 238 |
+
|
| 239 |
+

|
| 240 |
+
3D View
|
| 241 |
+
|
| 242 |
+
input during testing to crop the frames and to obtain the 3D global translation with our global alignment layer. Finally, we temporally smooth the output mesh vertices with a Gaussian kernel of size 5 frames.
|
| 243 |
+
|
| 244 |
+
Dataset. We evaluate our approach on 4 subjects (S1 to S4) with varying types of apparel. For qualitative evaluation, we recorded 13 in-the-wild sequences in different indoor and outdoor environments shown in Fig. 3. For quantitative evaluation, we captured 4 sequences in a calibrated multicamera green screen studio (see Fig. 4), for which we computed the ground truth 3D joint locations using the multiview motion capture software, The Captury [20], and we use a color keying algorithm for ground truth foreground segmentation. All sequences contain a large variety of motions, ranging from simple ones like walking up to more difficult ones like fast dancing or baseball pitching. We will release the dataset for future research.
|
| 245 |
+
|
| 246 |
+
Qualitative Comparisons. Fig. 3 shows our qualitative
|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
Figure 3. Qualitative results. Each row shows results for a different person with varying types of apparel. We visualize input frames and our reconstruction overlayed to the corresponding frame. Note that our results precisely overlay to the input. Further, we show our reconstructions from a virtual 3D viewpoint. Note that they also look plausible in 3D.
|
| 250 |
+
Overlay on IV
|
| 251 |
+
Figure 4. Results on our evaluation sequences where input views (IV) and reference views (RV) are available. Note that our reconstruction also precisely overlays on RV even though they are not used for tracking.
|
| 252 |
+
|
| 253 |
+

|
| 254 |
+
Overlay on RV
|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
Overlay on IV
|
| 258 |
+
|
| 259 |
+

|
| 260 |
+
Overlay on RV
|
| 261 |
+
|
| 262 |
+

|
| 263 |
+
Overlay on IV
|
| 264 |
+
|
| 265 |
+

|
| 266 |
+
Overlay on RV
|
| 267 |
+
|
| 268 |
+
results on in-the-wild test sequences with various clothing styles, poses and environments. Our reconstructions not only precisely overlay with the input images, but also look plausible from arbitrary 3D view points. In Fig. 5, we qualitatively compare our approach to the related human capture and reconstruction methods [42, 32, 70, 99]. In terms of the shape representation, our method is most
|
| 269 |
+
|
| 270 |
+

|
| 271 |
+
Figure 5. Qualitative comparison to other methods [42, 32, 70, 99]. Note that our results overlay more accurately to the input view and also look more plausible from a reference view that was not used for tracking. Ground truth global translation is used to match the reference view for the results of [42, 32]. Since PIFu [70] and DeepHuman [99] output meshes with varying topology in a canonical volume without an attached root, it is not possible to apply the ground truth translation and therefore we show the reference view without overlay.
|
| 272 |
+
|
| 273 |
+
closely related to LiveCap [32] that also uses a person-specific template. Since they non-rigidly fit the template only to the monocular input view, their results do not faithfully depict the deformation in other view points. Further, their pose estimation severely suffers from the monocular ambiguities, whereas our pose results are more robust and accurate (see supplemental video). Comparing to the other three methods [42, 70, 99] that are trained for general subjects, our approach has the following advantages: First, our method recovers the non-rigid deformations of humans in general clothes whereas the parametric model-based approaches [42, 43] only recover naked body shape. Second, our method directly provides surface correspondences over time which is important for AR/VR applications (see supplemental video). In contrast, the results of implicit representation-based methods, PIFu [70] and DeepHuman [99], lack temporal surface correspondences and do not preserve the skeletal structure of the human body, i.e., they often exhibit missing arms and disconnected geometry. Furthermore, DeepHuman [99] only recovers a coarse shape in combination with a normal image of the input view, while our method can recover medium-level detailed geometry that looks plausible from all views. Last but not least, all these existing methods have problems when overlaying their reconstructions on the reference view, even though some of the methods show a very good overlay on the input view. In contrast, our approach reconstructs accurate 3D geometry, and therefore, our results can precisely overlay on the reference views (also see Fig. 4).
|
| 274 |
+
|
| 275 |
+
Skeletal Pose Accuracy. We quantitatively compare our pose results (output of PoseNet) to existing pose estimation methods on $S1$ and $S4$ . To account for different types of apparel, we choose $S1$ wearing trousers and a T-shirt and $S4$ wearing a short dress. We rescale the bone length for
|
| 276 |
+
|
| 277 |
+
<table><tr><td colspan="5">MPJPE/GLE (in mm) and 3DPCK/AUC (in %) on S1</td></tr><tr><td>Method</td><td>GLE↓</td><td>3DPCK↑</td><td>AUC↑</td><td>MPJPE↓</td></tr><tr><td>VNect [53]</td><td>-</td><td>66.06</td><td>28.02</td><td>77.19</td></tr><tr><td>HMR [42]</td><td>-</td><td>82.39</td><td>43.61</td><td>72.61</td></tr><tr><td>HMMR [43]</td><td>-</td><td>87.48</td><td>45.33</td><td>72.40</td></tr><tr><td>LiveCap [32]</td><td>317.01</td><td>71.13</td><td>37.90</td><td>92.84</td></tr><tr><td>Ours</td><td>91.08</td><td>98.43</td><td>58.71</td><td>49.11</td></tr><tr><td>MVBL</td><td>76.03</td><td>99.17</td><td>57.79</td><td>45.44</td></tr></table>
|
| 278 |
+
|
| 279 |
+
<table><tr><td colspan="5">MPJPE/GLE (in mm) and 3DPCK/AUC (in %) on S4</td></tr><tr><td>Method</td><td>GLE↓</td><td>3DPCK↑</td><td>AUC↑</td><td>MPJPE↓</td></tr><tr><td>VNect [53]</td><td>-</td><td>82.06</td><td>42.73</td><td>72.62</td></tr><tr><td>HMR [42]</td><td>-</td><td>86.88</td><td>43.91</td><td>73.63</td></tr><tr><td>HMMR [43]</td><td>-</td><td>82.80</td><td>41.18</td><td>77.41</td></tr><tr><td>LiveCap [32]</td><td>248.67</td><td>75.11</td><td>37.35</td><td>83.48</td></tr><tr><td>Ours</td><td>96.56</td><td>96.74</td><td>59.25</td><td>45.40</td></tr><tr><td>MVBL</td><td>75.82</td><td>96.20</td><td>57.27</td><td>45.12</td></tr></table>
|
| 280 |
+
|
| 281 |
+
Table 1. Skeletal pose accuracy. Note that we are consistently better than other monocular approaches. Moreover, we are even close to the multi-view baseline.
|
| 282 |
+
|
| 283 |
+
all methods to the ground truth and evaluate the following metrics on the 14 commonly used joints [53] for every 10th frame: 1) We evaluate the root joint position error or global localization error (GLE) to measure how good the skeleton is placed in global 3D space. Note that GLE can only be evaluated for LiveCap [32] and ours, since other methods only produce up-to-scale depth. 2) To evaluate the accuracy of the pose estimation, we report the 3D percentage of correct keypoints (3DPCK) with a threshold of $150mm$ of the root aligned poses and the area under the 3DPCK curve (AUC). 3) To factor out the errors in the global rotation, we also report the mean per joint position error (MPJPE) after Procrustes alignment. We compare our approach against the state-of-the-art pose estimation approaches including VNect [53], HMR [42], HMMR [43], and LiveCap [32]. We also compare to a multi-view baseline approach (MVBL), where we use our differentiable skeleton model in an optimization framework to solve for the pose per frame using the proposed multi-view losses. We can see from Tab. 3 that our approach outperforms the related monocular methods in all metrics by a large margin and is even close to MVBL although our method only takes a single image as input. We further compare to VNect [53] fine-tuned on our training images for $S1$ . To this end, we compute the 3D joint position using The Captury [20] to provide ground truth supervision for VNect. On the evaluation sequence for $S1$ , the fine-tuned VNect achieved $95.66\%$ 3DPCK, $52.13\%$ AUC and $47.16mm$ MPJPE. This shows our weakly supervised approach yields comparable or better results than supervised methods in the person-specific setting. However, our approach does not require 3D ground truth annotation that is difficult to obtain, even for only sparse keypoints, let alone the dense surfaces.
|
| 284 |
+
|
| 285 |
+
Surface Reconstruction Accuracy. To evaluate the accuracy of the regressed non-rigid deformations, we compute the intersection over union (IoU) between the ground truth foreground masks and the 2D projection of the estimated
|
| 286 |
+
|
| 287 |
+
<table><tr><td colspan="4">AMVIoU, RVIoU, and SVIoU (in %) on S1 sequence</td></tr><tr><td>Method</td><td>AMVIoU↑</td><td>RVIoU↑</td><td>SVIoU↑</td></tr><tr><td>HMR [42]</td><td>62.25</td><td>61.7</td><td>68.85</td></tr><tr><td>HMMR [43]</td><td>65.98</td><td>65.58</td><td>70.77</td></tr><tr><td>LiveCap [32]</td><td>56.02</td><td>54.21</td><td>77.75</td></tr><tr><td>DeepHuman [99]</td><td>-</td><td>-</td><td>91.57</td></tr><tr><td>Ours</td><td>87.2</td><td>87.03</td><td>89.26</td></tr><tr><td>MVBL</td><td>91.74</td><td>91.72</td><td>92.02</td></tr></table>
|
| 288 |
+
|
| 289 |
+
<table><tr><td colspan="4">AMVIoU, RVIoU, and SVIoU (in %) on S4 sequence</td></tr><tr><td>Method</td><td>AMVIoU↑</td><td>RVIoU↑</td><td>SVIoU↑</td></tr><tr><td>HMR [42]</td><td>65.1</td><td>64.66</td><td>70.84</td></tr><tr><td>HMMR [43]</td><td>63.79</td><td>63.29</td><td>70.23</td></tr><tr><td>LiveCap [32]</td><td>59.96</td><td>59.02</td><td>72.16</td></tr><tr><td>DeepHuman [99]</td><td>-</td><td>-</td><td>84.15</td></tr><tr><td>Ours</td><td>82.53</td><td>82.22</td><td>86.66</td></tr><tr><td>MVBL</td><td>88.14</td><td>88.03</td><td>89.66</td></tr></table>
|
| 290 |
+
|
| 291 |
+
shape on $S1$ and $S4$ for every 100th frame. We evaluate the IoU on all views, on all views expect the input view, and on the input view which we refer to as AMVIoU, RVIoU and SVIoU, respectively. To factor out the errors in global localization, we apply the ground truth translation to the reconstructed geometries. For DeepHuman [99] and PIFu [70], we cannot report the AMVIoU and RVIoU, since we cannot overlay their results on reference views as discussed before. Further, PIFu [70] by design achieves perfect overlay on the input view, since they regress the depth for each foreground pixel. However, their reconstruction does not reflect the true 3D geometry (see Fig. 5). Therefore, it is meaningless to report their SVIoU. Similarly, DeepHuman [99] achieves high SVIoU, due to their volumetric representation. But their results are often wrong, when looking from side views. In contrast, our method consistently outperforms all other approaches in terms of AMVIoU and RVIoU, which shows the high accuracy of our method in recovering the 3D geometry. Further, we are again close to the multi-view baseline.
|
| 292 |
+
|
| 293 |
+
Ablation Study. To evaluate the importance of the number of cameras, the number of training images, and our DefNet, we performed an ablation study on S4 in Tab. 3. 1) In the first group of Tab. 3, we train our networks with supervision using 1 to 7 views. We can see that adding more views consistently improves the quality of the estimated poses and deformations. The most significant improvement is from one to two cameras. This is not surprising, since the single camera settings is inherently ambiguous. 2) In the second group of Tab. 3, we reduce the training data to $1/2$ and $1/4$ . We can see that the more frames with different poses and deformations are seen during training, the better the reconstruction quality is. This is expected since a larger number of frames may better sample the possible space of poses and deformations. 3) In the third group of Tab. 3, we evaluate the AMVIoU on the template mesh animated with the results of PoseNet, which we refer to as PoseNet-only. One can see that on average, the AMVIoU is improved by around $4\%$ . Since most non-rigid deformations rather happen locally,
|
| 294 |
+
|
| 295 |
+
Table 2. Surface deformation accuracy. We outperform all other monocular methods and are even close to the multi-view baseline.
|
| 296 |
+
|
| 297 |
+
<table><tr><td colspan="3">3DPCK and AMVIoU (in %) on S4 sequence</td></tr><tr><td>Method</td><td>3DPCK↑</td><td>AMVIoU↑</td></tr><tr><td>1 camera view</td><td>62.11</td><td>65.11</td></tr><tr><td>2 camera views</td><td>93.52</td><td>78.44</td></tr><tr><td>3 camera views</td><td>94.70</td><td>79.75</td></tr><tr><td>7 camera views</td><td>95.95</td><td>81.73</td></tr><tr><td>6500 frames</td><td>85.19</td><td>73.41</td></tr><tr><td>13000 frames</td><td>92.25</td><td>78.97</td></tr><tr><td>PoseNet-only</td><td>96.74</td><td>78.51</td></tr><tr><td>Ours(14 views, 26000 frames)</td><td>96.74</td><td>82.53</td></tr></table>
|
| 298 |
+
|
| 299 |
+
Table 3. Ablation study. We evaluate the number of cameras and the number of frames used during training in terms of the 3DPCK and AMVIoU metrics. Adding more cameras and frames consistently improves the quality of reconstruction. Further, DefNet improves the AMVIoU compared to pure pose estimation.
|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
Figure 6. PoseNet + DefNet vs. PoseNet-only. DefNet can deform the template to accurately match the input, especially for loose clothing. In addition, DefNet also corrects slight errors in the pose and typical skinning artifacts.
|
| 303 |
+
|
| 304 |
+
the difference is visually even more significant as shown in Fig. 6. Especially, the skirt is correctly deformed according to the input image whereas the PoseNet-only result cannot fit the input due to the limitation of skinning.
|
| 305 |
+
|
| 306 |
+
# 5. Conclusion
|
| 307 |
+
|
| 308 |
+
We have presented a learning-based approach for monocular dense human performance capture using only weak multi-view supervision. In contrast to existing methods, our approach directly regresses poses and surface deformations from neural networks, produces temporal surface correspondences, preserves the skeletal structure of the human body, and can handle loose clothes. Our qualitative and quantitative results in different scenarios show that our method produces more accurate 3D reconstruction of pose and non-rigid deformation than existing methods. In the future, we plan to incorporate hands and the face to our mesh representation to enable joint tracking of body, facial expressions and hand gestures. We are also interested in physically more correct multi-layered representations to model the garments even more realistically.
|
| 309 |
+
|
| 310 |
+
Acknowledgements. This work was funded by the ERC Consolidator Grant 4DRepLy (770784) and the Deutsche Forschungsgemeinschaft (Project Nr. 409792180, Emmy Noether Programme, project: Real Virtual Humans).
|
| 311 |
+
|
| 312 |
+
# References
|
| 313 |
+
|
| 314 |
+
[1] B. Allain, J.-S. Franco, and E. Boyer. An Efficient Volumetric Framework for Shape Tracking. In CVPR 2015 - IEEE International Conference on Computer Vision and Pattern Recognition, pages 268-276, Boston, United States, June 2015. IEEE. 2
|
| 315 |
+
[2] T. Alldieck, M. Magnor, B. L. Bhatnagar, C. Theobalt, and G. Pons-Moll. Learning to reconstruct people in clothing from a single RGB camera. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 1175-1186, Jun 2019. 1, 2
|
| 316 |
+
[3] T. Alldieck, M. Magnor, W. Xu, C. Theobalt, and G. Pons-Moll. Video based reconstruction of 3d people models. In IEEE Conference on Computer Vision and Pattern Recognition. CVPR Spotlight Paper. 1, 2
|
| 317 |
+
[4] T. Alldieck, M. Magnor, W. Xu, C. Theobalt, and G. Pons-Moll. Detailed human avatars from monocular video. In International Conference on 3D Vision, pages 98-109, Sep 2018. 2
|
| 318 |
+
[5] T. Alldieck, G. Pons-Moll, C. Theobalt, and M. Magnor. Tex2shape: Detailed full human body geometry from a single image. In IEEE International Conference on Computer Vision (ICCV). IEEE, oct 2019. 1
|
| 319 |
+
[6] D. Anguelov, P. Srinivasan, D. Koller, S. Thrun, J. Rodgers, and J. Davis. SCAPE: Shape Completion and Animation of People. ACM Transactions on Graphics, 24(3):408-416, 2005. 2
|
| 320 |
+
[7] A. O. Balan and M. J. Black. The naked truth: Estimating body shape under clothing. In European Conference on Computer Vision, pages 15-29. Springer, 2008. 2
|
| 321 |
+
[8] A. O. Balan, L. Sigal, M. J. Black, J. E. Davis, and H. W. Haussecker. Detailed human shape and pose from images. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1-8, 2007. 2
|
| 322 |
+
[9] B. L. Bhatnagar, G. Tiwari, C. Theobalt, and G. Pons-Moll. Multi-garment net: Learning to dress 3d people from images. In IEEE International Conference on Computer Vision (ICCV). IEEE, oct 2019. 1, 2
|
| 323 |
+
[10] F. Bogo, M. J. Black, M. Loper, and J. Romero. Detailed full-body reconstructions of moving people from monocular RGB-D sequences. In International Conference on Computer Vision (ICCV), pages 2300-2308, Dec. 2015. 2
|
| 324 |
+
[11] F. Bogo, A. Kanazawa, C. Lassner, P. Gehler, J. Romero, and M. J. Black. Keep it SMPL: Automatic estimation of 3D human pose and shape from a single image. In European Conference on Computer Vision (ECCV), 2016. 2
|
| 325 |
+
[12] G. Borgefors. Distance transformations in digital images. Computer Vision, Graphics, and Image Processing, 34(3):344 - 371, 1986. 3, 5
|
| 326 |
+
[13] M. Bray, P. Kohli, and P. H. Torr. Posecut: Simultaneous segmentation and 3d pose estimation of humans using dynamic graph-cuts. In European conference on computer vision, pages 642-655. Springer, 2006. 1, 3
|
| 327 |
+
[14] T. Brox, B. Rosenhahn, D. Cremers, and H.-P. Seidel. High accuracy optical flow serves 3-d pose tracking: exploiting contour and flow based constraints. In European Confer
|
| 328 |
+
|
| 329 |
+
ence on Computer Vision, pages 98-111. Springer, 2006. 1
|
| 330 |
+
[15] T. Brox, B. Rosenhahn, J. Gall, and D. Cremers. Combined region and motion-based 3d tracking of rigid and articulated objects. IEEE Transactions on Pattern Analysis and Machine Intelligence, 32(3):402-415, 2010. 1, 3
|
| 331 |
+
[16] S. Caelles, K.-K. Maninis, J. Pont-Tuset, L. Leal-Taixe, D. Cremers, and L. Van Gool. One-shot video object segmentation. In Computer Vision and Pattern Recognition (CVPR), 2017. 5
|
| 332 |
+
[17] C. Cagniart, E. Boyer, and S. Ilic. Free-form mesh tracking: a patch-based approach. In Computer Vision and Pattern Recognition (CVPR), 2010 IEEE Conference on, pages 1339-1346. IEEE, 2010. 1, 3
|
| 333 |
+
[18] Z. Cao, G. Hidalgo, T. Simon, S.-E. Wei, and Y. Sheikh. OpenPose: realtime multi-person 2D pose estimation using Part Affinity Fields. In arXiv preprint arXiv:1812.08008, 2018. 3, 5
|
| 334 |
+
[19] Z. Cao, T. Simon, S.-E. Wei, and Y. Sheikh. Realtime multi-person 2d pose estimation using part affinity fields. In CVPR, 2017. 3, 5
|
| 335 |
+
[20] The Captury. http://www.thecapture.com/.6,7
|
| 336 |
+
[21] J. Carranza, C. Theobalt, M. A. Magnor, and H.-P. Seidel. Free-viewpoint video of human actors. ACM Trans. Graph., 22(3), July 2003. 3
|
| 337 |
+
[22] J. Chibane, T. Alldieck, and G. Pons-Moll. Implicit functions in feature space for 3d shape reconstruction and completion. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, jun 2020. 1
|
| 338 |
+
[23] A. Collet, M. Chuang, P. Sweeney, D. Gillett, D. Evseev, D. Calabrese, H. Hoppe, A. Kirk, and S. Sullivan. High-quality streamable free-viewpoint video. ACM Transactions on Graphics (TOG), 34(4):69, 2015. 2
|
| 339 |
+
[24] E. De Aguiar, C. Stoll, C. Theobalt, N. Ahmed, H.-P. Seidel, and S. Thrun. Performance capture from sparse multiview video. In ACM Transactions on Graphics (TOG), volume 27, page 98. ACM, 2008. 1, 3
|
| 340 |
+
[25] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009. 3
|
| 341 |
+
[26] M. Dou, P. Davidson, S. R. Fanello, S. Khamis, A. Kowdle, C. Rhemann, V. Tankovich, and S. Izadi. Motion2fusion: Real-time volumetric performance capture. ACM Trans. Graph., 36(6):246:1-246:16, Nov. 2017. 2
|
| 342 |
+
[27] M. Dou, S. Khamis, Y. Degtyarev, P. Davidson, S. R. Fanello, A. Kowdle, S. O. Escolano, C. Rhemann, D. Kim, J. Taylor, et al. Fusion4d: Real-time performance capture of challenging scenes. ACM Transactions on Graphics (TOG), 35(4):114, 2016. 2
|
| 343 |
+
[28] V. Gabeur, J.-S. Franco, X. Martin, C. Schmid, and G. Rogez. Moulding humans: Non-parametric 3d human shape estimation from single images. In Proceedings of the IEEE International Conference on Computer Vision, pages 2232-2241, 2019. 1
|
| 344 |
+
[29] J. Gall, C. Stoll, E. De Aguiar, C. Theobalt, B. Rosenhahn, and H.-P. Seidel. Motion capture using joint skeleton tracking and surface estimation. In Computer Vision and Pat
|
| 345 |
+
|
| 346 |
+
tern Recognition, 2009. CVPR 2009. IEEE Conference on, pages 1746-1753. IEEE, 2009. 1, 3
|
| 347 |
+
[30] K. Guo, J. Taylor, S. Fanello, A. Tagliasacchi, M. Dou, P. Davidson, A. Kowdle, and S. Izadi. Twinfusion: High framerate non-rigid fusion through fast correspondence tracking. 09 2018. 2
|
| 348 |
+
[31] K. Guo, F. Xu, T. Yu, X. Liu, Q. Dai, and Y. Liu. Real-time geometry, albedo, and motion reconstruction using a single rgb-d camera. ACM Transactions on Graphics (TOG), 36(3):32, 2017. 2
|
| 349 |
+
[32] M. Habermann, W. Xu, M. Zollhoefer, G. Pons-Moll, and C. Theobalt. Livecap: Real-time human performance capture from monocular video. ACM Trans. Graph., 2019. 1, 3, 5, 6, 7, 8
|
| 350 |
+
[33] N. Hasler, H. Ackermann, B. Rosenhahn, T. Thormählen, and H.-P. Seidel. Multilinear pose and body shape estimation of dressed subjects from image sets. In Computer Vision and Pattern Recognition (CVPR), 2010 IEEE Conference on, pages 1823-1830. IEEE, 2010. 2
|
| 351 |
+
[34] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 3
|
| 352 |
+
[35] T. Helten, M. Muller, H.-P. Seidel, and C. Theobalt. Realtime body tracking with one depth camera and inertial sensors. In The IEEE International Conference on Computer Vision (ICCV), December 2013. 2
|
| 353 |
+
[36] C.-H. Huang, B. Allain, J.-S. Franco, N. Navab, S. Ilic, and E. Boyer. Volumetric 3d tracking by detection. In Proc. CVPR, 2016. 2
|
| 354 |
+
[37] Y. Huang, F. Bogo, C. Lassner, A. Kanazawa, P. V. Gehler, J. Romero, I. Akhter, and M. J. Black. Towards accurate marker-less human shape and pose estimation over time. In International Conference on 3D Vision (3DV), 2017. 2
|
| 355 |
+
[38] Z. Huang, T. Li, W. Chen, Y. Zhao, J. Xing, C. LeGendre, L. Luo, C. Ma, and H. Li. Deep Volumetric Video From Very Sparse Multi-View Performance Capture. In Proceedings of the 15th European Conference on Computer Vision. Computer Vision Foundation, Sept. 2018. 2
|
| 356 |
+
[39] M. Innmann, M. Zollhöfer, M. Nießner, C. Theobalt, and M. Stamminger. VolumeDeform: Real-time Volumetric Non-rigid Reconstruction. October 2016. 2
|
| 357 |
+
[40] H. Joo, T. Simon, and Y. Sheikh. Total capture: A 3d deformation model for tracking faces, hands, and bodies. CoRR, abs/1801.01615, 2018. 2
|
| 358 |
+
[41] P. Kadlecek, A.-E. Ichim, T. Liu, J. Krivanek, and L. Kavan. Reconstructing personalized anatomical models for physics-based body animation. ACM Trans. Graph., 35(6), 2016. 2
|
| 359 |
+
[42] A. Kanazawa, M. J. Black, D. W. Jacobs, and J. Malik. End-to-end recovery of human shape and pose. CoRR, abs/1712.06584, 2017. 2, 6, 7, 8
|
| 360 |
+
[43] A. Kanazawa, J. Y. Zhang, P. Felsen, and J. Malik. Learning 3d human dynamics from video. In Computer Vision and Pattern Recognition (CVPR), 2019. 2, 7, 8
|
| 361 |
+
[44] L. Kavan, S. Collins, J. Žára, and C. O'Sullivan. Skinning with dual quaternions. In Proceedings of the 2007 Symposium on Interactive 3D Graphics and Games, I3D '07, 2007. 5
|
| 362 |
+
|
| 363 |
+
[45] M. Kim, G. Pons-Moll, S. Pujades, S. Bang, J. Kim, M. Black, and S.-H. Lee. Data-driven physics for human soft tissue animation. ACM Transactions on Graphics, (Proc. SIGGRAPH), 36(4), 2017. 2
|
| 364 |
+
[46] N. Kolotouros, G. Pavlakos, and K. Daniilidis. Convolutional mesh regression for single-image human shape reconstruction. In CVPR, 2019. 2
|
| 365 |
+
[47] A. Kowdle, C. Rhemann, S. Fanello, A. Tagliasacchi, J. Taylor, P. Davidson, M. Dou, K. Guo, C. Keskin, S. Khamis, D. Kim, D. Tang, V. Tankovich, J. Valentin, and S. Izadi. The need 4 speed in real-time dense visual tracking. In SIGGRAPH Asia 2018 Technical Papers, SIGGRAPH Asia '18, pages 220:1-220:14, New York, NY, USA, 2018. ACM. 2
|
| 366 |
+
[48] C. Lassner, J. Romero, M. Kiefel, F. Bogo, M. J. Black, and P. V.Gehler. Unite the people: Closing the loop between 3d and 2d human representations. In Proc. CVPR, 2017. 2
|
| 367 |
+
[49] V. Leroy, J.-S. Franco, and E. Boyer. Multi-View Dynamic Shape Refinement Using Local Temporal Integration. In IEEE, International Conference on Computer Vision 2017, Venice, Italy, Oct. 2017. 2
|
| 368 |
+
[50] Y. Liu, C. Stoll, J. Gall, H.-P. Seidel, and C. Theobalt. Markerless motion capture of interacting characters using multi-view image segmentation. In Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on, pages 1249-1256. IEEE, 2011. 1, 3
|
| 369 |
+
[51] M. Loper, N. Mahmood, J. Romero, G. Pons-Moll, and M. J. Black. SMPL: A skinned multi-person linear model. ACM Trans. Graphics (Proc. SIGGRAPH Asia), 34(6):248:1-248:16, Oct. 2015. 2
|
| 370 |
+
[52] Q. Ma, J. Yang, A. Ranjan, S. Pujades, G. Pons-Moll, S. Tang, and M. Black. Learning to dress 3d people in generative clothing. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, jun 2020. 1
|
| 371 |
+
[53] D. Mehta, S. Sridhar, O. Sotnychenko, H. Rhodin, M. Shafiei, H.-P. Seidel, W. Xu, D. Casas, and C. Theobalt. Vnect: Real-time 3d human pose estimation with a single rgb camera. volume 36, July 2017. 2, 7
|
| 372 |
+
[54] D. Metaxas and D. Terzopoulos. Shape and nonrigid motion estimation through physics-based synthesis. IEEE Trans. PAMI, 15(6):580-591, 1993. 2
|
| 373 |
+
[55] A. Mustafa, H. Kim, J.-Y. Guillemaut, and A. Hilton. General dynamic scene reconstruction from multiple view video. In ICCV, 2015. 1
|
| 374 |
+
[56] R. Natsume, S. Saito, Z. Huang, W. Chen, C. Ma, H. Li, and S. Morishima. Siclope: Silhouette-based clothed people. arXiv preprint arXiv:1901.00049, 2018. 2
|
| 375 |
+
[57] R. A. Newcombe, D. Fox, and S. M. Seitz. Dynamicfusion: Reconstruction and tracking of non-rigid scenes in real-time. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2015. 2
|
| 376 |
+
[58] S. Orts-Escalano, C. Rhemann, S. Fanello, W. Chang, A. Kowdle, Y. Degtyarev, D. Kim, P. L. Davidson, S. Khamis, M. Dou, et al. Holoportation: Virtual 3d teleportation in real-time. In Proceedings of the 29th Annual Symposium on User Interface Software and Technology, pages 741-754. ACM, 2016. 2
|
| 377 |
+
|
| 378 |
+
[59] S. I. Park and J. K. Hodgins. Data-driven modeling of skin and muscle deformation. In ACM Transactions on Graphics (TOG), volume 27, page 96. ACM, 2008. 2
|
| 379 |
+
[60] C. Patel, Z. Liao, and G. Pons-Moll. Tailornet: Predicting clothing in 3d as a function of human pose, shape and garment style. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, jun 2020. 1, 2
|
| 380 |
+
[61] G. Pavlakos, V. Choutas, N. Ghorbani, T. Bolkart, A. A. A. Osman, D. Tzionas, and M. J. Black. Expressive body capture: 3d hands, face, and body from a single image. In Proceedings IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
|
| 381 |
+
[62] G. Pavlakos, L. Zhu, X. Zhou, and K. Daniilidis. Learning to estimate 3D human pose and shape from a single color image. In CVPR, 2018. 2
|
| 382 |
+
[63] R. Plänkers and P. Fua. Tracking and modeling people in video sequences. Computer Vision and Image Understanding, 81(3):285-302, 2001. 2
|
| 383 |
+
[64] G. Pons-Moll, S. Pujades, S. Hu, and M. Black. ClothCap: Seamless 4D clothing capture and retargeting. ACM Transactions on Graphics, (Proc. SIGGRAPH), 36(4), 2017. 1, 2
|
| 384 |
+
[65] G. Pons-Moll, J. Romero, N. Mahmood, and M. J. Black. Dyna: a model of dynamic human shape in motion. ACM Transactions on Graphics (TOG), 34(4):120, 2015. 1, 2
|
| 385 |
+
[66] F. Prada, M. Kazhdan, M. Chuang, A. Collet, and H. Hoppe. Spatiotemporal atlas parameterization for evolving meshes. ACM Transactions on Graphics (TOG), 36(4):58, 2017. 2
|
| 386 |
+
[67] A. Pumarola, J. Sanchez-Riera, G. P. T. Choi, A. Sanfeliu, and F. Moreno-Noguer. 3dpeople: Modeling the geometry of dressed humans. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 1
|
| 387 |
+
[68] H. Rhodin, N. Robertini, D. Casas, C. Richardt, H.-P. Seidel, and C. Theobalt. General automatic human shape and motion capture using volumetric contour cues. In B. Leibe, J. Matas, N. Sebe, and M. Welling, editors, ECCV, pages 509-526, Cham, 2016. Springer International Publishing. 2
|
| 388 |
+
[69] J. Romero, D. Tzionas, and M. J. Black. Embodied hands: Modeling and capturing hands and bodies together. ACM Transactions on Graphics, (Proc. SIGGRAPH Asia), 36(6):245:1-245:17, Nov. 2017. 2
|
| 389 |
+
[70] S. Saito, Z. Huang, R. Natsume, S. Morishima, A. Kanazawa, and H. Li. Pifu: Pixel-aligned implicit function for high-resolution clothed human digitization. CoRR, abs/1905.05172, 2019. 1, 2, 6, 7, 8
|
| 390 |
+
[71] L. Sigal, S. Bhatia, S. Roth, M. J. Black, and M. Isard. Tracking loose-limbed people. In Computer Vision and Pattern Recognition, 2004. CVPR 2004. Proceedings of the 2004 IEEE Computer Society Conference on, volume 1, pages I-421. IEEE, 2004. 2
|
| 391 |
+
[72] T. Simon, H. Joo, I. Matthews, and Y. Sheikh. Hand keypoint detection in single images using multiview bootstrapping. In CVPR, 2017. 3, 5
|
| 392 |
+
[73] M. Slavcheva, M. Baust, D. Cremers, and S. Ilic. Killing-fusion: Non-rigid 3d reconstruction without correspond
|
| 393 |
+
|
| 394 |
+
dences. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), volume 3, page 7, 2017. 2
|
| 395 |
+
[74] C. Sminchisescu and B. Triggs. Estimating articulated human motion with covariance scaled sampling. The International Journal of Robotics Research, 22(6):371-391, 2003. 2
|
| 396 |
+
[75] O. Sorkine and M. Alexa. As-rigid-as-possible surface modeling. In Proceedings of the Fifth Eurographics Symposium on Geometry Processing, SGP '07. Eurographics Association, 2007. 5
|
| 397 |
+
[76] J. Starck and A. Hilton. Surface capture for performance-based animation. IEEE Computer Graphics and Applications, 27(3):21-31, 2007. 3
|
| 398 |
+
[77] R. W. Sumner, J. Schmid, and M. Pauly. Embedded deformation for shape manipulation. ACM Trans. Graph., 26(3), July 2007. 3, 5
|
| 399 |
+
[78] Y. Tao, Z. Zheng, Y. Zhong, J. Zhao, D. Quionhai, G. Pons-Moll, and Y. Liu. Simulcap: Single-view human performance capture with cloth simulation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), jun 2019. 2
|
| 400 |
+
[79] Treedys. https://www.treedys.com/.3
|
| 401 |
+
[80] G. Varol, D. Ceylan, B. Russell, J. Yang, E. Yumer, I. Laptev, and C. Schmid. BodyNet: Volumetric inference of 3D human body shapes. In ECCV, 2018. 2
|
| 402 |
+
[81] D. Vlasic, I. Baran, W. Matusik, and J. Popovic. Articulated mesh animation from multi-view silhouettes. In ACM Transactions on Graphics (TOG), volume 27, page 97. ACM, 2008. 1, 3
|
| 403 |
+
[82] D. Vlasic, P. Peers, I. Baran, P. Debevec, J. Popovic, S. Rusinkiewicz, and W. Matusik. Dynamic shape capture using multi-view photometric stereo. ACM Transactions on Graphics (TOG), 28(5):174, 2009. 1
|
| 404 |
+
[83] S.-E. Wei, V. Ramakrishna, T. Kanade, and Y. Sheikh. Convolutional Pose Machines. In Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 3, 5
|
| 405 |
+
[84] X. Wei, P. Zhang, and J. Chai. Accurate realtime full-body motion capture using a single depth camera. ACM TOG (Proc. SIGGRAPH Asia), 31(6):188:1-188:12, 2012. 2
|
| 406 |
+
[85] A. Weiss, D. Hirshberg, and M. J. Black. Home 3d body scans from noisy image and range data. In Proc. ICCV, pages 1951-1958. IEEE, 2011. 2
|
| 407 |
+
[86] C. Wu, C. Stoll, L. Valgaerts, and C. Theobalt. On-set Performance Capture of Multiple Actors With A Stereo Camera. In ACM Transactions on Graphics (Proceedings of SIGGRAPH Asia 2013), volume 32, pages 161:1-161:11, November 2013. 1, 3
|
| 408 |
+
[87] C. Wu, K. Varanasi, and C. Theobalt. Full body performance capture under uncontrolled and varying illumination: A shading-based approach. In ECCV, pages 757-770, 2012. 3
|
| 409 |
+
[88] D. Xiang, H. Joo, and Y. Sheikh. Monocular total capture: Posing face, body, and hands in the wild. CoRR, abs/1812.01598, 2018. 2
|
| 410 |
+
[89] W. Xu, A. Chatterjee, M. Zollhöfer, H. Rhodin, D. Mehta, H.-P. Seidel, and C. Theobalt. Monoperfcap: Human performance capture from monocular video. ACM Trans. Graph., 37(2):27:1-27:15, May 2018. 1, 3
|
| 411 |
+
|
| 412 |
+
[90] J. Yang, J.-S. Franco, F. Hétroy-Wheeler, and S. Wuhrer. Estimation of Human Body Shape in Motion with Wide Clothing. In European Conference on Computer Vision 2016, Amsterdam, Netherlands, Oct. 2016. 2
|
| 413 |
+
[91] G. Ye, Y. Liu, N. Hasler, X. Ji, Q. Dai, and C. Theobalt. Performance capture of interacting characters with handheld kinetics. In ECCV, volume 7573 LNCS, pages 828-841, 2012. 2, 3
|
| 414 |
+
[92] M. Ye and R. Yang. Real-time simultaneous pose and shape estimation for articulated objects using a single depth camera. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2345-2352, 2014. 2
|
| 415 |
+
[93] T. Yu, K. Guo, F. Xu, Y. Dong, Z. Su, J. Zhao, J. Li, Q. Dai, and Y. Liu. Bodyfusion: Real-time capture of human motion and surface geometry using a single depth camera. In The IEEE International Conference on Computer Vision (ICCV). ACM, October 2017. 2
|
| 416 |
+
[94] T. Yu, Z. Zheng, K. Guo, J. Zhao, Q. Dai, H. Li, G. Pons-Moll, and Y. Liu. Doublefusion: Real-time capture of human performances with inner body shapes from a single depth sensor. In The IEEE International Conference on Computer Vision and Pattern Recognition(CVPR). IEEE, June 2018. 2
|
| 417 |
+
[95] C. Zhang, S. Pujades, M. Black, and G. Pons-Moll. Detailed, accurate, human shape estimation from clothed 3D scan sequences. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. Spotlight. 2
|
| 418 |
+
[96] P. Zhang, K. Siu, J. Zhang, C. K. Liu, and J. Chai. Leveraging depth cameras and wearable pressure sensors for full-body kinematics and dynamics capture. ACM Transactions on Graphics (TOG), 33(6):14, 2014. 2
|
| 419 |
+
[97] Q. Zhang, B. Fu, M. Ye, and R. Yang. Quality dynamic human body modeling using a single low-cost depth camera. In 2014 IEEE Conference on Computer Vision and Pattern Recognition, pages 676-683. IEEE, 2014. 2
|
| 420 |
+
[98] Z. Zheng, T. Yu, H. Li, K. Guo, Q. Dai, L. Fang, and Y. Liu. HybridFusion: Real-Time Performance Capture Using a Single Depth Sensor and Sparse IMUs. In Proceedings of the 15th European Conference on Computer Vision, Munich, Germany, Sept. 2018. Computer Vision Foundation. 2
|
| 421 |
+
[99] Z. Zheng, T. Yu, Y. Wei, Q. Dai, and Y. Liu. Deephuman: 3d human reconstruction from a single image. CoRR, abs/1903.06473, 2019. 1, 2, 6, 7, 8
|
| 422 |
+
[100] M. Zollhöfer, M. Nießner, S. Izadi, C. Rhemann, C. Zach, M. Fisher, C. Wu, A. Fitzgibbon, C. Loop, C. Theobalt, and M. Stamminger. Real-time non-rigid reconstruction using an rgb-d camera. ACM Transactions on Graphics (TOG), 33(4), 2014. 3
|
deepcapmonocularhumanperformancecaptureusingweaksupervision/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:340d014ebb32f27e1e8e77dab2cd6d8300dea3de81e9e1489c49a1db5cacdb12
|
| 3 |
+
size 660649
|
deepcapmonocularhumanperformancecaptureusingweaksupervision/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1709dfc463f37e85e6c8af9ab36a701842cc79d5f7164e142fa89c2846352298
|
| 3 |
+
size 531100
|
deepdeformlearningnonrigidrgbdreconstructionwithsemisuperviseddata/795ef101-9894-4242-88ef-2deca9b991c7_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9882309229f7f4bd6ee1ea9b2f7df5ba6982115a85da4e122fac43f04948b05
|
| 3 |
+
size 80627
|
deepdeformlearningnonrigidrgbdreconstructionwithsemisuperviseddata/795ef101-9894-4242-88ef-2deca9b991c7_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:83eb29a20134d6d89bddae60fccc89323df7b83d63b6cd22e9d6358c57ce1121
|
| 3 |
+
size 99513
|
deepdeformlearningnonrigidrgbdreconstructionwithsemisuperviseddata/795ef101-9894-4242-88ef-2deca9b991c7_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e62c2cc6135d5d53678d78f6f5819d0725e4d03f51bf9cb06794b3329c6f90c2
|
| 3 |
+
size 1488182
|
deepdeformlearningnonrigidrgbdreconstructionwithsemisuperviseddata/full.md
ADDED
|
@@ -0,0 +1,328 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DeepDeform: Learning Non-rigid RGB-D Reconstruction with Semi-supervised Data
|
| 2 |
+
|
| 3 |
+
Aljaž Božić<sup>1</sup>
|
| 4 |
+
|
| 5 |
+
Michael Zollhöfer<sup>2</sup>
|
| 6 |
+
|
| 7 |
+
Christian Theobalt<sup>3</sup>
|
| 8 |
+
|
| 9 |
+
Matthias Nießner<sup>1</sup>
|
| 10 |
+
|
| 11 |
+
<sup>1</sup>Technical University of Munich
|
| 12 |
+
|
| 13 |
+
$^{2}$ Stanford University
|
| 14 |
+
|
| 15 |
+
3Max Planck Institute for Informatics
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: We propose a semi-supervised strategy combining self-supervision with sparse annotations to build a large-scale RGB-D dataset of non-rigidly deforming scenes (400 scenes, 390,000 frames, 5,533 densely aligned frame pairs). With this data, we propose a new method for non-rigid matching, which we integrate into a non-rigid reconstruction approach.
|
| 19 |
+
|
| 20 |
+

|
| 21 |
+
|
| 22 |
+
# Abstract
|
| 23 |
+
|
| 24 |
+
Applying data-driven approaches to non-rigid 3D reconstruction has been difficult, which we believe can be attributed to the lack of a large-scale training corpus. Unfortunately, this method fails for important cases such as highly non-rigid deformations. We first address this problem of lack of data by introducing a novel semi-supervised strategy to obtain dense inter-frame correspondences from a sparse set of annotations. This way, we obtain a large dataset of 400 scenes, over 390,000 RGB-D frames, and 5,533 densely aligned frame pairs; in addition, we provide a test set along with several metrics for evaluation. Based on this corpus, we introduce a data-driven non-rigid feature matching approach, which we integrate into an optimization-based reconstruction pipeline. Here, we propose a new neural network that operates on RGB-D frames, while maintaining robustness under large non-rigid deformations and producing accurate predictions. Our approach significantly outperforms existing non-rigid reconstruction methods that do not use learned data terms, as well as learning-based approaches that only use self-supervision.
|
| 25 |
+
|
| 26 |
+
# 1. Introduction
|
| 27 |
+
|
| 28 |
+
Non-rigid 3D reconstruction, i.e., the dense, space-time coherent capture of non-rigidly deforming surfaces in full temporal correspondence, is key towards obtaining 3D abstractions of the moving real world. The wide availability of commodity RGB-D sensors, such as the Microsoft Kinect or Intel Realsense, has led to tremendous progress on static scene reconstruction methods. However, robust and high-quality reconstruction of non-rigidly moving scenes with one depth camera is still challenging. Applications for real-time non-rigid reconstruction range from augmented (AR) and virtual reality (VR) up to building realistic 3D holograms for fully immersive teleconferencing systems. The seminal DynamicFusion [28] approach was the first to show dynamic non-rigid reconstruction in real-time. Extensions primarily differ in the used energy formulation. Some methods use hand-crafted data terms based on dense geometry [28, 36, 37], dense color and geometry [14, 47], and sparse feature constraints [17]. Other approaches leverage multi-camera RGB-D setups [9, 8] for higher robustness. However, there are very few reconstruction methods that use learning-based data terms for general real-world scenes rather than specific scenarios [48], and that are trained to be robust under real-world appearance variation and diffi-
|
| 29 |
+
|
| 30 |
+
cult motions. One reason for this is the lack of a large-scale training corpus. One recent approach [33] proposes self-supervision for ground truth generation, i.e., they employ DynamicFusion [28] for reconstruction and train a non-rigid correspondence descriptor on the computed interframe correspondences. However, we show that existing non-rigid reconstruction methods are not robust enough to handle realistic non-rigid sequences; therefore this tracking-based approach does not scale to training data generation for real world scenes. Unfortunately, this means that self-supervision exactly fails for many challenging scenarios such as highly non-rigid deformations and fast scene motion. By design, this approach trained with self-supervision cannot be better than the employed tracker. We propose to employ semi-supervised training data by combining self-supervision with sparse user annotations to obtain dense inter-frame correspondences. The annotated sparse point correspondences guide non-rigid reconstruction; this allows us to handle even challenging motions. The result is a large dataset of 400 scenes, over 390,000 RGB-D frames, and 5,533 densely aligned frame pairs. Based on this novel training corpus, we develop a new non-rigid correspondence matching approach (see Sec. 3) that finds accurate matches between RGB-D frames and is robust to difficult real world deformations. We further propose a re-weighting scheme that gives more weight to corner cases and challenging deformations during training. Given a keypoint in a source frame, our approach predicts a probability heatmap of the corresponding location in the target frame. Finally, we integrate our learned data term into a non-rigid reconstruction pipeline that combines learned heatmap matches with a dense RGB-D reconstruction objective. In addition, we introduce a new benchmark and metric for evaluating RGB-D based non-rigid 3D correspondence matching and reconstruction. We extensively compare our new data-driven approach to existing hand-crafted features. We also integrate the learned features into a non-rigid reconstruction framework, leading to significant improvement over state of the art. In sum, our contributions are:
|
| 31 |
+
|
| 32 |
+
- A semi-supervised labeling approach for dense non-rigid correspondence learning, resulting in a dataset featuring 400 annotated dynamic RGB-D sequences and 5,533 densely aligned frame pairs.
|
| 33 |
+
- A novel data-driven non-rigid correspondence matching strategy that leads to more robust correspondence estimation compared to the state-of-the-art handcrafted and learned descriptors, especially in the case of extreme deformations.
|
| 34 |
+
- A non-rigid reconstruction approach for general scenes that combines learned and geometric data-terms and handles significantly faster and more complex motions than the state-of-the-art.
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
|
| 38 |
+

|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
|
| 48 |
+

|
| 49 |
+
Figure 2: Our large-scale dataset contains a large variety of dynamic sequences with segmentation masks and point correspondences between different RGB-D frames.
|
| 50 |
+
|
| 51 |
+

|
| 52 |
+
|
| 53 |
+

|
| 54 |
+
|
| 55 |
+
# 2. Related Work
|
| 56 |
+
|
| 57 |
+
Our approach is related to several research areas, such as volumetric 3D scene reconstruction, non-rigid object tracking, and learned correspondence matching. We focus our discussion on the most related RGB-D based techniques. For a detailed discussion, we refer to the recent survey [59].
|
| 58 |
+
|
| 59 |
+
Volumetric Scene Reconstruction Reconstructing static environments with a single RGB-D sensor has had a long history in vision and graphics, including KinectFusion [27, 18], which employs a uniform voxel grid to represent the scene as a truncated signed distance function (TSDF) [4], as well as many extensions to large-scale scenes [49, 2, 40, 29]. These techniques track the 6-DoF camera motion by solving a geometric model-to-frame alignment problem using a fast data-parallel variant of the point-to-plane Iterative Closest Point (ICP) algorithm [30]. Globally consistent reconstruction based on Bundle Adjustment [57, 3] was for a long time only possible offline; data-parallel solvers now enable real-time frame rates [6]. An alternative to TSDFs are point-based scene representations [20, 23, 22]. Recent techniques also employ non-rigid registration to robustly handle loop closures [50, 58].
|
| 60 |
+
|
| 61 |
+
Non-Rigid Reconstruction The reconstruction of general non-rigidly deforming objects based on real-time scan data has a long tradition [44]. One class of methods uses pre-defined templates, e.g., human templates, to capture pose and time-varying shape of clothed humans from RGB-D [54] or stereo camera data [51]. First template-less approaches had slow offline runtimes and only worked for slow and simple motions. The approach of [10] solves a global optimization problem to reconstruct the canonical
|
| 62 |
+
|
| 63 |
+
shape of a non-rigidly deforming object given an RGB-D video sequence as input, but does not recover the time-dependent non-rigid motion across the entire sequence. The first approach to demonstrate truly dynamic reconstruction of non-rigid deformation and rest shape in real-time was DynamicFusion [28]. Since this seminal work, many extensions have been proposed. VolumeDeform [17] improves tracking quality based on sparse feature alignment. In addition, they parameterize the deformation field based on a dense volumetric grid instead of a sparse deformation graph. The KillingFusion [36] and SobolevFusion [37] approaches allow for topology changes, but do not recover dense space-time correspondence along the complete input sequence. Other approaches jointly optimize for geometry, albedo, and motion [14] to obtain higher robustness and better quality. The approach of Wang et al. [47] employs global optimization to minimize surface tracking errors. In contrast to these methods using a single RGB-D camera, other techniques use multiple color [7, 43] or depth cameras [52, 45, 9, 8], which enables high-quality reconstruction at the cost of more complex hardware. We propose a new learning-based correspondence matching and reconstruction approach that outperforms existing techniques.
|
| 64 |
+
|
| 65 |
+
Learning Rigid Correspondence Matching Historically, correspondence matching for the task of rigid registration has been based on hand-crafted geometry descriptors [19, 11, 42, 32, 31]. If color information is available in addition to depth, SIFT [24] or SURF [1] can be used to establish a sparse set of feature matches between RGB-D frames. More recently, 2D descriptors for feature matching in static scenes have been learned directly from large-scale training corpora [34, 35, 15, 53, 60]. The Matchnet [15] approach employs end-to-end training of a CNN to extract and match patch-based features in 2D image data. Descriptors for the rigid registration of static scenes can be learned and matched directly in 3D space with the 3DMatch [56] architecture. Visual descriptors for dense correspondence estimation can be learned in a self-supervised manner by employing a dense reconstruction approach to automatically label correspondences in RGB-D recordings [33]. Descriptor learning and matching for static scenes has been well-studied, but is lacking in the challenging non-rigid scenario. While class-specific dense matching of non-rigid scenes has been learned for specific object classes [48, 12], none of these techniques can handle arbitrary deforming non-rigid objects. We believe one reason for this is the lack of a large-scale training corpus. In this work, we propose such a corpus and demonstrate how non-rigid matching between depth images can be learned end-to-end.
|
| 66 |
+
|
| 67 |
+
RGB-D Datasets While we have seen a plethora of RGB-D datasets for static scenes, such as NYU [26], SUN RGB-
|
| 68 |
+
|
| 69 |
+
D [38], and ScanNet [5], the largest of which have thousands of scans, non-rigid RGB-D datasets remain in their infancy. While these datasets can be used to pretrain networks for the task of non-rigid correspondence matching, they do not capture the invariants that are useful for the much harder non-rigid setting, and thus lead to sub-par accuracy. Current non-rigid reconstruction datasets are far too small and often limited to specific scene types [7, 52], which is not sufficient to provide the required training data for supervised learning. The datasets that provide real-world depth recordings [13, 17] do not come with ground truth reconstructions, which makes objectively benchmarking different approaches challenging. Other datasets that are commonly used for evaluation do not provide real-world depth data, e.g., [7, 43]. In this work, we introduce the first large-scale dataset for non-rigid matching based on semi-supervised labeling and provide a benchmark enabling objective comparison of different approaches.
|
| 70 |
+
|
| 71 |
+
# 3. Data-driven Non-Rigid Matching
|
| 72 |
+
|
| 73 |
+
Our goal is to find matches between a source and a target RGB-D frame. To this end, we propose a network architecture for RGB-D matching based on a Siamese network [21] with two towers. Input to the network are two local patches of size $224 \times 224$ pixels each (with 3 color channels and 3-dimensional points in camera coordinate space). We assume that the source patch is centered at a feature point.
|
| 74 |
+
|
| 75 |
+
Heatmap The goal is to predict a probability heatmap $\mathcal{H}$ in the target frame that gives the likelihood of the location of the source point. First, we compute a sigmoid-heatmap:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\mathcal {H} _ {\mathrm {s g}} = \sigma_ {\mathrm {s g}} \left(\mathbf {H} \left(D _ {\text {o u t}}\right)\right).
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
It is computed based on a sigmoid activation $\sigma_{\mathrm{sg}}$ to map responses to [0, 1]. Here, $D_{\mathrm{out}}$ is the output feature map of the last layer of the decoder and $\mathbf{H}$ is a convolutional layer converting feature space into heatmap values. This is equivalent to independent binary classification problems per pixel. Second, we also compute a softmax-heatmap:
|
| 82 |
+
|
| 83 |
+
$$
|
| 84 |
+
\mathcal {H} _ {\mathrm {s m}} = \sigma_ {\mathrm {s m}} \left(\mathbf {H} \left(D _ {\mathrm {o u t}}\right)\right).
|
| 85 |
+
$$
|
| 86 |
+
|
| 87 |
+
Here we use a softmax activation $\sigma_{\mathrm{sm}}$ to make the complete heatmap a probability distribution, i.e., it sums to one. As ground truth for the heatmap prediction we could take an image with zero values everywhere except at the ground truth pixel position that we set to one. To prevent the trained network from predicting only zero values, we apply a Gaussian kernel $G_{x_{gt}}$ around the ground truth pixel. It sets the ground truth pixel's value to one and decays the neighboring pixel values to zero with standard deviation of 7 pixels, resulting in the ground truth heatmap $\mathcal{H}_{\mathrm{gt}}$ . We also add larger weight to pixels close to the ground truth pixel, defining the
|
| 88 |
+
|
| 89 |
+

|
| 90 |
+
Source RGB-D
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
Target RGB-D
|
| 94 |
+
|
| 95 |
+

|
| 96 |
+
Figure 3: We devise an end-to-end architecture for RGB-D matching based on a Siamese network to find matches between a source and a target frame. Our network is based on two towers that share the encoder and have a decoder that predicts two probability heatmaps in the target frame that encode the likelihood of the location of the source point. Our network also predicts a depth value for the matched point and a visibility score that measures if the source point is visible in target frame.
|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
|
| 100 |
+
pixel weight as $w_{\mathcal{H}}(x) = 1 + 10 \cdot G_{x_{gt}}(x)$ . The heatmap loss is then computed as:
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
\begin{array}{l} \mathcal {L} _ {\mathcal {H}} = \sum_ {i} \Phi_ {b c e} \left(w _ {\mathcal {H}} \left(\mathcal {H} _ {\mathrm {s g}} - \mathcal {H} _ {\mathrm {g t}}\right)\right) + \\ \lambda_ {\mathrm {n l l}} \sum_ {i} \Phi_ {n l l} \left(w _ {\mathcal {H}} \left(\mathcal {H} _ {\mathrm {s m}} - \mathcal {H} _ {\mathrm {g t}}\right)\right) . \\ \end{array}
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
Here, $\Phi_{bce}(\bullet)$ denotes the binary cross entropy loss and $\Phi_{nll}(\bullet)$ the negative log-likelihood loss, and we empirically determined a weight $\lambda_{\mathrm{nl}} = 10$ . From these two probability heatmaps, a single one is computed as $\mathcal{H} = \mathcal{H}_{sg}\otimes \mathcal{H}_{sm}$ , where $\otimes$ is the Hadamard product.
|
| 107 |
+
|
| 108 |
+
Depth In addition to heatmap prediction, our network also predicts the matched point's depth value in the target camera's coordinate system. Inspired by [25], we predict the depth densely, predicting the same depth value for every pixel in the output image:
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
\mathcal {D} = \exp \left(\mathbf {D} (D _ {\mathrm {o u t}})\right) .
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
Here, $\mathbf{D}$ is a convolutional layer converting feature space into depth values, and the exponential is applied to guarantee positive depth predictions. Ground truth for depth prediction $\mathcal{D}_{\mathrm{gt}}$ is the depth of the ground truth match, repeated for the whole image. Since we want to encourage depth prediction to focus on the matched pixel, we again use pixel weighting, this time in the form of $w_{\mathcal{D}}(x) = G_{x_{gt}}(x)$ , setting the center pixel's weight to 1 and decaying the weights to 0. Using the weighted version of mean squared error $\Phi_{mse}(\bullet)$ we employ the following loss for depth prediction:
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
\mathcal {L} _ {\mathcal {D}} = \lambda_ {\mathrm {d}} \sum_ {i} \Phi_ {m s e} (w _ {\mathcal {D}} (\mathcal {D} - \mathcal {D} _ {\mathrm {g t}})).
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
Visibility Furthermore, we also predict a visibility score $\in [0,1]$ that measures whether the source point is visible (high value) or occluded (low value) in the target frame:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\mathcal {V} = \sigma_ {\mathrm {s g}} \left(\mathbf {V} \left(B _ {\mathrm {o u t}}\right)\right).
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
Here, $B_{\mathrm{out}}$ is the output feature map of the bottleneck layer, $\mathbf{V}$ is a convolutional layer, and $\sigma_{\mathrm{sg}}$ a sigmoid activation. The visibility loss takes the following form:
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\mathcal {L} _ {\mathcal {V}} = \sum_ {i} \Phi_ {b c e} (\mathcal {V} - \mathcal {V} _ {\mathrm {g t}}) .
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
In the end, we train the network using a weighted combination of all presented loss functions:
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
\mathcal {L} = \mathcal {L} _ {\mathcal {H}} + \lambda_ {\mathcal {D}} \mathcal {L} _ {\mathcal {D}} + \lambda_ {\mathcal {V}} \mathcal {L} _ {\mathcal {V}}.
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
In all experiments we use the constant and empirically determined weights $\lambda_{\mathcal{D}} = 100$ and $\lambda_{\mathcal{V}} = 1$ . An overview of the network architecture is given in Fig. 3. More network and training details can be found in the supplemental.
|
| 139 |
+
|
| 140 |
+
# 4. Non-Rigid Reconstruction Pipeline
|
| 141 |
+
|
| 142 |
+
We integrate the learned non-rigid matching algorithm into a non-rigid RGB-D reconstruction framework that efficiently tracks dense, space-time coherent, non-rigid deformations on the GPU and also provides an efficient volumetric fusion backend. A canonical model of the scene is reconstructed from data, in parallel to tracking the non-rigid deformations, and stored based on a truncated signed distance field (TSDF) represented by a uniform voxel grid. New observations are fused into the grid based on an exponentially moving average. The non-rigid scene motion is tracked based on the following tracking energy:
|
| 143 |
+
|
| 144 |
+
$$
|
| 145 |
+
E _ {\text {t o t a l}} (\mathcal {T}) = E _ {\text {d a t a}} (\mathcal {T}) + \lambda_ {\text {l e a n e d}} E _ {\text {l e a n e d}} (\mathcal {T}) + \lambda_ {\text {r e g}} E _ {\text {r e g}} (\mathcal {T}).
|
| 146 |
+
$$
|
| 147 |
+
|
| 148 |
+
The weights $\lambda_{\mathrm{learned}} = 1$ and $\lambda_{\mathrm{reg}} = 1$ are empirically determined and balance the different terms.
|
| 149 |
+
|
| 150 |
+
# 4.1. Deformation Model
|
| 151 |
+
|
| 152 |
+
To parameterize scene motion, similar to [41], we employ a coarse deformation graph $\mathcal{G}$ with $K$ deformation nodes $\mathbf{g}_i\in \mathbb{R}^3$ . The graph models the deformation of space based on the convex combination of local per-node transformations that are parameterized by rotation parameters $\theta_{i}\in \mathbb{R}^{3}$ in Lie algebra space and a translation vector $\mathbf{t}_i\in \mathbb{R}^3$ . In total, this leads to $2k$ free variables to describe scene motion that we jointly refer to as $\mathcal{T}$ . This enables us to decouple the number of free variables from the complexity of the reconstructed scene. The deformation nodes are connected based on proximity, for details we refer to the original embedded deformation paper [41].
|
| 153 |
+
|
| 154 |
+
# 4.2. Optimization Terms
|
| 155 |
+
|
| 156 |
+
For data term $E_{\mathrm{data}}(\mathcal{T})$ , similar to [28, 17], we employ dense point-to-point and point-to-plane alignment constraints between the input depth map and the current reconstruction. For regularizer $E_{\mathrm{reg}}$ , we employ the as-rigid-as-possible (ARAP) constraint [39] to enforce locally rigid motion. In addition, we integrate a sparse feature alignment term based on our learned correspondences (see Sec. 3). For each node $\mathbf{g}_i$ of the current deformation graph, we predict a probability heatmap $\mathcal{H}_i$ that gives the likelihood of its 2D uv-position in the current input depth map, using the initial depth map as the reference frame. Furthermore, we also back-project the pixel with the maximum heatmap response into a 3D point $\mathbf{p}_i \in \mathbb{R}^3$ , using its depth. We aim to align the graph nodes with the maximum in the corresponding heatmap using the following alignment constraint:
|
| 157 |
+
|
| 158 |
+
$$
|
| 159 |
+
\begin{array}{l} E _ {\text {l e a r n e d}} (\mathcal {T}) = \sum_ {g _ {i} \in \mathcal {G}} \left(1 - \mathcal {H} _ {i} \left(\pi \left(\mathbf {g} _ {i} + \mathbf {t} _ {i}\right)\right)\right) ^ {2} + \\ \lambda_ {p o i n t} \sum_ {g _ {i} \in \mathcal {G}} \left(\mathbf {g} _ {i} + \mathbf {t} _ {i} - \mathbf {p} _ {i}\right) ^ {2}. \\ \end{array}
|
| 160 |
+
$$
|
| 161 |
+
|
| 162 |
+
Here, $\pi : \mathbb{R}^3 \to \mathbb{R}^2$ is the projection from 3D camera space to 2D screen space. The heatmap $\mathcal{H}_i$ is normalized to a maximum of 1. We empirically set $\lambda_{point} = 10$ . In order to handle outliers, especially in the case of occluded correspondences, we make use of the predicted visibility score and the predicted depth value of the match. We filter out all heatmap correspondences with visibility score $< 0.5$ . We compare the predicted depth with the queried depth from the target frame's depth map at the pixel with the maximum heatmap response and invalidate any correspondences with a depth difference $> 0.15$ meters.
|
| 163 |
+
|
| 164 |
+
# 4.3. Energy Optimization
|
| 165 |
+
|
| 166 |
+
We efficiently tackle the underlying optimization problem using a data-parallel Gauss-Newton solver to find the
|
| 167 |
+
|
| 168 |
+
deformation graph $\mathcal{G}^*$ that best explains the data:
|
| 169 |
+
|
| 170 |
+
$$
|
| 171 |
+
\mathcal {G} ^ {*} = \operatorname {a r g m i n} E _ {\text {t o t a l}} (\mathcal {G}).
|
| 172 |
+
$$
|
| 173 |
+
|
| 174 |
+
In the Gauss-Newton solver, we solve the underlying sequence of linear problems using data-parallel preconditioned conjugate gradient (PCG). For implementation details, we refer to the supplemental document.
|
| 175 |
+
|
| 176 |
+
# 5. Semi-supervised Data Acquisition
|
| 177 |
+
|
| 178 |
+
In the following, we provide the details of our semi-supervised non-rigid data collection process that is used for training the non-rigid matching and for the evaluation of non-rigid reconstruction algorithms. The high-level overview of the data acquisition pipeline is shown in Fig. 1.
|
| 179 |
+
|
| 180 |
+
# 5.1. Data Acquisition
|
| 181 |
+
|
| 182 |
+
In order to obtain RGB-D scans of non-rigidly moving objects, we use a Structure Sensor mounted on an iPad. The depth stream is recorded at a resolution of $640 \times 480$ and 30 frames per second; the RGB stream is captured with the iPad camera at a resolution of $1296 \times 968$ pixels that is calibrated with respect to the range sensor. Regarding the scanning instructions, we follow the ScanNet [5] pipeline. However, in our case, we focus on scenes with one up to several non-rigidly moving objects in addition to a static background. In total, we recorded 400 scenes with over 390,000 RGB-D frames.
|
| 183 |
+
|
| 184 |
+
# 5.2. Data Annotation
|
| 185 |
+
|
| 186 |
+
We crowd sourced sparse ground truth correspondence annotations and segmentation masks for our novel data set. To this end, we employed a web-based annotation tool. The annotation was divided into two tasks. Firstly, we select up to 10 frames per sequence. All dynamic objects that are found in these frames are given unique instance ids (the same instance in the whole sequence) and their masks are annotated in each frame. To accelerate mask segmentation, we use a hierarchy of superpixels as candidate brush sizes. Secondly, among the annotated frames up to 10 frame pairs are selected, and the sparse correspondences between all dynamic objects are annotated. Expert annotators were instructed to annotate correspondences uniformly over the complete object, labeling about 20 point matches per frame pair. Furthermore, in parts of the source image that are occluded in the target image occlusion points were uniformly selected to collect data samples for visibility detection. The dynamic object segmentation task takes on average about 1 min per frame, while the correspondence labeling task takes on average about 2 min per frame.
|
| 187 |
+
|
| 188 |
+
# 5.3. Dense Data Alignment
|
| 189 |
+
|
| 190 |
+
Using the annotated object masks and the sparse matches, dense non-rigid alignment of the frame pairs is
|
| 191 |
+
|
| 192 |
+
performed. We follow a similar approach as for non-rigid reconstruction (see Sec. 4), based on the sparse deformation graph of [41]. The deformation graph is defined on the source frame's depth map, covering only the dynamic object by using the source object mask. The final energy function that is optimized to align the source RGB-D frame to the target RGB-D frame is:
|
| 193 |
+
|
| 194 |
+
$$
|
| 195 |
+
\begin{array}{l} E _ {\text {t o t a l}} (\mathcal {T}) = E _ {\text {d a t a}} (\mathcal {T}) + \lambda_ {\text {p h o t o}} E _ {\text {p h o t o}} (\mathcal {T}) + \lambda_ {\text {s i l h}} E _ {\text {s i l h}} (\mathcal {T}) + \\ \lambda_ {\text {s p a r s e}} E _ {\text {s p a r s e}} (\mathcal {T}) + \lambda_ {\text {r e g}} E _ {\text {r e g}} (\mathcal {T}). \\ \end{array}
|
| 196 |
+
$$
|
| 197 |
+
|
| 198 |
+
Here, $E_{\mathrm{photo}}(\mathcal{T})$ encourages the color gradient values from the source frame to match the target frame, $E_{\mathrm{sih}}$ penalizes deformation of the object outside of the target frame's object mask, and $E_{\mathrm{sparse}}$ enforces annotated sparse matches to be satisfied. The weights $\lambda_{\mathrm{photo}} = 0.001$ , $\lambda_{\mathrm{sih}} = 0.0001$ , $\lambda_{\mathrm{sparse}} = 100.0$ and $\lambda_{\mathrm{reg}} = 10.0$ have been empirically determined. Details about the different optimization terms and a qualitative comparison of their effects can be found in the supplemental document. In order to cope with simple apparent topology changes that are very common while capturing natural non-rigid motion, such as the hand touching the body in one frame and moving away in another frame, we execute non-rigid alignment in both directions and compute the final non-rigid alignment using forward-backward motion interpolation, similar to [55]. At the end, a quick manual review step is performed, in which, if necessary, any incorrectly aligned mesh parts are removed. The review step takes about 30 seconds per frame. Examples of dense alignment results and the employed review interface can be found in the accompanying video.
|
| 199 |
+
|
| 200 |
+
# 6. Experiments
|
| 201 |
+
|
| 202 |
+
We provide a train-val-test split with 340 sequences in the training set, 30 in the test set, and 30 in the validation set. We made sure that there is no overlap between captured environments between training and validation/test scenes.
|
| 203 |
+
|
| 204 |
+
# 6.1. Non-Rigid Matching Evaluation
|
| 205 |
+
|
| 206 |
+
For a given set of pixels (and corresponding 3D points) in the source image, the task is to find the corresponding pixel (and 3D point) in the target image. We evaluate the average 2D pixel and 3D point error (in meters), and compute the matching accuracy (ratio of matches closer than 20 pixels or 0.05 meters from the ground truth correspondences). We compare our non-rigid matching approach to several handcrafted feature matching strategies, that are based on depth or color based descriptors, and to the learned 3Dmatch [56] descriptor, see Tab. 1. Specifically, we compare to the handcrafted geometry descriptors, such as Unique Signatures of Histograms (SHOT) [42] and the Fast Point Feature Histograms (FPFH) [31]. We also compare to color-based descriptors, e.g., SIFT [24] and SURF [1], that can be used to
|
| 207 |
+
|
| 208 |
+
<table><tr><td>Method</td><td>2D-err</td><td>3D-err</td><td>2D-acc</td><td>3D-acc</td></tr><tr><td>SIFT [24]</td><td>138.40</td><td>0.552</td><td>16.20</td><td>14.08</td></tr><tr><td>SURF [1]</td><td>125.72</td><td>0.476</td><td>22.13</td><td>19.82</td></tr><tr><td>SHOT [42]</td><td>105.34</td><td>0.342</td><td>13.43</td><td>11.51</td></tr><tr><td>FPFH [31]</td><td>109.49</td><td>0.393</td><td>10.85</td><td>9.43</td></tr><tr><td>3Dmatch [56]</td><td>68.98</td><td>0.273</td><td>30.50</td><td>25.33</td></tr><tr><td>GPC [46]</td><td>65.04</td><td>0.231</td><td>31.93</td><td>28.16</td></tr><tr><td>FlowNet-2.0 [16]</td><td>27.32</td><td>0.118</td><td>68.68</td><td>63.67</td></tr><tr><td>Ours-12.5%</td><td>78.82</td><td>0.268</td><td>27.17</td><td>23.28</td></tr><tr><td>Ours-25.0%</td><td>58.28</td><td>0.197</td><td>40.32</td><td>35.81</td></tr><tr><td>Ours-50.0%</td><td>45.43</td><td>0.156</td><td>50.70</td><td>46.57</td></tr><tr><td>Ours-Rigid</td><td>57.87</td><td>0.270</td><td>40.93</td><td>35.64</td></tr><tr><td>Ours-SelfSupervised</td><td>33.34</td><td>0.121</td><td>60.87</td><td>55.70</td></tr><tr><td>Ours-Sparse</td><td>31.42</td><td>0.106</td><td>58.53</td><td>52.24</td></tr><tr><td>Ours-NoWeighting</td><td>23.72</td><td>0.083</td><td>73.13</td><td>68.46</td></tr><tr><td>Ours</td><td>19.56</td><td>0.073</td><td>77.60</td><td>72.48</td></tr></table>
|
| 209 |
+
|
| 210 |
+
Table 1: We outperform all baseline matching methods by a considerable margin. 2D/3D errors are average pixel/point errors, and 2D/3D accuracy is the percentage of pixels/points with distance of at most 20 pixels/0.05 meters.
|
| 211 |
+
|
| 212 |
+
establish a sparse set of matches been RGB-D frames. Finally, we train a learned descriptor from [56], patch-based random forest matcher from [46] and optical flow prediction network from [16] on our training sequences. Our method consistently outperforms all the baselines.
|
| 213 |
+
|
| 214 |
+
# 6.2. Non-Rigid Reconstruction Results
|
| 215 |
+
|
| 216 |
+
We integrated our learned matching strategy into a non-rigid reconstruction pipeline. Our learned data term significantly improves reconstruction quality, both qualitatively and quantitatively. To be able to perform a quantitative comparison on our test sequences, we used our reimplementation of [28], and the code or results provided from the authors of [17, 36, 37, 14]. We also replaced our data-driven correspondence matching module with the descriptor learning network from [56], trained on our data, and used it in combination with 3D Harris keypoints. The quantitative evaluation is shown in Tab. 2. The evaluation metrics measure deformation error (a 3D distance between the annotated and computed correspondence positions) and geometry error (comparing depth values inside the object mask to the reconstructed geometry). Deformation error is the more important metric, since it also measures tangential drift within the surface. To be able to know which dynamic object to reconstruct if multiple are present, we always provide the initial ground truth segmentation mask of the selected object. All approaches in Tab. 2 were evaluated on all 30 test sequences to provide a comparison on different kinds of objects and deformable motions. [14] provided results on two challenging test sequences, their average deformation and geometry error are $21.05\mathrm{cm}$ and $14.87\mathrm{cm}$ respectively, while our approach achieves average errors of $3.63\mathrm{cm}$ and $0.48\mathrm{cm}$ . Our approach outperforms the state of the art by a large margin. The methods [36] and [37] do not
|
| 217 |
+
|
| 218 |
+
<table><tr><td>Method</td><td>Def. error (cm)</td><td>Geo. error (cm)</td></tr><tr><td>DynamicFusion re-impl. [28]</td><td>6.31</td><td>1.08</td></tr><tr><td>VolumeDeform [17]</td><td>21.27</td><td>7.78</td></tr><tr><td>DynamicFusion + 3Dmatch</td><td>6.64</td><td>1.59</td></tr><tr><td>Ours-Rigid</td><td>12.21</td><td>2.30</td></tr><tr><td>Ours-Sparse</td><td>8.24</td><td>0.77</td></tr><tr><td>Ours-SelfSupervised</td><td>5.47</td><td>0.54</td></tr><tr><td>Ours-Base</td><td>3.94</td><td>0.43</td></tr><tr><td>Ours-Occlusion</td><td>3.70</td><td>0.42</td></tr><tr><td>Ours-Occlusion+Depth</td><td>3.28</td><td>0.41</td></tr></table>
|
| 219 |
+
|
| 220 |
+
Table 2: Comparison with state-of-the-art approaches. Our learned correspondences significantly improve both tracking and reconstruction quality. We also provide ablation studies on training data type and different network parts.
|
| 221 |
+
|
| 222 |
+
compute explicit point correspondences from the canonical frame to other frames, so we could not evaluate these approaches quantitatively; we provide qualitative comparison on our sequences in the supplemental document. We also show qualitative comparisons with our re-implementation of DynamicFusion [28] in Fig. 4 and with the state-of-the-art approach of [14] in Fig. 5. Our learned correspondences enable us to handle faster object motion as well as challenging planar motion, where even photometric cues fail, for instance due to uniform object color.
|
| 223 |
+
|
| 224 |
+
# 6.3. Ablation Study
|
| 225 |
+
|
| 226 |
+
We evaluated different components of our network and their effect on the reconstruction quality, see Tab. 2. Since some sequences include motions in which large parts of the reconstructed object are occluded, as can be observed in Fig. 6, using visibility detection for correspondence pruning makes our method more robust. Furthermore, since depth measurements and heatmap predictions can both be sometimes noisy, adding correspondence filtering with depth prediction further improves the reconstruction results.
|
| 227 |
+
|
| 228 |
+
# 6.4. Data Generation Evaluation
|
| 229 |
+
|
| 230 |
+
To show the importance of our semi-supervised strategy for constructing the training corpus, we evaluate how different training corpora influence the performance of data-driven reconstruction methods. Aside from our training data, which has been generated using dense semi-supervised frame alignment, we used a publicly available rigid dataset of indoor scenes (from [5]), self-supervised alignment of our sequences (as in [33]), and only manually annotated sparse samples from our dataset. We provide comparison on both non-rigid matching in Tab. 1 and non-rigid reconstruction in Tab. 2. Using only rigid data does not generalize to non-rigid sequences. While sparse matches already improve network performance, there is not enough data for reliable correspondence prediction on every part of the observed object. In addition, annotated sparse matches are usually matches on image parts that are easy for hu
|
| 231 |
+
|
| 232 |
+

|
| 233 |
+
Figure 4: Qualitative comparison to DynamicFusion (reimplementation).
|
| 234 |
+
|
| 235 |
+
mans to match, and there are much less accurate correspondences in areas with uniform color. In the self-supervised setting, the network gets dense correspondence information, which improves the method's reconstruction performance compared to using only sparse features. However, without semi-supervised densely aligned frame pairs, we can only generate matches for the simple deformations, where the DynamicFusion approach can successfully track the motion. Therefore, the performance of the network trained only on self-supervised data degrades considerably on more extreme deformations, as can be seen in Fig. 7. Dense alignment of too far away frames is needed for accurate network prediction also in the case of extreme deformations. Since the majority of the dense aligned matches is still moving rigidly, it turned out to be beneficial to sample more deformable samples during training. In order to estimate which parts of the scene are more deformable, we employed sparsely annotated matches and ran RANSAC in combination with a Procrustes algorithm to estimate the average rigid pose. The more the motion of each sampled match differs from the average rigid motion, the more often we sample it during network training using a multinomial distribution of the non-rigid displacement weights. This
|
| 236 |
+
|
| 237 |
+

|
| 238 |
+
Figure 5: Qualitative comparison of reconstruction results of our method and MonoFVV [14]. Reconstruction results were kindly provided by the authors.
|
| 239 |
+
|
| 240 |
+

|
| 241 |
+
Figure 6: Visibility detection enables filtering of network correspondences that are occluded. The visibility score is in the range [0, 1], it is high for visible correspondences and low for occluded parts. We filter out all correspondences with visibility score less than 0.50.
|
| 242 |
+
|
| 243 |
+
strategy improved the network performance, as is shown in Tab. 1, compared to training on non-weighted samples. Finally, we demonstrate how much data is needed to achieve robust correspondence prediction performance; i.e., using less training data considerably degrades matching accuracy, as summarized in Tab. 1, where we trained networks using only $12.5\%$ , $25.0\%$ , and $50.0\%$ of the training data.
|
| 244 |
+
|
| 245 |
+

|
| 246 |
+
Figure 7: Comparison of correspondence prediction for reference frame (left) using self-supervised training data (middle) and semi-supervised dense data (right).
|
| 247 |
+
|
| 248 |
+
# 6.5. Limitations
|
| 249 |
+
|
| 250 |
+
While learned correspondences make tracking of fast motion more robust, there is still room for improvement when reconstructing dynamic objects. One pressing issue is that background clutter might be accidentally fused with the object when the object is close to the background. In this case, the reconstructed shape would slowly grow and we might also start reconstructing the background. This can cause wrong deformation graph connectivity and lead to tracking failures. A potential future avenue is to subtract and ignore the background; e.g., we could use our annotated object masks to develop a data-driven method.
|
| 251 |
+
|
| 252 |
+
# 7. Conclusion
|
| 253 |
+
|
| 254 |
+
We have proposed a neural network architecture for matching correspondences in non-rigid sequences that operates on RGB-D frames and demonstrated that our learned descriptors outperform existing hand-crafted ones. In addition, we introduced the first large-scale dataset that is composed of 400 scenes, over 390,000 RGB-D frames, and 5,533 densely aligned frame pairs. The dataset is obtained with a semi-supervised strategy by combining self-supervision with sparse annotations to obtain dense interframe correspondences. We also provide a test set along with several metrics for evaluating non-rigid matching and non-rigid reconstruction. We believe that our dataset is a first step towards enabling learning-based non-rigid matching and our benchmark will help to quantitatively and objectively compare different approaches.
|
| 255 |
+
|
| 256 |
+
# Acknowledgements
|
| 257 |
+
|
| 258 |
+
We would like to thank the expert annotators Sathya Ashok, Omar Heyadayat, Haya Irfan, Azza Jenane, Soh Yee Lee, Suzana Spasova, and Weile Weng for their efforts in building the dataset. We further thank Edgar Tretschk for his help with data collection, Xiaochen Fan for his valuable contributions during his research visit, and Armen Avetisyan for numerous helpful discussions. This work was supported by the Max Planck Center for Visual Computing and Communications (MPC-VCC), a TUM-IAS Rudolf Moßbauer Fellowship, the ERC Starting Grant Scan2CAD (804724), the ERC Consolidator Grant 4DRepLy (770784), and the German Research Foundation (DFG) Grant Making Machine Learning on Static and Dynamic 3D Data Practical.
|
| 259 |
+
|
| 260 |
+
# References
|
| 261 |
+
|
| 262 |
+
[1] Herbert Bay, Andreas Ess, Tinne Tuytelaars, and Luc Van Gool. Speeded-up robust features (surf). Comput. Vis. Image Underst., 110(3):346-359, June 2008. 3, 6
|
| 263 |
+
[2] Jiawen Chen, Dennis Bautembach, and Shahram Izadi. Scalable real-time volumetric surface reconstruction. ACM Trans. on Graphics (Proc. SIGGRAPH), 32(4):113:1-113:16, July 2013. 2
|
| 264 |
+
[3] Sungjoon Choi, Qian-Yi Zhou, and Vladlen Koltun. Robust reconstruction of indoor scenes. In Proc. IEEE Conf. Computer Vision and Pattern Recognition, pages 5556-5565, 2015. 2
|
| 265 |
+
[4] B. Curless and M. Levoy. A volumetric method for building complex models from range images. In Proc. Comp. Graph. & Interact. Techn., pages 303-312, 1996. 2
|
| 266 |
+
[5] Angela Dai, Angel X. Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In Proc. Computer Vision and Pattern Recognition (CVPR), IEEE, 2017. 3, 5, 7
|
| 267 |
+
[6] Angela Dai, Matthias Nießner, Michael Zollhöfer, Shahram Izadi, and Christian Theobalt. BundleFusion: real-time globally consistent 3D reconstruction using on-the-fly surface re-integration. ACM Trans. on Graphics, 36(3), 2017. 2
|
| 268 |
+
[7] Edilson de Aguiar, Carsten Stoll, Christian Theobalt, Naveed Ahmed, Hans-Peter Seidel, and Sebastian Thrun. Performance capture from sparse multi-view video. ACM Trans. Graph., 27(3):98:1-98:10, Aug. 2008. 3
|
| 269 |
+
[8] Mingsong Dou, Philip Davidson, Sean Ryan Fanello, Sameh Khamis, Adarsh Kowdle, Christoph Rhemann, Vladimir Tankovich, and Shahram Izadi. Motion2fusion: real-time volumetric performance capture. ACM Transactions on Graphics (TOG), 36(6):246, 2017. 1, 3
|
| 270 |
+
[9] Mingsong Dou, Sameh Khamis, Yury Degtyarev, Philip Davidson, Sean Ryan Fanello, Adarsh Kowdle, Sergio Orts Escolano, Christoph Rhemann, David Kim, Jonathan Taylor, et al. Fusion4d: Real-time performance capture of challenging scenes. ACM Transactions on Graphics (TOG), 35(4):114, 2016. 1, 3
|
| 271 |
+
[10] Mingsong Dou, Jonathan Taylor, Henry Fuchs, Andrew Fitzgibbon, and Shahram Izadi. 3d scanning deformable objects with a single rgbd sensor. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 493-501, 2015. 2
|
| 272 |
+
[11] Andrea Frome, Daniel Huber, Ravi Kolluri, Thomas Bulow, and Jitendra Malik. Recognizing objects in range data using regional point descriptors. volume 3, pages 224-237, 05 2004. 3
|
| 273 |
+
[12] Thibault Groueix, Matthew Fisher, Vladimir G. Kim, Bryan Russell, and Mathieu Aubry. 3d-coded : 3d correspondences by deep deformation. In ECCV, 2018. 3
|
| 274 |
+
[13] Kaiwen Guo, Feng Xu, Yangang Wang, Yebin Liu, and Qionghai Dai. Robust non-rigid motion tracking and surface reconstruction using 10 regularization. IEEE Transaction on Visualization and Computer Graphics (TVCG), 2017. 3
|
| 275 |
+
[14] Kaiwen Guo, Feng Xu, Tao Yu, Xiaoyang Liu, Qionghai Dai, and Yebin Liu. Real-time geometry, albedo, and motion re
|
| 276 |
+
|
| 277 |
+
construction using a single rgb-d camera. ACM Transactions on Graphics (TOG), 36(3):32, 2017. 1, 3, 6, 7, 8
|
| 278 |
+
[15] X. Han, T. Leung, Y. Jia, R. Sukthankar, and A. C. Berg. Matchnet: Unifying feature and metric learning for patch-based matching. In 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3279-3286, June 2015. 3
|
| 279 |
+
[16] 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
|
| 280 |
+
[17] Matthias Innmann, Michael Zollhöfer, Matthias Nießner, Christian Theobalt, and Marc Stamminger. Volumedeform: Real-time volumetric non-rigid reconstruction. In European Conference on Computer Vision, pages 362-379. Springer, 2016. 1, 3, 5, 6, 7
|
| 281 |
+
[18] S. Izadi, D. Kim, O. Hilliges, D. Molyneaux, R. Newcombe, P. Kohli, J. Shotton, S. Hodges, D. Freeman, A. Davison, and A. Fitzgibbon. KinectFusion: real-time 3D reconstruction and interaction using a moving depth camera. In Proc. ACM Symp. User Interface Softw. & Tech., pages 559-568, 2011. 2
|
| 282 |
+
[19] Andrew E. Johnson and Martial Hebert. Using spin images for efficient object recognition in cluttered 3d scenes. IEEE Trans. Pattern Anal. Mach. Intell., 21(5):433-449, May 1999. 3
|
| 283 |
+
[20] Maik Keller, Damien Lefloch, Martin Lambers, Shahram Izadi, Tim Weyrich, and Andreas Kolb. Real-time 3D reconstruction in dynamic scenes using point-based fusion. In Proc. Int. Conf. 3D Vision (3DV), pages 1-8, Washington, DC, USA, 2013. IEEE Computer Society. 2
|
| 284 |
+
[21] B. G. Vijay Kumar, Gustavo Carneiro, and Ian D. Reid. Learning local image descriptors with deep siamese and triplet convolutional networks by minimising global loss functions. CoRR, abs/1512.09272, 2015. 3
|
| 285 |
+
[22] D. Lefloch, M. Kluge, H. Sarbolandi, T. Weyrich, and A. Kolb. Comprehensive use of curvature for robust and accurate online surface reconstruction. IEEE Trans. Pattern Analysis and Machine Intelligence (PAMI), page 10.1109/TPAMI.2017.2648803, 2017. 2
|
| 286 |
+
[23] Damien Lefloch, Tim Weyrich, and Andreas Kolb. Anisotropic point-based fusion. In Proc. Int. Conf. Information Fusion (FUSION), pages 1-9, July 2015. 2
|
| 287 |
+
[24] David G. Lowe. Distinctive image features from scale-invariant keypoints. Int. J. Comput. Vision, 60(2):91-110, Nov. 2004. 3, 6
|
| 288 |
+
[25] Dushyant Mehta, Srinath Sridhar, Oleksandr Sotnychenko, Helge Rhodin, Mohammad Shafiei, Hans-Peter Seidel, Weipeng Xu, Dan Casas, and Christian Theobalt. Vnect: Real-time 3d human pose estimation with a single rgb camera. ACM Transactions on Graphics (TOG), 36(4):44, 2017. 4
|
| 289 |
+
[26] Pushmeet Kohli Nathan Silberman, Derek Hoiem and Rob Fergus. Indoor segmentation and support inference from rgbd images. In ECCV, 2012. 3
|
| 290 |
+
|
| 291 |
+
[27] Richard A Newcombe, Andrew J Davison, Shahram Izadi, Pushmeet Kohli, Otmar Hilliges, Jamie Shotton, David Molyneaux, Steve Hodges, David Kim, and Andrew Fitzgibbon. KinectFusion: real-time dense surface mapping and tracking. In Proc. IEEE Int. Symp. Mixed and Augmented Reality (ISMAR), pages 127-136, 2011. 2
|
| 292 |
+
[28] Richard A Newcombe, Dieter Fox, and Steven M Seitz. Dynamicfusion: Reconstruction and tracking of non-rigid scenes in real-time. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 343-352, 2015. 1, 2, 3, 5, 6, 7
|
| 293 |
+
[29] Matthias Nießner, Michael Zollhöfer, Shahram Izadi, and Marc Stamminger. Real-time 3D reconstruction at scale using voxel hashing. ACM Trans. on Graphics, 32(6):169, 2013. 2
|
| 294 |
+
[30] Szymon Rusinkiewicz and Marc Levoy. Efficient variants of the ICP algorithm. In Int. Conf. 3D Digital Imaging and Modeling (3DIM), pages 145-152. IEEE, 2001. 2
|
| 295 |
+
[31] Radu Bogdan Rusu, Nico Blodow, and Michael Beetz. Fast point feature histograms (fpfh) for 3d registration. In Proceedings of the 2009 IEEE International Conference on Robotics and Automation, ICRA'09, pages 1848-1853, Piscataway, NJ, USA, 2009. IEEE Press. 3, 6
|
| 296 |
+
[32] R. B. Rusu, N. Blodow, Z. C. Marton, and M. Beetz. Aligning point cloud views using persistent feature histograms. In 2008 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 3384-3391, Sep. 2008. 3
|
| 297 |
+
[33] Tanner Schmidt, Richard A. Newcombe, and Dieter Fox. Self-supervised visual descriptor learning for dense correspondence. IEEE Robotics and Automation Letters, 2(2):420-427, 2017. 2, 3, 7
|
| 298 |
+
[34] Edgar Simo-Serra, Eduard Trulls, Luis Ferraz, Iasonas Kokkinos, Pascal Fua, and Francesc Moreno-Noguer. Discriminative learning of deep convolutional feature point descriptors. In ICCV, pages 118-126. IEEE Computer Society, 2015. 3
|
| 299 |
+
[35] K. Simonyan, A. Vedaldi, and A. Zisserman. Learning local feature descriptors using convex optimisation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 36(8):1573-1585, Aug 2014. 3
|
| 300 |
+
[36] Miroslava Slavcheva, Maximilian Baust, Daniel Cremers, and Slobodan Ilic. Killingfusion: Non-rigid 3d reconstruction without correspondences. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), volume 3, page 7, 2017. 1, 3, 6
|
| 301 |
+
[37] Miroslava Slavcheva, Maximilian Baust, and Slobodan Ilic. Sobolevfusion: 3d reconstruction of scenes undergoing free non-rigid motion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2646-2655, 2018. 1, 3, 6
|
| 302 |
+
[38] Shuran Song, Samuel P. Lichtenberg, and Jianxiong Xiao. Sun rgb-d: A rgb-d scene understanding benchmark suite. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2015. 3
|
| 303 |
+
[39] Olga Sorkine and Marc Alexa. As-rigid-as-possible surface modeling. In Proceedings of the Fifth Eurographics Symposium on Geometry Processing, SGP '07, pages 109–116,
|
| 304 |
+
|
| 305 |
+
Aire-la-Ville, Switzerland, Switzerland, 2007. Eurographics Association. 5
|
| 306 |
+
[40] Frank Steinbrucker, Christian Kerl, and Daniel Cremers. Large-scale multi-resolution surface reconstruction from rgb-d sequences. In Proceedings of the IEEE International Conference on Computer Vision, pages 3264-3271, 2013. 2
|
| 307 |
+
[41] Robert W. Sumner, Johannes Schmid, and Mark Pauly. Embedded deformation for shape manipulation. In ACM SIGGRAPH 2007 Papers, SIGGRAPH '07, New York, NY, USA, 2007. ACM. 5, 6
|
| 308 |
+
[42] Federico Tombari, Samuele Salti, and Luigi Di Stefano. Unique signatures of histograms for local surface description. In Proceedings of the 11th European Conference on Computer Vision Conference on Computer Vision: Part III, ECCV'10, pages 356-369, Berlin, Heidelberg, 2010. Springer-Verlag. 3, 6
|
| 309 |
+
[43] Daniel Vlasic, Ilya Baran, Wojciech Matusik, and Jovan Popovic. Articulated mesh animation from multi-view silhouettes. In ACM SIGGRAPH 2008 Papers, SIGGRAPH '08, pages 97:1-97:9, New York, NY, USA, 2008. ACM. 3
|
| 310 |
+
[44] Michael Wand, Bart Adams, Maksim Ovsjanikov, Alexander Berner, Martin Bokeloh, Philipp Jenke, Leonidas Guibas, Efficient reconstruction of nonrigid shape and motion from real-time 3d scanner data. ACM Transactions on Graphics (TOG), 28(2):15, 2009. 2
|
| 311 |
+
[45] Ruizhe Wang, Lingyu Wei, Etienne Vouga, Qi-Xing Huang, Duygu Ceylan, Gerard G. Medioni, and Hao Li. Capturing dynamic textured surfaces of moving targets. CoRR, abs/1604.02801, 2016. 3
|
| 312 |
+
[46] Shenlong Wang, Sean Ryan Fanello, Christoph Rhemann, Shahram Izadi, and Pushmeet Kohli. The global patch collider. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 127-135, 2016. 6
|
| 313 |
+
[47] Sen Wang, Xinxin Zuo, Chao Du, Runxiao Wang, Jiangbin Zheng, and Ruigang Yang. Dynamic non-rigid objects reconstruction with a single rgb-d sensor. Sensors, 18(3):886, 2018. 1, 3
|
| 314 |
+
[48] Lingyu Wei, Qixing Huang, Duygu Ceylan, Etienne Vouga, and Hao Li. Dense human body correspondences using convolutional networks. In Computer Vision and Pattern Recognition (CVPR), 2016. 1, 3
|
| 315 |
+
[49] Thomas Whelan, Michael Kaess, Maurice Fallon, Hordur Johannsson, John Leonard, and John McDonald. Kintinous: Spatially extended Kinectfusion. In Proc. RSS Workshop on RGB-D: Advanced Reasoning with Depth Cameras, 2012. 2
|
| 316 |
+
[50] Thomas Whelan, Stefan Leutenegger, Renato F Salas-Moreno, Ben Glocker, and Andrew J Davison. Elasticfusion: Dense SLAM without a pose graph. In Proceedings of Robotics: Science and Systems, 2015. 2
|
| 317 |
+
[51] Chenglei Wu, Carsten Stoll, Levi Valgaerts, and Christian Theobalt. On-set performance capture of multiple actors with a stereo camera. ACM Trans. Graph., 32(6):161:1-161:11, 2013. 2
|
| 318 |
+
[52] Genzhi Ye, Yebin Liu, Nils Hasler, Xiangyang Ji, Qionghai Dai, and Christian Theobalt. Performance Capture of Interacting Characters with Handheld Kinects. In Proc. ECCV, pages 828-841. Springer, 2012. 3
|
| 319 |
+
|
| 320 |
+
[53] Kwang Moo Yi, Eduard Trulls, Vincent Lepetit, and Pascal Fua. Lift: Learned invariant feature transform. CoRR, abs/1603.09114, 2016. 3
|
| 321 |
+
[54] Tao Yu, Zherong Zheng, Kaiwen Guo, Jianhui Zhao, Qionghai Dai, Hao Li, Gerard Pons-Moll, and Yebin Liu. DoubleFusion: Real-time Capture of Human Performances with Inner Body Shapes from a Single Depth Sensor. In 31st IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 2018. 2
|
| 322 |
+
[55] Konstantinos Zampogiannis, Cornelia Fermuller, and Yiannis Aloimonos. Topology-aware non-rigid point cloud registration. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019. 6
|
| 323 |
+
[56] Andy Zeng, Shuran Song, Matthias Nießner, Matthew Fisher, Jianxiong Xiao, and Thomas Funkhouser. 3dmatch: Learning local geometric descriptors from rgb-d reconstructions. In CVPR, 2017. 3, 6
|
| 324 |
+
|
| 325 |
+
[57] Qian-Yi Zhou and Vladlen Koltun. Dense scene reconstruction with points of interest. ACM Trans. on Graphics, 32(4):112, 2013. 2
|
| 326 |
+
[58] Qian-Yi Zhou, Stephen Miller, and Vladlen Koltun. Elastic fragments for dense scene reconstruction. In Proc. IEEE Conf. Computer Vision and Pattern Recognition, pages 473-480, 2013. 2
|
| 327 |
+
[59] M. Zollhöfer, P. Stotko, A. Görlitz, C. Theobalt, M. Nießner, R. Klein, and A. Kolb. State of the Art on 3D Reconstruction with RGB-D Cameras. Computer Graphics Forum (Eurographics State of the Art Reports 2018), 37(2), 2018. 2
|
| 328 |
+
[60] Jure Zbontar and Yann LeCun. Computing the stereo matching cost with a convolutional neural network. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, volume 07-12-June-2015, pages 1592-1599. IEEE Computer Society, 10 2015. 3
|
deepdeformlearningnonrigidrgbdreconstructionwithsemisuperviseddata/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:884d9062f2bc42ef953b2206fa4841731f1c12f7d75026afd0aa4cc1b460f447
|
| 3 |
+
size 530023
|
deepdeformlearningnonrigidrgbdreconstructionwithsemisuperviseddata/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07ef50e09ada701ff2a56ca048ac1d659cdb7dc16b4ff6ea337b48030fe2ad3a
|
| 3 |
+
size 371386
|
deepdegradationpriorforlowqualityimageclassification/4e3b541d-0422-41a2-b064-b3a09907dd40_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ad46c88cb33d90785ab6396eabb1d832d9a0be1d3316b6a3a7788ff9cd37672
|
| 3 |
+
size 81635
|
deepdegradationpriorforlowqualityimageclassification/4e3b541d-0422-41a2-b064-b3a09907dd40_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b773f8471a76bff8ff18403e53f189b4a706956e3b9e0896f59eb7d07f1d3b56
|
| 3 |
+
size 105930
|
deepdegradationpriorforlowqualityimageclassification/4e3b541d-0422-41a2-b064-b3a09907dd40_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f51ce3da296ac3461cd3f20bdd375400e2eccb229af2c92ae3c854b175cf9adb
|
| 3 |
+
size 3170114
|
deepdegradationpriorforlowqualityimageclassification/full.md
ADDED
|
@@ -0,0 +1,417 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Deep Degradation Prior for Low-quality Image Classification
|
| 2 |
+
|
| 3 |
+
Yang Wang $^{1}$ , Yang Cao $^{1*}$ , Zheng-Jun Zha $^{1\dagger}$ , Jing Zhang $^{2}$ , Zhiwei Xiong $^{1}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>University of Science and Technology of China, Hefei, China
|
| 6 |
+
|
| 7 |
+
$^{2}$ UBTECH Sydney Artificial Intelligence Centre, The University of Sydney, Sydney, Australia
|
| 8 |
+
|
| 9 |
+
ywang120@mail.ustc.edu.cn, forrest,zhazj,zwxiong@ustc.edu.cn, jing.zhang1@sydney.edu.au
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
State-of-the-art image classification algorithms building upon convolutional neural networks (CNNs) are commonly trained on large annotated datasets of high-quality images. When applied to low-quality images, they will suffer a significant degradation in performance, since the structural and statistical properties of pixels in the neighborhood are obstructed by image degradation. To address this problem, this paper proposes a novel deep degradation prior for low-quality image classification. It is based on statistical observations that, in the deep representation space, image patches with structural similarity have uniform distribution even if they come from different images, and the distributions of corresponding patches in low- and high-quality images have uniform margins under the same degradation condition. Therefore, we propose a feature de-drifting module (FDM) to learn the mapping relationship between deep representations of low- and high- quality images, and leverage it as a deep degradation prior (DDP) for low-quality image classification. Since the statistical properties are independent to image content, deep degradation prior can be learned on a training set of limited images without supervision of semantic labels and served in a form of "plugging-in" module of the existing classification networks to improve their performance on degraded images. Evaluations on the benchmark dataset ImageNet-C demonstrate that our proposed DDP can improve the accuracy of the pre-trained network model by more than $20\%$ under various degradation conditions. Even under the extreme setting that only 10 images from CUB-C dataset are used for the training of DDP, our method improves the accuracy of VGG16 on ImageNet-C from $37\%$ to $55\%$ .
|
| 14 |
+
|
| 15 |
+
# 1. Introduction
|
| 16 |
+
|
| 17 |
+
Recent years witness remarkable progresses of image classification task [46, 39], mainly with deep convolu
|
| 18 |
+
|
| 19 |
+
tional neural network trained on large-scale datasets like ImageNet [8]. Since the collected images of the existing datasets are usually free of degradation, such as low visibility [41, 12, 34], color cast [42, 2], and overexposure, evaluation of standard neural network-based methods for image classification shows a significant drop in classification accuracy when applied to low-quality images [13].
|
| 20 |
+
|
| 21 |
+
In practice, one solution for this problem is to firstly improve the visibility of degraded images by image enhancement methods, and then to perform image classification, called two-stage methods in this paper [7, 17, 18]. However, the main reason why image degradation affects image classification is that the structural and statistical properties of pixels in the neighborhood are obstructed by image degradation. Since the existing image enhancement methods are devised to achieve pleasing visual effect, they cannot guarantee that the regions with similar structure in the image can be enhanced uniformly, leading to uncovered and incomplete feature representation for classification. A typical example is shown in Figure 1. As can be seen, there is still a margin between the feature distributions of enhanced image and clear image.
|
| 22 |
+
|
| 23 |
+
Another feasible solution for low-quality image classification is to transform it into a domain adaptation problem and to match the degraded and clear images with adversarial learning or kernelized training. This method is based on the assumption that the marginal distributions of low- and high-quality images can be aligned in the learned feature space by a deep network. Therefore, after decreasing the divergence between the marginal distributions in the learned feature space, the classifier trained with high-quality images tends to perform well on the low-quality images.
|
| 24 |
+
|
| 25 |
+
While promising, most existing domain adaptation approaches require either complex neural network architectures [3, 27, 14] or fine-tuning the target domain [31, 21, 26]. Different from these methods, this paper proposes to learn a transferrable mapping relationship between deep representations of low- and high- quality images, and leverage it as a deep degradation prior (DDP) for image classifier. This method is based on statistical observations that, i)
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
(A)
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
(B)
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
Figure 1. We choose four similar patches $a_1 \sim a_4$ from different clean images and visualize their features using VGG16 trained on ImageNet, as shown in (A). We visualize the feature distribution by using t-SNE [20]. As shown in (D), the clean patches have uniform distribution in feature space. The fog obstructs the statistical properties of pixels within local patches, resulting in feature drifting, as shown in (B) and (D). The visibility is well improved after dehazing [25]. However, the phenomenon of feature drift still exists, as in (C) and (D).
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
|
| 38 |
+
image patches with structural similarity have uniform distribution in the deep representation space, even if they come from different images; ii) the distributions of the corresponding structure-similar patches in low- and high-quality images have uniform margins under the same degradation condition. Since the statistical properties are irrelevant to image content, our proposed deep degradation prior can be learned on a small number of images and do not need supervision of semantic labels.
|
| 39 |
+
|
| 40 |
+
Specifically, we propose a feature de-drifting module (FDM) to learn the mapping relationship between deep representations of low- and high- quality images, and leverage it as a deep degradation prior (DDP) for low-quality image classification. The FDM is devised to compensate for the attenuation effect of image degradation on features, in which a four layers forward network is adopted to simulate the visual processing mechanism of non-classical receptive field model. After trained on an arbitrary degraded image dataset, the FDM can be easily plugged into the existing classification networks to improve their performance on degraded images. Evaluations on the benchmark dataset ImageNet-C [13] demonstrate the performance of our proposed method on low-quality image classification. The proposed DDP can be learned on only 10 images from CUB-C dataset, and achieve the accuracy improvement of VGG16 on ImageNet-C from $37\%$ to $55\%$ . The contributions of this paper are summarized as follows:
|
| 41 |
+
|
| 42 |
+
(1) This paper finds that, in the deep representation
|
| 43 |
+
|
| 44 |
+
space, the distributions of low- and high-quality image patches have uniform margins under the same degradation condition, and accordingly proposes a novel deep degradation prior for low-quality image classification.
|
| 45 |
+
|
| 46 |
+
(2) This paper proposes a feature de-drifting module (FDM) to learn the mapping relationship between deep representations of low- and high- quality images. After trained on a small number of degraded image dataset, the FDM can be easily plugged into the existing classification networks to boost their performance on degraded images.
|
| 47 |
+
(3) Evaluations on the benchmark dataset ImageNet-C demonstrate the performance of our proposed method under various degradation conditions. Even under the extreme setting that only 10 images from CUB-C dataset are used for the training, our method still achieves the accuracy improvement of VGG16 from $37\%$ to $55\%$ .
|
| 48 |
+
|
| 49 |
+
# 2. Related Work
|
| 50 |
+
|
| 51 |
+
Differences in the representations of degraded images and clean images would shift the feature distribution, resulting in a performance drop when a pre-trained classification model is evaluated cross-domain [29]. Image enhancement algorithms can restore the degraded image to a clear version such that human vision can identify object and structure details. For example, B. Li et al. [17] uses the dehazing network to improve the object detection performance in the foggy environment. D. Da et al. [7] evaluates the influence of image super-resolution for high
|
| 52 |
+
|
| 53 |
+

|
| 54 |
+
Figure 2. The distributions of corresponding structure-similar patches in the deep representation space. The high-quality images are from ImageNet dataset [8] and CUB dataset [33], and the low-quality images are generated by the method in [13].
|
| 55 |
+
|
| 56 |
+
level vision tasks. D. Liu et al. [18] employs the denoising algorithm to improve image segmentation performance. However, these enhancing methods can't always promise an improved performance for down-stream high-level vision tasks, especially when the degradation is heavy. Fine-tuning the network using degraded images is another popular strategy to improve performance. However, fine-tuning based methods need semantic labels to supervise network training. When the semantic labels are unavailable for degraded images, it will not be applicable. Domain adaption [22] transfers the models across different domains by solving the domain shift problem. Enormous of domain adaption methods [45, 31, 21, 26, 3, 27, 14] are proposed in recent years. However, these methods usually have complex neural network architectures. Besides, there is no work specifically tackling the classification problem on degraded images. By contrast, we propose a light-weight "plugging-in" feature de-drifting module, which significantly improves the generalizability of networks pre-trained on the ImageNet.
|
| 57 |
+
|
| 58 |
+
The most related work with us are [30, 29], where W. Tan et al. proposes a feature super-resolution method to achieve the semantic-level alignment between high-resolution and
|
| 59 |
+
|
| 60 |
+
low-resolution images, and Z. Sun et al. proposes a feature quantization method to map the distorted features into new space with less divergence. Different from them, our method is more general since: 1) it can be trained on a dataset while testing on another, i.e., CUB-C $\rightarrow$ ImageNet-C; 2) it can achieve fairly good performance even if it is only trained on a small scale dataset, e.g., 10 images from CUB-C; 3) it does not require the semantic labels of target domain, reducing the effort for collecting and annotating degraded images.
|
| 61 |
+
|
| 62 |
+
# 3. Deep Degradation Prior
|
| 63 |
+
|
| 64 |
+
Prior work on sparse coding evidence that local patches in natural images can be reconstructed based on a learned over-complete visual dictionary, where the representation coefficient is sparse, called sparse representation [35, 19, 24, 32]. The visual dictionary is learned from many arbitrary local patches sampled from natural images as long as they contain diverse local structures, e.g., smooth areas, edges, textures, etc. In other words, the visual dictionary learned from a dataset (e.g., CUB) can be used to represent
|
| 65 |
+
|
| 66 |
+
images from another dataset (e.g., ImageNet). This property comes from the following fact that the local patches are statistically irrelevant to specific image content (e.g., semantics) and can be embedded into a low-dimensional manifold [35]. Besides, recent progress in deep convolutional neural network also witnesses a similar phenomenon that features learned in shallow layers are mainly low-level ones, such as edges, colors, textures, etc [9, 38]. Accordingly, the learned convolutional weights can be regarded as visual dictionaries to extract (represent) these low-level features (local patches).
|
| 67 |
+
|
| 68 |
+
Motivated by the above work, we propose a novel deep degradation prior which is simple and effective for downstream high-level vision tasks, such as classification on degraded images. Specifically, we argue that: 1) the clear image patches from different dataset share a similar distribution in the feature embedding space, resulting in an indistinguishable cluster; 2) the degraded image patches have the similar property while they are separated from the clear ones due to their distinct local statistics; 3) if we can learn a mapping between the clear features and degraded features, it could be used for arbitrary natural images.
|
| 69 |
+
|
| 70 |
+
To illustrate the above claims, we conducted a statistical experiment on the clear and foggy images, synthesized according to the hazy model [13] on the ImageNet [8] dataset and CUB [33] dataset. Some exemplar hazy images are shown in the right corners of Figure 2. First, for the ImageNet dataset, we sampled hundreds of clear patches and the corresponding foggy patches from the same positions, denoted $S_{I}$ and $S_{IF}$ , respectively. The same procedure was carried out on the CUB dataset, and the sampled patches are denoted $S_{C}$ and $S_{CF}$ , respectively. Referring to [35], the patch size was set $10*10$ in the experiment. To better visualize their distributions and avoid messy clusters, we filtered the patches to enable that they share the similar local structures. Mathematically, they were subjected to the following constraint:
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
S S I M \left(p _ {i}, p _ {j}\right) > T, \forall p _ {i}, p _ {j} \in S _ {I} o r S _ {C}, \tag {1}
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
where SSIM denotes the structural similarity measurement [4]. $T$ is a threshold and was set to 0.7. We kept 500 patches for both clear and foggy cases on each dataset, as shown in the up/bottom middle part of Figure 2.
|
| 77 |
+
|
| 78 |
+
Then, to obtain their feature representations in the embedding space [40], we used the VGG16 network pretrained on the ImageNet dataset as the feature extractor. Specifically, the features of each patch were extracted from the "conv2_2" layer, since it's respective field is $9^{*}9$ , almost the same with the patch size. These features are shown in the red, blue, green, and yellow cubes in Figure 2. Finally, we leveraged t-SNE [20] to visualize them, as shown in the central part of Figure 2.
|
| 79 |
+
|
| 80 |
+
It is clear that: 1) features from clear images are clus-
|
| 81 |
+
|
| 82 |
+
tered together regardless which dataset they come from. It is the same for the foggy case; 2) there is a large gap between the clear features and foggy ones. Therefore, if we find a mapping between them, we can bridge them together. In this sense, restoring the degraded image patch to a clear one in the feature embedding space will certainly benefit the down-stream classification and detection tasks. In this paper, we call such a mapping as the deep degradation prior (DDP). In the next part, we will present an efficient solution to show how to learn an effective DDP.
|
| 83 |
+
|
| 84 |
+
# 4. Learning DDP by Deep Neural Network
|
| 85 |
+
|
| 86 |
+
# 4.1. Overview of the Network
|
| 87 |
+
|
| 88 |
+
Given a clear dataset and its paired degraded dataset without semantic labels, our goal is to learn an effective DDP, which can be plugged in existing convolutional neural networks seamlessly to enhance their generalizability on degraded images. To this end, we propose an effective learning method by reconstructing the clear features from the degraded ones under the supervision of a simple Mean Square Error (MSE) loss. As shown in Figure 3 (a), during the training phase, we first use a pre-trained model to extract the low-level features of both degraded and clear images, for example, "conv2_2" in VGG16 [28], and the first layer in AlexNet [15], respectively. This part of network is fixed during the training phase and is called Shallow Pretrained Layers (SPL) in this paper. The degraded and clear features are denoted "DF" and "CF" in Figure 3 (a).
|
| 89 |
+
|
| 90 |
+
Then, we propose a novel feature de-drifting module (FDM) to accomplish the feature reconstruction. Taking the hazy image as an example, it is concatenated with the DF from SPL together and fed into FDM. Leveraging the residual learning idea, the output feature from FDM is fused with the original DF by an element-wise sum. The resulting enhanced feature (EF) is compared with its paired CF to calculate the MSE loss and the error is back-propagated to FDM to update its parameters.
|
| 91 |
+
|
| 92 |
+
During the testing phase, we insert the trained FDM into an existing classification network, i.e., between its SPL and subsequent deep pre-trained layers (DPL), as shown in Figure 3 (b). It is noteworthy that the learned weights in FDM serve as the learned DDP to map the degraded features to the clear ones (see Figure 2).
|
| 93 |
+
|
| 94 |
+
# 4.2. Feature De-drifting Module
|
| 95 |
+
|
| 96 |
+
The degradation changes the statistics of a local patch, which results in a biased feature response by SPL compared with the original clear one. In order to correct the drifted feature response, we propose a novel feature de-drifting module. It is inspired by the non-classical receptive field of human vision [6] as shown in Figure 3 (c). Non-classical receptive field is very useful to enhance the high frequencies
|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
(a)
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
(b)
|
| 103 |
+
|
| 104 |
+

|
| 105 |
+
(c)
|
| 106 |
+
|
| 107 |
+

|
| 108 |
+
(d)
|
| 109 |
+
Figure 3. (a)-(b) Diagram of the training/testing phase of the proposed method. (c) Illustration of the non-classical receptive field [6] for enhancing the high frequencies while maintaining the low frequencies. (d) The network structure of our feature de-drifting module (FDM).
|
| 110 |
+
|
| 111 |
+
while maintaining low frequencies. Mathematically, given an input $I$ , a filter with a non-classical receptive field generates an output $f$ as follows:
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
f = A _ {1} \left(I * G _ {1} \left(\sigma_ {1}\right)\right) + A _ {2} \left(I * G _ {2} \left(\sigma_ {2}\right)\right) + A _ {3} \left(I * G _ {3} \left(\sigma_ {3}\right)\right), \tag {2}
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
where $G_{1} \sim G_{3}$ denote three Gaussian filters with different filter bandwidths, i.e.,
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
G (\sigma) = \frac {1}{\sqrt {2 \pi \sigma^ {2}}} \exp \left(- \frac {x ^ {2} + y ^ {2}}{2 \sigma}\right) \tag {3}
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
$A_{1} \sim A_{3}$ represent the coefficient in the central, surrounded, and marginal frequency areas, respectively. * denotes the convolution operation. $\sigma_{1} \sim \sigma_{3}$ are the scale parameters determining the filter bandwidths accordingly. Eq. (2) can be reformulated as:
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
\begin{array}{l} f = A _ {1} \left(I * G _ {1}\right) + A _ {2} \left(\left(I * G _ {1}\right) * G _ {2} ^ {\prime}\right) (4) \\ + A _ {3} \left(\left(I * G _ {1}\right) * G _ {2} ^ {\prime}\right) * G _ {3} ^ {\prime}, (4) \\ \end{array}
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
where, $G_{2}^{\prime}$ and $G_{3}^{\prime}$ are also Gaussian filters with scale parameters $\sqrt{\sigma_2^2 - \sigma_1^2}$ and $\sqrt{\sigma_3^2 - \sigma_2^2}$ . In this way, the convolutional result in the first (second) term can be used as the input of the second (third) Gaussian filter $G_{2}^{\prime}(G_{3}^{\prime})$ .
|
| 130 |
+
|
| 131 |
+
Inspired by the non-classical receptive field and Eq. (4), we design our FDM as shown in Figure 3 (d). The first three blocks filled in orange, yellow and blue, represent the convolution process in the central, surrounded, and marginal frequency areas, respectively. Each block consists of two convolutional layers. The output features from the three blocks are then concatenated together and fed into a final $1^{*}1$ convolutional layer simulate the linear weighting between the central, surrounded and marginal frequency parts, as shown in Eq. (2). Details of FDM are summarized in Table 1 and Table 2 for VGG16 and AlexNet, respectively.
|
| 132 |
+
|
| 133 |
+
Table 1. The details of FDM with VGG16.
|
| 134 |
+
|
| 135 |
+
<table><tr><td></td><td>InputSize</td><td>Num</td><td>Filter</td><td>Stride</td><td>Pad</td></tr><tr><td>G1_1</td><td>131*112*112</td><td>128</td><td>3</td><td>1</td><td>1</td></tr><tr><td>G1_2</td><td>128*112*112</td><td>128</td><td>3</td><td>1</td><td>1</td></tr><tr><td>G2_1</td><td>128*112*112</td><td>64</td><td>3</td><td>1</td><td>1</td></tr><tr><td>G2_2</td><td>64*112*112</td><td>64</td><td>3</td><td>1</td><td>1</td></tr><tr><td>G3_1</td><td>64*112*112</td><td>32</td><td>3</td><td>1</td><td>1</td></tr><tr><td>G3_2</td><td>32*112*112</td><td>32</td><td>3</td><td>1</td><td>1</td></tr><tr><td>W</td><td>224*112*112</td><td>128</td><td>1</td><td>1</td><td>0</td></tr></table>
|
| 136 |
+
|
| 137 |
+
Table 2. The details of FDM with AlexNet.
|
| 138 |
+
|
| 139 |
+
<table><tr><td></td><td>InputSize</td><td>Num</td><td>Filter</td><td>Stride</td><td>Pad</td></tr><tr><td>G1_1</td><td>67*27*27</td><td>128</td><td>3</td><td>1</td><td>1</td></tr><tr><td>G1_2</td><td>128*27*27</td><td>128</td><td>3</td><td>1</td><td>1</td></tr><tr><td>G2_1</td><td>128*27*27</td><td>64</td><td>3</td><td>1</td><td>1</td></tr><tr><td>G2_2</td><td>64*27*27</td><td>64</td><td>3</td><td>1</td><td>1</td></tr><tr><td>G3_1</td><td>64*27*27</td><td>32</td><td>3</td><td>1</td><td>1</td></tr><tr><td>G3_2</td><td>32*27*27</td><td>32</td><td>3</td><td>1</td><td>1</td></tr><tr><td>W</td><td>224*27*27</td><td>64</td><td>1</td><td>1</td><td>0</td></tr></table>
|
| 140 |
+
|
| 141 |
+
# 5. Experiments
|
| 142 |
+
|
| 143 |
+
We evaluate the performance of our proposed deep degradation prior on ImageNet-C dataset [13], which is a rigorous benchmark with 50000 images in 1000 categories and widely used for robustness evaluation of image classifier. In this paper, we mainly focus on three kinds of degradation conditions, including fog, low contrast, and brightness. For each of the mentioned degradation conditions, we perform experiments on five levels of degradation. The examples of degraded images are shown in Figure 4. Besides, under each degradation condition, we test the influence of data size on deep degradation prior modeling.
|
| 144 |
+
|
| 145 |
+
Following the degraded image generation methods in [13], we use the clean images of CUB (total 11788 images)
|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
Figure 4. Some examples of degraded images from ImageNet-C.
|
| 149 |
+
|
| 150 |
+
dataset to synthesize the degraded images, named CUB-C, for the training of FD-Module. We employ AlexNet [15] and VGG16 [28] pre-trained on clean images as base models. The FD-Module is trained for 5000 iterations using SGD with batch size of 32. The initial learning rate is 0.001. The learning rate decreases to 0.0001 after 2500 iterations. In FD-Module, the filter weights of each layer are initialized using the MSRA initialization method.
|
| 151 |
+
|
| 152 |
+
# 5.1. Fog
|
| 153 |
+
|
| 154 |
+
Fog is very common for the images captured in outdoor and will cause image degradation due to atmospheric absorption and scattering. The high-frequency components and color fidelity are degraded in fog images. Since the degradation is spatial-variant, it will change the structure of local regions inconsistently and significantly increase the difficulty of feature extraction. The goal of image dehazing methods is to enhance the contrast and restore the structure details, which make the images more visual pleasing, but cannot eliminate the structure inconsistency. In this paper, we select five state-of-the-art image dehazing methods as baseline: DehazeNet [4], AoD-Net [17], FPCNet [42], FAMED-Net [43], and GFN-Net [25]. All of the test foggy images are dehazed by the baseline methods and then send to pre-trained image classifiers (VGG16 and AlexNet). Our proposed FDM is firstly trained on foggy images and then plugged into the same pre-trained image classifiers (VGG16 and AlexNet). The evaluations are performed on five degradation levels respectively.
|
| 155 |
+
|
| 156 |
+
As can be seen from Figure 5 (a), our proposed method significantly surpasses the two-stage methods in terms of classification accuracy, especially when the fog concentration is large. Moreover, with the increase of fog concentration, the performance of two-stage methods drops notably, while our method can also improve the accuracy of the pretrained network by more than $30\%$ . It demonstrates that FDM effectively boosts the fog-degraded features.
|
| 157 |
+
|
| 158 |
+
# 5.2. Low Contrast
|
| 159 |
+
|
| 160 |
+
The images captured under weak and colored illumination conditions often appear low contrast and color cast, which will degrade the recognition accuracy. The goal of contrast enhancement methods is to improve the dynamic range of images and remove color cast. In this paper, we select five contrast enhancement methods as baseline: HE [11], CVC [5], WAHE [1], LDR [16], OpenCE [36]. All of the low-contrast images are enhanced by the baseline methods and then send to pre-trained image classifiers (VGG16 and AlexNet). Our proposed FDM is firstly trained on low-contrast images and then plugged into the same pre-trained image classifiers (VGG16 and AlexNet). The evaluations are performed at five degradation levels.
|
| 161 |
+
|
| 162 |
+
As shown in Figure 5 (b), the two-stage method cannot consistently improve the classification accuracy. When the degradation is small (e.g., Contrast-1 and Contrast-2), the performance is even worse than directly using the origin images. As a contrast, our proposed method can consistently improve the classification accuracy of all five degradation conditions, which demonstrates the robustness of our DDP.
|
| 163 |
+
|
| 164 |
+
# 5.3. Brightness
|
| 165 |
+
|
| 166 |
+
Low lighting condition and limited dynamic range of digital imaging devices in image capturing can significantly degrade the image quality from many aspects, such as low contrast and amplified noise, which results in a biased feature distribution compared with the clear one and downgrades the classification accuracy. One common solution is to use HDR algorithm to balance the dynamic range and suppress noises. In this experiment, we compared our method with four HDR methods: LIME [12], HQEC [44], SRIE [10], MRINP [34]. The results are shown in Figure 5 (c). It is clear that the accuracy of classifying HDR enhanced images is even slightly lower than classifying the degraded images. Although the HDR methods could improve the visibility of degraded images, it also produced some artifacts, which consequently results in extra feature drifting as well. By contrast, our method improves the accuracy by correcting the feature drifting and aligning them with the clear ones in the embedding space. It demonstrates the effectiveness of the learned DDP by the FDM.
|
| 167 |
+
|
| 168 |
+
# 5.4. Performance Analysis
|
| 169 |
+
|
| 170 |
+
We first explore the effect of training set volume on deep degradation prior modeling. We use different proportions of degraded images from CUB-C to train the FDM, e.g., Fog-3, Contrast-3, and Brightness-3. The results are plotted in Figure 6 (a)-(c), respectively. As can be seen, the performance of FDM is not sensitive to the training dataset volume. The classification accuracy only drops by $5\%$ when using only $1\%$ training data compared with using all the training data (total 11788 images). Besides, in the extreme
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
|
| 176 |
+

|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
(a)
|
| 180 |
+
|
| 181 |
+

|
| 182 |
+
(b)
|
| 183 |
+
|
| 184 |
+

|
| 185 |
+
(c)
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
Figure 5. Comparison of DDP against the two-stage methods under different degradation conditions, (a) fog, (b) contrast and (c) brightness.
|
| 189 |
+
|
| 190 |
+

|
| 191 |
+
Figure 6. The influence of training dataset volume on DDP. The x-axis represents the proportion of images in CUB dataset used for training.
|
| 192 |
+
|
| 193 |
+

|
| 194 |
+
|
| 195 |
+
condition that only 10 foggy images from CUB-C dataset are used for training, our method still boosts the accuracy of VGG16 on ImageNet-C from $37\%$ to $55\%$ . It is very useful when large scale degraded images are difficult to collect.
|
| 196 |
+
|
| 197 |
+
Then, we present the feature visualization results to demonstrate the performance of feature de-drifting. Here we take the fog degradation as example. We visualize the feature maps of synthesized foggy images, clear images, dehazed images and the ones generated by our method in Figure 8. As can be seen, due to the influence of fog, the amplitude of feature response of object is attenuated inconsistently. The dehazing methods can recover some structural information of the image, but cannot consistently enhance the discriminative features for object. As a contrast, our method significantly boosts the feature responses on discriminative region while suppressing the interference. Furthermore, we also evaluate the performance of our method and two-stage method on real foggy images. The visualized feature maps are shown in Figure 7. We can see that,
|
| 198 |
+
|
| 199 |
+
when the fog concentration is small, the two-stage method can also recover the structural features. However, with the increase of fog concentration, the discrimination of the features captured from the dehazed images drop significantly. As a contrast, the features extracted by our method can always reveal the structure of objects, even in the heavies fog condition. It demonstrates that our proposed method is robust and applicable to real foggy scenes.
|
| 200 |
+
|
| 201 |
+
Apart from above three kinds of degradation, we also evaluate the performance of DDP on the degraded images with motion blur. DPP can improve the accuracy of the VGG16 from $24\%$ to $38\%$ by using only 10 images for training. In addition, we conduct experiments on real-world images with two types of degradations (under-exposure and noise) from UG2 [37]. We train two DDP modules (e.g., $\mathrm{DDP}_c$ for contrast enhancement and $\mathrm{DDP}_d$ for denoising), and incorporate them into the pre-trained networks (e.g., VGG16) to boost the degraded features as shown in Figure 9. We can see that the results are also positive.
|
| 202 |
+
|
| 203 |
+

|
| 204 |
+
Input
|
| 205 |
+
|
| 206 |
+

|
| 207 |
+
Ours
|
| 208 |
+
|
| 209 |
+

|
| 210 |
+
|
| 211 |
+

|
| 212 |
+
|
| 213 |
+

|
| 214 |
+
Degraded Feature
|
| 215 |
+
|
| 216 |
+

|
| 217 |
+
FPC-Net
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
FAMED-Net
|
| 221 |
+
|
| 222 |
+

|
| 223 |
+
Dehaze-Net
|
| 224 |
+
GFN-Net
|
| 225 |
+
|
| 226 |
+

|
| 227 |
+
AoD-Net
|
| 228 |
+
Input
|
| 229 |
+
Degraded Feature
|
| 230 |
+
|
| 231 |
+

|
| 232 |
+
|
| 233 |
+

|
| 234 |
+
Ours
|
| 235 |
+
|
| 236 |
+

|
| 237 |
+
Dehaze-Net
|
| 238 |
+
|
| 239 |
+

|
| 240 |
+
AoD-Net
|
| 241 |
+
|
| 242 |
+

|
| 243 |
+
FPC-Net
|
| 244 |
+
|
| 245 |
+

|
| 246 |
+
FAMED-Net
|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
GFN-Net
|
| 250 |
+
|
| 251 |
+

|
| 252 |
+
|
| 253 |
+

|
| 254 |
+
|
| 255 |
+

|
| 256 |
+
|
| 257 |
+

|
| 258 |
+
|
| 259 |
+

|
| 260 |
+
Input
|
| 261 |
+
Degraded Feature
|
| 262 |
+
AoD-Net
|
| 263 |
+
|
| 264 |
+

|
| 265 |
+
FPC-Net
|
| 266 |
+
|
| 267 |
+

|
| 268 |
+
Ours
|
| 269 |
+
FAMED-Net
|
| 270 |
+
|
| 271 |
+

|
| 272 |
+
Dehaze-Net
|
| 273 |
+
GFN-Net
|
| 274 |
+
|
| 275 |
+

|
| 276 |
+
Input
|
| 277 |
+
Degraded Feature
|
| 278 |
+
|
| 279 |
+

|
| 280 |
+
|
| 281 |
+

|
| 282 |
+
Ours
|
| 283 |
+
|
| 284 |
+

|
| 285 |
+
Dehaze-Net
|
| 286 |
+
|
| 287 |
+

|
| 288 |
+
AoD-Net
|
| 289 |
+
|
| 290 |
+

|
| 291 |
+
FPC-Net
|
| 292 |
+
|
| 293 |
+

|
| 294 |
+
FAMED-Net
|
| 295 |
+
|
| 296 |
+

|
| 297 |
+
GFN-Net
|
| 298 |
+
|
| 299 |
+

|
| 300 |
+
Figure 7. Visualization of the feature maps of real foggy images and de-foggy results. The foggy images are from Haze20 dataset [23]. The feature maps are extracted from the Conv2_2 layer of VGG16 pre-trained on ImageNet. With the increase of fog density, the discrimination of the features of dehazed images drop significantly, while the features extracted by our method can always reveal the structure of objects.
|
| 301 |
+
Input
|
| 302 |
+
Degraded Feature
|
| 303 |
+
Clear Feature
|
| 304 |
+
Ours
|
| 305 |
+
Dehaze-Net
|
| 306 |
+
|
| 307 |
+

|
| 308 |
+
|
| 309 |
+

|
| 310 |
+
|
| 311 |
+

|
| 312 |
+
|
| 313 |
+

|
| 314 |
+
|
| 315 |
+

|
| 316 |
+
Input
|
| 317 |
+
|
| 318 |
+

|
| 319 |
+
AoD-Net
|
| 320 |
+
Degraded Feature
|
| 321 |
+
|
| 322 |
+

|
| 323 |
+
FPC-Net
|
| 324 |
+
Clear Feature
|
| 325 |
+
|
| 326 |
+

|
| 327 |
+
FAMED-Net
|
| 328 |
+
Ours
|
| 329 |
+
|
| 330 |
+

|
| 331 |
+
GFN-Net
|
| 332 |
+
Dehaze-Net
|
| 333 |
+
|
| 334 |
+

|
| 335 |
+
AoD-Net
|
| 336 |
+
|
| 337 |
+

|
| 338 |
+
FPC-Net
|
| 339 |
+
|
| 340 |
+

|
| 341 |
+
FAMED-Net
|
| 342 |
+
|
| 343 |
+

|
| 344 |
+
GFN-Net
|
| 345 |
+
|
| 346 |
+

|
| 347 |
+
Figure 8. The feature maps of synthesized foggy images, clear images, dehazed images and the ones generated by our method. All the features are output from the same Conv2_2 layer of VGG16 trained on ImageNet.
|
| 348 |
+
Input
|
| 349 |
+
Figure 9. The feature maps of real low-light image with two kinds of degradations (e.g., low-contrast and noise).
|
| 350 |
+
|
| 351 |
+

|
| 352 |
+
VGG16
|
| 353 |
+
|
| 354 |
+

|
| 355 |
+
VGG16+DDPc
|
| 356 |
+
VGG16+DDPc+DDPd
|
| 357 |
+
|
| 358 |
+

|
| 359 |
+
|
| 360 |
+
# 6. Conclusion
|
| 361 |
+
|
| 362 |
+
In this paper, we introduce a novel deep degradation prior (DDP) for low-quality image classification, which can be used to reduce the feature mismatch between clear images and various degraded ones. We devise a simple and effective module named feature de-drifting module (FDM) to learn the DDP by adaptively enhancing features at different frequencies. FDM can be trained on a small scale dataset, e.g., only 10 images from CUB-C, but still remains robust and effective. Further, the learned DDP by FDM on a dataset can be generalized to another dataset with the same degradation, regardless the diverse image contents. Moreover, it is very easy to deploy FDM into existing classification networks as a "plugging-in" module. Extensive experiments on different types of degradation and two popular benchmark datasets, i.e., ImageNet-C and CUB-C, validate the effectiveness of the learned DDP by FDM in degraded image classification tasks. It boosts the classification accuracy by large margins under various degradation conditions.
|
| 363 |
+
|
| 364 |
+
Acknowledgments: This work was supported by the National Key RD Program of China under Grant 2017YFB1300201, the National Natural Science Foundation of China (NSFC) under Grants 61872327, 61622211, 61806062, U19B2038 and 61620106009 as well as the Fundamental Research Funds for the Central Universities under Grant WK2380000001 and WK2100100030.
|
| 365 |
+
|
| 366 |
+
# References
|
| 367 |
+
|
| 368 |
+
[1] T Arici, S Dikbas, and Y Altunbasak. A histogram modification framework and its application for image contrast enhancement. IEEE transactions on image processing: a publication of the IEEE Signal Processing Society, 18(9):1921-1935, 2009. 6
|
| 369 |
+
[2] Jonathan T Barron and Yun-Ta Tsai. Fast fourier color constancy. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 886-894, 2017. 1
|
| 370 |
+
[3] Konstantinos Bousmalis, Nathan Silberman, David Dohan, Dumitru Erhan, and Dilip Krishnan. Unsupervised pixel-level domain adaptation with generative adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3722-3731, 2017. 1, 3
|
| 371 |
+
[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. 4, 6
|
| 372 |
+
[5] Turgay Celik and Tardi Tjahjadi. Contextual and variational contrast enhancement. IEEE Transactions on Image Processing, 20(12):3431-3441, 2011. 6
|
| 373 |
+
[6] Li Chao-Yi, Pei Xing, Zhou Yi-Xiong, et al. Role of the extensive area outside the x-cell receptive field in brightness information transmission. Vision Research, 31(9):1529-1540, 1991. 4, 5
|
| 374 |
+
[7] Dengxin Dai, Yujian Wang, Yuhua Chen, and Luc Van Gool. Is image super-resolution helpful for other vision tasks? In 2016 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 1-9. IEEE, 2016. 1, 2
|
| 375 |
+
[8] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248-255. IEEE, 2009. 1, 3, 4
|
| 376 |
+
[9] Samuel Dodge and Lina Karam. Understanding how image quality affects deep neural networks. In 2016 eighth international conference on quality of multimedia experience (QoMEX), pages 1-6. IEEE, 2016. 4
|
| 377 |
+
[10] Xueyang Fu, Delu Zeng, Yue Huang, Xiao-Ping Zhang, and Xinghao Ding. A weighted variational model for simultaneous reflectance and illumination estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2782-2790, 2016. 6
|
| 378 |
+
[11] Rafael C Gonzales and Richard E Woods. Digital image processing, 2002. 6
|
| 379 |
+
[12] Xiaojie Guo, Yu Li, and Haibin Ling. Lime: Low-light image enhancement via illumination map estimation. IEEE Transactions on image processing, 26(2):982-993, 2016. 1, 6
|
| 380 |
+
[13] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019. 1, 2, 3, 4, 5
|
| 381 |
+
[14] 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. arXiv preprint arXiv:1711.03213, 2017. 1, 3
|
| 382 |
+
|
| 383 |
+
[15] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097-1105, 2012. 4, 6
|
| 384 |
+
[16] Chulwoo Lee, Chul Lee, and Chang-Su Kim. Contrast enhancement based on layered difference representation of 2d histograms. IEEE transactions on image processing, 22(12):5372-5384, 2013. 6
|
| 385 |
+
[17] 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. 1, 2, 6
|
| 386 |
+
[18] Ding Liu, Bihan Wen, Xianming Liu, Zhangyang Wang, and Thomas S Huang. When image denoising meets high-level vision tasks: A deep learning approach. arXiv preprint arXiv:1706.04284, 2017. 1, 3
|
| 387 |
+
[19] Guangcan Liu, Zhouchen Lin, Shuicheng Yan, Ju Sun, Yong Yu, and Yi Ma. Robust recovery of subspace structures by low-rank representation. IEEE transactions on pattern analysis and machine intelligence, 35(1):171-184, 2012. 3
|
| 388 |
+
[20] Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(Nov):2579-2605, 2008. 2, 4
|
| 389 |
+
[21] Saeid Motiian, Marco Piccirilli, Donald A Adjeroh, and Gianfranco Doretto. Unified deep supervised domain adaptation and generalization. In Proceedings of the IEEE International Conference on Computer Vision, pages 5715-5725, 2017. 1, 3
|
| 390 |
+
[22] Sinno Jialin Pan and Qiang Yang. A survey on transfer learning. IEEE Transactions on knowledge and data engineering, 22(10):1345-1359, 2009. 3
|
| 391 |
+
[23] Yanting Pei, Yaping Huang, Qi Zou, Yuhang Lu, and Song Wang. Does haze removal help cnn-based image classification? In Proceedings of the European Conference on Computer Vision (ECCV), pages 682-697, 2018. 8
|
| 392 |
+
[24] Yigang Peng, Arvind Ganesh, John Wright, Wenli Xu, and Yi Ma. Rasl: Robust alignment by sparse and low-rank decomposition for linearly correlated images. IEEE transactions on pattern analysis and machine intelligence, 34(11):2233-2246, 2012. 3
|
| 393 |
+
[25] Wenqi Ren, Lin Ma, Jiawei Zhang, Jinshan Pan, Xiaochun Cao, Wei Liu, and Ming-Hsuan Yang. Gated fusion network for single image dehazing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3253-3261, 2018. 2, 6
|
| 394 |
+
[26] Paolo Russo, Fabio M Carlucci, Tatiana Tommasi, and Barbara Caputo. From source to target and back: symmetric bi-directional adaptive gan. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8099-8108, 2018. 1, 3
|
| 395 |
+
[27] Swami Sankaranarayanan, Yogesh Balaji, Carlos D Castillo, and Rama Chellappa. Generate to adapt: Aligning domains using generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8503-8512, 2018. 1, 3
|
| 396 |
+
[28] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 4, 6
|
| 397 |
+
|
| 398 |
+
[29] Zhun Sun, Mete Ozay, Yan Zhang, Xing Liu, and Takayuki Okatani. Feature quantization for defending against distortion of images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7957-7966, 2018. 2, 3
|
| 399 |
+
[30] Weimin Tan, Bo Yan, and Bahetiyaer Bare. Feature superresolution: Make machine see more clearly. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3994-4002, 2018. 3
|
| 400 |
+
[31] Eric Tzeng, Judy Hoffman, Trevor Darrell, and Kate Saenko. Simultaneous deep transfer across domains and tasks. In Proceedings of the IEEE International Conference on Computer Vision, pages 4068-4076, 2015. 1, 3
|
| 401 |
+
[32] Andrew Wagner, John Wright, Arvind Ganesh, Zihan Zhou, Hossein Mobahi, and Yi Ma. Toward a practical face recognition system: Robust alignment and illumination by sparse representation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 34(2):372-386, 2011. 3
|
| 402 |
+
[33] Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The caltech-ucsd birds-200-2011 dataset. 2011. 3, 4
|
| 403 |
+
[34] Yang Wang, Yang Cao, Zheng-Jun Zha, Jing Zhang, Zhiwei Xiong, Wei Zhang, and Feng Wu. Progressive retina: Mutually reinforced illumination-noise perception network for low-light image enhancement. In Proceedings of the 27th ACM International Conference on Multimedia, pages 2015-2023. ACM, 2019. 1, 6
|
| 404 |
+
[35] Jianchao Yang, John Wright, Thomas S Huang, and Yi Ma. Image super-resolution via sparse representation. IEEE transactions on image processing, 19(11):2861-2873, 2010. 3, 4
|
| 405 |
+
[36] Zhenqiang Ying, Ge Li, Yurui Ren, Ronggang Wang, and Wenmin Wang. A new image contrast enhancement algorithm using exposure fusion framework. In International Conference on Computer Analysis of Images and Patterns, pages 36-46. Springer, 2017. 6
|
| 406 |
+
[37] Ye Yuan, Wenhan Yang, Wenqi Ren, Jiaying Liu, Walter J. Scheirer, and Zhangyang Wang. 7
|
| 407 |
+
[38] Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In European conference on computer vision, pages 818-833. Springer, 2014. 4
|
| 408 |
+
[39] Zheng-Jun Zha, Xian-Sheng Hua, Tao Mei, Jingdong Wang, Guo-Jun Qi, and Zengfu Wang. Joint multi-label multi-instance learning for image classification. In 2008 IEEE conference on computer vision and pattern recognition, pages 1-8. IEEE, 2008. 1
|
| 409 |
+
[40] Hanwang Zhang, Zheng-Jun Zha, Yang Yang, Shuicheng Yan, and Tat-Seng Chua. Robust (semi) nonnegative graph embedding. IEEE transactions on image processing, 23(7):2996-3012, 2014. 4
|
| 410 |
+
[41] Jing Zhang, Yang Cao, Shuai Fang, Yu Kang, and Chang Wen Chen. Fast haze removal for nighttime image using maximum reflectance prior. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7418-7426, 2017. 1
|
| 411 |
+
[42] Jing Zhang, Yang Cao, Yang Wang, Chenglin Wen, and Chang Wen Chen. Fully point-wise convolutional neural net
|
| 412 |
+
|
| 413 |
+
work for modeling statistical regularities in natural images. arXiv preprint arXiv:1801.06302, 2018. 1, 6
|
| 414 |
+
[43] Jing Zhang and Dacheng Tao. Famed-net: A fast and accurate multi-scale end-to-end dehazing network. arXiv preprint arXiv:1906.04334, 2019. 6
|
| 415 |
+
[44] Qing Zhang, Ganzhao Yuan, Chunxia Xiao, Lei Zhu, and Wei-Shi Zheng. High-quality exposure correction of underexposed photos. In 2018 ACM Multimedia Conference on Multimedia Conference, pages 582-590. ACM, 2018. 6
|
| 416 |
+
[45] Qiming Zhang, Jing Zhang, Wei Liu, and Dacheng Tao. Category anchor-guided unsupervised domain adaptation for semantic segmentation. In Advances in Neural Information Processing Systems, pages 433-443, 2019. 3
|
| 417 |
+
[46] Wei Zhang, Shengnan Hu, Kan Liu, and Zhengjun Zha. Learning compact appearance representation for video-based person re-identification. IEEE Transactions on Circuits and Systems for Video Technology, 29(8):2442–2452, 2018. 1
|
deepdegradationpriorforlowqualityimageclassification/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e395262872d4b7cf20b89ae864c0e4dbe4cdcde30114dfb3135fc91f4bfd541f
|
| 3 |
+
size 828556
|
deepdegradationpriorforlowqualityimageclassification/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f109ac4a24e529cf282c8bf528df988e7049b3727b8a02f67ea145358526d0a
|
| 3 |
+
size 475044
|
deepdistancetransformfortubularstructuresegmentationinctscans/f744bb37-5d0b-4865-b13d-d038df3c002a_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b77303980026b0c2476a8dec5d23082b1e056c9c1866b54873f653cc4c5aabf8
|
| 3 |
+
size 77830
|
deepdistancetransformfortubularstructuresegmentationinctscans/f744bb37-5d0b-4865-b13d-d038df3c002a_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61de4a7c743a198cbbd55f8074c4ed88fb2a48ef885d5ae03dedd7ae277fe79b
|
| 3 |
+
size 97593
|
deepdistancetransformfortubularstructuresegmentationinctscans/f744bb37-5d0b-4865-b13d-d038df3c002a_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d821094ac4499af9216422f09cb594cac7a7440147ebd216105f83fb9ad8fdb8
|
| 3 |
+
size 1763488
|
deepdistancetransformfortubularstructuresegmentationinctscans/full.md
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Deep Distance Transform for Tubular Structure Segmentation in CT Scans
|
| 2 |
+
|
| 3 |
+
Yan Wang $^{1\dagger}$ Xu Wei $^{2*}$ Fengze Liu $^{1}$ Jieneng Chen $^{3*}$ Yuyin Zhou $^{1}$ Wei Shen $^{1‡}$ Elliot K. Fishman $^{4}$ Alan L. Yuille $^{1}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ Johns Hopkins University $^{2}$ University of California San Diego $^{3}$ Tongji University $^{4}$ The Johns Hopkins University School of Medicine
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Tubular structure segmentation in medical images, e.g., segmenting vessels in CT scans, serves as a vital step in the use of computers to aid in screening early stages of related diseases. But automatic tubular structure segmentation in CT scans is a challenging problem, due to issues such as poor contrast, noise and complicated background. A tubular structure usually has a cylinder-like shape which can be well represented by its skeleton and cross-sectional radii (scales). Inspired by this, we propose a geometry-aware tubular structure segmentation method, Deep Distance Transform (DDT), which combines intuitions from the classical distance transform for skeletonization and modern deep segmentation networks. DDT first learns a multitask network to predict a segmentation mask for a tubular structure and a distance map. Each value in the map represents the distance from each tubular structure voxel to the tubular structure surface. Then the segmentation mask is refined by leveraging the shape prior reconstructed from the distance map. We apply our DDT on six medical image datasets. Results show that (1) DDT can boost tubular structure segmentation performance significantly (e.g., over $13\%$ DSC improvement for pancreatic duct segmentation), and (2) DDT additionally provides a geometrical measurement for a tubular structure, which is important for clinical diagnosis (e.g., the cross-sectional scale of a pancreatic duct can be an indicator for pancreatic cancer).
|
| 10 |
+
|
| 11 |
+
# 1. Introduction
|
| 12 |
+
|
| 13 |
+
Tubular structures are ubiquitous throughout the human body, with notable examples including blood vessels, pancreatic duct and urinary tract. They occur in specific environments at the boundary of liquids, solids or air and surrounding tissues, and play a prominent role in sustaining physiological functions of the human body.
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1. A tubular shape is presented as the envelope of a family of spheres with continuously changing center points and radii [9].
|
| 17 |
+
|
| 18 |
+
In this paper, we investigate automatic tubular organ/tissue segmentation from CT scans, which is important for the characterization of various diseases [18]. For example, pancreatic duct dilatation or abrupt pancreatic duct caliber change signifies high risk for pancreatic ductal adenocarcinoma (PDAC), which is the third most common cause of cancer death in the US [11]. Another example is that obstructed vessels lead to coronary heart disease, which is the leading cause of death in the US [27].
|
| 19 |
+
|
| 20 |
+
Segmenting tubular organs/tissues from CT scans is a popular but challenging problem. Existing methods addressing this problem can be roughly categorized into two groups: (1) Geometry-based methods, which build deformable shape models to fit tubular structures by exploiting their geometrical properties [43, 45, 3, 25], e.g., a tubular structure can be well represented by its skeleton, aka symmetry axis or medial axis, and it has a cylindrical surface. But, due to the lack of powerful learning models, these methods cannot deal with poor contrast, noise and complicated background. (2) Learning-based methods, which learn a per-pixel classification model to detect tubular structures. The performance of this type of methods is largely boosted by deep learning, especially fully convolutional networks (FCN) [23, 49, 48]. FCN and its variants have become out-of-the-box models for tubular organ/tissue segmentation and achieve state-of-the-art results [24, 47]. But, these networks simply try to learn a class label per voxel, which inevitably ignores the geometric arrangement of the voxels in a tubular structure, and consequently can not guarantee that the obtained segmentation has the right shape.
|
| 21 |
+
|
| 22 |
+
Since a tubular structure can be well represented by its skeleton and the cross-sectional radius of each skeleton
|
| 23 |
+
|
| 24 |
+
point, as shown in Fig. 1, these intrinsic geometric characteristics should be taken into account to serve as a valuable prior. To this end, a straightforward strategy is to first train a model, e.g., a deep network, to directly predict whether each voxel is on the skeleton of the tubular structure or not as well as the cross-sectional radius of each skeleton point, and then reconstruct the segmentation of the tubular structure from its skeleton and radii [34]. However, such a strategy has severe limitations: (1) The ground-truth skeletons used for training are not easily obtained. Although they can be approximately computed from the ground-truth segmentation mask by 3D skeletonization methods, skeleton extraction from 3D mesh representation itself is a hard and unsolved problem [5]. Without reliable skeleton ground-truths, the performance of tubular structure segmentation cannot be guaranteed. (2) It is hard for the classifier to distinguish voxels on the skeleton itself from those immediately next to it, as they have similar features but different labels.
|
| 25 |
+
|
| 26 |
+
To tackle the obstacles mentioned above, we propose to perform tubular structure segmentation by training a multitask deep network to predict not only a segmentation mask, but also a distance map, consisting of the distance transform value from each tubular structure voxel to the tubular structure surface, rather than a single skeleton/non-skeleton label. Distance transform [28] is a classical image processing operator to produce a distance map with the same size of the input image, each value in which is the distance from each foreground pixel/voxel to the foreground boundary. Distance transform is also known as the basis of one type of skeletonization algorithms [17], i.e., the ridge of the distance map is the skeleton. Thus, the predicted distance map encodes the geometric characteristics of the tubular structure. This motivated us to design a geometry-aware approach to refine the output segmentation mask by leveraging the shape prior reconstructed from the distance map. Essentially, our approach performs tubular structure segmentation by an implicit skeletonization-reconstruction procedure with no requirements for skeleton ground-truths. We stress that the distance transform brings two benefits for our approach: (1) Distance transform values are defined on each voxel inside a tubular structure, which eliminates the problem of the discontinuity between the skeleton and its surrounding voxels; (2) distance transform values on the skeleton (the ridge of the distance map) are exactly the cross-sectional radii (scales) of the tubular structure, which is an important geometrical measurement. To make the distance transform value prediction more precise, we additionally propose a distance loss term used for network training, which indicates a penalty when predicted distance transform value is far away from its ground-truth.
|
| 27 |
+
|
| 28 |
+
We term our method Deep Distance Transform (DDT), as it naturally combines intuitions from the classical distance transform for skeletonization and modern deep seg-
|
| 29 |
+
|
| 30 |
+
mentation networks. We emphasize that DDT has two advantages over vanilla segmentation networks: (1) It guides tubular structure segmentation by taking the geometric property of tubular structures into account. This reduces the difficulty to segment tubular structures from complex surrounding structures and ensures that the segmentation results have a proper shape prototype; (2) It predicts the cross-sectional scales of a tubular structure as by-products, which are important for the further study of the tubular structure, such as clinical diagnosis and virtual endoscopy [7].
|
| 31 |
+
|
| 32 |
+
We verify DDT on six datasets, including five datasets for segmentation task, and one dataset for clinical diagnosis. For segmentation task, the performance of our DDT exceeds all backbone networks by a large margin, with even over $13\%$ improvement in terms of Dice-Sørensen coefficient for pancreatic duct segmentation on the famous 3D-Unet [12]. The ablation study further shows the effectiveness of each proposed module in DDT. The experiment for clinical diagnosis leverages dilated pancreatic duct as cue for finding missing PDAC tumors by original deep networks, which verifies the potential of our DDT for early diagnosis of pancreatic cancer.
|
| 33 |
+
|
| 34 |
+
# 2. Related Work
|
| 35 |
+
|
| 36 |
+
# 2.1. Tubular Structure Segmentation
|
| 37 |
+
|
| 38 |
+
# 2.1.1 Geometry-based Methods
|
| 39 |
+
|
| 40 |
+
Various methods have been proposed to improve the performance of tubular structure segmentation by considering the geometric characteristics, and a non-exhaustive overview is given here. (1) Contour-based methods extracted the segmentation mask of a tubular structure by means of approximating its shape in the cross-sectional domain [1, 10]. (2) Minimal path approaches conducted tubular structure tracking and were usually interactive. They captured the global minimum curve (energy weighted by the image potential) between two points given by the user [9]. (3) Model-based tracking methods required to refine a tubular structure model, which most of the time adopted a 3D cylinder with elliptical or circular section. At each tracking step, they calculated the new model position by seeking for the optimal model match among all possible new model positions [8]. (4) Centerline based methods found the centerline and estimated the radius of linear structures. For example, multiscale centerline detection method proposed in [34] adopted the idea of distance transform, and reformulated centerline detection and radius estimation in terms of a regression problem in 2D. Our work fully leverages the geometric information of a tubular structure, proposing a distance transform algorithm to implicitly learn the skeleton and cross-sectional radius, and the final segmentation mask is reconstructed by adopting the shape prior of the tubular structure.
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
Figure 2. The training and testing stage of DDT, illustrated on an example of veins segmentation. Our DDT has two head branches: the first one is targeting on the ground-truth label map, which performs per-voxel veins/non-veins classification, and the second head branch is targeting on the scale class map, which performs scale prediction for veins voxels. Then a geometry-aware refinement approach is proposed to leverage the shape prior obtained from the scale class map and the pseudo skeleton map to refine the segmentation mask.
|
| 44 |
+
|
| 45 |
+

|
| 46 |
+
|
| 47 |
+
# 2.1.2 Learning-based Method
|
| 48 |
+
|
| 49 |
+
Learning-based method for tubular structure segmentation infers a rule from labeled training pairs, one for each pixel. Traditional methods such as 2-D Gabor wavelet and classifier combination [35], ridge-based segmentation [36], and random decision forest based method [2] achieved considerable progress. In the past years, various 2D and 3D deep segmentation networks have become very popular. Some multi-organ segmentation methods [41, 29] were proposed to segment multiple organs simultaneously, including tubular organs. DeepVessel [16] put a four-stage HED-like CNN and conditional random field into an integrated deep network to segment retinal vessel. Kid-Net [37], inspired from 3D-Unet [12], was a two-phase 3D network for kidney vessels segmentation. ResDSN [50, 51] and 3D-Unet [12] were used in Hyper-pairing network [47] to segment tissues in pancreas including duct by combining information from dual-phase imaging. Besides, 3D-HED and its variant were applied for vascular boundary detection [24]. Other scenarios such as using synthetic data to improve endotracheal tube segmentation [15]. Cross-modality domain adaptation framework with adversarial learning which dealt with the domain shift in segmenting biomedical images including as
|
| 50 |
+
|
| 51 |
+
cending aorta was also proposed [13].
|
| 52 |
+
|
| 53 |
+
# 2.2. Learning-based Skeleton Extraction
|
| 54 |
+
|
| 55 |
+
Learning-based skeleton extraction from natural images has been widely studied in recent decades [38, 31, 34, 22, 21] and achieved promising progress with the help of deep learning [32, 20, 46, 40]. Shen et al. [32] showed that multitask learning, i.e., jointly learning skeleton pixel classification and skeleton scale regression, was important to obtain accurate predicted scales, and it was useful for skeleton-based object segmentation. One recent work for bronchus segmentation calculated the distance from each voxel to its nearest skeleton point [39].
|
| 56 |
+
|
| 57 |
+
However, these methods cannot be directly applied to our tasks, since they require the skeleton ground-truth, which is not easy to obtain from a tiny and highly distorted 3D mask due to the commonly existed annotation errors for medical images [42].
|
| 58 |
+
|
| 59 |
+
# 3. Methodology
|
| 60 |
+
|
| 61 |
+
We first define a 3D volume $X$ of size $L \times W \times H$ as a function on the coordinate set $V = \{\mathbf{v} | \mathbf{v} \in N_L \times N_W \times N_H\}$ , i.e., $X: V \to R \subset \mathbb{R}$ where the value on position
|
| 62 |
+
|
| 63 |
+
$\mathbf{v}$ is defined as $x_{\mathbf{v}} = X(\mathbf{v})$ . $N_L$ , $N_W$ , $N_H$ represent for the integer set ranging from 1 to $L$ , $W$ , $H$ respectively, so that the Cartesian product of them can form the coordinate set. Given a 3D CT scan $X$ , the goal of tubular structure segmentation is to predict the label $\hat{Y}$ of all voxels in the CT scan, where $\hat{y}_{\mathbf{v}} \in \{0,1\}$ denotes the predicted label for each voxel at position $\mathbf{v}$ , i.e., if the voxel at $\mathbf{v}$ is predicted as a tubular structure voxel, then $\hat{y}_{\mathbf{v}} = 1$ , otherwise $\hat{y}_{\mathbf{v}} = 0$ . We also use $\mathbf{v}$ to denote the voxel at position $\mathbf{v}$ in the remaining of the paper for convenience sake. Fig. 2 illustrates our tubular structure segmentation network, i.e., DDT.
|
| 64 |
+
|
| 65 |
+
# 3.1. Distance Transform for Tubular Structure
|
| 66 |
+
|
| 67 |
+
In this section, we discuss how to perform distance transform for tubular structure voxels. Given the ground-truth label map $Y$ of the CT scan $X$ in the training phase, let $C_V$ be the set of voxels on the tubular structure surface, which can be defined by
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
C _ {V} = \left\{\mathbf {v} \mid y _ {\mathbf {v}} = 1, \exists \mathbf {u} \in \mathcal {N} (\mathbf {v}), y _ {\mathbf {u}} = 0 \right\}, \tag {1}
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
where $\mathcal{N}(\mathbf{v})$ denotes the 6-neighbour voxels of $\mathbf{v}$ . Then, by performing distance transform on the CT scan $X$ , the distance map $D$ is computed by
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
d _ {\mathbf {v}} = \left\{ \begin{array}{l l} \min _ {\mathbf {u} \in C _ {V}} \| \mathbf {v} - \mathbf {u} \| _ {2}, & \text {i f} y _ {\mathbf {v}} = 1 \\ 0, & \text {i f} y _ {\mathbf {v}} = 0 \end{array} . \right. \tag {2}
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
Note that, for each tubular structure voxel $\mathbf{v}$ , the distance transform assigns it a distance transform value which is the nearest distance from $\mathbf{v}$ to the tubular structure surface $C_V$ . Here we use Euclidean distance, as skeletons from Euclidean distance maps are robust to rotations [4].
|
| 80 |
+
|
| 81 |
+
We further quantize each $d_{\mathbf{v}}$ into one of $K$ bins by rounding $d_{\mathbf{v}}$ to the nearest integer, which converts the continuous distance map $D$ to a discrete quantized distance map $Z$ , where $z_{\mathbf{v}} \in \{0, \dots, K\}$ . We do this quantization, because training a deep network directly for regression is relatively unstable, since outliers, i.e., the commonly existed annotation errors for medical images [42], cause a large error term, which makes it difficult for the network to converge and leads to unstable predictions [30]. Based on quantization, we rephrase the distance prediction problem as a classification problem, i.e., to determine the corresponding bin for each quantized distance. We term the $K$ bins of the quantized distances as $K$ scale classes. We use the term scale since the distance transform values at the skeleton voxels of a tubular structure are its cross-sectional scales.
|
| 82 |
+
|
| 83 |
+
# 3.2. Network Training for Deep Distance Transform
|
| 84 |
+
|
| 85 |
+
Given a 3D CT scan $X$ and its ground-truth label map $Y$ , we can compute its scale class map (quantized distance map) $Z$ according to the method given in Sec. 3.1. In this
|
| 86 |
+
|
| 87 |
+
section, we describe how to train a deep network for tubular structure segmentation by targeting on both $Y$ and $Z$ .
|
| 88 |
+
|
| 89 |
+
As shown in Fig. 2, our DDT model has two head branches. The first one is targeting on the ground-truth label map $Y$ , which performs per-voxel classification for semantic segmentation with a weighted cross-entropy loss function $\mathcal{L}_{\mathrm{cls}}$ :
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
\begin{array}{l} \mathcal {L} _ {\mathrm {c l s}} = - \sum_ {\mathbf {v} \in V} \left(\beta_ {p} y _ {\mathbf {v}} \log p _ {\mathbf {v}} (\mathbf {W}, \mathbf {w} _ {\mathrm {c l s}}) \right. \\ \left. + \beta_ {n} \left(1 - y _ {\mathbf {v}}\right) \log \left(1 - p _ {\mathbf {v}} \left(\mathbf {W}, \mathbf {w} _ {\mathrm {c l s}}\right)\right)\right), \tag {3} \\ \end{array}
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
where $\mathbf{W}$ is the parameters of the network backbone, $\mathbf{w}_{\mathrm{cls}}$ is the parameters of this head branch and $p_{\mathbf{v}}(\mathbf{W},\mathbf{w}_{\mathrm{cls}})$ is the probability that $\mathbf{v}$ is a tubular structure voxel as predicted by this head branch. $\beta_{p} = \frac{0.5}{\sum_{\mathbf{v}}y_{\mathbf{v}}}$ and $\beta_{n} = \frac{0.5}{\sum_{\mathbf{v}}(1 - y_{\mathbf{v}})}$ are loss weights for tubular structure and background classes respectively.
|
| 96 |
+
|
| 97 |
+
The second head branch is predicting on the scale class map $Z$ , which performs scale prediction for tubular structure voxels (i.e., $z_{\mathbf{v}} > 0$ ). We introduce a new distance loss function $\mathcal{L}_{\mathrm{dis}}$ to learn this head branch:
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\begin{array}{l} \mathcal {L} _ {\mathrm {d i s}} = - \beta_ {p} \sum_ {\mathbf {v} \in V} \sum_ {k = 1} ^ {K} \left(\mathbf {1} \left(z _ {\mathbf {v}} = k\right) \left(\log g _ {\mathbf {v}} ^ {k} (\mathbf {W}, \mathbf {w} _ {\mathrm {d i s}}) \right. \right. \\ \left. \left. + \lambda \omega_ {\mathbf {v}} \log \left(1 - \max _ {l} g _ {\mathbf {v}} ^ {l} \left(\mathbf {W}, \mathbf {w} _ {\mathrm {d i s}}\right)\right)\right)\right), \tag {4} \\ \end{array}
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
where $\mathbf{W}$ is the parameters of the network backbone, $\mathbf{w}_{\mathrm{dis}}$ is the parameters of the second head branch, $\mathbf{1}(\cdot)$ is an indication function, $\lambda$ is a trade-off parameter which balances the two loss terms (we simply set $\lambda = 1$ in our implementation), $g_{\mathbf{v}}^{k}(\mathbf{W},\mathbf{w}_{\mathrm{dis}})$ is the probability that the scale of $\mathbf{v}$ belongs to $k$ -th scale class and $\omega_{\mathbf{v}}$ is a normalized weight defined by $\omega_{\mathbf{v}} = \frac{\left|\arg\max_{l}g_{\mathbf{v}}^{l}(\mathbf{W},\mathbf{w}_{\mathrm{dis}}) - z_{\mathbf{v}}\right|}{K}$ . Note that, the first term of Eq. 4 is the standard softmax loss which penalizes the classification error for each scale class equally. The second term of Eq. 4 is termed as distance loss term, which penalizes the difference between each predicted scale class (i.e., $\max_{l}g_{\mathbf{v}}^{l}(\mathbf{W},\mathbf{w}_{\mathrm{dis}})$ ) and its ground-truth scale class $z_{\mathbf{v}}$ , where the penalty is controlled by $\omega_{\mathbf{v}}$ . Finally, the loss function for our segmentation network is $\mathcal{L} = \mathcal{L}_{\mathrm{cls}} + \mathcal{L}_{\mathrm{dis}}$ and the optimal network parameters are obtained by $(\mathbf{W}^{*},\mathbf{w}_{\mathrm{cls}}^{*},\mathbf{w}_{\mathrm{dis}}^{*}) = \arg \min_{\mathbf{W},\mathbf{w}_{\mathrm{cls}},\mathbf{w}_{\mathrm{dis}}} \mathcal{L}$ .
|
| 104 |
+
|
| 105 |
+
# 3.3. Geometry-aware Refinement
|
| 106 |
+
|
| 107 |
+
Shape reconstruction from skeletons is a simple and well-known operation, which often achieves better segmentation performance than pure segmentation methods [32]. Inspired by this, we propose a soft version of such reconstruction, termed as geometry-aware refinement (GAR), where skeletons are obtained by thinning probability maps
|
| 108 |
+
|
| 109 |
+
and maximal balls centered at skeleton points are softened to Gaussian kernels. GAR ensures smoothness between similar voxels, and spatial and appearance consistency of the segmentation output, especially from clutter background.
|
| 110 |
+
|
| 111 |
+
Given a 3D CT scan $X$ in the testing phase, for each voxel $\mathbf{v}$ , our tubular structure segmentation network, DDT, outputs two probabilities, $p_{\mathbf{v}}(\mathbf{W}^{*},\mathbf{w}_{\mathrm{cls}}^{*})$ , which is the probability that $\mathbf{v}$ is a tubular structure voxel and $g_{\mathbf{v}}^{k}(\mathbf{W}^{*},\mathbf{w}_{\mathrm{dis}}^{*})$ , which is the probability that the scale of $\mathbf{v}$ belongs to $k$ -th scale class. For notational simplicity, we use $p_{\mathbf{v}}$ and $g_{\mathbf{v}}^{k}$ to denote $p_{\mathbf{v}}(\mathbf{W}^{*},\mathbf{w}_{\mathrm{cls}}^{*})$ and $g_{\mathbf{v}}^{k}(\mathbf{W}^{*},\mathbf{w}_{\mathrm{dis}}^{*})$ , respectively, in the rest of the paper. $p_{\mathbf{v}}$ provides per-voxel tubular structure segmentation, and $g_{\mathbf{v}}^{k}$ encodes the geometric characteristics of the tubular structure. Our GAR obtains the final segmentation result by refining $p_{\mathbf{v}}$ according to $g_{\mathbf{v}}^{k}$ . This approach is shown in Fig. 2 and is processed as follows:
|
| 112 |
+
|
| 113 |
+
a. Pseudo skeleton generation. The probability map $P$ is thinned by thresholding it to generate a binary pseudo skeleton map $S$ for the tubular structure. If $p_{\mathbf{v}} > T^{p}$ , $s_{\mathbf{v}} = 1$ ; otherwise, $s_{\mathbf{v}} = 0$ , and $T^{p}$ is the threshold.
|
| 114 |
+
b. Shape reconstruction. For each voxel $\mathbf{v}$ , its predicted scale $\hat{z}_{\mathbf{v}}$ is given by $\hat{z}_{\mathbf{v}} = \arg \max_{k} g_{\mathbf{v}}^{k}$ . We fit a Gaussian kernel to soften each ball and obtain a soft reconstructed shape $\tilde{Y}^{s}$ :
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
\tilde {y} _ {\mathbf {v}} ^ {s} = \sum_ {\mathbf {u} \in \left\{\mathbf {u} ^ {\prime} \mid s _ {\mathbf {u} ^ {\prime}} > 0 \right\}} c _ {\mathbf {u}} \Phi (\mathbf {v}; \mathbf {u}, \boldsymbol {\Sigma} _ {\mathbf {u}}), \tag {5}
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
where $\Phi (\cdot)$ denotes the density function of a multivariate normal distribution, $\mathbf{u}$ is the mean and $\Sigma_{\mathbf{u}}$ is the co-variance matrix. According to the 3-sigma rule, we set $\boldsymbol {\Sigma}_{\mathbf{u}} = (\frac{\hat{z}_{\mathbf{u}}}{3})^{2}\boldsymbol{I}$ , where $\pmb{I}$ is an identity matrix. We notice that the peak of $\Phi (\cdot ;\mathbf{u},\Sigma_{\mathbf{u}})$ becomes smaller if $\hat{z}_{\mathbf{u}}$ is larger. To normalize the peak of each normal distribution, we introduce a normalization factor $c_{\mathbf{u}} = \sqrt{(2\pi)^{3}\mathrm{det}(\Sigma_{\mathbf{u}})}$
|
| 121 |
+
|
| 122 |
+
c. Segmentation refinement. We use the soft reconstructed shape $\tilde{Y}^s$ to refine the segmentation probability $p_{\mathbf{u}}$ , which results in a refined segmentation map $\tilde{Y}^r$ :
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
\tilde {y} _ {\mathbf {v}} ^ {r} = \sum_ {\mathbf {u} \in \left\{\mathbf {u} ^ {\prime} \mid s _ {\mathbf {u} ^ {\prime}} > 0 \right\}} p _ {\mathbf {u}} c _ {\mathbf {u}} \Phi (\mathbf {v}; \mathbf {u}, \boldsymbol {\Sigma} _ {\mathbf {u}}). \tag {6}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
The final segmentation mask $\hat{Y}$ is obtained by thresholding $\tilde{Y}^r$ , i.e., if $\tilde{y}_{\mathbf{v}}^r > T^r$ , $\hat{y}_{\mathbf{v}} = 1$ , otherwise, $\hat{y}_{\mathbf{v}} = 0$ where $\tilde{y}_{\mathbf{v}}^r$ and $\hat{y}_{\mathbf{v}}$ are the value of voxel at position $\mathbf{v}$ of $\tilde{Y}^r$ and $\hat{Y}$ , respectively.
|
| 129 |
+
|
| 130 |
+
As mentioned in Sec. 1, the predicted scale $\hat{z}_{\mathbf{v}}$ is a geometrical measurement for a tubular structure, which is essential for clinical diagnosis. We will show one clinical application in Sec. 4.2.
|
| 131 |
+
|
| 132 |
+
# 4. Experiments
|
| 133 |
+
|
| 134 |
+
In this section, we conduct the following experiments: we first evaluate our approach on five segmentation datasets, including (1) the dataset used in [47], (2) three tubular structure datasets created by radiologists in our team, and (3) hepatic vessels dataset in Medical Segmentation Decathlon (MSD) challenge [33]. Then, as we mentioned in Sec. 1, our DDT predicts cross-sectional scales as by-products, which are important for applications such as clinical diagnosis. We show that the cross-sectional scale is an important measurement for predicting the dilation degree of a pancreatic duct, which can help find the PDAC tumors missed in [51], without increasing the false positives.
|
| 135 |
+
|
| 136 |
+
# 4.1. Tubular Structure Segmentation
|
| 137 |
+
|
| 138 |
+
# 4.1.1 Implementation Details and Evaluation Metric
|
| 139 |
+
|
| 140 |
+
Our implementation is based on PyTorch. For data preprocessing, followed by [47], we truncate the raw intensity values within the range of $[-100, 240]$ HU and normalize each CT scan into zero mean and unit variance. Data augmentation (i.e., translation, rotation and flipping) is conducted in all the methods, leading to an augmentation factor of 24. During training, we randomly sample patches of a specified size (i.e., 64) due to memory issue. We use exponential learning rate decay with $\gamma = 0.99$ . During testing, we employ the sliding window strategy to obtain the final predictions. The groundtruth distance map for each tubular structure is computed by finding the euclidean distance of each foreground voxel to its nearest boundary voxels. The segmentation accuracy is measured by the well-known Dice-Sørensen coefficient (DSC) in the rest of the paper, unless otherwise specified.
|
| 141 |
+
|
| 142 |
+
# 4.1.2 The PDAC Segmentation Dataset [47]
|
| 143 |
+
|
| 144 |
+
We first study the PDAC segmentation dataset [47] which has 239 patients with pathologically proven PDAC. All CT scans are contrast enhanced images and our experiments are conducted on only portal venous phase. We follow the same setting and the same cross-validation as reported in [47]. DSCs for three structures were reported in [47]: abnormal pancreas, PDAC mass and pancreatic duct. We only show the average and standard deviation over all cases for pancreatic duct, which is a tubular structure.
|
| 145 |
+
|
| 146 |
+
Results and Discussions. To evaluate the performance of the proposed DDT framework, we compare it with a pervoxel classification method [47], termed as SegBaseline in Table 1. It can be seen that our approach outperforms the baseline reported in [47] by a large margin. It is also worth mentioning that although our DDT is only tested on venous phase, the performance is comparable with the hyper-
|
| 147 |
+
|
| 148 |
+
Table 1. Performance comparison (DSC, %) on pancreatic duct segmentation (mean ± standard deviation of all cases). SegBaseline stands for per-voxel classification. Multi-phase HPN is a hyper-paring network combining CT scans from both venous (V) and arterial (A) phases. Noted that only CT scans in venous phase are used for SegBaseline and DDT. Bold denotes the best results.
|
| 149 |
+
|
| 150 |
+
<table><tr><td rowspan="2">Methods</td><td rowspan="2">Phase</td><td colspan="2">Backbone Networks</td></tr><tr><td>3D-UNet</td><td>ResDSN</td></tr><tr><td>SegBaseline [47]</td><td>V</td><td>40.25 ± 27.89</td><td>49.81 ± 26.23</td></tr><tr><td>Multi-phase HPN [47]</td><td>A+V</td><td>44.93 ± 24.88</td><td>56.77 ± 23.33</td></tr><tr><td>DDT (Ours)</td><td>V</td><td>58.20 ± 23.39</td><td>55.97 ± 24.76</td></tr></table>
|
| 151 |
+
|
| 152 |
+
paring network [47] (i.e., Multi-phase HPN), which integrates multi-phase information (i.e., arterial phase and venous phase). For 3D-UNet, our DDT even outperforms the multi-phase method by more than $13\%$ in terms of DSC.
|
| 153 |
+
|
| 154 |
+
Ablation Study. We conduct ablation experiments on the PDAC segmentation dataset, using ResDSN as the backbone. These variants of our methods are considered:
|
| 155 |
+
|
| 156 |
+
- SegfromSkel: This is the straightforward strategy mentioned in Sec. 1 for skeleton-based tubular structure segmentation, i.e., segmenting by reconstructing from the predicted skeleton. The ground-truth skeleton is obtained by the mesh contraction algorithm [5], and the scale of each skeleton point is defined as its shortest distance to the duct surface. We use the same method in Sec. 3 to instantiate this strategy, but the learning target is the skeleton instead of the duct mask.
|
| 157 |
+
- DDT $\lambda = 0$ , w/o GAR: DDT without distance loss term ( $\lambda = 0$ in Eq. 4), and without geometry-aware refinement.
|
| 158 |
+
- DDT $\lambda = 0$ , w/ GAR: DDT without distance loss term, and with geometry-aware refinement.
|
| 159 |
+
- DDT $\lambda = 1$ , w/o GAR: DDT with distance loss term, and without geometry-aware refinement.
|
| 160 |
+
- DDT $\lambda = 1$ , w/ GAR: DDT with distance loss term, and with geometry-aware refinement.
|
| 161 |
+
|
| 162 |
+
The results of the ablation experiments are summarized in Table 2. We also show examples of the predicted duct for better understanding how each component (i.e., distance loss term and geometry-aware refinement) learns the geometry information in the supplementary material. Then, we aim at discussing parameters in the geometry-aware refinement component. In our implementation, we set $T^p = 0.98$ and $T^r = 0.5$ in Sec. 3.3. Now we vary each of them and fix the other one to the default value to see how the performance changes. As shown in Fig. 3(a), setting a larger $T^p$ leads to better performance. This phenomenon further verifies the advantage of leveraging scale class map to refine the per-voxel segmentation results, i.e., a thinner pseudo skeleton combined with a scale class map can better represent a
|
| 163 |
+
|
| 164 |
+
Table 2. Ablation study of pancreatic duct segmentation using ResDSN as backbone network. GAR indicates the proposed geometry-aware refinement.
|
| 165 |
+
|
| 166 |
+
<table><tr><td>Method</td><td>Average DSC (%)</td></tr><tr><td>SegBaseline [47]</td><td>49.81</td></tr><tr><td>SegfromSkel</td><td>51.88</td></tr><tr><td>DDT λ = 0, w/o GAR</td><td>52.73</td></tr><tr><td>DDT λ = 0, w/ GAR</td><td>54.70</td></tr><tr><td>DDT λ = 1, w/o GAR</td><td>53.69</td></tr><tr><td>DDT λ = 1, w/ GAR</td><td>55.97</td></tr></table>
|
| 167 |
+
|
| 168 |
+

|
| 169 |
+
(a)
|
| 170 |
+
|
| 171 |
+

|
| 172 |
+
(b)
|
| 173 |
+
Figure 3. Performance changes by varying (a) pseudo skeleton generation parameter $T^p$ and (b) segmentation refinement parameter $T^r$ .
|
| 174 |
+
|
| 175 |
+
tubular structure. Fig. 3(b) shows that the performance is not sensitive within the range of $T^r \in [0.1, 1]$ .
|
| 176 |
+
|
| 177 |
+
# 4.1.3 Tubular Structure Datasets
|
| 178 |
+
|
| 179 |
+
We then evaluate our algorithm on multiple tubular structures datasets. Radiologists in our team collected 229 abdominal CT scans of normal cases with aorta annotation, 204 normal cases with veins annotation, and 494 abdominal CT scans of biopsy-proven PDAC cases with pancreatic duct annotation. All these three datasets are under IRB approved protocol.
|
| 180 |
+
|
| 181 |
+
We conduct experiments by comparing our DDT with SegBaseline on three backbone networks: 3D-HED [24], 3D-UNet [12] and ResDSN [50, 51]. The results in terms of DSC and mean surface distance (in mm) are reported in Table 3. SegBaseline methods on all backbone networks are significantly lower than our approach. In particular, for 3D-HED, DDT outperforms SegBaseline by $8\%$ , making its strong ability in segmenting small tubular structures like pancreatic duct in medical images. The results are obtained by cross-validation. We also illustrate segmentation results of aorta and veins in Fig. 4 for qualitative comparison. We can see that compared with SegBaseline, DDT captures geometry information, which is more robust to the noise and complicated background.
|
| 182 |
+
|
| 183 |
+
# 4.1.4 Hepatic Vessels Dataset in MSD Challenge
|
| 184 |
+
|
| 185 |
+
We also test our DDT on a public hepatic vessels dataset in MSD challenge [33]. There are two targets in hepatic vessels dataset: vessels and tumor. As our goal is to segment
|
| 186 |
+
|
| 187 |
+
Table 3. Performance comparison (in average DSC, % and mean surface distance in mm) on three tubular structure datasets by using different backbones. “↑” and “↓” indicate the larger and the smaller the better, respectively. Bold denotes the best results for each tubular structure per measurement.
|
| 188 |
+
|
| 189 |
+
<table><tr><td rowspan="2">Backbone</td><td rowspan="2">Methods</td><td colspan="2">Aorta</td><td colspan="2">Veins</td><td colspan="2">Pancreatic duct</td></tr><tr><td>Average DSC ↑</td><td>Mean Surface Distance ↓</td><td>Average DSC ↑</td><td>Mean Surface Distance ↓</td><td>Average DSC ↑</td><td>Mean surface Distance ↓</td></tr><tr><td rowspan="2">3D-HED [24]</td><td>SegBaseline</td><td>90.85</td><td>1.15</td><td>73.57</td><td>5.13</td><td>46.43</td><td>7.06</td></tr><tr><td>DDT</td><td>92.94</td><td>0.82</td><td>76.20</td><td>3.78</td><td>54.43</td><td>4.91</td></tr><tr><td rowspan="2">3D-UNet [12]</td><td>SegBaseline</td><td>92.01</td><td>0.94</td><td>71.57</td><td>4.46</td><td>56.63</td><td>3.64</td></tr><tr><td>DDT</td><td>93.30</td><td>0.61</td><td>75.59</td><td>4.07</td><td>62.31</td><td>3.56</td></tr><tr><td rowspan="2">ResDSN [50]</td><td>SegBaseline</td><td>89.89</td><td>1.12</td><td>71.10</td><td>6.25</td><td>55.91</td><td>4.24</td></tr><tr><td>DDT</td><td>92.57</td><td>1.10</td><td>76.60</td><td>5.03</td><td>59.29</td><td>4.19</td></tr></table>
|
| 190 |
+
|
| 191 |
+

|
| 192 |
+
Figure 4. Illustration of aorta (upper row) and veins (lower row) segmentation results for selected example images. Numbers on the bottom right show segmentation DSCs.
|
| 193 |
+
|
| 194 |
+

|
| 195 |
+
Figure 5. Examples of PDAC cases. In most PDAC cases, the tumor blocks the duct and causes it to dilate.
|
| 196 |
+
|
| 197 |
+

|
| 198 |
+
|
| 199 |
+
tubular structure, we aim at vessel segmentation. Although this challenge is over, it is still open for submissions. We train our DDT on 303 training cases, and submit vessel predictions of the testing cases to the challenge.
|
| 200 |
+
|
| 201 |
+
We simply use ResDSN [51] as our backbone network, and follow the same data augmentation as introduced in Sec. 4.1.1. We summarize some leading quantitative results reported in the leaderboard in Table 4. This comparison shows the effectiveness of our DDT.
|
| 202 |
+
|
| 203 |
+
# 4.2. Finding PDAC Tumor by Dilated Duct
|
| 204 |
+
|
| 205 |
+
Background. PDAC is one of the most deadly disease, whose survival is dismal as when it comes to the time of diagnosis, there are more than half of patients have evidence of metastatic disease. As mentioned in Sec. 1, dilated duct is a vital cue for the presence of a PDAC tumor. The rea
|
| 206 |
+
|
| 207 |
+
Table 4. Comparison to competing submissions of MSD challenge: http://medicaldecathlon.com
|
| 208 |
+
|
| 209 |
+
<table><tr><td>Methods</td><td>Average DSC (%)</td></tr><tr><td>DDT (Ours)</td><td>63.43</td></tr><tr><td>nnU-Net [19]</td><td>63.00</td></tr><tr><td>UMCT [44]</td><td>63.00</td></tr><tr><td>K.A.V.athlon</td><td>62.00</td></tr><tr><td>LS Wang's Group</td><td>55.00</td></tr><tr><td>MIMI</td><td>60.00</td></tr><tr><td>MPUnet [26]</td><td>59.00</td></tr></table>
|
| 210 |
+
|
| 211 |
+
son lies in that in most cases, the tumor blocks the duct and causes it to dilate, as shown in Fig. 5. Experienced radiologists usually trace the duct from the pancreas tail onward to see if there exists a truncated duct. If they see the predicted duct pattern as illustrated in Fig. 5, they will be alarmed and treat it as a suspicious PDAC case. For computer-aided diagnosis, given a mixture of normal and abnormal CT scans (PDAC cases), if some voxels are segmented as a tumor by a state-of-the-art deep network, we can provide radiologists with tumor locations [51]. But, as reported [51], even a state-of-the-art deep network failed to detect 8 PDACs out of 136 abnormal cases. As emphasized in [51], for clinical purposes, we shall guarantee a high sensitivity with a reasonable specificity. Then how can we use dilated duct as a cue to help find the PDAC tumor in an abnormal case even if it does NOT have any PDAC tumor prediction by directly applying deep networks?
|
| 212 |
+
|
| 213 |
+
Clinical Workflow. The flowchart of our strategy is illustrated in Fig. 6. We apply our DDT on the cases which do not have tumor prediction by [51]. Then the predictions of DDT are processed as follows:
|
| 214 |
+
|
| 215 |
+
1. Find cases with predicted dilated duct. Let's assume a case has $N$ predicted duct voxels. If $N = 0$ , then we regard this case as negative. If $N > 0$ , let's denote the predicted associated scales (radii) are $\{\hat{z}_{\mathbf{v}_i}\}_{i=1}^N$ . If $\arg \max_i \hat{z}_{\mathbf{v}_i} > T^s$ , i.e., the largest cross-sectional scale is larger than $T^s$ , we regard this as a dilated duct, and a tumor may present on its head location. Otherwise, we
|
| 216 |
+
|
| 217 |
+

|
| 218 |
+
Figure 6. Flowchart of finding missing PDAC tumor by dilated duct.
|
| 219 |
+
|
| 220 |
+
treat this case as negative. We set $T^s = 3$ , since the radius of a dilated duct should be larger than $1.5 \, \mathrm{mm}$ [14], and the voxel spatial resolution of the dataset [51] is around $0.5 \, \mathrm{mm}^3$ .
|
| 221 |
+
|
| 222 |
+
2. Extract candidate tumor regions by the location of dilated duct. We use geodesic distance to find the extreme points of the duct [6]. Then we crop a set of square regions of size $\Re^3$ centered on the extreme points not lying on the tail of the pancreas, since a tumor presenting on the tail of the pancreas will not block a duct. This set of square regions are candidate tumor regions.
|
| 223 |
+
3. Verify candidate tumor regions. As candidate tumor regions may come from both normal and abnormal cases. We should verify whether the candidate region is a real tumor region. From the training set, we randomly crop regions of size $\Re^3$ around PDAC tumor region as positive training data, and randomly crop regions of size $\Re^3$ from normal pancreas as negative training data. Then we train a ResDSN [51] to verify these candidate tumor regions. We follow the same criterion used in [51] to compute sensitivity and specificity.
|
| 224 |
+
|
| 225 |
+
Experiment Settings. We follow the same data split as used in [51]. We only test our algorithm on the 8 PDAC cases and 197 normal cases which do not have tumor prediction by [51], aiming at finding missing tumor by dilated duct, while not introducing more false positives. $\Re = 48$ .
|
| 226 |
+
|
| 227 |
+
Analysis. We compare our results with those of [51] in Table 5. In our experiment, 4 out of 8 abnormal cases and 3 out of 197 normal cases have predicted dilated duct by step 1. An example is shown in Fig. 7(a). The tubular structure residing inside the ground-truth pancreas, right behind the ground-truth tumor is our predicted dilated duct. This leads to overall 18 3D candidate tumor regions by step 2, shown as the yellow dashed box in Fig. 7(b) visualized in 2D. In step 3, we can successfully find all tumor regions in abnormal cases, and discard non-tumor regions in normal cases. As shown in Fig. 7(c), our algorithm can find the right tumor, which overlaps with the tumor annotation in Fig. 7(d).
|
| 228 |
+
|
| 229 |
+
It should be emphasized that dilated duct helps us to narrow the searching space of the tumor, so that we are able to focus on a finer region. Though we train a same network used in [51], half of the missing tumors in [51] can be found. In this way, we are imitating how radiologists detect
|
| 230 |
+
|
| 231 |
+

|
| 232 |
+
Figure 7. Examples of finding missed tumor of [51] by dilated duct. (a) The ground-truth tumor is right behind one end of the predicted dilated duct. The ground-truth pancreas is shown as a reference. (b) A cropped CT slice with predicted duct (we choose green for better visualization). The yellow dashed box is a candidate tumor region, shown in 2D. (c) and (d) are the same zoomed in image region with predicted and ground-truth tumor, respectively.
|
| 233 |
+
|
| 234 |
+
Table 5. Normal vs. abnormal classification results. Zhu et al. [51] + ours denotes applying our method to find the missing tumor of Zhu et al.. "↑" and "↓" indicate the larger and the smaller the better, respectively.
|
| 235 |
+
|
| 236 |
+
<table><tr><td>Methods</td><td>Misses ↓</td><td>Sensitivity ↑</td><td>Specificity ↑</td></tr><tr><td>Zhu et al. [51]</td><td>8/136</td><td>94.1%</td><td>98.5%</td></tr><tr><td>Zhu et al. [51] + Ours</td><td>4/136</td><td>97.1%</td><td>98.5%</td></tr></table>
|
| 237 |
+
|
| 238 |
+
PDAC, i.e., they can find visible PDAC tumors easily, but for difficult ones, they will seek help from dilated ducts.
|
| 239 |
+
|
| 240 |
+
# 5. Conclusions
|
| 241 |
+
|
| 242 |
+
In this paper, we present Deep Distance Transform (DDT) for accurate tubular structure segmentation, which combines intuitions from the classical distance transform for skeletonization and modern deep segmentation networks. DDT guides segmentation by taking the geometric property of the tubular structure into account, which not only leads to a better segmentation result, but also provides the cross-sectional scales, i.e., a geometric measure for the thickness of tubular structures. We evaluated our approach on six datasets including four tubular structures. Experiment shows the superiority of the proposed DDT for tubular structure segmentation and clinical application.
|
| 243 |
+
|
| 244 |
+
Acknowledgements. This work was supported by the Lustgarten Foundation for Pancreatic Cancer Research and also supported by NSFC No. 61672336.
|
| 245 |
+
|
| 246 |
+
# References
|
| 247 |
+
|
| 248 |
+
[1] Luis Álvarez, Agustín Trujillo-Pino, Carmelo Cuenca, Esther González, Julio Esclarín, Luis Gómez, Luis Mazorra, Miguel Aleman-Flores, Pablo G. Tahoces, and José M. Carreira-Villamor. Tracking the aortic lumen geometry by optimizing the 3d orientation of its cross-sections. In Proc. MICCAI, 2017.
|
| 249 |
+
[2] Roberto Annunziata, Ahmad Kheirkhah, Pedram Hamrah, and Emanuele Trucco. Scale and curvature invariant ridge detector for tortuous and fragmented structures. In Proc. MICCAI, pages 588-595, 2015.
|
| 250 |
+
[3] Luca Antiga, Bogdan Ene-Iordache, and Andrea Remuzzi. Computational geometry for patient-specific reconstruction and meshing of blood vessels from angiography. IEEE Trans. Med. Imaging, 22(5):674-684, 2003.
|
| 251 |
+
[4] Carlo Arcelli and Gabriella Sanniti di Baja. Ridge points in euclidean distance maps. Pattern Recognition Letters, 13(4):237-243, 1992.
|
| 252 |
+
[5] Oscar Kin-Chung Au, Chiew-Lan Tai, Hung-Kuo Chu, Daniel Cohen-Or, and Tong-Yee Lee. Skeleton extraction by mesh contraction. ACM Trans. Graph., 27(3):44:1-44:10, 2008.
|
| 253 |
+
[6] Andreas Baak, Meinard Müller, Gaurav Bharaj, Hans-Peter Seidel, and Christian Theobalt. A data-driven approach for real-time full body pose reconstruction from a depth camera. In Proc. ICCV, 2011.
|
| 254 |
+
[7] Christian Bauer and Horst Bischof. Extracting curve skeletons from gray value images for virtual endoscopy. In International Workshop on Medical Imaging and Virtual Reality, pages 393-402, 2008.
|
| 255 |
+
[8] Christian Bauer, Thomas Pock, Erich Sorantin, Horst Bischof, and Reinhard Beichel. Segmentation of interwoven 3d tubular tree structures utilizing shape priors and graph cuts. Medical Image Analysis, 14(2):172-184, 2010.
|
| 256 |
+
[9] Fethallah Benmansour and Laurent D. Cohen. Tubular structure segmentation based on minimal path method and anisotropic enhancement. International Journal of Computer Vision, 92(2):192-210, 2011.
|
| 257 |
+
[10] Vicent Caseles, Ron Kimmel, and Guillermo Sapiro. Geodesic active contours. International Journal of Computer Vision, 22(1):61-79, 1997.
|
| 258 |
+
[11] Linda C. Chu., Michael G. Goggins., and Elliot K. Fishman. Diagnosis and detection of pancreatic cancer. The Cancer Journal, 23(6):333-342, 2017.
|
| 259 |
+
[12] Özgün Çiçek, Ahmed Abdulkadir, Soeren S. Lienkamp, Thomas Brox, and Olaf Ronneberger. 3d u-net: Learning dense volumetric segmentation from sparse annotation. In Proc. MICCAI, 2016.
|
| 260 |
+
[13] Qi Dou, Cheng Ouyang, Cheng Chen, Hao Chen, and Pheng-Ann Heng. Unsupervised cross-modality domain adaptation of convnets for biomedical image segmentations with adversarial loss. In Proc. IJCAI, 2018.
|
| 261 |
+
[14] Mark D Edge, Maarouf Hoteit, Amir P Patel, Xiaoping Wang, Deborah A Baumgarten, and Qiang Cai. Clinical significance of main pancreatic duct dilation on computed tomography: Single and double duct dilation. World J Gastroenterol., 13(11):1701-1705, 2007.
|
| 262 |
+
|
| 263 |
+
[15] Maayan Frid-Adar, Rula Amer, and Hayit Greenspan. Endotracheal tube detection and segmentation in chest radiographs using synthetic data. In Proc. MICCAI, pages 784–792, 2019.
|
| 264 |
+
[16] Huazhu Fu, Yanwu Xu, Stephen Lin, Damon Wing Kee Wong, and Jiang Liu. Deepvessel: Retinal vessel segmentation via deep learning and conditional random field. In Proc. MICCAI, pages 132-139, 2016.
|
| 265 |
+
[17] Yaorong Ge and J. Michael Fitzpatrick. On the generation of skeletons from discrete euclidean distance maps. IEEE Trans. Pattern Anal. Mach. Intell., 18(11):1055-1066, 1996.
|
| 266 |
+
[18] Florent Gréland, Fabien Baldacci, Anne Vialard, and Jean-Philippe Domenger. New methods for the geometrical analysis of tubular organs. Medical Image Analysis, 42:89–101, 2017.
|
| 267 |
+
[19] Fabian Isensee, Jens Petersen, Simon A. A. Kohl, Paul F. Jäger, and Klaus H. Maier-Hein. nnu-net: Breaking the spell on successful medical image segmentation. CoRR, abs/1904.08128, 2019.
|
| 268 |
+
[20] Wei Ke, Jie Chen, Jianbin Jiao, Guoying Zhao, and Qixiang Ye. SRN: side-output residual network for object symmetry detection in the wild. In Proc. CVPR, 2017.
|
| 269 |
+
[21] Tom Sie Ho Lee, Sanja Fidler, and Sven J. Dickinson. Detecting curved symmetric parts using a deformable disc model. In Proc. ICCV, 2013.
|
| 270 |
+
[22] Alex Levinshtein, Cristian Sminchisescu, and Sven J. Dickinson. Multiscale symmetric part detection and grouping. International Journal of Computer Vision, 104(2):117-134, 2013.
|
| 271 |
+
[23] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully Convolutional Networks for Semantic Segmentation. Proc. CVPR, 2015.
|
| 272 |
+
[24] J. Merkow, D. Kriegman, A. Marsden, and Z Tu. Dense volume-to-volume vascular boundary detection. In MICCAI, 2016.
|
| 273 |
+
[25] Delphine Nain, Anthony J. Yezzi, and Greg Turk. Vessel segmentation using a shape driven flow. In Proc. MICCAI, 2004.
|
| 274 |
+
[26] Mathias Perslev, Erik Björnager Dam, Akshay Pai, and Christian Igel. One network to segment them all: A general, lightweight system for accurate 3d medical image segmentation. In MICCAI, 2019.
|
| 275 |
+
[27] Wayne Rosamond, Katherine Flegal, Karen Furie, Alan Go, Kurt Greenlund, Nancy Haase, Susan M. Hailpern, Michael Ho, Virginia Howard, Brett Kissela, Steven Kittner, Donald Lloyd-Jones, Mary McDermott, James Meigs, Claudia Moy, Graham Nichol, Christopher O'Donnell, Veronique Roger, Paul Sorlie, Julia Steinberger, Thomas Thom, Matt Wilson, and Yuling Hong. Heart disease and stroke statistics-2008 update. Circulation, 117(4), 2008.
|
| 276 |
+
[28] Azriel Rosenfeld and John L. Pfaltz. Distance functions on digital pictures. Pattern Recognition, 1:33-61, 1968.
|
| 277 |
+
[29] Holger R. Roth, Hirohisa Oda, Yuichiro Hayashi, Masahiro Oda, Natsuki Shimizu, Michitaka Fujiwara, Kazunari Misawa, and Kensaku Mori. Hierarchical 3d fully convolutional networks for multi-organ segmentation. CoRR, abs/1704.06382, 2017.
|
| 278 |
+
|
| 279 |
+
[30] Rasmus Rothe, Radu Timofte, and Luc Van Gool. Deep expectation of real and apparent age from a single image without facial landmarks. International Journal of Computer Vision, 126(2-4):144-157, 2018.
|
| 280 |
+
[31] Wei Shen, Xiang Bai, Zihao Hu, and Zhijiang Zhang. Multiple instance subspace learning via partial random projection tree for local reflection symmetry in natural images. Pattern Recognition, 52:306-316, 2016.
|
| 281 |
+
[32] Wei Shen, Kai Zhao, Yuan Jiang, Yan Wang, Xiang Bai, and Alan L. Yuille. Deepskeleton: Learning multi-task scale-associated deep side outputs for object skeleton extraction in natural images. IEEE Trans. Image Processing, 26(11):5298-5311, 2017.
|
| 282 |
+
[33] Amber L. Simpson, Michela Antonelli, Spyridon Bakas, Michel Bilello, Keyvan Farahani, Bram van Ginneken, Annette Kopp-Schneider, Bennett A. Landman, Geert J. S. Littjens, Bjoern H. Menze, Olaf Ronneberger, Ronald M. Summers, Patrick Bilic, Patrick Ferdinand Christ, Richard K. G. Do, Marc Gollub, Jennifer Golia-Pernicka, Stephan Heckers, William R. Jarnagin, Maureen McHugo, Sandy Napel, Eugene Vorontsov, Lena Maier-Hein, and M. Jorge Cardoso. A large annotated medical image dataset for the development and evaluation of segmentation algorithms. CoRR, abs/1902.09063, 2019.
|
| 283 |
+
[34] Amos Sironi, Vincent Lepetit, and Pascal Fua. Multiscale centerline detection by learning a scale-space distance transform. In CVPR, 2014.
|
| 284 |
+
[35] João V. B. Soares, Jorge J. G. Leandro, Roberto M. Cesar, Herbert F. Jelinek, and Michael J. Cree. Retinal vessel segmentation using the 2-d gabor wavelet and supervised classification. IEEE Trans. Med. Imaging, 25(9):1214-1222, 2006.
|
| 285 |
+
[36] Joes Staal, Michael D. Abramoff, Meindert Niemeijer, Max A. Viergever, and Bram van Ginneken. Ridge-based vessel segmentation in color images of the retina. IEEE Trans. Med. Imaging, 23(4):501-509, 2004.
|
| 286 |
+
[37] Ahmed Taha, Pechin Lo, Junning Li, and Tao Zhao. Kid-net: Convolution networks for kidney vessels segmentation from ct-volumes. In Proc. MICCAI, 2018.
|
| 287 |
+
[38] Stavros Tsogkas and Iasonas Kokkinos. Learning-based symmetry detection in natural images. In Proc. ECCV, pages 41-54, 2012.
|
| 288 |
+
[39] Chenglong Wang, Yuichiro Hayashi, Masahiro Oda, Hayato Itoh, Takayuki Kitasaka, Alejandro F. Frangi, and Kensaku Mori. Tubular structure segmentation using spatially connected network with radial distance loss for 3d medical images. In Proc. MICCAI, 2019.
|
| 289 |
+
[40] Yukang Wang, Yongchao Xu, Stavros Tsogkas, Xiang Bai, Sven J. Dickinson, and Kaleem Siddiqi. Deepflux for skeletons in the wild. In Proc. CVPR, 2019.
|
| 290 |
+
[41] Yan Wang, Yuyin Zhou, Wei Shen, Seyoun Park, Elliot K. Fishman, and Alan L. Yuille. Abdominal multi-organ segmentation with organ-attention networks and statistical fusion. Medical Image Analysis, 55:88–102, 2019.
|
| 291 |
+
[42] Yan Wang, Yuyin Zhou, Peng Tang, Wei Shen, Elliot K. Fishman, and Alan L. Yuille. Training multi-organ segmentation networks with sample selection by relaxed upper confident bound. In Proc. MICCAI, 2018.
|
| 292 |
+
|
| 293 |
+
[43] Onno Wink, Hiro J. Niessen, and Max A. Viergever. Fast delineation and visualization of vessels in 3d angiographic images. IEEE Trans. Med. Imaging, 19(4):337-346, 2000.
|
| 294 |
+
[44] Yingda Xia, Fengze Liu, Dong Yang, Jinzheng Cai, Lequan Yu, Zhuotun Zhu, Daguang Xu, Alan L. Yuille, and Holger Roth. 3d semi-supervised learning with uncertainty-aware multi-view co-training. In WACV, 2019.
|
| 295 |
+
[45] Peter J. Yim, Juan R. Cebral, Rakesh Mullick, and Peter L. Choyke. Vessel surface reconstruction with a tubular deformable model. IEEE Trans. Med. Imaging, 20(12):1411-1421, 2001.
|
| 296 |
+
[46] Kai Zhao, Wei Shen, Shanghua Gao, Dandan Li, and Ming-Ming Cheng. Hi-fi: Hierarchical feature integration for skeleton detection. In Proc. IJCAI, 2018.
|
| 297 |
+
[47] Yuyin Zhou, Yingwei Li, Zhishuai Zhang, Yan Wang, Angtian Wang, Elliot K Fishman, Alan L Yuille, and Seyoun Park. Hyper-pairing network for multi-phase pancreatic ductal adenocarcinoma segmentation. In Proc.MICCAI, 2019.
|
| 298 |
+
[48] Yuyin Zhou, Zhe Li, Song Bai, Xinlei Chen, Mei Han, Chong Wang, Elliot K. Fishman, and Alan L. Yuille. Prior-aware neural network for partially-supervised multi-organ segmentation. In Proc. ICCV, 2019.
|
| 299 |
+
[49] Yuyin Zhou, Lingxi Xie, Wei Shen, Yan Wang, Elliot K. Fishman, and Alan L. Yuille. A fixed-point model for pancreas segmentation in abdominal CT scans. In Proc. MIC-CAI, 2017.
|
| 300 |
+
[50] Zhuotun Zhu, Yingda Xia, Wei Shen, Elliot K. Fishman, and Alan L. Yuille. A 3d coarse-to-fine framework for volumetric medical image segmentation. In Proc. 3DV, 2018.
|
| 301 |
+
[51] Zhuotun Zhu, Yingda Xia, Lingxi Xie, Elliot K. Fishman, and Alan L. Yuille. Multi-scale coarse-to-fine segmentation for screening pancreatic ductal adenocarcinoma. In Proc. MICCAI, 2019.
|
deepdistancetransformfortubularstructuresegmentationinctscans/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d1659e1a274fc4713d458e80129eb904306625c663914a1dde084fb80e776a8
|
| 3 |
+
size 449870
|
deepdistancetransformfortubularstructuresegmentationinctscans/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8520b08709fd50456f1cb8e1b94ad08422ef184f21dea11b320ba27febca684b
|
| 3 |
+
size 444649
|
deepemdfewshotimageclassificationwithdifferentiableearthmoversdistanceandstructuredclassifiers/abd5939a-ed49-455a-9151-ae411e3a5201_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bcd0c9dc3affb3e18e0e7d44cd6a508f1d2ecbbc6d6b8a177546c30028ec8a33
|
| 3 |
+
size 82162
|
deepemdfewshotimageclassificationwithdifferentiableearthmoversdistanceandstructuredclassifiers/abd5939a-ed49-455a-9151-ae411e3a5201_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdb15d3eaa95aebbeadfcca6326c31d9d5b18ca295fb13009ee7afcd28999e29
|
| 3 |
+
size 105903
|
deepemdfewshotimageclassificationwithdifferentiableearthmoversdistanceandstructuredclassifiers/abd5939a-ed49-455a-9151-ae411e3a5201_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec8a195144ccab8af75d91af527d45bc80f5cffca5b93efeecdedc2e92952f54
|
| 3 |
+
size 775751
|
deepemdfewshotimageclassificationwithdifferentiableearthmoversdistanceandstructuredclassifiers/full.md
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DeepEMD: Few-Shot Image Classification with Differentiable Earth Mover's Distance and Structured Classifiers
|
| 2 |
+
|
| 3 |
+
Chi Zhang $^{1}$ , Yujun Cai $^{1}$ , Guosheng Lin $^{1*}$ , Chunhua Shen $^{2}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>Nanyang Technological University, Singapore <sup>2</sup>The University of Adelaide, Australia E-mail: chi007@e.ntu.edu.sg, gslin@ntu.edu.sg
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
In this paper, we address the few-shot classification task from a new perspective of optimal matching between image regions. We adopt the Earth Mover's Distance (EMD) as a metric to compute a structural distance between dense image representations to determine image relevance. The EMD generates the optimal matching flows between structural elements that have the minimum matching cost, which is used to represent the image distance for classification. To generate the important weights of elements in the EMD formulation, we design a cross-reference mechanism, which can effectively minimize the impact caused by the cluttered background and large intra-class appearance variations. To handle $k$ -shot classification, we propose to learn a structured fully connected layer that can directly classify dense image representations with the EMD. Based on the implicit function theorem, the EMD can be inserted as a layer into the network for end-to-end training. We conduct comprehensive experiments to validate our algorithm and we set new state-of-the-art performance on four popular few-shot classification benchmarks, namely miniImageNet, tieredImageNet, Fewshot-CIFAR100 (FC100) and Caltech-UCSD Birds-200-2011 (CUB).
|
| 10 |
+
|
| 11 |
+
# 1. Introduction
|
| 12 |
+
|
| 13 |
+
Deep neural networks have achieved breakthroughs in a wide range of visual understanding tasks in the past few years. However, its data-driven nature often makes it struggle when no sufficiently large labeled training data is available. Meta learning, on the other hand, is proposed to learn a model that can quickly generalize to new tasks with minor adaption steps. One of the most well-studied test-bed for meta-learning algorithms is few-shot image classification, which aims to perform classification on new image categories with only a small amount of labeled training data.
|
| 14 |
+
|
| 15 |
+
To address this problem, a line of the previous litera
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Illustration of using Earth Mover's Distance for one-shot image classification. Our algorithm uses optimal matching cost between image regions to represent the image distance.
|
| 19 |
+
|
| 20 |
+
ture adopts metric-based methods [30,43,63,66,67,73] that learn to represent image data in an appropriate feature space and use a distance function to predict image labels. Following the formulation of the standard image classification networks [16, 24, 62], metric-based methods often employ a convolution neural network to learn image feature representations, but replace the fully connected layer with a distance function, e.g., cosine distance and Euclidean distance. Such distance functions directly compute the distance between the embeddings of the test images and training images for classification, which bypasses the difficult optimization problem in learning a classifier for the few-shot setting. The network is trained by sampling from a distribution of tasks, in the hopes of acquiring generalization ability to unseen but similar tasks.
|
| 21 |
+
|
| 22 |
+
Despite their promising results, we observe that the cluttered background and large intra-class appearance variations may drive the image-level embeddings from the same category far apart in a given metric space. Although the problem can be alleviated by the neural network under the fully supervised training, thanks to the activation functions and abundant training images, it is almost inevitably am
|
| 23 |
+
|
| 24 |
+
plified in low-data regimes and thus negatively impacts the image classification. Moreover, a mixed global representation destroys image structures and loses local features. Local features can provide discriminative and transferable information across categories, which can be important for image classification in the few-shot scenario. Therefore, a desirable metric-based algorithm should have the ability to utilize the local discriminative representations for metric learning and minimize the impact caused by the irrelevant regions.
|
| 25 |
+
|
| 26 |
+
A natural way to compare two complex structured representations is to compare their building blocks. The difficulty lies in that we do not have their correspondence supervision for training and not all building elements can always find their counterparts in the other structures. To solve the problems above, in this paper, we formalize the few-shot classification as an instance of optimal matching, and we propose to use the optimal matching cost between two structures to represent their similarity. Given the feature representations generated by two images, we adopt the Earth Mover's Distance (EMD) [50] to compute their structural similarity. EMD is the metric for computing distance between structural representations, which was originally proposed for image retrieval. Given the distance between all element pairs, EMD can acquire the optimal matching flows between two structures that have the minimum cost. It can also be interpreted as the minimum cost to reconstruct a structure representation with the other one. An illustration of our motivation is shown in Fig. 1. EMD has the formulation of the transportation problem [17] and the global minimum can be achieved by solving a Linear Programming problem. To embed the optimization problem into the model for end-to-end training, we can apply the implicit function theorem [3,8,22] to form the Jacobian matrix of the optimal optimization variable with respect to the problem parameters [3].
|
| 27 |
+
|
| 28 |
+
An important problem parameter in the EMD formulation is the weight of each element. Elements with large weights generate more matching flows and thus contribute more to the overall distance. Ideally, the algorithm should have the flexibility to assign less weight on irrelevant regions such that they contribute less to the overall distance no matter which elements they match with. To achieve this goal, we propose a cross-reference mechanism to determine the importance of the elements. In our cross-reference mechanism, each node is determined by comparing it with the global statistics of the other structure. This aims to give less weight to the high-variance background regions and the object parts that are not co-ocurrent in two images.
|
| 29 |
+
|
| 30 |
+
In the $k$ -shot setting where multiple support images are presented, we propose to learn a structured fully connected (FC) layer as the classifier for classification to make use of the increasing number of training images. The struc
|
| 31 |
+
|
| 32 |
+
tured FC layer includes a group of learnable vectors for each class. At inference time, we use the EMD to compute the distance between the image embeddings and the learnable vector set in each class for classification. The structured FC is an extension of the standard fully connected layer in that it replaces dot product operations between vectors with EMD function between vector sets such that the structured FC layer could directly classify feature maps. The structured FC layer can also be interpreted as learning a prototype embedding from a dummy image for each category such that the test images can be matched with them for classification.
|
| 33 |
+
|
| 34 |
+
To validate our algorithm, we conduct extensive experiments on multiple datasets to demonstrate the effectiveness of our algorithm. Our main contributions are summarized as follows:
|
| 35 |
+
|
| 36 |
+
- We propose to formalize the few-shot image classification as an optimal matching problem and adopt the Earth Mover's Distance as the distance metric between structured representations. The EMD layer can be embedded into the network for end-to-end training.
|
| 37 |
+
- We propose a cross-reference mechanism to generate the weights of elements in the EMD formulation, which can effectively reduce the noise introduced by the background regions in the images.
|
| 38 |
+
- We propose to learn a structured fully connected layer in the $k$ -shot settings, which could directly classify the structural representations of an image using the Earth Mover's Distance.
|
| 39 |
+
- Experiments on four popular few-shot classification benchmark datasets—miniImagenet, tieredImagenet, FC100 and CUB, show that our algorithm on both 1-shot and 5-shot tasks significantly outperforms the baseline methods and achieves new state-of-the-art performance on all of them.
|
| 40 |
+
|
| 41 |
+
# 2. Related Work
|
| 42 |
+
|
| 43 |
+
Few-Shot Learning. There are two main streams in the few-shot classification literature, metric-based approaches and optimization-based approaches. Optimization-based methods [2,5,9-11,18,26,31-33,36,38,40-42,44,46,47, 54, 55, 58, 64, 79] target at effectively adapting model parameters to new tasks in the low-shot regime. Our method is more related to the metric-based methods [30, 43, 63, 66, 67, 73], which aim to represent samples in an appropriate feature space where data from different categories can be distinguished with distance metrics.
|
| 44 |
+
|
| 45 |
+
Apart from the two popular branches, many other promising methods are also proposed to handle the few-shot classification problem, such as works based on graph theories [13, 15, 21], reinforcement learning [6], differentiable
|
| 46 |
+
|
| 47 |
+
SVM [25], temporal convolutions [39], etc. [4, 12, 14, 20, 27, 28, 37, 45, 49, 57, 60, 61, 65, 69-71, 76, 77].
|
| 48 |
+
|
| 49 |
+
Other related topics. Besides image classification, few-shot learning is also investigated in image segmentation [34, 74, 75] and object detection tasks [72]. There are also some previous works related to the techniques adopted in this paper. For example, Schulter et al. [56] solve the multi-object tracking problem with a network flow formulation. Zhao et al. [78] propose to use the differential EMD to handle visual tracking problem based on the sensitivity analysis of the simplex method. Li [29] uses a tensor-SIFT based EMD to tackle the contour tracking problem.
|
| 50 |
+
|
| 51 |
+
# 3. Method
|
| 52 |
+
|
| 53 |
+
In this section, we first present a brief review of the Earth Mover's Distance and describe how we formulate the one-shot classification as an optimal matching problem that can be trained end-to-end. Then, we describe our cross-reference mechanism to generate the weight of each node, which is an important parameter in the EMD formulation. Finally, we demonstrate how to use the EMD distance function to handle $k$ -shot learning with our proposed structured fully connected layer. The overview of our framework for one-shot classification is shown in Fig. 2.
|
| 54 |
+
|
| 55 |
+
# 3.1. Revisiting Earth Mover's Distance
|
| 56 |
+
|
| 57 |
+
The Earth Mover's Distance is a distance measure between two sets of weighted objects or distributions, which is built upon the basic distance between individual objects. It has the form of the well-studied transportation problem (TP) from Linear Programming. Specially, suppose that a set of sources or suppliers $S = \{s_i|i = 1,2,\dots m\}$ are required to transport goods to a set of destinations or demanders $\mathcal{D} = \{d_j|j = 1,2,\dots k\}$ , where $s_i$ denotes the supply units of supplier $i$ and $d_{j}$ represents the demand of $j$ -th demander. The cost per unit transported from supplier $i$ to demander $j$ is denoted by $c_{ij}$ , and the number of units transported is denoted by $x_{ij}$ . The goal of the transportation problem is then to find a least-expensive flow of goods $\tilde{\mathcal{X}} = \{\tilde{x}_{ij}|i = 1,\dots m,j = 1,\dots k\}$ from the suppliers to the demanders:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\underset {x _ {i j}} {\text {m i n i m i z e}} \quad \sum_ {i = 1} ^ {m} \sum_ {j = 1} ^ {k} c _ {i j} x _ {i j}
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
subject to $x_{ij}\geqslant 0,i = 1,\ldots ,m,j = 1,\ldots ,k$ (1)
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\sum_ {j = 1} ^ {k} x _ {i j} = s _ {i}, i = 1, \dots m \tag {1}
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\sum_ {i = 1} ^ {m} x _ {i j} = d _ {j}, j = 1, \dots k
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
Note that roles of suppliers and demanders can be switched without affecting the total transportation cost. $s_i$ and $d_j$ are also called the weights of the nodes, which controls the total matching flows generated by each node. EMD seeks an
|
| 74 |
+
|
| 75 |
+
optimal matching $\tilde{\mathcal{X}}$ between suppliers and demanders such that overall matching cost can be minimized. The global optimal matching flows $\tilde{\mathcal{X}}$ be achieved by solving the Linear Programming problem.
|
| 76 |
+
|
| 77 |
+
# 3.2. EMD for Few-Shot Classification
|
| 78 |
+
|
| 79 |
+
In the few-shot classification task, metric-based methods aim to find a good distance metric and data representations to compute the similarity between images, which are used for classification. Different from the previous methods that perform distance computation between the image-level embeddings, our approach advocates the use of discriminative local information. We decompose an image into a set of local representations and use the optimal matching cost between two images to represent their similarity. Concretely, we first deploy a fully convolutional network (FCN) [59] to generate the image embedding $\mathbf{U} \in \mathbb{R}^{H \times W \times C}$ , where $H$ and $W$ denote the spatial size of the feature map and $C$ is the feature dimension. Each image representation contains a collection of local feature vectors $[\mathbf{u}_1, \mathbf{u}_2, \dots, \mathbf{u}_{HW}]$ , and each vector $\mathbf{u}_i$ can be seen as a node in the set. Thus, the similarity of two images can be represented as the optimal matching cost between two sets of vectors. Following the original EMD formulation in Equation 1, the cost per unit is obtained by computing the pairwise distance between embedding nodes $\mathbf{u}_i$ , $\mathbf{v}_j$ from two image features:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
c _ {i j} = 1 - \frac {\mathbf {u} _ {i} ^ {T} \mathbf {v} _ {j}}{\| \mathbf {u} _ {i} \| \| \mathbf {v} _ {j} \|}, \tag {2}
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where nodes with similar representations tend to generate fewer matching cost between each other. As to the generation of weights $s_i$ and $d_j$ , we leave the detailed elaborations in Section 3.4. Once acquiring the optimal matching flows $\tilde{\mathcal{X}}$ , we can compute the similarity score $s$ between image representations with:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
s (\mathbf {U}, \mathbf {V}) = \sum_ {i = 1} ^ {H W} \sum_ {j = 1} ^ {H W} (1 - c _ {i j}) \tilde {x} _ {i j}. \tag {3}
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
# 3.3. End-to-End Training
|
| 92 |
+
|
| 93 |
+
In order to embed the optimal matching problem into a neural network for end-to-end training, it is helpful to make the solution of the optimal matching $\tilde{\mathcal{X}}$ be differentiable with respect to the problem parameters $\theta$ . As is indicated by [3], we can apply implicit function theorem [3, 8, 22] on the optimality (KKT) conditions to obtain the Jacobian. For the sake of completeness, we start with Equation 1 which is assigned compactly in matrix form:
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\underset {x} {\text {m i n i m i z e}} \quad c (\theta) ^ {T} x
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
subject to $G(\theta)x\leqslant h(\theta)$ (4)
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
A (\theta) x = b (\theta).
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+

|
| 106 |
+
Figure 2: Our framework for 1-shot image classification. Given a pair of images, we first use a Fully Convolutional Network to generate dense representations of them, which contain two sets of feature vectors. The model generates the weights of all vectors with our proposed cross-reference mechanism (not indicated in the figure). Then we use the Earth Mover's Distance to generate the optimal matching flows between two sets that have the minimum overall matching cost. Finally, based on the optimal matching flows and matching costs, we can compute the distance between two images, which are used for classification.
|
| 107 |
+
|
| 108 |
+
Here $x \in \mathbb{R}^n$ is our optimization variable, with $n = HW \times HW$ representing the total number of matching flows in $\mathcal{X}$ . $\theta$ is the problem parameter that relates to the earlier layers in a differentiable way. $Ax = b$ represents the equality constraints and $Gx \leqslant h$ denotes the inequality constraint in Equation 1. Accordingly, the Lagrangian of the LP problem in equation 4 is given by:
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
L (\theta , x, \nu , \lambda) = c ^ {T} x + \lambda^ {T} (G x - h) + \nu^ {T} (A x - b), \quad (5)
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
where $\nu$ are the dual variables on the equality constraints and $\lambda \geqslant 0$ are the dual variables on the inequality constraints.
|
| 115 |
+
|
| 116 |
+
Following the KKT conditions with notational convenience, we can obtain the optimum $(\tilde{x},\tilde{\nu},\tilde{\lambda})$ of the objective function by solving $g(\theta ,\tilde{x},\tilde{\nu},\tilde{\lambda}) = 0$ with primal-dual interior point methods, where
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
g (\theta , x, \nu , \lambda) = \left[ \begin{array}{c} \nabla_ {\theta} L (\theta , x, \nu , \lambda) \\ \mathbf {d i a g} (\lambda) (G (\theta) x - h (\theta)) \\ A (\theta) x - b (\theta) \end{array} \right]. \tag {6}
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
Then, the following theorem holds to help us derive the gradients of the LP parameters.
|
| 123 |
+
|
| 124 |
+
Theorem 1 (From Barratt [3]) Suppose $g(\theta, \tilde{\lambda}, \tilde{\nu}, \tilde{x}) = 0$ . Then, when all derivatives exist, the partial Jacobian of $x$ with respect to $\theta$ at the optimal solution $(\tilde{\lambda}, \tilde{\nu}, \tilde{x})$ , namely $J_{\theta} \tilde{x}$ , can be obtained by satisfying:
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
J _ {\theta} \tilde {x} = - J _ {x} g (\theta , \tilde {\lambda}, \tilde {\nu}, \tilde {x}) ^ {- 1} J _ {\theta} g (\theta , \tilde {x}, \tilde {\nu}, \tilde {\lambda}). \tag {7}
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
Here the formula for the Jacobian of the solution mapping is obtained by applying the implicit function theorem to the KKT conditions. For instance, the (partial) Jacobian with
|
| 131 |
+
|
| 132 |
+
respect to $\theta$ can be defined as
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
J _ {\theta} g (\theta , \tilde {\lambda}, \tilde {\nu}, \tilde {x}) = \left[ \begin{array}{c} J _ {\theta} \nabla_ {x} L (\theta , \tilde {x}, \tilde {\nu}, \tilde {\lambda}) \\ \mathbf {d i a g} (\tilde {\lambda}) J _ {\theta} (G (\theta) x - h (\theta)) \\ J _ {\theta} (A (\theta) \tilde {x} - b (\theta)) \end{array} \right]. \tag {8}
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
Therefore, once getting the optimal solution $\tilde{x}$ for the LP problem, we can obtain a closed-form expression for the gradient of $\tilde{x}$ with respect to the input LP parameters $\theta$ . This helps us achieve an efficient backpropagation through the entire optimization process without perturbation of the initialization and optimization trajectory.
|
| 139 |
+
|
| 140 |
+
# 3.4. Weight Generation
|
| 141 |
+
|
| 142 |
+
As can be observed in the EMD formulation, an important problem parameter is the weight of each node, $e.g., s_i$ , which controls the total matching flows $\sum_{j=1}^{n} x_{ij}$ from it. Intuitively, the node with a larger weight plays a more important role in the comparison of two sets, while a node with a very small weight can hardly influence the overall distance no matter which nodes it matches with. In the pioneering work that adopts EMD for color-based image retrieval [50], they use the histogram as the elementary feature and perform feature clustering over all pixels to generate the nodes. The weight of each node is set as the size of the corresponding cluster. It makes sense because for color-based image retrieval, large weight should be given to the dominant colors with more pixels, such that the retrieved images can be visually close to the query images.
|
| 143 |
+
|
| 144 |
+
However, for few-shot image classification tasks where features for classification often have high-level semantic meanings, the number of pixels does not necessarily reflect the importance. It is common to find image data with
|
| 145 |
+
|
| 146 |
+

|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Figure 3: Comparison of standard fully connected layer (a) and our proposed structured fully connected layer (SFC) (b). The SFC learns a group of vectors as the prototype for each class such that we can use the EMD to generate category scores.
|
| 150 |
+
|
| 151 |
+
greater background regions than the target objects in classification datasets, e.g., ImageNet. Thus, the importance of a local feature representation can hardly be determined only by inspecting individual images alone. Instead, we argue that for the few-shot classification task, the weights of node features should be generated by comparing the nodes on both sides. To achieve this goal, we propose a cross-reference mechanism that uses dot product between a node feature and the average node feature in the other structure to generate a relevance score as the weight value:
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
s _ {i} = \max \left\{\mathbf {u} _ {i} ^ {T} \cdot \frac {\sum_ {j = 1} ^ {H W} \mathbf {v} _ {j}}{H W}, 0 \right\}, \tag {9}
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+
where $\mathbf{u}_i$ and $\mathbf{v}_j$ denotes the vectors from two feature maps, and function $max(\cdot)$ ensures the weights are always nonnegative. For clarity, here we simply take $s_i$ as an example and $d_i$ can be obtained in the same manner. The cross-reference mechanism aims to give less weight to the high-variance background regions and more to the co-occurrent object regions in two images. This can also put less weight on the object parts that do not occur in two images and thus allows partial matching to some extent. Finally, we normalize all the weights in the structure to make both sides have the same total weights for matching:
|
| 158 |
+
|
| 159 |
+
$$
|
| 160 |
+
\hat {s} _ {i} = s _ {i} \frac {H W}{\sum_ {j = 1} ^ {H W} s _ {j}}. \tag {10}
|
| 161 |
+
$$
|
| 162 |
+
|
| 163 |
+
<table><tr><td>Model</td><td>Embedding</td><td>Metric</td><td>5-way</td><td>10-way</td></tr><tr><td>ProtoNet [63]</td><td>global</td><td>Euclidean</td><td>60.37</td><td>44.34</td></tr><tr><td>MatchingNet [67]</td><td>global</td><td>cosine</td><td>63.08</td><td>47.09</td></tr><tr><td>FC [5]</td><td>global</td><td>dot</td><td>59.41</td><td>44.08</td></tr><tr><td>FC [5]</td><td>global</td><td>cosine</td><td>55.43</td><td>40.42</td></tr><tr><td>KNN [30]</td><td>local</td><td>cosine</td><td>62.52</td><td>47.08</td></tr><tr><td>Prediction Fusion [33]</td><td>local</td><td>cosine</td><td>62.38</td><td>47.04</td></tr><tr><td>DeepEMD (our)</td><td>local</td><td>EMD</td><td>65.91</td><td>49.66</td></tr></table>
|
| 164 |
+
|
| 165 |
+
Table 1: Comparison of different metric-based methods for 1-shot classification. Our model with EMD as the distance metric significantly outperforms baseline models based on image-level representations and local representations.
|
| 166 |
+
|
| 167 |
+
# 3.5. Structured Fully Connected Layer
|
| 168 |
+
|
| 169 |
+
Thus far we have discussed using the Earth Mover's Distance as the metric to generate the distance value between paired images. A question is then raised—how do we handle the $k$ -shot setting where multiple support images are available? Before presenting our design in detail, let us have a review of how the standard fully layer classify an image embedding extracted by CNNs. A FC layer, parameterized by $[\Phi_1,\dots,\Phi_N]\in \mathbb{R}^{C\times N}$ contains a set of learnable vectors $\Phi_i\in \mathbb{R}^C$ corresponding to each category. At inference time, given an image embedding $\mathbf{u}\in \mathbb{R}^C$ generated by the convolutional layer, the FC layer generates the score of a class $i$ by computing the dot product between the image vector $\mathbf{u}$ and the parameter vector $\Phi_{i}$ , and this process is applied to all the categories in parallel by matrix multiplication. There are also some previous works replacing the dot product operation in the FC layer with the cosine function for computing the category scores [5, 53]. The learning of the FC layer can be seen as finding a prototype vector for each class such that we can use distance metrics to classify an image. An illustration of the standard FC layer is shown in Fig. 3 (a).
|
| 170 |
+
|
| 171 |
+
With the same formulation, we can learn a structured fully connected layer that adopts EMD as the distance function to directly classify a structured feature representation. The learnable embedding for each class becomes a group of vectors, rather than one vector, such that we can use the structured distance function EMD to undertake image classification. This can also be interpreted as learning a prototype feature map generated by a dummy image for each class. The comparison of the structured FC and the standard FC can be found in Fig. 3. At inference time, we fix the trained 1-shot FCN model as the feature extractor and use SGD to learn the parameters in the structured fully connected layer by sampling data from the support set.
|
| 172 |
+
|
| 173 |
+
# 4. Experiments
|
| 174 |
+
|
| 175 |
+
To evaluate the performance of our proposed algorithm for few-shot classification, we conduct extensive experiments on multiple datasets. In this section, we first present
|
| 176 |
+
|
| 177 |
+

|
| 178 |
+
Figure 4: Experiment on 5-way $k$ -shot classification. The proposed structured FC layer significantly outperforms previous $k$ -shot solutions.
|
| 179 |
+
|
| 180 |
+
<table><tr><td>Method</td><td>Operation</td><td>5-way</td><td>10-way</td></tr><tr><td>Full Connections</td><td>Average</td><td>55.16</td><td>40.88</td></tr><tr><td>Full Connections</td><td>CR</td><td>55.41</td><td>41.60</td></tr><tr><td>EMD</td><td>Equal</td><td>56.95</td><td>42.89</td></tr><tr><td>EMD</td><td>K-means [19]</td><td>56.25</td><td>41.85</td></tr><tr><td>EMD</td><td>mean-shift [7]</td><td>53.56</td><td>39.70</td></tr><tr><td>EMD</td><td>CR</td><td>61.13</td><td>46.92</td></tr></table>
|
| 181 |
+
|
| 182 |
+
Table 2: Different methods for setting the weights in the EMD. We report the 1-shot performance with only the feature pre-training step. EMD with our cross-reference (CR) mechanism yields the best result. The model variant that is solely based on the cross-reference mechanism as attention and removes the EMD can cause a significant performance drop. The combination of the EMD and the cross-reference generates the best result.
|
| 183 |
+
|
| 184 |
+
dataset information and some important implementation details in our network design. Then, we conduct various ablative experiments to validate each component in our network. Finally, we compare our model with the state-of-the-art methods on popular benchmark datasets.
|
| 185 |
+
|
| 186 |
+
# 4.1. Implementation Details
|
| 187 |
+
|
| 188 |
+
For a fair comparison with previous works, we employ a 10-layer ResNet (ResNet10) as our model backbone, which is widely used in the few-shot classification literature. We transform it into a fully convolutional manner by removing the classifier at the end. Given an image of size $84 \times 84$ , the model generates a feature map of size $5 \times 5 \times 512$ , i.e. 25 512-dimensional vectors. We adopt the GPU accelerated Convex solver QPTH [1] to solve the Linear Programming problem in our network and compute gradients for backpropagation. As is commonly implemented in the state-of-the-art literature, we adopt a feature pre-training step followed by the episodic meta-training [67] to learn our network. During the network pre-training, we find that a two-layer FC layer is better than a single layer classifier. For the $k$ -shot classification task, we initialize the structured FC
|
| 189 |
+
|
| 190 |
+
layer with the average feature map of all support data in each class, and sample a batch of 5 images from the support set to finetune the structured FC layer for 100 iterations.
|
| 191 |
+
|
| 192 |
+
# 4.2. Dataset Description
|
| 193 |
+
|
| 194 |
+
We conduct few-shot classification experiments on four popular benchmark datasets: miniImageNet [67], tieredImageNet [49], Fewshot-CIFAR100 (FC100) [43] and Caltech-UCSD Birds-200-2011 (CUB) [68].
|
| 195 |
+
|
| 196 |
+
miniImageNet. miniImageNet was first proposed in [67], and becomes the most popular benchmark in the few-shot classification literature. It contains 100 classes with 600 images in each class, which are built upon the ImageNet dataset [51]. The 100 classes are divided into 64, 16, 20 for meta-training, meta-validation and meta-testing, respectively.
|
| 197 |
+
|
| 198 |
+
tieredImageNet. tieredImageNet is also a subset of ImageNet, which includes 608 classes from 34 superclasses. Compared with miniImageNet, the splits of metatraining(20), meta-validation(6) and meta-testing(8) are set according to the super-classes to enlarge the domain difference between training and testing phase. The dataset also include more images for training and evaluation (779,165 images in total).
|
| 199 |
+
|
| 200 |
+
Fewshot-CIFAR100. FC100 is a few-shot classification dataset build on CIFAR100 [23]. We follow the split division proposed in [43], where 36 super-classes were divided into 12 (including 60 classes), 4 (including 20 classes), 4 (including 20 classes), for meta-training, meta-validation and meta-testing, respectively, and each class contains 100 images.
|
| 201 |
+
|
| 202 |
+
Caltech-UCSD Birds-200-2011. CUB was originally proposed for fine-grained bird classification, which contains 11,788 images from 200 classes. We follow the splits in [73] that 200 classes are divided into 100, 50 and 50 for meta-training, meta-validation and meta-testing, respectively. The challenge in this dataset is the minor difference between classes.
|
| 203 |
+
|
| 204 |
+
# 4.3. Ablative Analysis
|
| 205 |
+
|
| 206 |
+
In our ablation study, we implement various experiments to evaluate the effectiveness of our algorithm. All experiments are conducted on the miniImageNet dataset.
|
| 207 |
+
|
| 208 |
+
Comparison with methods based on image-level representations. In the beginning, we first compare our method with a set of metric based methods that utilize image-level vector representations on the 1-shot task. These methods adopt global average pooling to generate vector representations for images and use various distance metrics for classification. We select the representative metric-based methods in the literature for comparison: 1) Prototypical Network [63] with Euclidean distance. 2) Matching Network [67] with cosine distance. 3) Finetuning a FC clas
|
| 209 |
+
|
| 210 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">Backbone</td><td colspan="2">miniImagenet</td><td colspan="2">tieredImagenet</td></tr><tr><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td></tr><tr><td>cosine classifier [5]</td><td>ResNet12</td><td>55.43 ± 0.81</td><td>77.18 ± 0.61</td><td>61.49 ± 0.91</td><td>82.37. ± 0.67</td></tr><tr><td>TADAM [43]</td><td>ResNet12</td><td>58.50 ± 0.30</td><td>76.70 ± 0.30</td><td>-</td><td>-</td></tr><tr><td>ECM [48]</td><td>ResNet12</td><td>59.00 ± -</td><td>77.46 ± -</td><td>63.99 ± -</td><td>81.97 ± -</td></tr><tr><td>TPN [35]</td><td>ResNet12</td><td>59.46 ± -</td><td>75.65 ± -</td><td>59.91 ± 0.94</td><td>73.30 ± 0.75</td></tr><tr><td>PPA [46]</td><td>WRN-28-10†</td><td>59.60 ± 0.41</td><td>73.74 ± 0.19</td><td>65.65 ± 0.92</td><td>83.40. ± 0.65</td></tr><tr><td>ProtoNet [63]</td><td>ResNet12</td><td>60.37 ± 0.83</td><td>78.02 ± 0.57</td><td>65.65 ± 0.92</td><td>83.40. ± 0.65</td></tr><tr><td>wDAE-GNN [15]</td><td>WRN-28-10†</td><td>61.07 ± 0.15</td><td>76.75 ± 0.11</td><td>68.18 ± 0.16</td><td>83.09 ± 0.12</td></tr><tr><td>MTL [64]</td><td>ResNet12</td><td>61.20 ± 1.80</td><td>75.50 ± 0.80</td><td>-</td><td>-</td></tr><tr><td>LEO [52]</td><td>WRN-28-10†</td><td>61.76 ± 0.08</td><td>77.59 ± 0.12</td><td>66.33 ± 0.05</td><td>81.44 ± 0.09</td></tr><tr><td>DC [33]</td><td>ResNet12</td><td>62.53 ± 0.19</td><td>79.77 ± 0.19</td><td>-</td><td>-</td></tr><tr><td>MetaOptNet [25]</td><td>ResNet12</td><td>62.64 ± 0.82</td><td>78.63 ± 0.46</td><td>65.99 ± 0.72</td><td>81.56 ± 0.53</td></tr><tr><td>FEAT [73]</td><td>ResNet24†</td><td>62.96 ± 0.20</td><td>78.49 ± 0.15</td><td>-</td><td>-</td></tr><tr><td>MatchNet [67]</td><td>ResNet12</td><td>63.08 ± 0.80</td><td>75.99 ± 0.60</td><td>68.50 ± 0.92</td><td>80.60 ± 0.71</td></tr><tr><td>CTM [28]</td><td>ResNet18†</td><td>64.12 ± 0.82</td><td>80.51 ± 0.13</td><td>68.41 ± 0.39</td><td>84.28 ± 1.73</td></tr><tr><td>DeepEMD (our)</td><td>ResNet12</td><td>65.91 ± 0.82</td><td>82.41 ± 0.56</td><td>71.16 ± 0.87</td><td>86.03 ± 0.58</td></tr></table>
|
| 211 |
+
|
| 212 |
+
(a) Results on miniImageNet and tieredImageNet datasets
|
| 213 |
+
|
| 214 |
+
<table><tr><td>Method</td><td>Backbone</td><td>1-shot</td><td>5-shot</td></tr><tr><td>cosine classifier [5]</td><td>ResNet12</td><td>38.47 ± 0.70</td><td>57.67 ± 0.77</td></tr><tr><td>TADAM [43]</td><td>ResNet12</td><td>40.10 ± 0.40</td><td>56.10 ± 0.40</td></tr><tr><td>MetaOptNet [25]</td><td>ResNet12</td><td>41.10± 0.60</td><td>55.5 ± 0.60</td></tr><tr><td>ProtoNet [63]</td><td>ResNet12</td><td>41.54 ± 0.76</td><td>57.08 ± 0.76</td></tr><tr><td>DC [33]</td><td>ResNet12</td><td>42.04 ± 0.17</td><td>57.05 ± 0.16</td></tr><tr><td>MatchNet [67]</td><td>ResNet12</td><td>43.88 ± 0.75</td><td>57.05 ± 0.71</td></tr><tr><td>MTL [64]</td><td>ResNet12</td><td>45.10± 1.8</td><td>57.6 ± 0.9</td></tr><tr><td>DeepEMD (our)</td><td>ResNet12</td><td>46.47 ± 0.78</td><td>63.22 ± 0.71</td></tr></table>
|
| 215 |
+
|
| 216 |
+
(b) Results on Fewshot-CIFAR100 dataset.
|
| 217 |
+
|
| 218 |
+
<table><tr><td>Method</td><td>Backbone</td><td>1-shot</td><td>5-shot</td></tr><tr><td>ProtoNet [63]</td><td>ResNet12</td><td>66.09 ± 0.92</td><td>82.50 ± 0.58</td></tr><tr><td>RelationNet [5,66]</td><td>ResNet34†</td><td>66.20 ± 0.99</td><td>82.30 ± 0.58</td></tr><tr><td>DEML [79]</td><td>ResNet50†</td><td>66.95 ± 1.06</td><td>77.11 ± 0.78</td></tr><tr><td>MAML [5,9]</td><td>ResNet34†</td><td>67.28 ± 1.08</td><td>83.47 ± 0.59</td></tr><tr><td>cosine classifier [5]</td><td>ResNet12</td><td>67.30 ± 0.86</td><td>84.75 ± 0.60</td></tr><tr><td>MatchNet [67]</td><td>ResNet12</td><td>71.87 ± 0.85</td><td>85.08 ± 0.57</td></tr><tr><td>DeepEMD (our)</td><td>ResNet12</td><td>75.65 ± 0.83</td><td>88.69 ± 0.50</td></tr></table>
|
| 219 |
+
|
| 220 |
+
(c) Results on Caltech-UCSD Birds-200-2011 dataset.
|
| 221 |
+
|
| 222 |
+
Table 3: Comparison with the state-of-art 1-shot 5-way and 5-shot 5-way performance (%) with $95\%$ confidence intervals on miniImageNet (a), tieredImageNet (a), Fewshot-CIFAR100 (b) and Caltech-UCSD Birds-200-2011 (c) datasets. Our model achieves new state-of-the-art performance on all datasets, and even outperforms methods with deeper backbones†.
|
| 223 |
+
|
| 224 |
+
sifier. In [5], Chen et al. propose to fix the pretrained feature extractor and finetune the FC layer with the support images. For fair comparisons, we adopt the same backbones and training schemes for all these baseline methods and report the experiment results in Table. 1. As we can see, our algorithm significantly outperforms baseline methods that relies on image-level vector representations under both 1-shot 5-way and 1-shot 10-way settings, which indicates the effectiveness of the optimal matching based method that relies on local features.
|
| 225 |
+
|
| 226 |
+
Comparison with methods based on local representations. There are also a few methods in the literature focusing on local representations to solve few-shot classification. They all remove the global average pooling in the CNN to achieve dense representations of images. In [30], Li et al. use the top $k$ nearest vectors (KNN) between two feature maps to represent image-level distance. Lifchitz et al. [33] propose to make predictions with each local representation and average their output probabilities. We replace our EMD head with their methods for comparison. The result is shown in Table. 1. Our optimal matching based algorithm outperforms all other model variants. The possible reason is that although the basic ground distance in the EMD is based on local features, our algorithm compares the two structures in a global way. Solely based on nearest local features in two images may not extract sufficient information to differentiate images. For example, eyes can be the nearest feature between animal images, but such feature can hardly be used to differentiate animal species.
|
| 227 |
+
|
| 228 |
+
Weights in the EMD. We next investigate the weights in the EMD formulations. In the earlier work using the EMD for image retrieval, they use the pixel color as the feature and cluster pixels to generate nodes. The weight of the node is set as the portion of pixels in this cluster. We
|
| 229 |
+
|
| 230 |
+
experiment two clustering algorithms to generate weights as the baseline models: K-means [19] and mean-shift [7]. As the clustering process of the mentioned algorithms are non-differentiable, for a fair comparison, we use the features after pre-training to evaluate all methods. We also incorporate a baseline model with equal weights into comparison. To test whether our performance is solely brought by the cross-reference mechanism, we also compare our network with a model variant that is solely based on the cross-reference mechanism without EMD. We compute the cosine distance between all vector pairs, and compute a weighted sum of these distances with the node weights generated by the cross-reference mechanism. As we can see from the results in Table. 2, our cross-reference mechanism can bring an improvement of $4.2\%$ over the baseline with equal weights, while clustering-based methods do not help improve the performance, which demonstrates that the number of pixels dose not necessarily indicate the importance in the few-shot scenario. For the model variant solely based on the cross-reference mechanism as an attention, it can only slightly improve the result of simple average operation, while a combination of both the cross-reference mechanism and the EMD can yield a significant performance improvement, which again validates the advantages of using the EMD as the metric and the effectiveness of the cross-reference mechanism.
|
| 231 |
+
|
| 232 |
+
Comparison with other $k$ -shot methods. As the EMD distance metric is a paired function for two structures, the first baseline model for $k$ -shot experiment is the nearest neighbour (NN) method that classifies the query images as the category of the nearest support sample. We also test making prediction with each support sample and fuse their logits. We then compare our network with a few $k$ -shot solutions in previous works: 1) Prototype Learning. In [63],
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
Figure 5: Visualization of the optimal matching flows. Given two images (left and right), we plot the best matched patch of each local region in the left image (middle). The weight controls the brightness of the corresponding region. The middle image can also be seen as the reconstruction of the left image using patches from the right one. Our algorithm can effectively establish semantic correspondence between local regions and gives less weights to the background regions.
|
| 236 |
+
|
| 237 |
+
they average the feature embeddings of support images in each class as the prototype and apply the nearest neighbour method for classification. 2) Finetuning a cosine classifier [5]. We test the model performance on the $k$ -shot 5-way tasks under multiple $k$ values, and the results are shown in Fig. 4. Our structured FC layer consistently outperforms baseline models and with the number of support sets increasing, our network shows even more advantages.
|
| 238 |
+
|
| 239 |
+
Visualization of matching flows and weights. It is interesting to visualize the optimal matching flows and node weights in the network inference process. In Fig. 5, we provide some visualization examples. The middle image plots the best matched patch of each local region in the left image, and the weight controls the brightness of the corresponding region. The middle image can also be seen as a reconstructed version of the left image, using the local patches from the right image. As we can see, our algorithm can establish semantic correspondence between local regions, and the background regions in the left image are given small weight, thus contributing less to the overall distance. The visualization of full matching flows and more examples can be found in our supplementary material.
|
| 240 |
+
|
| 241 |
+
# 4.4. Time Complexity.
|
| 242 |
+
|
| 243 |
+
Compared with the baseline models, the training and inference of DeepEMD come with more computation cost, as an LP problem must be solved for each forward process. As is discussed in [1], the main computation lies in the factorization of the KKT matrix as well as back-substitution when using the interior point method to solve the LP problem, which have cubic and quadratic time complexity, respectively. We also tried the OpenCV library for solving the LP problem via a modified simplex algorithm, which is much faster than the QPTH [1] solver which uses the interior point method. Therefore, we can use QPTH for training
|
| 244 |
+
|
| 245 |
+
the network and use OpenCV for validation and the final test.
|
| 246 |
+
|
| 247 |
+
# 4.5. Comparison with the State-of-the-Art
|
| 248 |
+
|
| 249 |
+
Finally, we compare our algorithm with the state-of-the-art methods. We report 1-shot 5way and 5-shot 5-way performance on 4 popular benchmarks: miniImageNet, tieredImageNet, FC100 and CUB. We reproduce the models in some earlier works [5,63,67] with our network backbone and training strategy, and report the highest performance between our results and their reported ones. The results are shown in Table 3. Our algorithm achieves new state-of-the-art performance on all datasets. In particular, our results outperform the state-of-the-art performance by a significant margin on multiple tasks, e.g., 1-shot (%3.78) and 5-shot (3.61%) on the CUB dataset; 5-shot (5.55) on the FC100 dataset.
|
| 250 |
+
|
| 251 |
+
# 5. Conclusion
|
| 252 |
+
|
| 253 |
+
We have proposed a few-shot classification framework that employs the Earth Mover's Distance as the distance metric. The implicit theorem allows our network end-to-end trainable. Our proposed cross-reference mechanism for setting the weights of nodes turns out crucial in the EMD formulation and can effectively minimize the negative impact caused by irrelevant regions. The learnable structured fully connected layer can directly classify dense representations of images in the $k$ -shot settings. Our algorithm achieves new state-of-the-art performance on multiple dataset.
|
| 254 |
+
|
| 255 |
+
# Acknowledgements
|
| 256 |
+
|
| 257 |
+
This research is supported by the National Research Foundation Singapore under its AI Singapore Programme (Award Number: AISG-RP-2018-003) and the MOE Tier-1 research grants: RG126/17 (S) and RG28/18 (S).
|
| 258 |
+
|
| 259 |
+
# References
|
| 260 |
+
|
| 261 |
+
[1] Brandon Amos and J. Zico Kolter. OptNet: Differentiable optimization as a layer in neural networks. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 136-145. PMLR, 2017. 6, 8
|
| 262 |
+
[2] Antreas Antoniou, Harrison Edwards, and Amos Storkey. How to train your maml. In ICLR, 2019. 2
|
| 263 |
+
[3] Shane Barratt. On the differentiability of the solution to convex optimization problems. arXiv preprint arXiv:1804.05098, 2018. 2, 3, 4
|
| 264 |
+
[4] Sergey Bartunov and Dmitry P. Vetrov. Few-shot generative modelling with generative matching networks. In AISTATS, 2018. 3
|
| 265 |
+
[5] Wei-Yu Chen, Yen-Cheng Liu, Zsolt Kira, Yu-Chiang Wang, and Jia-Bin Huang. A closer look at few-shot classification. In ICLR, 2019. 2, 5, 7, 8
|
| 266 |
+
[6] Wen-Hsuan Chu, Yu-Jhe Li, Jing-Cheng Chang, and Yu-Chiang Frank Wang. Spot and learn: A maximum-entropy patch sampler for few-shot image classification. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
|
| 267 |
+
[7] Dorin Comaniciu and Peter Meer. Mean shift: A robust approach toward feature space analysis. IEEE Trans. Pattern Anal. Mach. Intell., 24(5):603-619, May 2002. 6, 7
|
| 268 |
+
[8] Asen L Dontchev and R Tyrrell Rockafellar. Implicit functions and solution mappings. Springer Monographs in Mathematics. Springer, 208, 2009. 2, 3
|
| 269 |
+
[9] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, 2017. 2, 7
|
| 270 |
+
[10] Sebastian Flennerhag, Andrei A Rusu, Razvan Pascanu, Hujun Yin, and Raia Hadsell. Meta-learning with warped gradient descent. arXiv preprint arXiv:1909.00025, 2019. 2
|
| 271 |
+
[11] Luca Franceschi, Paolo Frasconi, Saverio Salzo, Riccardo Grazzi, and Massimilano Pontil. Bilevel programming for hyperparameter optimization and meta-learning. arXiv preprint arXiv:1806.04910, 2018. 2
|
| 272 |
+
[12] Luca Franceschi, Paolo Frasconi, Saverio Salzo, Riccardo Grazzi, and Massimiliano Pontil. Bilevel programming for hyperparameter optimization and meta-learning. In ICML, 2018. 3
|
| 273 |
+
[13] Victor Garcia and Joan Bruna. Few-shot learning with graph neural networks. arXiv preprint arXiv:1711.04043, 2017. 2
|
| 274 |
+
[14] Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In CVPR, 2018. 3
|
| 275 |
+
[15] Spyros Gidaris and Nikos Komodakis. Generating classification weights with gnn denoising autoencoders for few-shot learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2, 7
|
| 276 |
+
[16] 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. 1
|
| 277 |
+
[17] Frank L Hitchcock. The distribution of a product from several sources to numerous localities. Journal of mathematics and physics, 20(1-4):224-230, 1941. 2
|
| 278 |
+
|
| 279 |
+
[18] Muhammad Abdullah Jamal and Guo-Jun Qi. Task agnostic meta-learning for few-shot learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
|
| 280 |
+
[19] Xin Jin and Jiawei Han. K-Means Clustering, pages 563-564. Springer US, Boston, MA, 2010. 6, 7
|
| 281 |
+
[20] Rohit Keshari, Mayank Vatsa, Richa Singh, and Afzel Noore. Learning structure and strength of CNN filters for small sample size training. In CVPR, 2018. 3
|
| 282 |
+
[21] Jongmin Kim, Taesup Kim, Sungwooong Kim, and Chang D. Yoo. Edge-labeling graph neural network for few-shot learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
|
| 283 |
+
[22] Steven G Krantz and Harold R Parks. The implicit function theorem: history, theory, and applications. Springer Science & Business Media, 2012. 2, 3
|
| 284 |
+
[23] Alex Krizhevsky. Learning multiple layers of features from tiny images. University of Toronto, 2009. 6
|
| 285 |
+
[24] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, pages 1097-1105, 2012. 1
|
| 286 |
+
[25] Kwonjoon Lee, Subhransu Maji, Avinash Ravichandran, and Stefano Soatto. Meta-learning with differentiable convex optimization. In CVPR, 2019. 3, 7
|
| 287 |
+
[26] Yoonho Lee and Seungjin Choi. Gradient-based meta-learning with learned layerwise metric and subspace. In ICML, 2018. 2
|
| 288 |
+
[27] Fei-Fei Li, Robert Fergus, and Pietro Perona. One-shot learning of object categories. IEEE Trans. Pattern Anal. Mach. Intell., 28(4):594-611, 2006. 3
|
| 289 |
+
[28] Hongyang Li, David Eigen, Samuel Dodge, Matthew Zeiler, and Xiaogang Wang. Finding task-relevant features for few-shot learning by category traversal. In CVPR, 2019. 3, 7
|
| 290 |
+
[29] Peihua Li. Tensor-sift based earth mover's distance for contour tracking. Journal of mathematical imaging and vision, 46(1):44-65, 2013. 3
|
| 291 |
+
[30] Wenbin Li, Lei Wang, Jinglin Xu, Jing Huo, Yang Gao, and Jiebo Luo. Revisiting local descriptor based image-to-class measure for few-shot learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1, 2, 5, 7
|
| 292 |
+
[31] Xinzhe Li, Qianru Sun, Yaoyao Liu, Qin Zhou, Shibao Zheng, Tat-Seng Chua, and Bernt Schiele. Learning to selftrain for semi-supervised few-shot classification. In Advances in Neural Information Processing Systems, pages 10276-10286, 2019. 2
|
| 293 |
+
[32] Zhenguo Li, Fengwei Zhou, Fei Chen, and Hang Li. Metasgd: Learning to learn quickly for few shot learning. In ICML, 2018. 2
|
| 294 |
+
[33] Yann Lifchitz, Yannis Avrithis, Sylvaine Picard, and Andrei Bursuc. Dense classification and implanting for few-shot learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2, 5, 7
|
| 295 |
+
[34] Weide Liu, Chi Zhang, Guosheng Lin, and Fayao Liu. Crnet: Cross-reference networks for few-shot segmentation, 2020. 3
|
| 296 |
+
|
| 297 |
+
[35] Yanbin Liu, Juho Lee, Minseop Park, Saehoon Kim, Eunho Yang, Sung Ju Hwang, and Yi Yang. Learning to propagate labels: Transductive propagation network for few-shot learning. arXiv preprint arXiv:1805.10002, 2018. 7
|
| 298 |
+
[36] Jelena Luketina, Tapani Raiko, Mathias Berglund, and Klaus Greff. Scalable gradient-based tuning of continuous regularization hyperparameters. In ICML, 2016. 2
|
| 299 |
+
[37] Akshay Mehrotra and Ambedkar Dukkipati. Generative adversarial residual pairwise networks for one shot learning. arXiv, 1703.08033, 2017. 3
|
| 300 |
+
[38] Luke Metz, Niru Maheswaranathan, Brian Cheung, and Jascha Sohl-Dickstein. Meta-learning update rules for unsupervised representation learning. In ICLR, 2019. 2
|
| 301 |
+
[39] Nikhil Mishra, Mostafa Rohaninejad, Xi Chen, and Pieter Abbeel. Snail: A simple neural attentive meta-learner. In ICLR, 2018. 3
|
| 302 |
+
[40] Tsendsuren Munkhdalai and Hong Yu. Meta networks. In ICML, 2017. 2
|
| 303 |
+
[41] Tsendsumen Munkhdalai, Xingdi Yuan, Soroush Mehri, and Adam Trischler. Rapid adaptation with conditionally shifted neurons. In ICML, 2018. 2
|
| 304 |
+
[42] Devang K Naik and RJ Mammone. Meta-neural networks that learn by learning. In IJCNN, 1992. 2
|
| 305 |
+
[43] Boris N. Oreshkin, Pau Rodríguez, and Alexandre Lacoste. TADAM: task dependent adaptive metric for improved few-shot learning. In NeurIPS, 2018. 1, 2, 6, 7
|
| 306 |
+
[44] Eunbyung Park and Junier B Oliva. Meta-curvature. In Advances in Neural Information Processing Systems, pages 3309-3319, 2019. 2
|
| 307 |
+
[45] Hang Qi, Matthew Brown, and David G Lowe. Low-shot learning with imprinted weights. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5822-5830, 2018. 3
|
| 308 |
+
[46] Siyuan Qiao, Chenxi Liu, Wei Shen, and Alan L. Yuille. Few-shot image recognition by predicting parameters from activations. In CVPR, 2018. 2, 7
|
| 309 |
+
[47] Aravind Rajeswaran, Chelsea Finn, Sham M Kakade, and Sergey Levine. Meta-learning with implicit gradients. In Advances in Neural Information Processing Systems, pages 113–124, 2019. 2
|
| 310 |
+
[48] Avinash Ravichandran, Rahul Bhotika, and Stefano Soatto. Few-shot learning with embedded class models and shot-free meta training. arXiv preprint arXiv:1905.04398, 2019. 7
|
| 311 |
+
[49] Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B. Tenenbaum, Hugo Larochelle, and Richard S. Zemel. Meta-learning for semi-supervised few-shot classification. In ICLR, 2018. 3, 6
|
| 312 |
+
[50] Yossi Rubner, Carlo Tomasi, and Leonidas J Guibas. The earth mover's distance as a metric for image retrieval. International journal of computer vision, 40(2):99-121, 2000. 2, 4
|
| 313 |
+
[51] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael S. Bernstein, Alexander C. Berg, and Fei-Fei Li. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015. 6
|
| 314 |
+
|
| 315 |
+
[52] Andrei A. Rusu, Dushyant Rao, Jakub Sygnowski, Oriol Vinyals, Razvan Pascanu, Simon Osindero, and Raia Hadsell. Meta-learning with latent embedding optimization. In ICLR, 2019. 7
|
| 316 |
+
[53] Tim Salimans and Durk P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems, pages 901-909, 2016. 5
|
| 317 |
+
[54] Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy P. Lillicrap. Meta-learning with memory-augmented neural networks. In ICML, 2016. 2
|
| 318 |
+
[55] Edgar Schonfeld, Sayna Ebrahimi, Samarth Sinha, Trevor Darrell, and Zeynep Akata. Generalized zero- and few-shot learning via aligned variational autoencoders. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
|
| 319 |
+
[56] Samuel Schulter, Paul Vernaza, Wongun Choi, and Manmohan Chandraker. Deep network flow for multi-object tracking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6951-6960, 2017. 3
|
| 320 |
+
[57] Eli Schwartz, Leonid Karlinsky, Joseph Shtok, Sivan Harary, Mattias Marder, Rogério Schmidt Feris, Abhishek Kumar, Raja Giryes, and Alexander M. Bronstein. Delta-encoder: an effective sample synthesis method for few-shot object recognition. In NeurIPS, 2018. 3
|
| 321 |
+
[58] Tyler R. Scott, Karl Ridgeway, and Michael C. Mozer. Adapted deep embeddings: A synthesis of methods for k-shot inductive transfer learning. In NeurIPS, 2018. 2
|
| 322 |
+
[59] Evan Shelhamer, Jonathan Long, and Trevor Darrell. Fully convolutional networks for semantic segmentation. IEEE Trans. Pattern Anal. Mach. Intell., 39(4):640-651, 2017. 3
|
| 323 |
+
[60] Wei Shen, Ziqiang Shi, and Jun Sun. Learning from adversarial features for few-shot classification. arXiv preprint arXiv:1903.10225, 2019. 3
|
| 324 |
+
[61] Pranav Shyam, Shubham Gupta, and Ambedkar Dukkipati. Attentive recurrent comparators. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 3173-3181. JMLR.org, 2017. 3
|
| 325 |
+
[62] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 1
|
| 326 |
+
[63] Jake Snell, Kevin Swersky, and Richard S. Zemel. Prototypical networks for few-shot learning. In NIPS, 2017. 1, 2, 5, 6, 7, 8
|
| 327 |
+
[64] Qianru Sun, Yaoyao Liu, Tat-Seng Chua, and Bernt Schiele. Meta-transfer learning for few-shot learning. In CVPR, 2019. 2, 7
|
| 328 |
+
[65] Xin Sun, Zhenning Yang, Chi Zhang, Guohao Peng, and Keck-Voon Ling. Conditional gaussian distribution learning for open set recognition. arXiv preprint arXiv:2003.08823, 2020. 3
|
| 329 |
+
[66] Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip H. S. Torr, and Timothy M. Hospedales. Learning to compare: Relation network for few-shot learning. In CVPR, 2018. 1, 2, 7
|
| 330 |
+
[67] Oriol Vinyals, Charles Blundell, Tim Lillicrap, Koray Kavukcuoglu, and Daan Wierstra. Matching networks for one shot learning. In NIPS, 2016. 1, 2, 5, 6, 7, 8
|
| 331 |
+
|
| 332 |
+
[68] Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The caltech-ucsd birds-200-2011 dataset. 2011. 6
|
| 333 |
+
[69] Yu-Xiong Wang, Ross B. Girshick, Martial Hebert, and Bharath Hariharan. Low-shot learning from imaginary data. In CVPR, 2018. 3
|
| 334 |
+
[70] Davis Wertheimer and Bharath Hariharan. Few-shot learning with localization in realistic settings. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 3
|
| 335 |
+
[71] Shipeng Yan, Songyang Zhang, and Xuming He. A dual attention network with semantic embedding for few-shot learning. In AAAI, 2019. 3
|
| 336 |
+
[72] Ze Yang, Yali Wang, Xianyu Chen, Jianzhuang Liu, and Yu Qiao. Context-transformer: Tackling object confusion for few-shot detection, 2020. 3
|
| 337 |
+
[73] Han-Jia Ye, Hexiang Hu, De-Chuan Zhan, and Fei Sha. Learning embedding adaptation for few-shot learning. arXiv, 1812.03664, 2018. 1, 2, 6, 7
|
| 338 |
+
[74] Chi Zhang, Guosheng Lin, Fayao Liu, Jiushuang Guo, Qingyao Wu, and Rui Yao. Pyramid graph networks with connection attentions for region-based one-shot semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pages 9587-9595, 2019. 3
|
| 339 |
+
[75] Chi Zhang, Guosheng Lin, Fayao Liu, Rui Yao, and Chunhua Shen. Canet: Class-agnostic segmentation networks with iterative refinement and attentive few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5217–5226, 2019. 3
|
| 340 |
+
[76] Hongguang Zhang, Jing Zhang, and Piotr Koniusz. Few-shot learning via saliency-guided hallucination of samples. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 3
|
| 341 |
+
[77] Ruixiang Zhang, Tong Che, Zoubin Grahamramani, Yoshua Bengio, and Yangqiu Song. Metagan: An adversarial approach to few-shot learning. In NeurIPS, 2018. 3
|
| 342 |
+
[78] Qi Zhao, Zhi Yang, and Hai Tao. Differential earth mover's distance with its applications to visual tracking. IEEE Transactions on Pattern Analysis and Machine Intelligence, 32(2):274-287, 2008. 3
|
| 343 |
+
[79] Fengwei Zhou, Bin Wu, and Zhenguo Li. Deep meta-learning: Learning to learn in the concept space. arXiv, 1802.03596, 2018.2, 7
|
deepemdfewshotimageclassificationwithdifferentiableearthmoversdistanceandstructuredclassifiers/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa3b70b450a5a4ab39db57a0d17e6ea1d35a653fe725b6a9b9d55d6589f77d6d
|
| 3 |
+
size 553386
|
deepemdfewshotimageclassificationwithdifferentiableearthmoversdistanceandstructuredclassifiers/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3778de537c5ffc73a1c4e04c96ea9db4ed5a3709d7be843cea55e19271255a2a
|
| 3 |
+
size 410723
|
deeperforensics10alargescaledatasetforrealworldfaceforgerydetection/33e379f1-c85b-4b39-9167-2e6e5cff38c5_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed29618f1ad5a8afcc35d39333bfe796a76668df0a43f018492c0ec808f47fd1
|
| 3 |
+
size 78839
|
deeperforensics10alargescaledatasetforrealworldfaceforgerydetection/33e379f1-c85b-4b39-9167-2e6e5cff38c5_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:871aac6e514480d97efead7cb833cc1a8c4f00e9ebc1c3233872b5ba7f94d7ba
|
| 3 |
+
size 96381
|
deeperforensics10alargescaledatasetforrealworldfaceforgerydetection/33e379f1-c85b-4b39-9167-2e6e5cff38c5_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12344d6ca64e884634f9f49f4ba73f0da99f55d81766ec2aadcd84cda5b960c5
|
| 3 |
+
size 1085175
|
deeperforensics10alargescaledatasetforrealworldfaceforgerydetection/full.md
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DeeperForensics-1.0: A Large-Scale Dataset for Real-World Face Forgery Detection
|
| 2 |
+
|
| 3 |
+
Liming Jiang $^{1}$ Ren Li $^{2}$ Wayne Wu $^{1,2}$ Chen Qian $^{2}$ Chen Change Loy $^{1\dagger}$ $^{1}$ Nanyang Technological University $^{2}$ SenseTime Research
|
| 4 |
+
|
| 5 |
+
liming002@ntu.edu.sg tomo.blade.lee@hotmail.com
|
| 6 |
+
|
| 7 |
+
wuwenyan@sensetime.com qianchen@sensetime.com ccloy@ntu.edu.sg
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
We present our on-going effort of constructing a large-scale benchmark for face forgery detection. The first version of this benchmark, DeeperForensics-1.0, represents the largest face forgery detection dataset by far, with 60,000 videos constituted by a total of 17.6 million frames, 10 times larger than existing datasets of the same kind. Extensive real-world perturbations are applied to obtain a more challenging benchmark of larger scale and higher diversity. All source videos in DeeperForensics-1.0 are carefully collected, and fake videos are generated by a newly proposed end-to-end face swapping framework. The quality of generated videos outperforms those in existing datasets, validated by user studies. The benchmark features a hidden test set, which contains manipulated videos achieving high deceptive scores in human evaluations. We further contribute a comprehensive study that evaluates five representative detection baselines and make a thorough analysis of different settings. $^{1,2}$
|
| 12 |
+
|
| 13 |
+
# 1. Introduction
|
| 14 |
+
|
| 15 |
+
Face swapping has become an emerging topic in computer vision and graphics. Indeed, many works [1, 2, 4] on automatic face swapping have been proposed in recent years. These efforts have circumvented the cumbersome and tedious manual face editing processes, hence expediting the advancement in face editing. At the same time, such enabling technology has sparked legitimate concerns, particularly on its potential for being misused and abused. The popularization of "Deepfakes" on the internet has further set off alarm bells among the general public and authorities, in view of the conceivable perilous implications. Accordingly, there is a dire need for countermeasures to be in place promptly, particularly innovations that can effectively detect videos that have been manipulated.
|
| 16 |
+
|
| 17 |
+
Working towards forgery detection, various groups have
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Collection
|
| 21 |
+
Figure 1: DeeperForensics-1.0 dataset is a new large-scale dataset for real-world face forgery detection.
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Manipulation
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
Perturbation
|
| 28 |
+
|
| 29 |
+
contributed datasets (e.g., FaceForensics++ [33], Deep Fake Detection [9] and DFDC [14]) comprising manipulated video footages. The availability of these datasets has undoubtedly provided essential avenues for research into forgery detection. Nonetheless, the aforementioned datasets suffer several drawbacks. Videos in these datasets are either of a small number, of low quality, or overly artificial. Understandably, these datasets are inadequate to train a good model for effective forgery detection in real-world scenarios. This is particularly true when current advances in human face editing are able to produce extremely realistic videos, rendering forgery detection a highly challenging task. On another note, we observe high similarity between training and test videos, in terms of their distribution, in certain works [26, 33]. Their actual efficacy in detecting real-world face forgery cases, which are much more variable and unpredictable, remains to be further elucidated.
|
| 30 |
+
|
| 31 |
+
We believe that forgery detection models can only be enhanced when trained with a dataset that is exhaustive enough to encompass as many potential real-world variations as possible. To this end, we propose a large-scale dataset named DeeperForensics-1.0 consisting of 60,000 videos with a total of 17.6 million frames for real-world face forgery detection. The main steps of our dataset construction are shown in Figure 1. We set forth three yardsticks when constructing this dataset: 1) Quality. The dataset shall contain videos more realistic and much closer to the distribution of real-world detection scenarios. (Section 3.1 and 3.2) 2) Scale. The dataset shall be made up of a large-scale video sets. (Section 3.3) 3) Diversity. There shall be sufficient variations in the video footages (e.g., compression, blurry, transmission errors) to match those that may be en
|
| 32 |
+
|
| 33 |
+
Table 1: The most relevant datasets compared to our dataset. DeeperForensics-1.0 is an order of magnitude larger in scale than existing datasets w.r.t. both real and fake parts. We build a professional indoor environment to better control the important attributes of the collected data. 100 paid actors give consents to the use and manipulation of their faces by signing a formal agreement. We employ seven types of perturbations at five intensity levels, leading to 35 perturbations in total. The video may be subjected to a mixture of more than one perturbation. In contrast to prior works, we also introduce a new end-to-end high-fidelity face swapping method.
|
| 34 |
+
|
| 35 |
+
<table><tr><td>Dataset</td><td>Total Videos</td><td>Ratio (real : fake)</td><td>Controlled Capture</td><td>Consented Actors</td><td>Perturbations (total number)</td><td>Perturbations (mixture)</td><td>New Method</td></tr><tr><td>UADFV [41]</td><td>98</td><td>1 : 1</td><td>×</td><td>-</td><td>-</td><td>×</td><td>×</td></tr><tr><td>DeepFake-TIMIT [23]</td><td>620</td><td>only fake</td><td>×</td><td>-</td><td>-</td><td>×</td><td>×</td></tr><tr><td>Celeb-DF [26]</td><td>1203</td><td>1 : 1.95</td><td>×</td><td>-</td><td>-</td><td>×</td><td>×</td></tr><tr><td>FaceForensics++ [33]</td><td>5000</td><td>1 : 4</td><td>×</td><td>-</td><td>2</td><td>×</td><td>×</td></tr><tr><td>Deep Fake Detection [9] (joins FaceForensics++)</td><td>3431</td><td>1 : 8.5</td><td>×</td><td>28</td><td>-</td><td>×</td><td>×</td></tr><tr><td>DFDC Preview Dataset [14]</td><td>5214</td><td>1 : 3.6</td><td>×</td><td>66</td><td>3</td><td>×</td><td>×</td></tr><tr><td>DeeperForensics-1.0 (Ours)</td><td>60000</td><td>5 : 1</td><td>✓</td><td>100</td><td>35</td><td>✓</td><td>✓</td></tr></table>
|
| 36 |
+
|
| 37 |
+
countered in the real world (Section 3.3).
|
| 38 |
+
|
| 39 |
+
The primary challenge in the preparation of this dataset is the lack of good-quality video footages. Specifically, most publicly available videos are shot under an unconstrained environment resulting in large variations, including but not limited to suboptimal illumination, large occlusion of the target faces, and extreme head poses. Importantly, the lack of official informed consents from the video subjects precludes the use of these videos, even for non-commercial purposes. On the other hand, while some videos of manipulated faces are deceptively real, a larger number remains easily distinguishable by human eyes. The latter is often caused by model negligence towards appearance variations or temporal differences, leading to preposterous and incongruous results.
|
| 40 |
+
|
| 41 |
+
We approach the aforementioned challenge from two perspectives. 1) Collecting fresh face data from 100 individuals with informed consents (Section 3.1). 2) Devising a novel method, DeepFake Variational Auto-Encoder (DFVAE), to enhance existing videos (Section 3.2). In addition, we introduce diversity into the video footages through deliberate addition of distortions and perturbations, simulating real-world scenarios. We collate the newly collected data and the DF-VAE-modified videos into the DeeperForensics-1.0 dataset, with the aim of further expanding it gradually over time. We benchmark five representative open-source forgery detection methods using our dataset as well as a hidden test set containing manipulated videos that achieve high deceptive ranking in user studies.
|
| 42 |
+
|
| 43 |
+
We summarize our contributions as follows: 1) We propose a new dataset, DeeperForensics-1.0 that is larger in scale than existing ones, of high quality and rich diversity. To improve its quality, we introduce a carefully designed data collection and a novel framework, DF-VAE, that effectively mitigate obvious fabricated effects of existing manipulated videos. 2) We benchmark results of existing representative forgery detection methods on our dataset, offering insights into the current status and future strategy in face forgery detection.
|
| 44 |
+
|
| 45 |
+
# 2. Related Work
|
| 46 |
+
|
| 47 |
+
Face forgery detection datasets. Building a dataset for forgery detection requires a huge amount of effort on data collection and manipulation. Early forgery detection datasets comprise images captured under highly restrictive conditions, e.g., MICC_F2000 [7], Wild Web dataset [42], Realistic Tampering dataset [24].
|
| 48 |
+
|
| 49 |
+
Owing to the urgency in video-based face forgery detection, some prominent groups have devoted their efforts to create face forensics video datasets (see Table 1). UADFV [41] contains 98 videos, i.e., 49 real videos from YouTube and 49 fake ones generated by FakeAPP [5]. DeepFake-TIMIT [23] manually selects 16 similar looking pairs of people from VidTIMIT [34] database. For each of the 32 subjects, they generate about 10 videos using low-quality and high-quality versions of faceswap-GAN [4], resulting in a total of 620 fake videos. Celeb-DF [26] includes 408 YouTube videos, mostly of celebrities, from which 795 fake videos are synthesized. FaceForensics++ [33] is the first large-scale face forensic dataset that consists of 4,000 fake videos manipulated by four methods (i.e., DeepFakes [2], Face2Face [36], FaceSwap [3], NeuralTextures [35]), and 1,000 real videos from YouTube. Afterwards, Google joins FaceForensics++ and contributes Deep Fake Detection [9] dataset with 3,431 real and fake videos from 28 actors. Recently, Facebook invites 66 individuals and builds the DFDC preview dataset [14], which includes 5,214 original and tampered videos with three types of augmentations.
|
| 50 |
+
|
| 51 |
+
In comparison, we invite 100 paid actors and collect high-resolution $(1920\times 1080)$ source data with various poses, expressions, and illuminations. 3DMM blendshapes [10] are taken as reference to supplement some exaggerated expressions. We get consents from all the actors for using and manipulating their faces. In contrast to prior works, we also propose a new end-to-end face swapping method (i.e., DF-VAE) and systematically apply seven types of perturbations to the fake videos at five intensity levels. The mixture of distortions to a single video makes our dataset better imitate real-world scenarios. Ultimately, we construct
|
| 52 |
+
|
| 53 |
+
DeeperForensics-1.0 dataset, which contains 60,000 videos with 17.6 million frames in total, including 50,000 original collected videos and 10,000 manipulated videos.
|
| 54 |
+
|
| 55 |
+
Face forgery detection benchmarks. A new prominent benchmark, FaceForensics Benchmark [33], for facial manipulation detection has been proposed recently. The benchmark includes six image-level face forgery detection baselines [6, 8, 12, 13, 15, 32]. Although FaceForensics Benchmark adds distortions to the videos by converting them into different compression rates, a deeper exploration of more perturbation types and their mixture is missing. Celeb-DF [26] also provides a face forgery detection benchmark including seven methods [6, 12, 25, 28, 30, 41, 43] trained and tested on different datasets. In aforementioned benchmarks, the test set usually shares a similar distribution with the training set. Such an assumption inherently introduces biases and renders these methods impractical for face forgery detection in real-world settings with much more diverse and unknown fake videos.
|
| 56 |
+
|
| 57 |
+
In our benchmark, we introduce a challenging hidden test set with manipulated videos achieving high deceptive scores in user studies, to better simulate real-world distribution. Various perturbations are analyzed to make our benchmark more comprehensive. In addition, we mainly exploit video-level forgery detection baselines [11, 16, 17, 37, 38]. Temporal information – a significant cue for video forgery detection besides single-frame quality – has been considered. We will elaborate our benchmark in Section 4.
|
| 58 |
+
|
| 59 |
+
# 3. A New Large-Scale Face Forensics Dataset
|
| 60 |
+
|
| 61 |
+
The main contribution of this paper is a new large-scale dataset for real-world face forgery detection, DeeperForensics-1.0, which provides an alternative to existing databases. To construct a dataset more suitable for real-world face forgery detection, we design this dataset with careful consideration of quality, scale, and diversity. In Section 3.1 and 3.2, we will discuss the details of data collection and methodology (i.e., DF-VAE) to improve quality. In Section 3.3, we will show how to ensure large scale and high diversity of DeeperForensics-1.0.
|
| 62 |
+
|
| 63 |
+
# 3.1. Data Collection
|
| 64 |
+
|
| 65 |
+
Source data is the first factor that highly affects quality. Taking results in Figure 2 as an example, the source data collection increases the robustness of our face swapping method to extreme poses, since videos on the internet usually have limited head pose variations.
|
| 66 |
+
|
| 67 |
+
We refer to the identity in the driving video as the "target" face and the identity of the face that is swapped onto the driving video as the "source" face. Different from previous works, we find that the source faces play a much more critical role than the target faces in building a high-quality dataset. Specifically, the expressions, poses, and lighting conditions of source faces should be much richer in order to
|
| 68 |
+
|
| 69 |
+

|
| 70 |
+
YouTube Source
|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
Target
|
| 74 |
+
|
| 75 |
+

|
| 76 |
+
|
| 77 |
+

|
| 78 |
+
Swapped
|
| 79 |
+
|
| 80 |
+

|
| 81 |
+
Collected Source
|
| 82 |
+
|
| 83 |
+

|
| 84 |
+
Target
|
| 85 |
+
|
| 86 |
+

|
| 87 |
+
|
| 88 |
+

|
| 89 |
+
Swapped
|
| 90 |
+
|
| 91 |
+

|
| 92 |
+
Figure 2: Comparison of using only YouTube video and the collected video as source data, with the same method and setting.
|
| 93 |
+
|
| 94 |
+

|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
Figure 3: Diversity in identities, poses, expressions, and illuminations in our collected source data.
|
| 100 |
+
|
| 101 |
+
perform robust face swapping. Hence, our data collection mainly focuses on source face videos. Figure 3 shows the diversity in different attributes of our data collection.
|
| 102 |
+
|
| 103 |
+
We invite 100 paid actors to record the source videos. Similar to [9, 14], we obtain consents from all the actors for using and manipulating their faces to avoid the portrait right issues. The participants are carefully selected to ensure variability in genders, ages, skin colors, and nationalities. We maintain a roughly equal proportion w.r.t. each of the attributes above. In particular, we invite 53 males and 47 females from 26 countries. Their ages range from 20 to 45 years old to match the most common age group appearing on real-world videos. The actors have four typical skin tones: white, black, yellow, brown, with ratio 1:1:1:1. All faces are clean without glasses or decorations.
|
| 104 |
+
|
| 105 |
+
Different from previous data collection in the wild (see Table 1), we build a professional indoor environment for a more controllable data collection. We only use the facial
|
| 106 |
+
|
| 107 |
+

|
| 108 |
+
Figure 4: Examples of 3DMM blendshapes in our data collection.
|
| 109 |
+
|
| 110 |
+

|
| 111 |
+
Figure 5: Examples of style mismatch problems in prominent face forensics datasets.
|
| 112 |
+
|
| 113 |
+
regions (detected and cropped by LAB [40]) of the source data, so we can neglect the background. We set seven HD cameras from different angles: front, left, left-front, right, right-front, oblique-above, oblique-below. The resolution of our recorded videos is high $(1920 \times 1080)$ . We train the actors in advance to keep the collection process smooth. We request the actors to turn their heads and speak naturally with eight expressions: neutral, angry, happy, sad, surprise, contempt, disgust, fear. The head poses range from $-90^{\circ}$ to $+90^{\circ}$ . Furthermore, the actors are asked to perform 53 expressions defined in 3DMM blendshapes [10] (see Figure 4) to supplement some extremely exaggerated expressions. When performing 3DMM blendshapes, the actors also speak naturally to avoid excessive frames that show a closed mouth. In addition to expressions and poses, we systematically set nine lighting conditions from various directions: uniform, left, top-left, bottom-left, right, top-right, bottom-right, top, bottom. The actors are only asked to turn their heads under uniform illumination, so the lighting remains unchanged on specific facial regions to avoid many duplicated data samples recorded by the cameras set at different angles. In the end, our collected data contain over 50,000 videos with a total of 12.6 million frames - an order of magnitude more than existing datasets.
|
| 114 |
+
|
| 115 |
+
# 3.2. DeepFake Variational Auto-Encoder
|
| 116 |
+
|
| 117 |
+
To tackle low visual quality problems of previous works, we consider three key requirements in formulating a high-fidelity face swapping method: 1) It should be general and scalable for us to generate large number of videos with high quality. 2) The problem of face style mismatch caused by appearance variations need to be addressed. Some failure
|
| 118 |
+
|
| 119 |
+
cases of existing methods are shown in Figure 5. 3) Temporal continuity of generated videos should be considered.
|
| 120 |
+
|
| 121 |
+
Based on the aforementioned requirements, we propose DeepFake Variational Auto-Encoder (DF-VAE), a novel learning-based face swapping framework. DF-VAE consists of three main parts, namely a structure extraction module, a disentangled module, and a fusion module. We will give a brief and intuitive introduction of the DF-VAE framework below. Please refer to the supplementary material for detailed derivations and results.
|
| 122 |
+
|
| 123 |
+
Disentanglement of structure and appearance. The first step of our method is face reenactment - animating the source face with similar expression as the target face, without any paired data. Face swapping is considered as a subsequent step of face reenactment that performs blending between the reenacted face and the target background. For robust and scalable face reenactment, we should cleanly disentangle structure (i.e., expression and pose) and appearance representation (i.e., texture, skin color, etc.) of a face. This disentanglement is rather difficult because structure and appearance representation are far from being independent.
|
| 124 |
+
|
| 125 |
+
The blue arrows in Figure 6 show the reconstruction procedure of the source face $x_{t}$ . Instead of feeding a single source face $x_{t}$ , we sample another source face $x^{\prime}$ to construct unpaired data in the source domain. To make the structure representation more evident, we use the stacked hourglass networks [29] to extract landmarks of $x_{t}$ in the structure extraction module and get the heatmap $\hat{x}_t$ . Then we feed the heatmap $\hat{x}_t$ to the Structure Encoder $E_{\alpha}$ , and $x^{\prime}$ to the Appearance Encoder $E_{\beta}$ . We concatenate the latent representations (small cubes in red and green) and feed it to the Decoder $D_{\gamma}$ . Finally, we get the reconstructed face $\tilde{x}_{t}$ , i.e., marginal log-likelihood of $x_{t}$ . In the target face domain, the reconstruction procedure is the same, as shown by orange arrows.
|
| 126 |
+
|
| 127 |
+
During training, the network learns structure and appearance information in both the source and the target domains. Exploiting the reparameterization trick [22], the non-differentiable operation of sampling can be made differentiable by an auxiliary variable with independent marginal. The approximate posterior is estimated by the separated encoders $E_{\alpha}$ and $E_{\beta}$ in an end-to-end training process by standard gradient descent. It is noteworthy that even if both $y_{t}$ and $x'$ belong to arbitrary identities, our effective disentangled module is capable of learning meaningful structure and appearance information of each identity.
|
| 128 |
+
|
| 129 |
+
During inference, we concatenate the appearance prior of $x'$ and the structure prior of $y_t$ (small cubes in red and orange) in the latent space. The reconstructed face $d_t$ shares the same structure with $y_t$ and keeps the appearance of $x'$ . Our framework allows concatenations of structure and appearance latent codes extracted from arbitrary identities in inference and permits many-to-many face reenactment.
|
| 130 |
+
|
| 131 |
+

|
| 132 |
+
Figure 6: The main framework of DeepFake Variational Auto-Encoder. In training, we reconstruct the source and target faces in blue and orange arrows, respectively, by extracting landmarks and constructing an unpaired sample as the condition. Optical flow differences are minimized after reconstruction to improve temporal continuity. In inference, we swap the latent codes and get the reenacted face in green arrows. Subsequent MAdaIN module fuses the reenacted face and the original background resulting in the swapped face.
|
| 133 |
+
|
| 134 |
+
In summary, DF-VAE is a new conditional variational auto-encoder [21] with high robustness and scalability. It conditions on two posteriors in different domains. In the disentangled module, the separated design of two encoders $E_{\alpha}$ and $E_{\beta}$ , the explicit structure heatmap, and the unpaired data construction jointly force $E_{\alpha}$ to learn structure information and $E_{\beta}$ to learn appearance information.
|
| 135 |
+
|
| 136 |
+
Style matching and fusion. To fix the obvious style mismatch problems as shown in Figure 5, we introduce a masked adaptive instance normalization (MAdaIN) module. We place a typical AdaIN [18] network after the reenacted face $d_{t}$ . In the face swapping scenario, we only need to adjust the style of the face area and use the original background. Therefore, we use a mask $m_{t}$ to guide AdaIN [18] network to focus on style matching of the face area. To avoid boundary artifacts, we apply Gaussian Blur to $m_{t}$ and get the blurred mask $m_{t}^{b}$ .
|
| 137 |
+
|
| 138 |
+
In our face swapping context, $d_{t}$ is the content input of MAdaIN, $y_{t}$ is the style input. MAdaIN adaptively computes the affine parameters from face area of the style input:
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
\mathrm {M A d a I N} (\mathrm {c}, \mathrm {s}) = \sigma (\mathrm {s}) \left(\frac {\mathrm {c} - \mu (\mathrm {c})}{\sigma (\mathrm {c})}\right) + \mu (\mathrm {s}), \tag {1}
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
where $c = m_t^b \cdot d_t$ , $s = m_t^b \cdot y_t$ . With the very low-cost MAdaIN module, we reconstruct $d_t$ again by Decoder $D_{\delta}$ . The blurred mask $m_t^b$ is used again to fuse the reconstructed image with the background of $y_t$ . At last, we get the swapped face $\overline{d}_t$ . Figure 7 shows the effectiveness of MAdaIN module for style matching and fusion.
|
| 145 |
+
|
| 146 |
+
The MAdaIN module is jointly trained with the disentangled module in an end-to-end manner. Thus, by a single
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Raw Video
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
w/o MAdalN
|
| 153 |
+
|
| 154 |
+

|
| 155 |
+
w/ MAdain
|
| 156 |
+
Figure 7: Comparison of the swapped face styles without or with MAdaIN module.
|
| 157 |
+
|
| 158 |
+
model, DF-VAE can perform many-to-many face swapping with obvious reduction of style mismatch and facial boundary artifacts (see supplementary material). Even if there are multiple identities in both the source domain and the target domain, the quality of face swapping does not degrade.
|
| 159 |
+
|
| 160 |
+
Temporal consistency constraint. Temporal discontinuity of fake videos leads to obvious flickering of the face area, making them very easy to be spotted by forgery detection methods and human eyes. To improve temporal continuity, we let the disentangled module to learn temporal information of both the source face and the target face.
|
| 161 |
+
|
| 162 |
+
For simplification, we make a Markov assumption that the generation of the frame at time $t$ sequentially depends on its previous $P$ frames $\mathbf{x}_{(t - p):(t - 1)}$ . We set $P = 1$ to balance quality improvement and training time.
|
| 163 |
+
|
| 164 |
+
To build the relationship between the current frame and previous ones, we further make an assumption that the optical flows should remain unchanged after reconstruction. We use FlowNet 2.0 [19] to estimate the optical flow $\tilde{x}_f$ w.r.t. $\tilde{x}_t$ and $x_{t - 1}$ $x_{f}$ w.r.t. $x_{t}$ and $x_{t - 1}$ . Since face swapping is sensitive to minor facial details that can be greatly affected
|
| 165 |
+
|
| 166 |
+
Table 2: Seven types of distortions in DeeperForensics-1.0.
|
| 167 |
+
|
| 168 |
+
<table><tr><td>No.</td><td>Distortion Type</td></tr><tr><td>1</td><td>Change of color saturation</td></tr><tr><td>2</td><td>Local block-wise distortion</td></tr><tr><td>3</td><td>Change of color contrast</td></tr><tr><td>4</td><td>Gaussian blur</td></tr><tr><td>5</td><td>White Gaussian noise in color components</td></tr><tr><td>6</td><td>JPEG compression</td></tr><tr><td>7</td><td>Change of video constant rate factor</td></tr></table>
|
| 169 |
+
|
| 170 |
+
by flow estimation, we do not warp $x_{t-1}$ by the estimated flow like [39]. Instead, we minimize the difference between $\tilde{x}_f$ and $x_f$ to improve temporal continuity while keeping facial detail generation stable. To this end, we propose a new temporal consistency constraint, which can be written as:
|
| 171 |
+
|
| 172 |
+
$$
|
| 173 |
+
L _ {\text {t e m p o r a l}} = \frac {1}{C H W} \| \tilde {x} _ {f} - x _ {f} \| _ {1}, \tag {2}
|
| 174 |
+
$$
|
| 175 |
+
|
| 176 |
+
where $C = 2$ for a common form of optical flow.
|
| 177 |
+
|
| 178 |
+
We only discuss the temporal continuity w.r.t. the source face because the case of the target face is the same. If multiple identities exist in one domain, temporal information of all these identities can be learned in an end-to-end manner.
|
| 179 |
+
|
| 180 |
+
# 3.3. Scale and Diversity
|
| 181 |
+
|
| 182 |
+
Our extensive data collection and the proposed DF-VAE method are designed to improve the quality of manipulated videos in DeeperForensics-1.0 dataset. In this section, we will mainly discuss the scale and diversity aspects. We provide 10,000 manipulated videos with 5 million frames. It is an order of magnitude more than the previous datasets. We take 1,000 refined YouTube videos collected by FaceForensics++ [33] as the target videos. Each face of our collected 100 identities is swapped onto 10 target videos, thus 1,000 raw manipulated videos are generated directly by DF-VAE in an end-to-end process. Thanks to the scalability and multimodality of DF-VAE, the time overhead of model training and data generation is reduced to $1/5$ compared to the common Deepfakes methods, with no degradation in quality. Thus, a larger-scale dataset construction is possible.
|
| 183 |
+
|
| 184 |
+
To ensure diversity, we apply various perturbations to better simulate videos in real scenes. Specifically, as shown in Table 2, seven types of distortions defined in Image Quality Assessment (IQA) [27, 31] are included. Each of these distortions is divided into five intensity levels. We apply random-type distortions to the 1,000 raw manipulated videos at five different intensity levels, producing a total of 5,000 manipulated videos. Besides, an additional of 1,000 robust manipulated videos are generated by adding random-type, random-level distortions to the 1,000 raw manipulated videos. Moreover, in contrast to all the previous datasets, each sample of another 3,000 manipulated videos in DeeperForensics-1.0 is subjected to a mixture of more than one distortion. The variability of perturbations improves the diversity of DeeperForensics-1.0 to better imitate
|
| 185 |
+
|
| 186 |
+
Table 3: The percentage of user study ratings for UADFV, DeepFake-TIMIT, Celeb-DF, FaceForensics++, Deep Fake Detection, DFDC, and DeeperForensics-1.0 dataset. A higher score means the users think the videos are more realistic.
|
| 187 |
+
|
| 188 |
+
<table><tr><td>Dataset</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>“real”</td></tr><tr><td>UADFV [41]</td><td>29.2</td><td>36.0</td><td>20.7</td><td>8.9</td><td>5.2</td><td>14.1%</td></tr><tr><td>DeepFake-TIMIT [23]</td><td>31.4</td><td>31.4</td><td>24.8</td><td>9.6</td><td>2.7</td><td>12.3%</td></tr><tr><td>Celeb-DF [26]</td><td>5.6</td><td>14.8</td><td>18.6</td><td>24.2</td><td>36.9</td><td>61.0%</td></tr><tr><td>FaceForensics++ [33]</td><td>46.8</td><td>31.4</td><td>13.4</td><td>4.4</td><td>4.0</td><td>8.4%</td></tr><tr><td>Deep Fake Detection [9]</td><td>26.0</td><td>28.0</td><td>24.1</td><td>11.5</td><td>10.3</td><td>21.9%</td></tr><tr><td>DFDC [14]</td><td>25.4</td><td>29.7</td><td>22.0</td><td>11.9</td><td>11.1</td><td>23.0%</td></tr><tr><td>DeeperForensics-1.0 (Ours)</td><td>4.3</td><td>8.9</td><td>22.6</td><td>29.8</td><td>34.3</td><td>64.1%</td></tr></table>
|
| 189 |
+
|
| 190 |
+
the data distribution of real-world scenarios. The 10,000 manipulated videos, together with the 50,000 high-quality source videos, form the proposed DeeperForensics-1.0.
|
| 191 |
+
|
| 192 |
+
# 3.4. User Study
|
| 193 |
+
|
| 194 |
+
To examine the quality of DeeperForensics-1.0 dataset, we engage 100 professional participants, most of whom specialize in computer vision research. We believe these participants are qualified and well-trained in assessing realness of tempered videos. The user study is conducted on DeeperForensics-1.0 and six former datasets, i.e., UADFV [41], DeepFake-TIMIT [23], Celeb-DF [26], FaceForensics++ [33], Deep Fake Detection [9], DFDC [14]. We randomly select 30 video clips from each of these datasets and prepare a platform for the participants to evaluate their realness. Similar to the user study of [20], the participants are asked to provide their feedbacks to the statement "The video clip looks real." and give scores at five levels (1-clearly disagree, 2-weakly disagree, 3-borderline, 4-weakly agree, 5-clearly agree. We assume that users who give a score of 4 or 5 think the video is "real"). The user study results are presented in Table 3. The quality of our dataset is appreciated by most of the participants. Compared to the previous datasets, DeeperForensics-1.0 achieves the highest realism rating. Although Celeb-DF [26] also gets very high realness scores, the scale of our dataset is much larger.
|
| 195 |
+
|
| 196 |
+
# 4. Video Forgery Detection Benchmark
|
| 197 |
+
|
| 198 |
+
Dataset split. We exploit 1,000 raw manipulated videos in Section 3.3 and 1,000 YouTube videos from FaceForensics++ [33] as our standard set. The videos are split into training, validation, and test set with a ratio of $7:1:2$ . The identities of the swapped faces may be duplicated because faces of 100 invited actors are swapped onto 1,000 driving videos. To avoid data leak, we randomly choose unrepeated 70, 10, and 20 identities, and group all the videos according to the identities. Similar to [33], the test and training sets share a close distribution in our standard set. Other experiments in our benchmark are conducted on different variants of the standard set. These variants share the same 1,000 driving videos with the standard set. We will detail them in Section 4.2. For a fair comparison, all the experiments are conducted in the same split setting.
|
| 199 |
+
|
| 200 |
+
Hidden test set. For real-world scenarios, some experiments in prior works [26, 33] may not perform a convincing evaluation due to the huge biases caused by a close distribution between the training and test sets. The aforementioned standard set has the same setting. As a result, strong detection baselines obtain very high accuracy on the standard test set as demonstrated in Section 4.2. However, the ultimate goal of face forensics datasets is to help detect forgeries in real scenes. Despite the high accuracy on the standard test set, the models may easily fail in real-world scenarios.
|
| 201 |
+
|
| 202 |
+
We argue that the test set of real-world face forgery detection should not share a close distribution with the training set. We need a test set that better simulates real-world settings. We call it "hidden" test set. The hidden test set should satisfy three factors: 1) Multiple sources. Fake videos in-the-wild should be manipulated by different unknown methods. 2) High quality. Threatening fake videos should have high quality to fool human eyes. 3) Diverse distortions. Different perturbations should be taken into consideration.
|
| 203 |
+
|
| 204 |
+
Thus, in our initial benchmark, we introduce a challenging hidden test set with 400 carefully selected videos. First, we collect fake videos generated by several unknown face swapping methods to ensure multiple sources. Then, we obscure all selected videos multiple times with diverse hidden distortions that are commonly seen in real scenes. Finally, we only select videos that can fool at least 50 out of 100 human observers in a user study. The ground truth labels are hidden and are used on our host server to evaluate the accuracy of detection models. Besides, the hidden test set will be enlarged constantly to get future versions along with development of Deepfakes technology. Fake videos manipulated by future face swapping methods will be included as long as they can pass the human test supported by us.
|
| 205 |
+
|
| 206 |
+
# 4.1. Baselines
|
| 207 |
+
|
| 208 |
+
Existing studies [26, 33] primarily provide image-level face forgery detection benchmark. However, fake videos in-the-wild are much more menacing than manipulated images. We propose to conduct evaluation mainly based on video classification methods for two reasons. First, image-level face forgery detection methods do not consider any temporal information - an important cue for video-based tasks. Second, image-level methods have been widely studied. We only choose one image-level method, XceptionNet [12], which achieves the best performance in [33], as one part of our benchmark for reference. The other four video-based baselines are C3D [37], TSN [38], I3D [11], and ResNet+LSTM [16, 17], all of which have achieved promising results in video classification tasks. Details of all the baselines can be found in our supplementary material.
|
| 209 |
+
|
| 210 |
+
# 4.2. Results and Analysis
|
| 211 |
+
|
| 212 |
+
Owing to the goal of detecting fakes in real-world scenarios, we mainly explore how real-world distortions affect
|
| 213 |
+
|
| 214 |
+
Table 4: The binary detection accuracy of the baselines on the hidden test set when trained on four manipulated methods in FaceForensics++ (FF++): DeepFakes (DF), Face2Face (F2F), FaceSwap (FS), NeuralTextures (NT), and on DeeperForensics-1.0 standard training set without distortions.
|
| 215 |
+
|
| 216 |
+
<table><tr><td>Train Test (acc)</td><td>FF++ DF hidden</td><td>FF++ F2F hidden</td><td>FF++ FS hidden</td><td>FF++ NT hidden</td><td>DeeperForensics-1.0 hidden</td></tr><tr><td>C3D [37]</td><td>57.50</td><td>57.75</td><td>52.13</td><td>58.25</td><td>74.75</td></tr><tr><td>TSN [38]</td><td>57.63</td><td>57.25</td><td>53.50</td><td>57.38</td><td>77.00</td></tr><tr><td>I3D [11]</td><td>56.63</td><td>58.38</td><td>54.63</td><td>63.63</td><td>79.25</td></tr><tr><td>ResNet+LSTM [16, 17]</td><td>57.38</td><td>56.13</td><td>54.88</td><td>59.50</td><td>78.25</td></tr><tr><td>XceptionNet [12]</td><td>57.38</td><td>58.75</td><td>54.75</td><td>57.38</td><td>77.00</td></tr></table>
|
| 217 |
+
|
| 218 |
+
the model performance. Accuracies of face forgery detection on the standard test set and the introduced hidden test set are evaluated under various settings.
|
| 219 |
+
|
| 220 |
+
Evaluation of effectiveness of DeeperForensics-1.0. For a fair comparison, we evaluate DeeperForensics-1.0 and the state-of-the-art FaceForensics++ [33] dataset because they use the same driving videos. In this setting, we use 1,000 raw manipulated videos without distortions in the standard set of DeeperForensics-1.0. For FaceForensics++, the same split is applied to its four subsets. All the models are tested on the hidden test set (see Table 4).
|
| 221 |
+
|
| 222 |
+
The baselines trained on the standard training set of DeeperForensics-1.0 achieve much better performance on the hidden test set than all the four subsets of FaceForensics++. This proves the higher quality of DeeperForensics-1.0 over prior works, making it more useful for real-world face forgery detection. In Table 4, I3D [11] obtains the best performance on the hidden test set when trained on the standard training set. We conjecture that the temporal discontinuity of fake videos leads to higher accuracy by this video-level forgery detection method.
|
| 223 |
+
|
| 224 |
+
Evaluation of dataset perturbations. We study the effect of perturbations towards the forgery detection model performance. In contrast to prior work [33], we try to evaluate the baseline accuracies when applying different distortions to the training and the test sets, in order to explore the function of perturbations in face forensics dataset.
|
| 225 |
+
|
| 226 |
+
In this setting, we conduct all the experiments on DeeperForensics-1.0 dataset with high diversity of perturbations. We use 1,000 manipulated videos in the standard set (std), 1,000 manipulated videos with single-level (level-5), random-type distortions (std/sing), 1,000 manipulated videos with random-level, random-type distortions (std/rand). The data split is the same as that of the standard set with a ratio of $7:1:2$ .
|
| 227 |
+
|
| 228 |
+
In Column 2 of Table 5, we find the accuracy is nearly $100\%$ when the models are trained and tested on the standard set. This is reasonable because the strong baselines perform very well in a clean dataset with the same distribution. In Columns 3 and 4, the accuracy decreases compared to Column 2, when we choose std/sing and std/rand as the test set. Most of the video-level methods except C3D [37] are more robust to perturbations on test set than XceptionNet [12]. This setting is very common because different distributions of the training and the test sets lead to decrease
|
| 229 |
+
|
| 230 |
+
Table 5: The binary detection accuracy of the baselines when trained and tested on DeeperForensics-1.0 dataset with different distortion perturbations. We analyze different training and testing settings on the standard set without distortions (std), the standard set with single-level distortions (std/sing), and the standard set with random-level distortions (std/rand).
|
| 231 |
+
|
| 232 |
+
<table><tr><td>Train Test (acc)</td><td>std std</td><td>std std/sing</td><td>std std/rand</td><td>std/sing std/sing</td><td>std/rand std/rand</td><td>std/sing std/rand</td><td>std/rand std/sing</td></tr><tr><td>C3D [37]</td><td>98.50</td><td>87.63</td><td>92.38</td><td>95.38</td><td>96.63</td><td>96.75</td><td>94.00</td></tr><tr><td>TSN [38]</td><td>99.25</td><td>91.50</td><td>95.00</td><td>98.25</td><td>98.88</td><td>98.12</td><td>99.12</td></tr><tr><td>I3D [11]</td><td>100.00</td><td>90.75</td><td>96.88</td><td>99.50</td><td>99.63</td><td>99.63</td><td>98.00</td></tr><tr><td>ResNet+LSTM [16, 17]</td><td>100.00</td><td>90.63</td><td>97.13</td><td>100.00</td><td>98.63</td><td>100.00</td><td>97.25</td></tr><tr><td>XceptionNet [12]</td><td>100.00</td><td>88.38</td><td>94.75</td><td>99.63</td><td>99.63</td><td>99.75</td><td>99.00</td></tr></table>
|
| 233 |
+
|
| 234 |
+
in model accuracies. Hence, the lack of perturbations in the face forensics dataset cutbacks the model performance for real-world face forgery detection with even more complex data distribution.
|
| 235 |
+
|
| 236 |
+
When we apply corresponding distortions to the training and test sets, the accuracy will increase (Column 5 and 6 in Table 5) compared to Column 3 and 4. However, this setting is impractical because the distributions of the training and test sets are still the same. We should augment the test set to better simulate the real-world distribution. Thus, some evaluation settings in previous works [26, 33] are unreasonable. If we swap the training set and the test set of std/sing and std/rand to further randomize the condition, results shown in Column 7 and 8 indicate that the accuracy remains high. This evaluation setting shows the possibility that with the same generation method, exerting appropriate distortions to the training set can make face forgery detection models more robust to real-world perturbations.
|
| 237 |
+
|
| 238 |
+
Evaluation of variants of training set for real-world face forgery detection. We have conducted several experiments for evaluations of possible perturbations. Nevertheless, the case is more complex in real scenes because no information about the fake videos is available. The video may be subjected to more than one type and diverse levels of distortions. In addition to distortions, the method manipulating the faces is unknown.
|
| 239 |
+
|
| 240 |
+
From the evaluation of perturbations, we find the possibility of augmenting the training set to improve detection model performance. Thus, we further evaluate baseline performance on the hidden test set by devising some variants of the training set. We perform experiments on DeeperForensics-1.0. In this setting, other than std, std/sing, and std/rand, we use additional 1,000 manipulated videos, each of which is subjected to a mixture of three random-level, random-type distortions (std/mix). We combine std with std/sing, std/rand, and std/mix, respectively, yielding three new training sets (with the same data split as the former settings).
|
| 241 |
+
|
| 242 |
+
Column 2 in Table 6 shows the low accuracy when the models trained on std and tested on the hidden test set (same as Column 6 in Table 4). Columns 3 and 4 indicate that the accuracy of all the baseline models increase when trained on std+std/sing and std+std/random. The accuracy of I3D [11] and ResNet+LSTM [16, 17], are over $80\%$ in some cases.
|
| 243 |
+
|
| 244 |
+
Table 6: The binary detection accuracy of the baselines on the hidden test set when trained on DeeperForensics-1.0 dataset with the standard set without distortions (std), combination of std and the standard set with single-level distortions (std+std/sing), combination of std and the standard set with random-level distortions (std+std/rand), combination of std and the standard set with the mixed distortions(std+std/mix).
|
| 245 |
+
|
| 246 |
+
<table><tr><td>Train
|
| 247 |
+
Test (acc)</td><td>std
|
| 248 |
+
hidden</td><td>std+std/sing
|
| 249 |
+
hidden</td><td>std+std/random
|
| 250 |
+
hidden</td><td>std+std/mix
|
| 251 |
+
hidden</td></tr><tr><td>C3D [37]</td><td>74.75</td><td>78.25</td><td>78.13</td><td>78.88</td></tr><tr><td>TSN [38]</td><td>77.00</td><td>78.75</td><td>79.50</td><td>79.50</td></tr><tr><td>I3D [11]</td><td>79.25</td><td>80.13</td><td>80.13</td><td>80.13</td></tr><tr><td>ResNet+LSTM [16, 17]</td><td>78.25</td><td>80.25</td><td>79.50</td><td>80.25</td></tr><tr><td>XceptionNet [12]</td><td>77.00</td><td>79.75</td><td>79.75</td><td>79.88</td></tr></table>
|
| 252 |
+
|
| 253 |
+
In a more complex setting, when the models are trained on std+std/mix, Column 5 shows the accuracy of all the detection baselines further increase.
|
| 254 |
+
|
| 255 |
+
The results suggest that designing suitable training set variants has the potential to help increase face forgery detection accuracy, and applying various distortions to ensure the diversity of DeeperForensics-1.0 is necessary. In addition, compared to image-level method, video-level face forgery detection methods have more potential capabilities to crack real-world fake videos as shown in Table 6. Although the accuracy on the challenging hidden test set is still not very high, we provide two initial directions for future real-world face forgery detection research: 1) Improving the source data collection and generation method to ensure the quality of the training set; 2) Augmenting the training set by various distortions to ensure its diversity. We welcome researchers to make our benchmark more comprehensive.
|
| 256 |
+
|
| 257 |
+
# 5. Discussion
|
| 258 |
+
|
| 259 |
+
In this work, we propose a new large-scale dataset named DeeperForensics-1.0 to facilitate the research of face forgery detection towards real-world scenarios. We make several efforts to ensure good quality, large scale, and high diversity of this dataset. Based on the dataset, we further benchmark existing representative forgery detection methods, offering insights into the current status and future strategy in face forgery detection. Several topics can be considered as future works. 1) We will continue to collect more source and target videos to further expand DeeperForensics. 2) We plan to invite interested researchers for contributing their video falsification methods to enlarge our hidden test set, as long as the fakes can pass the human test supported by us. 3) A better evaluation metric for face forgery detection methods is also an interesting research topic.
|
| 260 |
+
|
| 261 |
+
Acknowledgments. This work is supported by the SenseTime-NTU Collaboration Project, Singapore MOE AcRF Tier 1 (2018-T1-002-056), NTU SUG, and NTU NAP. We gratefully acknowledge the exceptional help from Hao Zhu and Keqiang Sun for their contribution on source data collection and coordination.
|
| 262 |
+
|
| 263 |
+
# References
|
| 264 |
+
|
| 265 |
+
[1] Deepfacelab. https://github.com/iperov/DeepFaceLab/. Accessed: 2019-08-20. 1
|
| 266 |
+
[2] Deepfakes. https://github.com/deepfakes/faceswap/. Accessed: 2019-08-16. 1, 2
|
| 267 |
+
[3] Faceswap. https://github.com/MarekKowalski/FaceSwap/. Accessed: 2019-08-18. 2
|
| 268 |
+
[4] faceswap-gan. https://github.com/shaoanlu/faceswap-GAN/. Accessed: 2019-08-16. 1, 2
|
| 269 |
+
[5] Fakeapp. https://www fakeapp.com/. Accessed: 2019-07-25. 2
|
| 270 |
+
[6] Darius Afchar, Vincent Nozick, Junichi Yamagishi, and Isao Echizen. Mesonet: a compact facial video forgery detection network. In WIFS, 2018. 3
|
| 271 |
+
[7] Irene Amerini, Lamberto Ballan, Roberto Caldelli, Alberto Del Bimbo, and Giuseppe Serra. A sift-based forensic method for copy-move attack detection and transformation recovery. TIFS, 6:1099-1110, 2011. 2
|
| 272 |
+
[8] Belhassen Bayar and Matthew C Stamm. A deep learning approach to universal image manipulation detection using a new convolutional layer. In IH & MMSEC, 2016. 3
|
| 273 |
+
[9] Google AI Blog. Contributing data to deepfake detection research. https://ai.googleblog.com/2019/09/contributing-data-to-deepfake-detection.html. Accessed: 2019-09-25. 1, 2, 3, 6
|
| 274 |
+
[10] Chen Cao, Yanlin Weng, Shun Zhou, Yiying Tong, and Kun Zhou. Facewarehouse: A 3d facial expression database for visual computing. TVCG, 20:413-425, 2013. 2, 4
|
| 275 |
+
[11] Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In CVPR, 2017. 3, 7, 8
|
| 276 |
+
[12] François Chollet. Xception: Deep learning with depthwise separable convolutions. In CVPR, 2017. 3, 7, 8
|
| 277 |
+
[13] Davide Cozzolino, Giovanni Poggi, and Luisa Verdoliva. Recasting residual-based local descriptors as convolutional neural networks: an application to image forgery detection. In IH & MMSEC, 2017. 3
|
| 278 |
+
[14] Brian Dolhansky, Russ Howes, Ben Pflaum, Nicole Baram, and Cristian Canton Ferrer. The deepfake detection challenge (dfdc) preview dataset. arXiv preprint, arXiv:1910.08854, 2019. 1, 2, 3, 6
|
| 279 |
+
[15] Jessica Fridrich and Jan Kodovsky. Rich models for steganalysis of digital images. TIFS, 7:868-882, 2012. 3
|
| 280 |
+
[16] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 3, 7, 8
|
| 281 |
+
[17] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9:1735-1780, 1997. 3, 7, 8
|
| 282 |
+
[18] Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In ICCV, 2017. 5
|
| 283 |
+
[19] 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 CVPR, 2017. 5
|
| 284 |
+
[20] Hyeongwoo Kim, Pablo Carrido, Ayush Tewari, Weipeng Xu, Justus Thies, Matthias Niessner, Patrick Pérez, Christian
|
| 285 |
+
|
| 286 |
+
Richardt, Michael Zollhöfer, and Christian Theobalt. Deep video portraits. ACM TOG, 37:163, 2018. 6
|
| 287 |
+
[21] Durk P Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semi-supervised learning with deep generative models. In NeurIPS, 2014. 5
|
| 288 |
+
[22] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint, arXiv:1312.6114, 2013. 4
|
| 289 |
+
[23] Pavel Korshunov and Sébastien Marcel. Deepfakes: a new threat to face recognition? assessment and detection. arXiv preprint, arXiv:1812.08685, 2018. 2, 6
|
| 290 |
+
[24] Paweł Korus and Jiwu Huang. Multi-scale analysis strategies in prnu-based tampering localization. TIFS, 12:809-824, 2016. 2
|
| 291 |
+
[25] Yuezun Li and Siwei Lyu. Exposing deepfake videos by detecting face warping artifacts. arXiv preprint, arXiv:1811.00656, 2018.3
|
| 292 |
+
[26] Yuezun Li, Xin Yang, Pu Sun, Honggang Qi, and Siwei Lyu. Celeb-df: A new dataset for deepfake forensics. arXiv preprint, 2019. 1, 2, 3, 6, 7, 8
|
| 293 |
+
[27] Kwan-Yee Lin and Guangxiang Wang. Hallucinated-iaq: No-reference image quality assessment via adversarial learning. In CVPR, 2018. 6
|
| 294 |
+
[28] Falko Matern, Christian Riess, and Marc Stamminger. Exploiting visual artifacts to expose deepfakes and face manipulations. In WACVW, 2019. 3
|
| 295 |
+
[29] Alejandro Newell, Kaiyu Yang, and Jia Deng. Stacked hourglass networks for human pose estimation. In ECCV, 2016. 4
|
| 296 |
+
[30] Huy H Nguyen, Fuming Fang, Junichi Yamagishi, and Isao Echizen. Multi-task learning for detecting and segmenting manipulated facial images and videos. arXiv preprint, arXiv:1906.06876, 2019. 3
|
| 297 |
+
[31] Nikolay Ponomarenko, Lina Jin, Oleg Ieremeiev, Vladimir Lukin, Karen Egiazarian, Jaakko Astola, Benoit Vozel, Kacem Chehdi, Marco Carli, Federica Battisti, et al. Image database tid2013: Peculiarities, results and perspectives. Signal Processing: Image Communication, 30:57-77, 2015. 6
|
| 298 |
+
[32] Nicolas Rahmouni, Vincent Nozick, Junichi Yamagishi, and Isao Echizen. Distinguishing computer graphics from natural images using convolution neural networks. In WIFS, 2017. 3
|
| 299 |
+
[33] Andreas Rössler, Davide Cozzolino, Luisa Verdoliva, Christian Riess, Justus Thies, and Matthias Nießner. Faceforensics++: Learning to detect manipulated facial images. arXiv preprint, arXiv:1901.08971, 2019. 1, 2, 3, 6, 7, 8
|
| 300 |
+
[34] Conrad Sanderson. The veditimit database. Technical report, IDIAP, 2002. 2
|
| 301 |
+
[35] Justus Thies, Michael Zollhöfer, and Matthias Nießner. Deferred neural rendering: Image synthesis using neural textures. arXiv preprint, arXiv:1904.12356, 2019. 2
|
| 302 |
+
[36] Justus Thies, Michael Zollhofer, Marc Stamminger, Christian Theobalt, and Matthias Nießner. Face2face: Real-time face capture and reenactment of rgb videos. In CVPR, 2016. 2
|
| 303 |
+
[37] Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In ICCV, 2015. 3, 7, 8
|
| 304 |
+
|
| 305 |
+
[38] 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 ECCV, 2016. 3, 7, 8
|
| 306 |
+
[39] Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Guilin Liu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Video-to-video synthesis. arXiv preprint, arXiv:1808.06601, 2018. 6
|
| 307 |
+
[40] Wayne Wu, Chen Qian, Shuo Yang, Quan Wang, Yici Cai, and Qiang Zhou. Look at boundary: A boundary-aware face alignment algorithm. In CVPR, 2018. 4
|
| 308 |
+
|
| 309 |
+
[41] Xin Yang, Yuezun Li, and Siwei Lyu. Exposing deep fakes using inconsistent head poses. In ICASSP, pages 8261-8265, 2019. 2, 3, 6
|
| 310 |
+
[42] Markos Zampoglou, Symeon Papadopoulos, and Yiannis Kompatsiaris. Detecting image splicing in the wild (web). In ICMEW, 2015. 2
|
| 311 |
+
[43] Peng Zhou, Xintong Han, Vlad I Morariu, and Larry S Davis. Two-stream neural networks for tampered face detection. In CVPRW, 2017. 3
|
deeperforensics10alargescaledatasetforrealworldfaceforgerydetection/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:80624c1775256fd0d72c581a9e86377358b87cf0a5af55780be32305736d12fe
|
| 3 |
+
size 471878
|
deeperforensics10alargescaledatasetforrealworldfaceforgerydetection/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f706ce3dff57d9ae0cb1fd980112ccee1076152eb4456b3b1781c139da7d2ffb
|
| 3 |
+
size 371150
|
deepfaceflowinthewilddense3dfacialmotionestimation/5de7671c-2c82-4daa-b2e2-e0a71d4784a4_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2d992dfd4e10a3e179f511cbff5be7cfee37e51401553d8158e22e805d9805e
|
| 3 |
+
size 72255
|
deepfaceflowinthewilddense3dfacialmotionestimation/5de7671c-2c82-4daa-b2e2-e0a71d4784a4_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a150e3a3fe69b2ed7d9b9846eb1485ed04d6ec6e69b494eb327bf3aa42fc48d6
|
| 3 |
+
size 87318
|
deepfaceflowinthewilddense3dfacialmotionestimation/5de7671c-2c82-4daa-b2e2-e0a71d4784a4_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0502888516d8dadab1824659534d72b2c0e94900872859f688835a909f300a2
|
| 3 |
+
size 1562019
|
deepfaceflowinthewilddense3dfacialmotionestimation/full.md
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DeepFaceFlow: In-the-wild Dense 3D Facial Motion Estimation
|
| 2 |
+
|
| 3 |
+
Mohammad Rami Koujan $^{1,4}$ , Anastasios Roussos $^{1,3,4}$ , Stefanos Zafeiriou $^{2,4}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>College of Engineering, Mathematics and Physical Sciences, University of Exeter, UK
|
| 6 |
+
|
| 7 |
+
$^{2}$ Department of Computing, Imperial College London, UK
|
| 8 |
+
|
| 9 |
+
<sup>3</sup>Institute of Computer Science, Foundation for Research and Technology-Hellas (FORTH-ICS), Greece
|
| 10 |
+
<sup>4</sup>FaceSoft.io, London, UK
|
| 11 |
+
|
| 12 |
+
# Abstract
|
| 13 |
+
|
| 14 |
+
Dense 3D facial motion capture from only monocular in-the-wild pairs of RGB images is a highly challenging problem with numerous applications, ranging from facial expression recognition to facial reenactment. In this work, we propose DeepFaceFlow, a robust, fast, and highly-accurate framework for the dense estimation of 3D non-rigid facial flow between pairs of monocular images. Our DeepFaceFlow framework was trained and tested on two very large-scale facial video datasets, one of them of our own collection and annotation, with the aid of occlusion-aware and 3D-based loss function. We conduct comprehensive experiments probing different aspects of our approach and demonstrating its improved performance against state-of-the-art flow and 3D reconstruction methods. Furthermore, we incorporate our framework in a full-head state-of-the-art facial video synthesis method and demonstrate the ability of our method in better representing and capturing the facial dynamics, resulting in a highly-realistic facial video synthesis. Given registered pairs of images, our framework generates 3D flow maps at $\sim 60$ fps.
|
| 15 |
+
|
| 16 |
+
# 1. Introduction
|
| 17 |
+
|
| 18 |
+
Optical flow estimation is a challenging computer vision task that has been targeted substantially since the seminal work of Horn and Schunck [16]. The amount of effort dedicated for tackling such a problem is largely justified by the potential applications in the field, e.g. 3D facial reconstruction [11, 23, 36], autonomous driving [19], action and expression recognition [30, 21], human motion and head pose estimation [1, 41], and video-to-video translation [37, 22]. While optical flow tracks pixels between consecutive images in the 2D image plane, scene flow, its 3D counterpart, aims at estimating the 3D motion field of scene points at different time steps in the 3 dimensional space. Therefore, scene flow combines two challenges: 1) 3D shape reconstruction, and 2) dense motion estimation. Scene flow esti
|
| 19 |
+
|
| 20 |
+

|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
Figure 1. We propose a framework for the high-fidelity 3D flow estimation between a pair of monocular facial images. Left-to-right: 1 and 2) input pair of RGB images, 3) estimated 3D facial shape of first image rendered with 3D motion vectors from first to second image, 4) warped 3D shape of (1) based on estimated 3D flow in (3), 5) color-coded 3D flow map of each pixel in (1). For the color coding, see the Supplementary Material.
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
|
| 31 |
+
mation, which can be traced back to the work of vedula et al. [34], is a highly ill-posed problem due to the depth ambiguity and the aperture problem, as well as occlusions and variations of illumination and pose, etc. which are very typical of in-the-wild images. To address all these challenges, the majority of methods in the literature use stereo or RGB-D images and enforce priors on either the smoothness of the reconstructed surfaces and estimated motion fields [2, 27, 39, 33] or the rigidity of the motion [35].
|
| 32 |
+
|
| 33 |
+
In this work, we seek to estimate the 3D motion field of human faces from in-the-wild pairs of monocular images, see Fig. 1. The output in our method is the same as in scene flow methods, but the fundamental difference is that we use simple RGB images instead of stereo pairs or RGB-D images as input. Furthermore, our method is tailored for human faces instead of arbitrary scenes. For the problem that we are solving, we use the term "3D face flow estimation". Our designed framework delivers accurate flow estimation in the 3D world rather than the 2D image space. We focus on the human face and the modelling of its dynamics due to its centrality in myriad of applications, e.g. facial expression recognition, head motion and pose estimation, 3D dense facial reconstruction, full head reenactment, etc. Human facial motion emerges from two main sources: 1) rigid motion due to the head pose variation, and 2) non-rigid motion caused by elicited facial expressions and mouth motions during speech. The reliance
|
| 34 |
+
|
| 35 |
+
on only monocular and in-the-wild images to capture the 3D motion of general objects makes the problem considerably more challenging. Alleviating such obstacles can be made by injecting our prior knowledge about this object, as well as constructing and utilising a large-scale annotated dataset. Our contributions in this work can be summarised as follows:
|
| 36 |
+
|
| 37 |
+
- To the best of our knowledge, there does not exist any method that estimates 3D scene flow of deformable scenes using a pair of simple RGB images as input. The proposed approach is the first to solve this problem and this is made possible by focusing on scenes with human faces.
|
| 38 |
+
- Collection and annotation of a large-scale dataset of human facial videos (more than 12000), which we call Face3DVID. With the help of our proposed model-based formulation, each video was annotated with the per-frame: 1) 68 facial landmarks, 2) dense 3D facial shape mesh, 3) camera parameters, 4) dense 3D flow maps. This dataset will be made publicly available (project's page: https://github.com/mrkoujan/DeepFaceFlow).
|
| 39 |
+
- A robust, fast, deep learning-based and end-to-end framework for the dense high-quality estimation of 3D face flow from only a pair of monocular in-the-wild RGB images.
|
| 40 |
+
- We demonstrate both quantitatively and qualitatively the usefulness of our estimated 3D flow in a full-head reenactment experiment, as well as 4D face reconstruction (see supplementary materials).
|
| 41 |
+
|
| 42 |
+
The approach we follow starts from the collection and annotation of a large-scale dataset of facial videos, see section 3 for details. We employ such a rich dynamic dataset in the training process of our entire framework and initialise the learning procedure with this dataset of in-the-wild videos. Different from other scene flow methods, our framework requires only a pair of monocular RGB images and can be decomposed into two main parts: 1) a shape-initialization network (3DMeshReg) aiming at densely regressing the 3D geometry of the face in the first frame, and 2) a fully convolutional network, termed as DeepFaceFlowNet (DFFNet), that accepts a pair of RGB frames along with the projected 3D facial shape initialization of the first (reference) frame, provided by 3DMeshReg, and produces a dense 3D flow map at the output.
|
| 43 |
+
|
| 44 |
+
# 2. Related Work
|
| 45 |
+
|
| 46 |
+
The most closely-related works in the literature solve the problems of optical flow and scene flow estimation. Traditionally, one of the most popular approaches to tackle these problems had been through variational frameworks. The work of Horn and Schunck [16] pioneered the variational work on optical flow, where they formulated an energy equation with brightness constancy and spatial smoothness
|
| 47 |
+
|
| 48 |
+
terms. Later, a large number of variational approaches with various improvements were put forward [7, 26, 38, 3, 31]. All of these methods involve dealing with a complex optimisation, rendering them computationally very intensive. One of the very first attempts for an end-to-end and CNN-based trainable framework capable of estimating the optical flow was made by Dosovitskiy et al. [10]. Even though their reported results still fall behind state-of-the-art classical methods, their work shows the bright promises of CNNs in this task and that further investigation is worthwhile. Another attempt with similar results to [10] was made by the authors of [28]. Their framework, called SpyNet, combine a classical spatial-pyramid formulation with deep learning for large motions estimation in a coarse-to-fine approach. As a follow-up method, Ilg et al. [18] later used the two structures proposed in [10] in a stacked pipeline, FlowNet2, for estimating coarse and fine scale details of optical flow, with very competitive performance on the Sintel benchmark. Recently, the authors of [32] put forward a compact and fast CNN model, termed as PwC-Net, that capitalises on pyramidal processing, warping, and cost volumes. They reported the top results on more than one benchmark, namely: MPI Sintel final pass and KITTI 2015. Most of the deep learning-based methods rely on synthetic datasets to train their networks in a supervised fashion, leaving a challenging gap when tested on real in-the-wild images.
|
| 49 |
+
|
| 50 |
+
Quite different from optical flow, scene flow methods basically aim at estimating the three dimensional motion vectors of scene points from stereo or RGB-D images. The first attempt to extend optical flow to 3D was made by Vdedula et al. [34]. Their work assumed both the structure and the correspondences of the scene are known. Most of the early attempts on scene flow estimation relied on a sequence of stereo images to solve the problem. With the more popularity of depth cameras, more pipelines were utilising RGB-D data as an alternative to stereo images. All these methods follow the classical way of scene flow estimation without using any deep learning techniques or big datasets. The authors of [24] led the first effort to use deep learning features to estimate optical flow, disparity, and scene flow from a big dataset. The method of Golyanik et al. [13] estimates the 3D flow from a sequence of monocular images, with sufficient diversity in non-rigid deformation and 3D pose, as the method relies heavily on NRSfM. The lack of such diversity, which is common for the type of in-the-wild videos we deal with, could result in degenerate solutions. On the contrary, our method requires only a pair of monocular images as input. Using only monocular images, Brickwedde et al. [6] target dynamic street scenes but impose a strong rigidity assumption on scene objects, making it unsuitable for facial videos. As opposed to other state-of-the-art approaches, we rely on minimal information to solve the highly ill-posed 3D facial scene flow problem. Given only a pair of monoc
|
| 51 |
+
|
| 52 |
+
ular RGB images, our novel framework is capable of accurately estimating the 3D flow between them robustly and quickly at a rate of $\sim 60$ fps.
|
| 53 |
+
|
| 54 |
+
# 3. Dataset Collection and Annotation
|
| 55 |
+
|
| 56 |
+
Given the highly ill-posed nature of the non-rigid 3D facial motion estimation from a pair of monocular images, the size and variability of the training dataset is very crucial [18, 10]. For this reason, we are based on a large-scale training dataset (Face3DVID), which we construct by collecting tens of thousands of facial videos, performing dense 3D face reconstruction on them and then estimating effective pseudo-ground truth of 3D flow maps.
|
| 57 |
+
|
| 58 |
+
# 3.1. 3D Face Reconstruction From Videos
|
| 59 |
+
|
| 60 |
+
First of all, we model the 3D face geometry using 3DMMs and an additive combination of identity and expression variation. This is similar to several recent methods, e.g. [40, 9, 23, 12]. In more detail, let $\mathbf{x} = [x_{1},y_{1},z_{1},\dots,x_{N},y_{N},z_{N}]^{T}\in \mathbb{R}^{3N}$ be the vectorized form of any 3D facial shape consisting of $N$ 3D vertices. We consider that $\mathbf{x}$ can be represented as:
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\mathbf {x} (\mathbf {i}, \mathbf {e}) = \bar {\mathbf {x}} + \mathbf {U} _ {i d} \mathbf {i} + \mathbf {U} _ {e x p} \mathbf {e} \tag {1}
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
where $\overline{\mathbf{x}}$ is the overall mean shape vector, $\mathbf{U}_{id} \in \mathbb{R}^{3N \times n_i}$ is the identity basis with $n_i = 157$ principal components ( $n_i \ll 3N$ ), $\mathbf{U}_{exp} \in \mathbb{R}^{3N \times n_e}$ is the expression basis with $n_e = 28$ principal components ( $n_e \ll 3N$ ), and $\mathbf{i} \in \mathbb{R}^{n_i}$ , $\mathbf{e} \in \mathbb{R}^{n_e}$ are the identity and expression parameters respectively. The identity part of the model originates from the Large Scale Face Model (LSFM) [4] and the expression part originates from the work of Zafeiriou et al. [40].
|
| 67 |
+
|
| 68 |
+
To create effective pseudo-ground truth on tens of thousands of videos, we need to perform 3D face reconstruction that is both efficient and accurate. For this reason, we choose to fit the adopted 3DMM model on the sequence of facial landmarks over each video. Since this process is done only during training, we are not constrained by the need of online performance. Therefore, similarly to [9], we adopt a batch approach that takes into account the information from all video frames simultaneously and exploits the rich dynamic information usually contained in facial videos. It is an energy minimization to fit the combined identity and expression 3DMM model on facial landmarks from all frames of the input video simultaneously. More details are given in the Supplementary Material.
|
| 69 |
+
|
| 70 |
+
# 3.2. Application on a Large-scale Videos Dataset
|
| 71 |
+
|
| 72 |
+
To create our large scale training dataset, we start from a collection of 12,000 RGB videos with 19 million frames in total and 2,500 unique identities. We apply the 3D face reconstruction method outlined in Sec. 3.1, together with
|
| 73 |
+
|
| 74 |
+
some video pruning steps to omit cases where the automatic estimations had failed. Our final training set consists of videos of our collection that survived the steps of video pruning: 9750 videos (81.25% of the initial dataset) with 1600 different identities and around 12.5M frames. For more details and exemplar visualisations, please refer to the Supplementary Material.
|
| 75 |
+
|
| 76 |
+
# 3.3. Creation of 3D Flow Annotations
|
| 77 |
+
|
| 78 |
+
Given a pair of images $\mathcal{I}_1$ and $\mathcal{I}_2$ , coming from a video in our dataset, and their corresponding 3D shapes $\mathbf{S}_1, \mathbf{S}_2$ and pose parameters $\mathbf{R}_1, \mathbf{t3d}_1, \mathbf{R}_2, \mathbf{t3d}_2$ , the 3D flow map of this pair is created as follows:
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\begin{array}{l} F (x, y) = f _ {c 2} \cdot \left(\mathbf {R} _ {2} \left[ \mathbf {S} _ {2} \left(t _ {1} ^ {j}\right), \mathbf {S} _ {2} \left(t _ {2} ^ {j}\right), \mathbf {S} _ {2} \left(t _ {3} ^ {j}\right) \right] \mathbf {b} + \mathbf {t} _ {3 d 2}\right) \\ (x, y) \in M \quad t ^ {j} \in \{T | t ^ {j} \text {i s v i s i b l e f r o m p i x i e l (x , y) i n} \mathcal {I} _ {1} \} \tag {2} \\ - f _ {c 1} \cdot \left(\mathbf {R} _ {1} \left[ \mathbf {S} _ {1} \left(t _ {1} ^ {j}\right), \mathbf {S} _ {1} \left(t _ {2} ^ {j}\right), \mathbf {S} _ {1} \left(t _ {3} ^ {j}\right) \right] \mathbf {b} + \mathbf {t} _ {3 d 1}\right), \\ t ^ {j} \in \left\{T \mid t ^ {j} \text {i s v i s i b l e f r o m p i x i l e (x , y) i n} \mathcal {I} _ {1} \right\} \\ \end{array}
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
where $M$ is the set of foreground pixels in $\mathcal{I}_1$ , $\mathbf{S} \in \mathbb{R}^{3 \times N}$ is the matrix storing the column-wise x-y-z coordinates of the $N$ -vertices 3D shape of $\mathcal{I}_1$ , $\mathbf{R} \in \mathbb{R}^{3 \times 3}$ is the rotation matrix, $\mathbf{t}_{3d} \in \mathbb{R}^3$ is the 3D translation, $f_{c1}$ and $f_{c2}$ are the scales of the orthographic camera for the first and second image, respectively, $t^j = [t_1^j, t_2^j, t_3^j] (t_i^j \in \{1,..,N\})$ is the visible triangle from pixel $(x,y)$ in image $\mathcal{I}_1$ detected by our hardware-based renderer, $T$ is the set of all triangles composing the mesh of $\mathbf{S}$ , and $\mathbf{b} \in \mathbb{R}^3$ is the barycentric coordinates of pixel $(x,y)$ lying inside the projected triangle $t^j$ on image $\mathcal{I}_1$ . All background pixels in equation 2 are set to zero and ignored during training with the help of a masked loss. It is evident from equation 2 that we do not care about the visible vertices in the second frame and only track in 3D those were visible in image $\mathcal{I}_1$ to produce the 3D flow vectors. Additionally, with this flow representation, the x-y coordinates alone of the 3D flow map $(F(x,y))$ designate the 2D optical flow components in the image space directly.
|
| 85 |
+
|
| 86 |
+
# 4. Proposed Framework
|
| 87 |
+
|
| 88 |
+
Our overall designed framework is demonstrated in figure 2. We expect as input two RGB images $\mathcal{I}_1, \mathcal{I}_2 \in \mathbb{R}^{W \times H \times 3}$ and produce at the output an image $F \in \mathbb{R}^{W \times H \times 3}$ encoding the per-pixel 3D optical flow from $\mathcal{I}_1$ to $\mathcal{I}_2$ . The designed framework is marked by two main stages: 1) 3DMeshReg: 3D shape initialisation and encoding of the reference frame $\mathcal{I}_1$ , 2) DeepFaceFlowNet (DFFNet): 3D face flow prediction. The entire framework was trained in a supervised manner, utilising the collected and annotated dataset, see section 3.2, and fine-tuned on the 4DFAB dataset [8], after registering the sequence of scans coming from each video in this dataset to our 3D template. Input frames were registered to a 2D template of size $224 \times 224$ with the help of the 68 mark-up extracted using [14] and fed to our framework.
|
| 89 |
+
|
| 90 |
+

|
| 91 |
+
Figure 2. Proposed DeepFaceFlow pipeline for the 3D facial flow estimation. First stage (left): 3DMeshReg works as an initialisation for the 3D facial shape in the first frame. This estimation is rasterized in the next step and encoded in an RGB image, termed as Projected Normalised Coordinates Code (PNCC) storing the x-y-z coordinates of each corresponding visible 3D point. Given the pair of images as well as the PNCC, the second stage (right) estimates the 3D flow using a deep fully-convolutional network (DeepFaceFlowNet).
|
| 92 |
+
|
| 93 |
+
# 4.1. 3D Shape Initialisation and Encoding
|
| 94 |
+
|
| 95 |
+
To robustly estimate the per-pixel 3D flow between a pair of images, we provide the DFFNet network, section 4.2, not only with $\mathcal{I}_1\& \mathcal{I}_2$ , but also with another image that stores a Projected Normalised coordinates Code (PNCC) of the estimated 3D shape of the reference frame $\mathcal{I}1$ , i.e. PNCC $\in \mathbb{R}^{W\times H\times 3}$ . The PNCC codes that we consider are essentially images encoding the normalised x,y, and z coordinates of facial vertices visible from each corresponding pixel in $\mathcal{I}_1$ based on the camera's view angle. The inclusion of such images allows the CNN to better associate each RGB value in $\mathcal{I}_1$ with the corresponding point in the 3D space, providing the network with a better initialisation in the problem space and establishing a reference 3D mesh that facilitates the warping in the 3D space during the course of training. Equation 3 shows how to compute the PNCC image of the reference frame $\mathcal{I}_1$ .
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
\underset {(x, y) \in M} {\mathcal {P N C C}} (x, y) = \mathcal {V} (\mathbf {S}, \mathbf {c}) = \underset {t ^ {j} \in \{T \mid t ^ {j} \text {i s v i s i b l e f r o m} (x, y) \}} {\mathbf {P}} (\mathbf {R} [ \mathbf {S} (t _ {1} ^ {j}), \mathbf {S} (t _ {2} ^ {j}), \mathbf {S} (t _ {3} ^ {j}) ] \mathbf {b} + \mathbf {t} _ {3 d}),
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
where $\mathcal{V}(:,.)$ is the function rendering the normalised version of $\mathbf{S}$ , $\mathbf{c} \in \mathbb{R}^7$ is the camera parameters, i.e. rotation angles, translation and scale $(\mathbf{R}, t_{3d}, f_c)$ , and $\mathbf{P}$ is a $3 \times 3$ diagonal matrix with main diagonal elements $\left(\frac{f_c}{W}, \frac{f_c}{H}, \frac{f_c}{D}\right)$ . The multiplication with $\mathbf{P}$ scales the posed 3D face with $f_c$ to be first in the image space coordinates and then normalises it with the width and height of the rendered image size and the maximum z value D computed from the entire dataset of our annotated 3D shapes. This results in an image with RGB channels storing the normalised ([0, 1]) x-y-z coordinates of the corresponding rendered 3D shape. The rest of the parameters in equation 3 are detailed in section 3.3 and utilised in equation 2.
|
| 102 |
+
|
| 103 |
+
3DMeshReg. The PNCC image generation discussed in equation 3 still lacks the estimation of the 3D facial shape S of $\mathcal{I}_1$ . We deal with this problem by training a deep CNN, termed as 3DMeshReg, that aims at regressing a dense 3D
|
| 104 |
+
|
| 105 |
+
mesh S through per-vertex 3D coordinates estimations. We use our collected dataset (Face3DVID) and the 4DFAB [8] 3D scans to train this network in a supervised manner. We formulate a loss function composed of two terms:
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\mathcal {L} (\Phi) = \frac {1}{N} \sum_ {i = 1} ^ {N} \left\| \mathbf {s} _ {i} ^ {G T} - \mathbf {s} _ {i} \right\| ^ {2} + \frac {1}{O} \sum_ {j = 1} ^ {O} \left\| \mathbf {e} _ {j} ^ {G T} - \mathbf {e} _ {j} \right\| ^ {2}. \tag {4}
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
The first term in the above equation penalises the deviation of each vertex 3D coordinates from the corresponding ground-truth vertex $(\mathbf{s}_i = [x,y,z]^T)$ , while the second term ensures similar edge lengths between vertices in the estimated and ground-truth mesh, given that $\mathbf{e}_j$ is the $\ell_2$ distance between vertices $\mathbf{v}_j^1$ and $\mathbf{v}_j^2$ defining edge $j$ in the original ground-truth 3D template. Instead of estimating the camera parameters $\mathbf{c}$ separately, which are needed at the very input of the renderer, we assume a Scaled Orthographic Projection (SOP) as the camera model and train the network to regress directly the scaled 3D mesh by multiplying the x-y-z coordinates of each vertex of frame $i$ with $f_c^i$ .
|
| 112 |
+
|
| 113 |
+
# 4.2. Face Flow Prediction
|
| 114 |
+
|
| 115 |
+
Given $\mathcal{I}_1, \mathcal{I}_2$ and $\mathcal{PNNCC}$ images, the 3D flow estimation problem is a mapping $\mathcal{F} : \{\mathcal{I}_1, \mathcal{I}_2, \mathcal{PNNCC}\} \in \mathbb{R}^{W \times H \times 9} \to F^{W \times H \times 3}$ . Using both the annotated Face3Dvld detailed in section 3 and 4DFAB [8] datasets, we train a fully convolutional encoder-decoder CNN structure $(\mathcal{F})$ , called DeepFaceFlowNet (DFFNet), that takes three images, namely: $\mathcal{I}_1, \mathcal{I}_2$ and $\mathcal{PNNCC}$ , and produces the 3D flow estimate from each foreground pixel in $\mathcal{I}_1$ to $\mathcal{I}_2$ as a $W \times H \times 3$ image. The designed network follows the generic U-Net architecture with skip connections [29] and was inspired particularly by FlowNetC [10], see figure 3. Distinguished from FlowNetC, we extend the network to account for the $\mathcal{PNNCC}$ image at the input and modify the structure to account for the 3D flow estimation task, rather than 2D optical flow. We propose the following two-term loss function:
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
\mathcal {L} (\Psi) = \sum_ {i = 1} ^ {L} w _ {i} | | F _ {i} ^ {G T} - F _ {i} (\Psi) | | _ {\mathbf {F}} + \alpha | | \mathcal {I} _ {1} - \mathcal {W} (F, \mathcal {P N C C}; \mathcal {I} _ {2}) | | _ {\mathbf {F}} ^ {2} \tag {5}
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+

|
| 122 |
+
Figure 3. Architecture of our designed DFFNet for the purpose of estimating the 3D flow between a pair of RGB images.
|
| 123 |
+
|
| 124 |
+
The first term in Eq. (5) is the endpoint error, which corresponds to a 3D extension of the standard error measure for optical flow methods. It computes the Frobenius norm $(\left|\left.\cdot \right|\right|_{\mathbf{F}})$ error between the estimated 3D flow $F(\Psi)$ and the ground truth $F^{GT}$ , with $\Psi$ representing the network learnable weights. Practically, since at the decoder part of our DFFNet each fractionally-strided convolution operation, aka. deconvolution, produces an estimation of the flow at different resolutions, we compare this multi-resolution 3D flow with the downsampled versions of the $F_{GT}$ , up until the full resolution at stage $L$ , and use the weighted sum of the Frobenius norm error as a penalisation term. The second term in Eq. (5) is the photo-consistency error, which assumes that the colour of each point does not change from $\mathcal{I}_1$ to $\mathcal{I}_2$ . The warping operation was done with the help of the warping function $\mathcal{W}(.,\cdot)$ . This function warps the 3D shape of $\mathcal{I}_1$ encoded inside the PNCC image using the estimated flow $F$ and samples $\mathcal{I}_2$ at the vertices of the resultant projected 3D shape. The warping function in equation 5 was implemented by a differentiable layer detecting the occlusions by the virtue of our 3D flow, and sampling the second image (backward warping) in a differentiable manner at the output stage of our DFFNet. The scale $\alpha$ is used for the sake of terms balancing while training.
|
| 125 |
+
|
| 126 |
+
# 5. Experiments
|
| 127 |
+
|
| 128 |
+
In this section, we compare our framework with state-of-the-art methods in optical flow and 3D face reconstruction. We ran all the experiments on an NVIDIA DGX1 machine.
|
| 129 |
+
|
| 130 |
+
# 5.1. Datasets
|
| 131 |
+
|
| 132 |
+
Although the collected Face3DVID dataset has a wide variety of facial dynamics and identities captured under plenitude of set-ups and viewpoints depicting the in-the
|
| 133 |
+
|
| 134 |
+
wild scenarios of videos capture, the dataset was annotated with pseudo ground-truth 3D shapes, not real 3D scans. Relying only on this dataset, therefore, for training our framework could result in mimicking the performance of the 3DMM-based estimation, which we want ideally to initialise with and then depart from. Thus, we fine-tune our framework on the 4DFAB dataset [8]. The 4DFAB dataset is a large-scale database of dynamic high-resolution 3D faces with subjects displaying both spontaneous and posed facial expressions with the corresponding per-frame 3D scans. We leave a temporal gap between consecutive frames sampled from each video if the average 3D flow per pixel is $<=1$ between each pair. In total, around 3M image pairs (1600 subjects) form the Face3DVID dataset and 500K from the 4DFAB (175 subjects) were used for training/testing purposes. We split the Face3DVID into training/validation vs test (80% vs 20%) in the first phase of the training. Likewise, 4DFAB dataset was split into training/validation vs test (80% vs 20%) during the fine-tuning.
|
| 135 |
+
|
| 136 |
+
# 5.2. Architectures and Training Details
|
| 137 |
+
|
| 138 |
+
Our pipeline consists of two networks (see Fig. 2): a) 3DMeshReg: The aim of this network is to accept an input image $(\mathcal{I}_1 \in \mathbb{R}^{224 \times 224 \times 3})$ and regress the per-vertex $(x, y, z)$ coordinates describing the subject's facial geometry. ResNet50 [15] network architecture was selected and trained for this purpose after replacing the output fully-connected (fc) layer with a convolutional one $(3 \times 3, 512)$ and then a linear fc layer with $\sim 1.5k \times 3$ neurons. This network was trained initially and separately from the rest of the framework on the Face3DVID dataset and then fine-tuned on the 4DFAB dataset [8]. Adam optimizer was used [20] during the training with learning rate of 0.0001, $\beta_1 = 0.9$ , $\beta_2 = 0.999$ , and batch size 32.
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
Figure 4. Training schedule for the learning rate used while training our network and other state-of-the-art approaches for 3D flow estimation. The first 20 epochs for all methods were ran on Face3DVID dataset and the next 20 on 4DFAB. Each training epoch on Face3DVID and 4DFAB is composed of $18.75 \cdot 10^{4}$ and $3.13 \cdot 10^{4}$ iterations, respectively, each with batch size of 16.
|
| 142 |
+
|
| 143 |
+
b) DFFNet: Figure 3 shows the structure of this network. Inspired by FlowNetC [10], this network has similarly nine convolutional layers. The first three layers use kernels of size $5 \times 5$ and the rest have kernels of size $3 \times 3$ . Where occurs, downsampling is carried out with strides of 2 and non-linearity is implemented with ReLU layers. We extend this architecture at the input stage by a branch dedicated for processing the PNCC image. The feature map generated at the end of the PNCC branch is concatenated with the correlation result between the feature maps of $\mathcal{I}_1$ and $\mathcal{I}_2$ . For the correlation layer, we follow the implementation suggested by [10] and we keep the same parameters for this layer (neighborhood search size is $2*(21)+1$ pixels). At the decoder section, the flow is estimated from the finest level up until the full resolution. While training, we use a batch size of 16 and the Adam optimization algorithm [20] with the default parameters recommended in [20] ( $\beta_1 = 0.9$ and $\beta_2 = 0.999$ ). Figure 4 demonstrates our scheduled learning rates over epochs for training and fine-tuning. We also set $w_i = 1$ and $\alpha = 10$ in equation 5 and normalise input images to the range [0, 1]. While testing, our entire framework takes only around 17ms (6ms (3DMehsReg) + 6ms (rasterization &PNCC generation) + 5ms (DFFNet)) to generate the 3D dense flow map, given a registered pair of images.
|
| 144 |
+
|
| 145 |
+
# 5.3. Evaluation of 3D Flow Estimation
|
| 146 |
+
|
| 147 |
+
In this section, we quantitatively evaluate the ability of our approach in estimating the 3D flow. As there exist no other methods for 3D scene flow from simple RGB images, we adapt existing methods that solve closely-related problems so that they produce 3D flow estimation. In more detail, we use two 3D reconstruction methods (ITWMM [5] and DNSfM-3DMM [23]), as well as four optical flow methods after retraining them all specifically for the task of 3D flow estimation. The four optical flow methods include the best performing methods in table 2 on our datasets (LiteNet&FlowNet2) as well as two additional baselines
|
| 148 |
+
|
| 149 |
+
# (FlowNetS&FlowNetC).
|
| 150 |
+
|
| 151 |
+
To estimate the 3D flow by ITWMM and DNSfM-3DMM, we first generate the per-frame dense 3D mesh of each test video by passing a single frame at a time to the ITWMM method and the entire video for the DNSfM-3DMM (as it is a video-based approach). Then, following our annotation procedure discussed in 3.3, the 3D flow values for each pair of test images were obtained.
|
| 152 |
+
|
| 153 |
+
Since the deep learning-based methods we compare against in this section were proposed as 2D flow estimators, we modify the sizes of some filters in their original architectures so that their output flow is a 3-channel image storing the x-y-z coordinates of the flow and train them on our 3D-facial-flow datasets with the learning rate schedules reported in figure 4. FlowNet2 is a very deep architecture (around 160M parameters) composed of stacked networks. As suggested in [18], we did not train this network in one go, but instead sequentially. More specifically, we fused the separately trained individual networks (FlowNetS, FlowNetC, and FlowNetSD [18]) on our datasets together and fine-tuned the entire stacked architecture, see 4 for the learning rate schedule. Please consult the supplementary material for more information on what we modified exactly in each flow network we compare against here.
|
| 154 |
+
|
| 155 |
+
Table 1 shows the generated facial AEPE results by each method on the Face3DVID and 4DFAB datasets. Our proposed architecture and its variant ('ours_depth') report the lowest (best) AEPE numbers on both datasets. Figure 5 visualises some color-coded 3D flow results produced by the methods presented in table 1. To color-code the 3D flow, we convert the x-y-z estimated flow coordinates from Cartesian to spherical coordinates and normalise them so that they represent the coordinates of an HSV coloring system, more details on that are available in the supplementary material. It is noteworthy that the 3D facial reconstruction methods we compare against fail to produce as accurate tracking of the 3D flow as our approach. Their result is not smooth and consistent in the model space, resulting in a higher intensity motion in the space. This can be attributed to the fact that such methods pay attention to the fidelity of the reconstruction from the camera's view angle more than the 3D temporal flow. On the other hand, the other deep architectures we train in this section are unable to capture the full facial motion with same precision, with more fading flow around cheeks and forehand.
|
| 156 |
+
|
| 157 |
+
# 5.4. Evaluation of 2D Flow Estimation
|
| 158 |
+
|
| 159 |
+
The aim of this experiment is to probe the performance of our framework in estimating the 2D optical facial flow between a pair of facial images by keeping only the displacements produced at the output in the x and y directions while ignoring those in the z direction. We separate the comparisons in this section into two parts. Firstly, we eval
|
| 160 |
+
|
| 161 |
+

|
| 162 |
+
Figure 5. Color-coded 3D flow estimations of random test pairs from the Face3Dvld and 4DFAB datasets. Left-to-right: pair of input RGB images, Ground Truth, ours, ours_depth, compared methods. For the color coding, see the Supp. Material.
|
| 163 |
+
|
| 164 |
+

|
| 165 |
+
Figure 6. Color-coded 2D flow estimations. Rows are random samples from the test split of the Face3DVID and 4DFAB datasets and their 2D flow estimations. The first two columns of each row show the input pair of RGB images. For the color coding, see the Supp. Material.
|
| 166 |
+
|
| 167 |
+
Table 1. Comparison between our obtained 3D face flow results against state-of-the-art methods on the test splits of the 4DFAB and Face3DVID datasets. Comparison metric is the standard Average End Point Error (AEPE)
|
| 168 |
+
|
| 169 |
+
<table><tr><td>Method</td><td>4DFAB(↓)</td><td>Face3DVID(↓)</td></tr><tr><td>ITWMM [5]</td><td>3.43</td><td>4.1</td></tr><tr><td>DNSfM-3DMM [23]</td><td>2.8</td><td>3.9</td></tr><tr><td>FlowNetS [10]</td><td>2.25</td><td>3.7</td></tr><tr><td>FlowNetC [10]</td><td>1.95</td><td>2.425</td></tr><tr><td>FlowNet2 [18]</td><td>1.89</td><td>2.4</td></tr><tr><td>LiteNet [17]</td><td>1.5</td><td>2.2</td></tr><tr><td>ours_depth</td><td>1.6</td><td>1.971</td></tr><tr><td>ours</td><td>1.3</td><td>1.77</td></tr></table>
|
| 170 |
+
|
| 171 |
+
uate our method against generic 2D flow approaches using their best performing trained models provided by the original authors of each. Secondly, we train the same architectures from scratch on the same datasets we train our framework on, namely the training splits of Face3DVID and 4DFAB, using a learning rate of 1e-4 that drops 5 times each 10 epochs. We keep the same network design as provided by each paper's authors and only train the network
|
| 172 |
+
|
| 173 |
+
to minimise a masked loss composed of photo-consistency and data terms. The masked loss is computed with the help of a foreground (facial) mask for each reference image provided with our utilised datasets. Table 2 presents the obtained facial Average End Point Error (AEPE) metric values by our proposed approach against other state-of-the-art optical flow prediction methods on the test splits of Face3DVID and 4DFAB datasets. As can be noted from table 2, our proposed method always achieves the smallest (best) AEPE values on both employed datasets. As expected, the AEPE values decrease when training the other methods on our dataset for the specific task of facial 2D flow estimation. However, our method still produces lower errors and outperforms the compared against methods on this task. The 'ours_depth' variant of our network comes as the second best performing method on both datasets. This variant was trained in a very similar manner to our original framework but with feeding the DFFNet with $\mathcal{I}_1$ , $\mathcal{I}_2$ and only the $z$ coordinates (last channel) of the PNCC image while ignoring the $x$ and $y$ (first two channels). Figure 6 demonstrates some qualitative results generated by the methods reported
|
| 174 |
+
|
| 175 |
+
Table 2. Comparison between our obtained 2D flow results against state-of-the-art methods on the test splits of the 4DFAB and Face3DVID datasets. Comparison metric is the standard Average End Point Error (AEPE). 'original models' refers to trained models provided by the authros of each, and 'trained from scratch' indicates that the same architectures were trained on the training sets of both Face3DVID and 4DFAB to estimate the 2D facial flow.
|
| 176 |
+
|
| 177 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">original models</td><td colspan="2">trained from scratch</td></tr><tr><td>4DFAB</td><td>Face3DVID</td><td>4DFAB</td><td>Face3DVID</td></tr><tr><td>FlowNetS [10]</td><td>1.832</td><td>5.1425</td><td>1.956</td><td>2.6</td></tr><tr><td>SpyNet [28]</td><td>1.31</td><td>3</td><td>1.042</td><td>1.5</td></tr><tr><td>FlowNetC [10]</td><td>1.212</td><td>2.6</td><td>1.061</td><td>1.498</td></tr><tr><td>UnFlow [25]</td><td>1.163</td><td>2.6553</td><td>1.055</td><td>1.45</td></tr><tr><td>LiteNet [17]</td><td>1.16</td><td>2.6</td><td>1.018</td><td>1.268</td></tr><tr><td>PWC-Net[32]</td><td>1.159</td><td>2.625</td><td>1.035</td><td>1.371</td></tr><tr><td>FlowNet2 [18]</td><td>1.15</td><td>2.6187</td><td>1.063</td><td>1.352</td></tr><tr><td>ours_depth</td><td>0.99</td><td>1.176</td><td>0.99</td><td>1.176</td></tr><tr><td>ours</td><td>0.941</td><td>1.096</td><td>0.941</td><td>1.096</td></tr></table>
|
| 178 |
+
|
| 179 |
+
in table 2, as well as ours. Please refer to the supplementary material for more information on the color-coding followed for encoding the flow values.
|
| 180 |
+
|
| 181 |
+
# 5.5. Video-to-Video Synthesis With 3D Flow
|
| 182 |
+
|
| 183 |
+
We further investigate the functionality of our proposed framework in capturing the human facial 3D motion and successfully employing it in a full-head reenactment application. Towards that aim, we use the recently proposed method of [37], which is in essence a general video-to-video synthesis approach mapping a source (conditioning) video to a photo-realistic output one. The authors of [37] train their framework in an adversarial manner and learn the temporal dynamics of a target video during the training time with the help of the 2D flow estimated by FlowNet2 [18]. In this experiment, we replace the FlowNet2 employed in [37] by our proposed approach and aid the generator and video discriminator to learn the temporal facial dynamics represented by our 3D facial flow. We firstly conduct a self-reenactment test as done in [37], where we divide each video into a train/test splits (first 2 third vs last third) and report the average per-pixel RGB error between fake and real test frames. Table 3 reveals the average pixel distance obtained for 4 different videos we trained a separate model for each. The only difference between the second and third row of table 3 is the flow estimation method, everything else (structure, loss functions, conditioning, etc.) is the same. As can be noted from table 3, our 3D flow better reveals the facial temporal dynamics of the training subject and assists the video synthesis generator in capturing these temporal characteristics, resulting in a lower error. In the second experiment, we make a full-head reenactment test to fully transfer the head pose and expression from the source person to a target one. Figure 7 manifests the synthesised frames using our 3D flow and the 2D flow of FlowNet2.
|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
Figure 7. Full-head reenactment using [37] combined with either FlowNet2 (second row) or our 3D flow approach (last row).
|
| 187 |
+
|
| 188 |
+
Looking closely at figure 7, our 3D flow results in a more photo-realistic video synthesis with highly accurate head pose, facial expression, as well as temporal dynamics, while the manipulated frames generated with FlowNet2 fail to demonstrate the same fidelity. More details regarding this experiment are in the supplementary material.
|
| 189 |
+
|
| 190 |
+
Table 3. Average RGB distance obtained under a self-reenactment setup on 4 videos (each with 1K test frames) using either FlowNet2 [18] or our facial 3D flow with the method of Wang et al. [37]
|
| 191 |
+
|
| 192 |
+
<table><tr><td>Video</td><td>1</td><td>2</td><td>3</td><td>4</td></tr><tr><td>[37]+FlowNet2 (↓)</td><td>7.5</td><td>9.5</td><td>8.7</td><td>9.2</td></tr><tr><td>[37]+Ours (3D flow) (↓)</td><td>6.3</td><td>7.9</td><td>7.5</td><td>7.7</td></tr></table>
|
| 193 |
+
|
| 194 |
+
# 6. Conclusion and Future Work
|
| 195 |
+
|
| 196 |
+
In this work, we put forward a novel and fast framework for densely estimating the 3D flow of human faces from only a pair of monocular RGB images. The framework was trained on a very large-scale dataset of in-the-wild facial videos (Face3DVID) and fine-tuned on a 4D facial expression database (4DFAB [8]) with ground-truth 3D scans. We conduct extensive experimental evaluations that show that the proposed approach: a) yields highly-accurate estimations of 2D and 3D facial flow from monocular pair of images and successfully captures complex non-rigid motions of the face and b) outperforms many state-of-the-art approaches in estimating both the 2D and 3D facial flow, even when training other approaches under the same setup and data. We additionally reveal the promising potential of our work in a full-head facial manipulation application that capitalises on our facial flow to produce highly loyal and photo-realistic fake facial dynamics indistinguishable from real ones.
|
| 197 |
+
|
| 198 |
+
# Acknowledgement
|
| 199 |
+
|
| 200 |
+
Stefanos Zafeiriou acknowledges support from EPSRC Fellowship DEFORM (EP/S010203/1)
|
| 201 |
+
|
| 202 |
+
# References
|
| 203 |
+
|
| 204 |
+
[1] Thiemo Alldieck, Marc Kassubeck, Bastian Wandt, Bodo Rosenhahn, and Marcus Magnor. Optical flow-based 3d human motion estimation from monocular video. In German Conference on Pattern Recognition, pages 347-360. Springer, 2017. 1
|
| 205 |
+
[2] Tali Basha, Yael Moses, and Nahum Kiryati. Multi-view scene flow estimation: A view centered variational approach. International journal of computer vision, 101(1):6-21, 2013. 1
|
| 206 |
+
[3] Michael J Black and Paul Anandan. The robust estimation of multiple motions: Parametric and piecewise-smooth flow fields. Computer vision and image understanding, 63(1):75-104, 1996. 2
|
| 207 |
+
[4] James Booth, Anastasios Roussos, Allan Ponniah, David Dunaway, and Stefanos Zafeiriou. Large scale 3d morphable models. International Journal of Computer Vision, 126(2-4):233-254, 2018. 3
|
| 208 |
+
[5] James Booth, Anastasios Roussos, Evangelos Ververas, Epameinondas Antonakos, Stylianos Ploumpis, Yannis Panagakis, and Stefanos Zafeiriou. 3d reconstruction of "inthe-wild" faces in images and videos. IEEE transactions on pattern analysis and machine intelligence, 40(11):2638-2652, 2018. 6, 7
|
| 209 |
+
[6] Fabian Brickwedde, Steffen Abraham, and Rudolf Mester. Mono-sf: Multi-view geometry meets single-view depth for monocular scene flow estimation of dynamic traffic scenes. In Proceedings of the IEEE International Conference on Computer Vision, pages 2780-2790, 2019. 2
|
| 210 |
+
[7] Thomas Brox, Andrés Bruhn, Nils Papenberg, and Joachim Weickert. High accuracy optical flow estimation based on a theory for warping. In European conference on computer vision, pages 25-36. Springer, 2004. 2
|
| 211 |
+
[8] Shiyang Cheng, Irene Kotsia, Maja Pantic, and Stefanos Zafeiriou. 4dfab: A large scale 4d database for facial expression analysis and biometric applications. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5117-5126, 2018. 3, 4, 5, 8
|
| 212 |
+
[9] Jiankang Deng, Anastasios Roussos, Grigorios Chrysos, Evangelos Ververas, Irene Kotsia, Jie Shen, and Stefanos Zafeiriou. The menpo benchmark for multi-pose 2d and 3d facial landmark localisation and tracking. International Journal of Computer Vision, pages 1-26, 2018. 3
|
| 213 |
+
[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, 3, 4, 6, 7, 8
|
| 214 |
+
[11] Ravi Garg, Anastasios Roussos, and Lourdes Agapito. Dense variational reconstruction of non-rigid surfaces from monocular video. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1272-1279, 2013. 1
|
| 215 |
+
[12] Baris Gecer, Stylianos Ploumpis, Irene Kotsia, and Stefanos Zafeiriou. Ganfit: Generative adversarial network fit
|
| 216 |
+
|
| 217 |
+
ting for high fidelity 3d face reconstruction. arXiv preprint arXiv:1902.05978, 2019. 3
|
| 218 |
+
[13] Vladislav Golyanik, Aman S Mathur, and Didier Stricker. Nrsfm-flow: Recovering non-rigid scene flow from monocular image sequences. In BMVC, 2016. 2
|
| 219 |
+
[14] Jia Guo, Jiankang Deng, Niannan Xue, and Stefanos Zafeiriou. Stacked dense u-nets with dual transformers for robust face alignment. In Proceedings of the British Machine Vision Conference (BMVC), pages 87.1-87.12. BMVA Press, September 2019. 3
|
| 220 |
+
[15] 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. 5
|
| 221 |
+
[16] Berthold KP Horn and Brian G Schunck. Determining optical flow. Artificial intelligence, 17(1-3):185-203, 1981. 1, 2
|
| 222 |
+
[17] Tak-Wai Hui, Xiaou Tang, and Chen Change Loy. Liteflownet: A lightweight convolutional neural network for optical flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8981-8989, 2018. 7, 8
|
| 223 |
+
[18] 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. 2, 3, 6, 7, 8
|
| 224 |
+
[19] Joel Janai, Fatma Güney, Aseem Behl, and Andreas Geiger. Computer vision for autonomous vehicles: Problems, datasets and state-of-the-art. arXiv preprint arXiv:1704.05519, 2017. 1
|
| 225 |
+
[20] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 5, 6
|
| 226 |
+
[21] Mohammad Rami Koujan, Luma Alharbawee, Giorgos Giannakakis, Nicolas Pugeault, and Anastasios Roussos. Realtime facial expression recognition "in the wild" by disentangling 3d expression from identity. In 2020 15th IEEE International Conference on Automatic Face & Gesture Recognition (FG 2020). IEEE, 2020. 1
|
| 227 |
+
[22] Mohammad Rami Koujan, Michail Doukas, Anastasios Roussos, and Stefanos Zafeiriou. Head2head: Video-based neural head synthesis. In 2020 15th IEEE International Conference on Automatic Face & Gesture Recognition (FG 2020). IEEE, 2020. 1
|
| 228 |
+
[23] Mohammad Rami Koujan and Anastasios Roussos. Combining dense nonrigid structure from motion and 3d morphable models for monocular 4d face reconstruction. In Proceedings of the 15th ACM SIGGRAPH European Conference on Visual Media Production, CVMP '18, pages 2:1-2:9, New York, NY, USA, 2018. ACM. 1, 3, 6, 7
|
| 229 |
+
[24] 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
|
| 230 |
+
|
| 231 |
+
[25] Simon Meister, Junhwa Hur, and Stefan Roth. Unflow: Unsupervised learning of optical flow with a bidirectional census loss. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. 8
|
| 232 |
+
[26] Etienne Mémin and Patrick Pérez. Dense estimation and object-based segmentation of the optical flow with robust techniques. IEEE Transactions on Image Processing, 7(5):703-719, 1998. 2
|
| 233 |
+
[27] Jean-Philippe Pons, Renaud Keriven, and Olivier Faugeras. Multi-view stereo reconstruction and scene flow estimation with a global image-based matching score. International Journal of Computer Vision, 72(2):179–193, 2007. 1
|
| 234 |
+
[28] Anurag Ranjan and Michael J Black. Optical flow estimation using a spatial pyramid network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4161-4170, 2017. 2, 8
|
| 235 |
+
[29] 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. 4
|
| 236 |
+
[30] 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. 1
|
| 237 |
+
[31] Deqing Sun, Stefan Roth, and Michael J Black. A quantitative analysis of current practices in optical flow estimation and the principles behind them. International Journal of Computer Vision, 106(2):115-137, 2014. 2
|
| 238 |
+
[32] 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. 2, 8
|
| 239 |
+
[33] Ravi Kumar Thakur and Snehasis Mukherjee. Sceneednet: A deep learning approach for scene flow estimation. In 2018 15th International Conference on Control, Automation, Robotics and Vision (ICARCV), pages 394-399. IEEE, 2018. 1
|
| 240 |
+
[34] Sundar Vedula, Simon Baker, Peter Rander, Robert Collins, and Takeo Kanade. Three-dimensional scene flow. In Proceedings of the Seventh IEEE International Conference on Computer Vision, volume 2, pages 722-729. IEEE, 1999. 1, 2
|
| 241 |
+
[35] Christoph Vogel, Konrad Schindler, and Stefan Roth. 3d scene flow estimation with a rigid motion prior. In 2011 International Conference on Computer Vision, pages 1291-1298. IEEE, 2011. 1
|
| 242 |
+
[36] Shan Wang, Xukun Shen, and Jiaqing Liu. Dense optical flow variation based 3d face reconstruction from monocular video. In 2018 25th IEEE International Conference on Image Processing (ICIP), pages 2665-2669. IEEE, 2018. 1
|
| 243 |
+
[37] Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Guilin Liu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Video-to-video synthesis. arXiv preprint arXiv:1808.06601, 2018. 1, 8
|
| 244 |
+
[38] Andreas Wedel, Daniel Cremers, Thomas Pock, and Horst Bischof. Structure-and motion-adaptive regularization for
|
| 245 |
+
|
| 246 |
+
high accuracy optic flow. In 2009 IEEE 12th International Conference on Computer Vision, pages 1663-1668. IEEE, 2009. 2
|
| 247 |
+
[39] Andreas Wedel, Clemens Rabe, Tobi Vaudrey, Thomas Brox, Uwe Franke, and Daniel Cremers. Efficient dense scene flow from sparse or dense stereo data. In European conference on computer vision, pages 739-751. Springer, 2008. 1
|
| 248 |
+
[40] Stefanos Zafeiriou, Grigorios G Chrysos, Anastasios Roussos, Evangelos Ververas, Jiankang Deng, and George Trigeorgis. The 3d menpo facial landmark tracking challenge. In Proceedings of the IEEE International Conference on Computer Vision, pages 2503-2511, 2017. 3
|
| 249 |
+
[41] Youding Zhu and Kikuo Fujimura. 3d head pose estimation with optical flow and depth constraints. In Fourth International Conference on 3-D Digital Imaging and Modeling, 2003. 3DIM 2003. Proceedings., pages 211-216. IEEE, 2003. 1
|
deepfaceflowinthewilddense3dfacialmotionestimation/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0fff0589f23cf4576492fe12eadf5b44844f5cf1c3e7429b8c70b22edbe47b1
|
| 3 |
+
size 454798
|
deepfaceflowinthewilddense3dfacialmotionestimation/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c285e8bb5863ba31ab4d1300e68e65036095be7b50b5c947926240d48406687
|
| 3 |
+
size 359587
|
deepfacesuperresolutionwithiterativecollaborationbetweenattentiverecoveryandlandmarkestimation/7bdfd744-7981-467c-a1fa-cbbbdf8edc59_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a8a969891c7f91af039b28055fb54092a66c853dbcdd6b0b62860f253962583
|
| 3 |
+
size 73461
|
deepfacesuperresolutionwithiterativecollaborationbetweenattentiverecoveryandlandmarkestimation/7bdfd744-7981-467c-a1fa-cbbbdf8edc59_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ee6472e8eab816cbef430b779c0d7b14b739182eb950a4c3ceac9010d252f81
|
| 3 |
+
size 96319
|