TL;DR
This paper presents a simple, effective method for unsupervised domain adaptation of object detectors by automatically generating labels through high-confidence detections and tracking, then retraining the model with a modified distillation loss.
Contribution
It introduces a novel self-training approach using high-confidence detections and temporal cues, with a modified distillation loss for unsupervised domain adaptation of object detectors.
Findings
Effective adaptation to surveillance and challenging scenarios
Using tracking to obtain hard examples improves performance
Soft-labels via distillation outperform hard-labels in adaptation
Abstract
This work addresses the unsupervised adaptation of an existing object detector to a new target domain. We assume that a large number of unlabeled videos from this domain are readily available. We automatically obtain labels on the target data by using high-confidence detections from the existing detector, augmented with hard (misclassified) examples acquired by exploiting temporal cues using a tracker. These automatically-obtained labels are then used for re-training the original model. A modified knowledge distillation loss is proposed, and we investigate several ways of assigning soft-labels to the training examples from the target domain. Our approach is empirically evaluated on challenging face and pedestrian detection tasks: a face detector trained on WIDER-Face, which consists of high-quality images crawled from the web, is adapted to a large-scale surveillance data set; a…
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15
Figure 16
Figure 17
Figure 18
Figure 19
Figure 20
Figure 21
Figure 22
Figure 23
Figure 24
Figure 25
Figure 26
Figure 27
Figure 28
Figure 29
Figure 30
Figure 31
Figure 32
Figure 33| Dataset | # images | # annots | # videos |
| WIDER | 12,880 | 159,424 | - |
| CS6-Train | - | - | 86 |
| CS6-Test | 70,022 | 217,827 | 80 |
| BDD-Source | 12,477 | 16,784 | 12,477 |
| BDD-Target-Train | - | - | 18,000 |
| BDD-Target-Test | 8,236 | 10,814 | 8,236 |
| Method | # images | # annots |
|---|---|---|
| CS6-Det | 38,514 | 109,314 |
| CS6-HP | 15,092 | 84,662 |
| CS6-Track | 15,092 | 32,711 |
| BDD-Det | 100,001 | 205,336 |
| BDD-Track | 100,001 | 222,755 |
| BDD-HP | 100,001 | 362,936 |
| Method | AP (mean std) |
|---|---|
| Baseline: WIDER | 15.66 0.00 |
| CS6-Det | 17.29 0.85 |
| CS6-Track | 11.73 0.77 |
| CS6-HP [25] | 17.31 0.60 |
| CS6-Label-smooth() | 19.89 0.92 |
| CS6-Label-smooth() | 19.56 1.53 |
| CS6-Label-smooth() | 20.80 1.34 |
| Ours: CS6-score-remap | 19.12 1.29 |
| Ours: CS6-HP-cons | 20.65 1.62 |
| CS6-DA-im [8] | 21.02 0.96 |
| CS6-DA-im-roi [8] | 22.18 1.20 |
| Method | AP (mean std) |
|---|---|
| Baseline: BDD(clear,daytime) | 15.21 0.00 |
| BDD-Det | 26.16 0.24 |
| BDD-Track | 26.28 0.35 |
| BDD-HP [25] | 27.11 0.54 |
| BDD-Label-smooth() | 28.59 0.67 |
| BDD-Label-smooth() | 28.38 0.62 |
| BDD-Label-smooth() | 28.47 0.41 |
| Ours: BDD-score-remap | 28.02 0.32 |
| Ours: BDD-HP-cons | 28.43 0.51 |
| BDD-DA-im [8] | 23.65 0.57 |
| BDD-DA-im-roi* | 23.69 0.93 |
| 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | ||
|---|---|---|---|---|---|---|
| CS6-Test | 17.31 | 15.91 | 14.93 | 15.63 | 11.69 | 16.71 |
| BDD-Test | 27.23 | 27.68 | 27.30 | 27.11 | 25.85 | 27.11 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsKnowledge Distillation
Automatic adaptation of object detectors to new domains using self-training
Aruni RoyChowdhury Prithvijit Chakrabarty Ashish Singh SouYoung Jin
Huaizu Jiang Liangliang Cao Erik Learned-Miller
College of Information and Computer Sciences
University of Massachusetts Amherst
{arunirc, pchakrabarty, ashishsingh, souyoungjin, hzjiang, llcao, elm}@cs.umass.edu
Abstract
This work addresses the unsupervised adaptation of an existing object detector to a new target domain. We assume that a large number of unlabeled videos from this domain are readily available. We automatically obtain labels on the target data by using high-confidence detections from the existing detector, augmented with hard (misclassified) examples acquired by exploiting temporal cues using a tracker. These automatically-obtained labels are then used for re-training the original model. A modified knowledge distillation loss is proposed, and we investigate several ways of assigning soft-labels to the training examples from the target domain. Our approach is empirically evaluated on challenging face and pedestrian detection tasks: a face detector trained on WIDER-Face, which consists of high-quality images crawled from the web, is adapted to a large-scale surveillance data set; a pedestrian detector trained on clear, daytime images from the BDD-100K driving data set is adapted to all other scenarios such as rainy, foggy, night-time. Our results demonstrate the usefulness of incorporating hard examples obtained from tracking, the advantage of using soft-labels via distillation loss versus hard-labels, and show promising performance as a simple method for unsupervised domain adaptation of object detectors, with minimal dependence on hyper-parameters. Code and models are available at http://vis-www.cs.umass.edu/unsupVideo/
1 Introduction
The success of deep neural networks has resulted in state-of-the-art object detectors that obtain high accuracy on standard vision benchmarks (e.g. MS-COCO [35], PASCAL VOC [11], etc.), and are readily available for download as out-of-the-box detection models [16, 22]. However, it is unrealistic to expect a single detector to generalize to every domain. Due to the data-hungry nature of supervised training of deep networks, it would require a lot of labeling efforts to re-train a detector in a completely supervised manner for a new scenario.
This paper considers the following problem: Given an off-the-shelf detector, can we let it automatically improve itself by watching a video camera? We hope to find a new algorithm based on unsupervised self-training that leverages large amounts of readily-available unlabeled video data, so that it can relieve the requirement of labeling effort for the new domain, which is tedious, expensive, and difficult to scale up. Such a solution may be very useful to generalize existing models to new domains without supervision, e.g. a pedestrian detection system trained on imagery of US streets can adapt to cities in Europe or Asia, or help an off-the-shelf face detector improve its performance on video footage. Such an algorithm would be a label efficient solution for large-scale domain adaptation, obviating the need for costly bounding-box annotations when faced with a new domain.
Recent approaches to unsupervised domain adaptation in deep networks have attempted to learn domain invariant features through an adversarial domain discriminator [8, 14, 15, 57, 21], or by transforming labeled source images to resemble the target domain using a generative adversarial network (GAN) [23, 66, 5]. Self-training is a comparatively simpler alternate strategy, where the off-the-shelf model’s predictions on the new domain are regarded as “pseudo-labeled” training samples [31, 7, 4, 62]; however this approach would involve re-training using significantly noisy labels. It becomes even more challenging when we consider object detectors in particular, as the model may consider a wrongly-labeled instance as a hard example [48] during training, and expend a lot of efforts trying to learn it.
In this paper, we leverage two types of information that is useful for object detection. First, object detectors can benefit from learning the temporal consistency in videos. Some hard cases missed by the detector could be recognized if the object is detected in neighboring frames. We combine both tracking and detection into one framework, and automatically refine the labels based on detection and tracking results. Second, there are examples of varying difficulty in the new domain, and we propose a distillation-based loss function to accommodate this relative ordering in a flexible fashion. We design several schemes to assign soft-labels to the target domain samples, with minimal dependence on hyper-parameters. We evaluate our methods for improving single-image detection performance without labels on challenging face and pedestrian detection tasks, where the target domain contains a large number of unlabeled videos. Our results show that training with soft labels improves over the usual hard (i.e. 0 or 1) labels, and reaches comparable to better performance relative to adversarial methods without extra parameters. The paper is organized as follows – relevant literature is reviewed in Sec. 2, the proposed approach is described in Sec 3 and experimental results are presented in Sec 4.
2 Related Work
Semi-supervised learning. Label-efficient semi-supervised methods of training object recognition models have a long history in computer vision [44, 60, 2, 46, 32, 13]. For a survey and empirical comparison of various semi-supervised learning methods applied to deep learning, we refer the reader to Odena et al. [40]. We focus on the self-training approach [7, 4, 62, 31], which involves creating an initial baseline model on fully labeled data and then using this model to estimate labels on a novel weakly-labeled or unlabeled dataset. A subset of these estimated labels that are most likely to be correct are selected and used to re-train the baseline model, and the process continues in an incremental fashion [39, 33, 37, 24, 63]. In the context of object detection, Rosenberg et al. [44] used the detections from a pre-trained object detector on unlabeled data as pseudo-labels and then trained on a subset of this noisy labeled data in an incremental re-training procedure. Recently, the data distillation approach [41] aimed to improve the performance of fully-supervised state-of-the-art detectors by augmenting the training set with massive amounts of pseudo-labeled data. In their case, the unlabeled data was from the same domain as the labeled data, and pseudo-labeling was done by selecting the predictions from the baseline model using test-time data augmentation. Jin et al. [25] use tracking in videos to gather hard examples – i.e. objects that fail to be detected by an object detector (false negatives); they re-train using this extra data to improve detection on still images. Our work shares the latter’s strategy of exploiting temporal relationships to automatically obtain hard examples, but our goal is fundamentally different – we seek to adapt to a new target domain, while Jin et al. use the target domain to mine extra training samples to improve performance back in the source domain. We note that improvements in network architecture specific to video object recognition [12, 59] are orthogonal to our current motivation.
Hard examples. Emphasizing difficult training samples has been shown to be useful in several works – e.g. online hard example mining (OHEM) [48], boosting [45]. Weinshall and Amir [61] show that for certain problem classes, when we do not have access to an optimal hypothesis (e.g. a teacher), training on examples the current model finds difficult is more effective than a self-paced approach which trains first on easier samples.
Unsupervised domain adaptation. There has been extensive work in addressing the shift between source and target domains [18, 3, 50] (see Csurka [9] for a recent survey). Some approaches try to minimize the Maximum Mean Discrepancy [18, 58, 36] or the CORAL metric [51] between the distribution of features from the two domains. Another popular direction is an adversarial setup, explored by recent works such as ADDA [57], CyCADA [21], gradient reversal layer (ReverseGrad) [15, 14], wherein the discriminator tries to predict the domain from which a training sample is drawn, and the model attains domain invariance by trying to fool this discriminator, while also learning from labeled source samples. In particular, the work of Tzeng et al. [56] obtains soft-labels from model posteriors on source domain images, aiming to transfer inter-category correlations information across domains. Our soft-labels, on the other hand, are obtained on the target domain, have only a single category (therefore inter-class information is not applicable), and aims at preserving information on the relative difficulty of training examples across domains.
Cross-domain object detection. The domain shift [29] of detectors trained on still images and applied to video frames has been addressed in several works, mostly relying on some form of weak supervision on the target domain and selecting target samples based on the baseline detector confidence score [19, 54, 47, 10, 30, 6]. Several approaches have used weakly-labeled video data for re-training object detectors [27, 49, 54]. Our work is motivated in particular by Tang et al. [54], who use tracking information to get pseudo-labels on weakly-labeled video frames and adopt a curriculum-based approach, introducing easy examples (i.e. having low loss) from the target video domain into the re-training of the baseline detector. Despite the common motivation, our work differs on two major points – (a) we show the usefulness of combining both hard and easy examples from the target domain when re-training the baseline model, and (b) using the knowledge distillation loss to counter the effect of label noise. Jamal et al. [1] address the domain shift between various face detection datasets by re-calibrating the final classification layer of face detectors using a residual-style layer in a low-shot learning setting. Two recent methods [23, 8] for domain-adaptive object detection are particularly relevant to our problem. The weakly-supervised method of Inoue et al. [23] first transforms the labeled source (natural) images to resemble the target images (watercolors) using the CycleGAN [66], fine-tunes the baseline (pre-trained) detector on this “transformed source” data, and then obtains pseudo-labels on the target domain using this domain-adapted model. The task of image generation is fairly difficult, and we posit that it may be possible to address domain adaptation without requiring a generative model as an intermediate step. The fully unsupervised method of Chen et al. [8] learns a domain-invariant representation by using an adversarial loss from a domain discriminator [14, 15] at various levels of the Faster R-CNN architecture, showing significant improvements when adapting to challenging domain shifts such as clear to foggy city scenes, simulated to real driving videos, etc. While a powerful approach, the design of new discriminator layers and adversarial training are both challenging in practice, especially without a labeled validation set on the target domain (as is the case in an unsupervised setting).
3 Proposed Approach
Automatically labeling the target domain is described in Sec. 3.1, re-training using these pseudo-labels in Sec. 3.2 and creating soft-labels in Sec. 3.3.
3.1 Automatic Labeling of the Target Domain
Self-labeling [55] or pseudo-labeling [31] adapts a pre-existing or baseline model, trained on a labeled source domain , to a novel unlabeled target domain , by treating the model’s own predictions on the new dataset as training labels. In our case, we obtain target domain pseudo-labels by selecting high-confidence predictions of the baseline detector, followed by a refinement step using a tracker.
Pseudo-labels from detections. The baseline detector is run on every frame of the unlabeled videos in the target domain and if the (normalized) detector confidence score for the -th prediction (i.e. the model’s posterior), , is higher than some threshold , then this prediction is added to the set of pseudo-labels. In practice, we select 0.5 for for face detection and 0.8 for person detection. Note that such a threshold is easily selected by visually inspecting a small number of unlabeled videos from (5 videos); we compare with a fully-automated procedure in Sec. 4.6.
Refined labels from tracking. Exploiting the temporal continuity between frames in a video, we can enlarge our set of pseudo-labels with objects missed by the baseline detector. To link multiple object detections across video frames into temporally consistent tracklets, we use the algorithm from Jin et al. (Sec. 3 of [26]) with the MD-Net tracker [38]. Now, given a tracklet that consistently follows an object through a video sequence, when the object detector did not fire (i.e. ) in some difficult frames, the tracker can still correctly predict an object (see Fig. 2(a)). We expand the set of pseudo-labels to include these “tracker-only” bounding-boxes that were missed by the baseline detector, since these hard examples are expected to have a larger influence on the model’s decision boundary upon retraining [52, 48, 25]. Further, we prune out extremely short tracklets (less than 10 frames) to remove the effects caused by spurious detections.
3.2 Training on pseudo-labels
We use the popular Faster R-CNN (FRCNN) [43, 42] as our detector. In a naive setting, we would treat both labeled source-domain data and pseudo-labeled target-domain data identically in terms of the loss. We give a label of 1 to all the target domain pseudo-labeled samples, irrespective of whether it originated from the baseline detector or the tracker – i.e. for , the -th training sample drawn from , the label is defined as
[TABLE]
Note that here is not an image, but a region in an image. For training the classification branch, we use a binary cross-entropy loss on the -th training sample:
[TABLE]
where “hard” label and the model’s predicted posterior . This is similar to the method of Jin et al. [25], which assigns a label of 1 for both easy and hard positive examples during re-training.
3.3 Distillation loss with soft labels
For training data coming from , many of the s can be noisy, so a “soft” version of the earlier labels could help mitigate the risk from mislabeled target data. Label smoothing in this fashion has been shown to be useful in generalization [53, 20], in reducing the negative impact of incorrect training labels [34] and is more informative about the distribution of labels than one-hot encodings [56]. In our case, each target-domain positive label can have two possible origins – (i) high-confidence predictions from the baseline detector or (ii) the tracklet-formation process. We assign a soft score to each positive target-domain sample as follows:
[TABLE]
For a pseudo-label originating from the baseline detector, a high detector confidence score is a reasonable measure of reliability. Tracker-only pseudo-labels, which could be objects missed by the baseline model, are emphasized during training – their soft score is raised up to the threshold , although the baseline’s confidence on them had fallen below this threshold. An illustrative example is shown in Fig. 2(b).
Label interpolation. A soft label is formed by a linear interpolation between the earlier hard labels and soft scores , with as a tunable hyper-parameter.
[TABLE]
The loss for the -th positive sample now looks like
[TABLE]
Setting a high value of creates softer labels , trusting the baseline source model’s prediction more than than the riskier target pseudo-labels . In this conservative setting, the softer labels will decrease the overall training signal from target data, but also reduces the chance of incorrect pseudo-labels having a large detrimental effect on the model parameters.
We now describe two schemes to avoid explicitly depending on the hyper-parameter –
I. Constrained hard examples.
Assigning a label of 1 to both “easy” and “hard” examples (i.e. high-confidence detections and tracker-only samples), as in Sec. 3.2, gives equal importance to both. Training with just the hard examples can be sub-optimal – it might decrease the model’s posteriors on instances it was getting correct initially. Ideally, we would like to emphasize the hard examples, while simultaneously constraining the model to maintain its posteriors on the other (easy) samples. We can achieve this by setting in Eq. 3 and in Eq. 4, which would create a label of 1 for tracker-only “hard” examples, and a label equal to baseline detector score for the high-confidence detections, i.e. “easy” examples.
II. Cross-domain score mapping.
Let us hypothetically consider what the distribution of detection scores on would be like, had the model been trained on labeled target domain data. With minimal information on , it is reasonable to assume this distribution of scores to be similar to that on . The latter is an “ideal” operating condition of training on labeled data and running inference on within-domain images. Let the actual distribution of baseline detector scores on have p.d.f. , and the distribution of scores on have p.d.f. . Let their cumulative distributions be and , respectively. As a parameter-free method of creating soft-labels for our pseudo-labels on , we can use histogram specification [17] to map the baseline detector scores on to match the distribution of scores on images from , i.e. replace each target domain score with . The inverse mapping is done through linear interpolation. Fig. 3(a) shows the distribution of scores for a model trained on labeled WIDER-Face [64] and run on images from the validation split of the same dataset. In Fig. 3(b), due to the domain shift, there is a visible difference when this model is run on unlabeled images from CS6 surveillance videos [28]. Fig. 3(c) shows the effect of histogram matching. Concretely, detector samples get soft-label , while tracker-only samples get soft-label .
4 Experiments
The datasets are introduced in Sec. 4.1, followed by describing baselines (Sec. 4.2) and implementation details (Sec. 4.3). Results are shown on faces (Sec. 4.4) and pedestrians (Sec. 4.5).
4.1 Datasets
Experiments are performed on two challenging scenarios – pedestrian detection from driving videos and face detection from surveillance videos, both of which fit neatly into our paradigm of self-training from large amounts of unlabeled videos and where there exists a significant domain shift between source and target. Several example images are shown in Fig. 1. We select single-category detection tasks like face and pedestrian to avoid the engineering and computational burden of handling multiple categories, and focus on the unsupervised domain adaptation aspect. A summary of the datasets is given in Table 1.
Face: WIDER CS6. The WIDER dataset [64] is the the source domain, consisting of labeled faces in still images downloaded from the internet with a wide variety of scale, pose and occlusion. The baseline detector is trained on the WIDER Train split, which has 12,880 images and 159,424 annotated faces. The target domain consists of 179 surveillance videos from CS6, which is a subset of the IJB-S benchmark [28]. CS6 provides a considerable shift from WIDER, with faces being mostly low-resolution and often occluded, and the imagery being of low picture quality, suffering from camera shake and motion blurs. The video clips are on average of 5 minutes at 30 fps, with some exceptionally long clips running for over an hour. We selected 86 videos to form the unlabeled target train set (CS6-Train). A test set of 80 labeled videos, containing about 70,022 images and 217,827 face annotations, is used to evaluate the performance of the methods (CS6-Test).
Pedestrian: BDD(clear,daytime) BDD(rest). The Berkeley Deep Drive 100k (BDD-100k) dataset [65] consists of 100,000 driving videos from a wide variety of scenes, weather conditions and time of day, creating a challenging and realistic scenario for domain adaptation. Each video clip is of 40 seconds duration at 30 fps; one frame out of every video is manually annotated. The source domain consists of clear, daytime conditions (BDD(clear,daytime)) and the target domain consists of all other conditions including night-time, rainy, cloudy, etc. (BDD(rest)). There are 12,477 labeled images forming BDD-Source-Train, containing 217k pedestrian annotations. We use 18k videos as the unlabeled BDD-Target-Train set, having approximately 21.6 million video frames (not all of which would contain pedestrians, naturally). The BDD-Target-Test set is comprised of 8,236 labeled images with 16,784 pedestrian annotations from BDD(rest).
4.2 Baselines and Ablations
We consider the following methods as our baselines:
Baseline source. Detector trained on only the labeled source data – WIDER for faces and BDD(clear,daytime) for pedestrians.
Pseudo-labels from detections. High-confidence detections on the target training set are considered as training labels, followed by joint re-training of the baseline source detector. This is the naive baseline for acquiring pseudo-labels, denoted as Det in the results tables.
Pseudo-labels from tracking. Incorporating temporal consistency using a tracker and adding them into the set of pseudo-labels was referred to as “Hard Positives” by Jin et al. [25]; we adopt their nomenclature and refer to this as HP. As an ablation, we exclude detector results and keep just the tracker-only pseudo-labels for training (Track). Table 2 summarizes the details of the automatically gathered pseudo-labels. Note that using temporal constraints (HP) removes spurious isolated detections in addition to adding missed objects, resulting in an overall decrease in data when compared to Det for CS6.
Soft labels for distillation. The label interpolation method as detailed in Sec. 3.3 is denoted as Label-smooth, and we show the effect of varying on the validation set. Cross-domain score distribution mapping is referred to as score-remap and constrained hard examples as HP*-cons* in the results tables.
Domain adversarial Faster-RCNN. While there are several domain adversarial methods such as ADDA [57] and CyCADA [21] for object recognition, we select Chen et al. [8] as the only method, to our knowledge, that has been integrated into the Faster R-CNN detector. Chen et al. [8] formulate the adversarial domain discriminator [14] with three separate losses – (i) predicting the domain label from the convolutional features (pre-ROI-pooling) of the entire image; (ii) predicting the domain label from the feature-representation of each proposed ROI; (iii) a consistency term between the image-level and ROI-level predictions. The region-proposals for the ROI-level loss are obtained from the Region Proposal Network (RPN) branch of the Faster R-CNN. In our experiments, we denote these models as – DA*-im* which applies the domain discriminator at the image level and DA*-im-roi*, which additionally has the instance-level discriminator and consistency term.
4.3 Training and Evaluation
We use the standard Faster R-CNN detector [43] for all our experiments, from a PyTorch implementation of the Detectron framework [16]. An ImageNet-pre-trained ResNet-50 network is used as a backbone, with ROI-Align region pooling. For faces, the baseline is trained for 80k iterations, starting from a learning rate of 0.001, dropping to 0.0001 at 50k, using 4 GPUs and a batch-size of 512. For pedestrians, the baseline was trained for 70k iterations, starting with a learning rate of 0.001 and dropping to 0.0001 at 50k. During training, face images were resized to be 800 pixels and pedestrian images were resized to be 500 pixels on the smaller side. Re-training for the target domain is always done jointly, using a single GPU – a training mini-batch is formed with samples from a labeled source image and a pseudo-labeled target image. In practice, we sample images alternately from source and target, fix 64 regions to be sampled from each image, and accumulate gradients over the two images before updating the model parameters. Domain adversarial models were implemented following Chen et al. [8], keeping their default hyper-parameter values.
Since unsupervised learning considers no labels at all on the target domain, we cannot set hyper-parameters or do best model selection based on a labeled validation set. The re-training for all the face models were stopped at the 10k iteration, while all the pedestrian models were stopped at the 30k iteration. For evaluating performance, to account for stochasticity in the training procedure, we do 5 rounds of training and evaluate each model on the labeled images from the test set. We use the MS-COCO toolkit as a consistent evaluation metric for both face and pedestrian detection, reporting Average Precision (AP) at an IoU threshold of 0.5.
4.4 Face detection results
The results on adapting from labeled WIDER Faces still-images to unlabeled CS6 surveillance video imagery are shown in Table 3.
Effect of pseudo-labels. The baseline detector, trained on WIDER Face, gets an AP of 15.66 on CS6-Test, which underscores the domain shift between WIDER and the surveillance video domain. Using only the high-confidence detections (=0.5) as training samples, *CS6-*Det, boosts performance to 17.29 AP. Using only samples from the tracker and ignoring all pseudo-labels from the detector, CS6-Track, brings down the performance to 11.73 AP. This can be partly attributed to the fact that we may miss a lot of actual faces in an image if we choose to train only on faces picked up by tracking alone. The combination of both tracking and detection results for training, CS6-HP, gives slightly better performance of 17.31 AP. This is a significant boost over the model trained on WIDER-Face: .
Effect of soft-labels. Incorporating soft target labels gives a consistent gain over the default hard labels, as seen in the Label-smooth numbers in Table 3. The effect of varying the distillation weight results in some fluctuation in performance – is 19.89, is 19.56 and is 20.80. Using the completely parameter-free methods we get 19.12 from score histogram remapping (score-remap) and a slightly higher number, 20.65, from HP*-cons*. Both are comparable to distillation with .
Comparison to domain discriminator. The domain adversarial method (DA) gives a high performance on CS6 Test with an AP of 21.02 at the image-level (DA-im) and 22.18 with the instance-level adaptation included (DA-im-roi). Our best numbers (20.80, 20.65) are comparable to this, given the variance over 5 rounds of training.
4.5 Pedestrian detection results
The results on adapting from BDD-Source images from clear, daytime videos to unconstrained settings in BDD-Target are shown in Table 4. In addition to a new task, the target domain of BDD-Pedestrians provides a more challenging situation than CS6. The target domain now consists of multiple modes of appearance – snowy, rainy, cloudy, night-time, dusk, etc.; and various combinations thereof.
Effect of pseudo-labels. The baseline model gets a fairly low AP of 15.21, which is reasonable given the large domain shift from source to target. BDD-Det, which involves training with only the high-confidence detections (threshold ), improves significantly over the baseline with an AP of 26.16. Using only the tracker results as pseudo-labels, BDD-Track, gives similar performance (26.28). BDD-HP, which combines pseudo-labels from both detection and tracking, gives the best performance among these (27.11). This is a significant boost over the baseline: 15.21 27.11.
Effect of soft-labels. Using soft labels via Label-smooth improves results further (27.11 28.59), with performance fluctuating slightly with different values of the hyper-parameter – is 28.59, is 28.38 and is 28.47. Creating soft-labels via score histogram matching (score-remap), we get an AP of 28.02. Emphasizing tracker-only samples while constraining identical behaviour on detector training samples (HP-cons) gives 28.43. Again, both these methods are comparable in performance to using Label-smooth, with the advantage of not having to set the hyper-parameter.
Comparison to domain discriminator. Adapting to the BDD-Target domain was challenging for the domain adversarial (DA) models [8], most likely due to the multiple complex appearance changes, unlike the WIDERCS6 shift which has a more homogeneous target domain. The image-level adaptation (DA-im) models gave 23.65 AP – a significant improvement over the baseline AP of 15.21. We had difficulties getting the DA-im-roi model to converge during training. Using the pseudo-labels from BDD-HP for class-balanced sampling of the ROIs during training had a stabilizing effect (denoted by BDD-DA-im-roi*). This gives 23.69 AP. Overall our results from training with soft pseudo-labels are better than [8] on this dataset by 5 in terms of AP.
Results on sub-domains. The BDD-Target domain implicitly contains a large number of sub-domains such as rainy, foggy, night-time, dusk, etc. We compare the performance of three representative models – baseline, domain adversarial (DA-im) and our soft-labeling method (we pick HP-cons as representative) on a set of such implicit sub-domains in BDD-Target-Test for a fine-grained performance analysis (Fig. 5). Night-time images clearly degrade performance for all the models. Overall both domain adaptive methods improve significantly over the baseline, with HP-cons consistently outperforming DA. It is possible that higher performance from DA can be obtained by some dataset-specific tuning of hyper-parameters on a validation set of labeled target-domain data.
4.6 Automatic threshold selection
The hyper-parameter that thresholds the high-confidence detections can be set without manual inspection of the target domain. We can pick a threshold on labeled source data for a desired level of precision, say 0.95. Using score histogram mapping (Sec 3.3, Fig. 3), we can map to the unlabeled target domain as . These results are shown in Table 5. The thresholds selected based on visual inspection of 5 videos are 0.5 for faces (17.31 AP) and 0.8 for pedestrians (27.11 AP), as described in Sec. 3.1. The performance from automatically set is very close – AP of 16.71 on CS6 and 27.11 on BDD.
5 Conclusion
Our empirical analysis shows self-training with soft-labels to be at par with or better than the recent domain adversarial approach [8] on two challenging tasks. Our method also avoids the extra layers and hyper-parameters of adversarial methods, which are difficult to tune for novel domains in a fully unsupervised scenario. Our method significantly boosts the performance of pre-trained models on the target domain and gives a consistent improvement over assigning hard labels to pseudo-labeled target domain samples, the latter being prevalent in recent works [25, 41]. With minimal dependence on hyper-parameters, we believe our approach to be a readily applicable method for large-scale domain adaptation of object detectors.
Acknowledgement. This material is based on research sponsored by the AFRL and DARPA under agreement number FA8750-18-2-0126. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright notation thereon. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the AFRL and DARPA or the U.S. Government. We acknowledge support from the MassTech Collaborative grant for funding the UMass GPU cluster. We thank Tsung-Yu Lin and Subhransu Maji for helpful discussions.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] M. Abdullah Jamal, H. Li, and B. Gong. Deep face detector adaptation without negative transfer or catastrophic forgetting. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) , June 2018.
- 2[2] S. Baluja. Probabilistic modeling for face orientation discrimination: Learning from labeled and unlabeled data. In Advances in Neural Information Processing Systems , pages 854–860, 1999.
- 3[3] S. Ben-David, J. Blitzer, K. Crammer, A. Kulesza, F. Pereira, and J. W. Vaughan. A theory of learning from different domains. Machine learning , 79(1-2):151–175, 2010.
- 4[4] A. Blum and T. Mitchell. Combining labeled and unlabeled data with co-training. In Proceedings of the eleventh annual conference on Computational learning theory , pages 92–100. ACM, 1998.
- 5[5] K. Bousmalis, N. Silberman, D. Dohan, D. Erhan, and D. Krishnan. Unsupervised pixel-level domain adaptation with generative adversarial networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) , volume 1, page 7, 2017.
- 6[6] O. Chanda, E. W. Teh, M. Rochan, Z. Guo, and Y. Wang. Adapting object detectors from images to weakly labeled videos. In Proceedings of the British Machine Vision Conference (BMVC) , 2017.
- 7[7] O. Chapelle, B. Scholkopf, and A. Zien. Semi-supervised learning (chapelle, o. et al., eds.; 2006)[book reviews]. IEEE Transactions on Neural Networks , 20(3):542–542, 2009.
- 8[8] Y. Chen, W. Li, C. Sakaridis, D. Dai, and L. Van Gool. Domain adaptive faster r-cnn for object detection in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition , pages 3339–3348, 2018.
