Weakly- and Semi-Supervised Panoptic Segmentation

Qizhu Li, Anurag Arnab, Philip H. S. Torr

Introduction

Convolutional Neural Networks (CNNs) excel at a wide array of image recognition tasks . However, their ability to learn effective representations of images requires large amounts of labelled training data . Annotating training data is a particular bottleneck in the case of segmentation, where labelling each pixel in the image by hand is particularly time-consuming. This is illustrated by the Cityscapes dataset where finely annotating a single image took “more than 1.5h on average” . In this paper, we address the problems of semantic- and instance-segmentation using only weak annotations in the form of bounding boxes and image-level tags. Bounding boxes take only 7 seconds to draw using the labelling method of , and image-level tags an average of 1 second per class . Using only these weak annotations would correspond to a reduction factor of 30 in labelling a Cityscapes image which emphasises the importance of cost-effective, weak annotation strategies.

Our work differs from prior art on weakly-supervised segmentation in two primary ways: Firstly, our model jointly produces semantic- and instance-segmentations of the image, whereas the aforementioned works only output instance-agnostic semantic segmentations. Secondly, we consider the segmentation of both “thing” and “stuff” classes , in contrast to most existing work in both semantic- and instance-segmentation which only consider “things”.

We define the problem of instance segmentation as labelling every pixel in an image with both its object class and an instance identifier . It is thus an extension of semantic segmentation, which only assigns each pixel an object class label. “Thing” classes (such as “person” and “car”) are countable and are also studied extensively in object detection . This is because their finite extent makes it possible to annotate tight, well-defined bounding boxes around them. “Stuff” classes (such as “sky” and “vegetation”), on the other hand, are amorphous regions of homogeneous or repetitive textures . As these classes have ambiguous boundaries and no well-defined shape they are not appropriate to annotate with bounding boxes . Since “stuff” classes are not countable, we assume that all pixels of a stuff category belong to the same, single instance. Recently, this task of jointly segmenting “things” and “stuff” at an instance-level has also been named “Panoptic Segmentation” by .

Note that many popular instance segmentation algorithms which are based on object detection architectures are not suitable for this task, as also noted by . These methods output a ranked list of proposed instances, where the different proposals are allowed to overlap each other as each proposal is processed independently of the other. Consequently, these architectures are not suitable where each pixel in the image has to be explained, and assigned a unique label of either a “thing” or “stuff” class as shown in Fig. 1. This is in contrast to other instance segmentation methods such as .

In this work, we use weak bounding box annotations for “thing” classes, and image-level tags for “stuff” classes. Whilst there are many previous works on semantic segmentation from image-level labels, the best performing ones used a saliency prior. The salient parts of an image are “thing” classes in popular saliency datasets and this prior therefore does not help at all in segmenting “stuff” as in our case. We also consider the “semi-supervised” case where we have a mixture of weak- and fully-labelled annotations.

To our knowledge, this is the first work which performs weakly-supervised, non-overlapping instance segmentation, allowing our model to explain all “thing” and “stuff” pixels in the image (Fig. 1). Furthermore, our model jointly produces semantic- and instance-segmentations of the image, which to our knowledge is the first time such a model has been trained in a weakly-supervised manner. Moreover, to our knowledge, this is the first work to perform either weakly supervised semantic- or instance-segmentation on the Cityscapes dataset. On Pascal VOC, our method achieves about 95% of fully-supervised accuracy on both semantic- and instance-segmentation. Furthermore, we surpass the state-of-the-art on fully-supervised instance segmentation as well. Finally, we use our weakly- and semi-supervised framework to examine how model performance varies with the number of examples in the training set and the annotation quality of each example, with the aim of helping dataset creators better understand the trade-offs they face in this context.

Related Work

Instance segmentation is a popular area of scene understanding research. Most top-performing algorithms modify object detection networks to output a ranked list of segments instead of boxes . However, all of these methods process each instance independently and thus overlapping instances are produced – one pixel can be assigned to multiple instances simultaneously. Additionally, object detection based architectures are not suitable for labelling “stuff” classes which cannot be described well by bounding boxes . These limitations, common to all of these methods, have also recently been raised by Kirillov et al. . We observe, however, that there are other instance segmentation approaches based on initial semantic segmentation networks which do not produce overlapping instances and can naturally handle “stuff” classes. Our proposed approach extends methods of this type to work with weaker supervision.

Although prior work on weakly-supervised instance segmentation is limited, there are many previous papers on weak semantic segmentation, which is also relevant to our task. Early work in weakly-supervised semantic segmentation considered cases where images were only partially labelled using methods based on Conditional Random Fields (CRFs) . Subsequently, many approaches have achieved high accuracy using only image-level labels , bounding boxes , scribbles and points . A popular paradigm for these works is “self-training” : a model is trained in a fully-supervised manner by generating the necessary ground truth with the model itself in an iterative, Expectation-Maximisation (EM)-like procedure . Such approaches are sensitive to the initial, approximate ground truth which is used to bootstrap training of the model. To this end, Khoreva et al. showed how, given bounding box annotations, carefully chosen unsupervised foreground-background and segmentation-proposal algorithms could be used to generate high-quality approximate ground truth such that iterative updates to it were not required thereafter.

Our work builds on the “self-training” approach to perform instance segmentation. To our knowledge, only Khoreva et al. have published results on weakly-supervised instance segmentation. However, the model used by was not competitive with the existing instance segmentation literature in a fully-supervised setting. Moreover, only considered bounding-box supervision, whilst we consider image-level labels as well. Recent work by modifies Mask-RCNN to train it using fully-labelled examples of some classes, and only bounding box annotations of others. Our proposed method can also be used in a semi-supervised scenario (with a mixture of fully- and weakly-labelled training examples), but unlike , our approach works with only weak supervision as well. Furthermore, in contrast to and , our method does not produce overlapping instances, handles “stuff” classes and can thus explain every pixel in an image as shown in Fig. 1.

Proposed Approach

We first describe how we generate approximate ground truth data to train semantic- and instance-segmentation models with in Sec. 3.1 through 3.4. Thereafter, in Sec. 3.5, we discuss the network architecture that we use. To demonstrate our method and ensure the reproducibility of our results, we release our approximate ground truth and the code to generate ithttps://github.com/qizhuli/Weakly-Supervised-Panoptic-Segmentation.

In a fully-supervised setting, semantic segmentation models are typically trained by performing multinomial logistic regression independently for each pixel in the image. The loss function, the cross entropy between the ground-truth distribution and the prediction, can be written as

where lil_{i} is the ground-truth label at pixel ii, p(liI)p(l_{i}|\mathbf{I}) is the probability (obtained from a softmax activation) predicted by the neural network for the correct label at pixel ii of image I\mathbf{I} and Ω\Omega is the set of pixels in the image.

In the weakly-supervised scenarios considered in this paper, we do not have reliable annotations for all pixels in Ω\Omega. Following recent work , we use our weak supervision and image priors to approximate the ground-truth for a subset ΩΩ\Omega^{\prime}\subset\Omega of the pixels in the image. We then train our network using the estimated labels of this smaller subset of pixels. Section 3.2 describes how we estimate Ω\Omega^{\prime} and the corresponding labels for images with only bounding-box annotations, and Sec. 3.3 for image-level tags.

Our approach to approximating the ground truth is based on the principle of only assigning labels to pixels which we are confident about, and marking the remaining set of pixels, ΩΩ\Omega\setminus\Omega^{\prime}, as “ignore” regions over which the loss is not computed. This is motivated by Bansal et al. who observed that sampling only 4% of the pixels in the image for computing the loss during fully-supervised training yielded about the same results as sampling all pixels, as traditionally done. This supported their hypothesis that most of the training data for a pixel-level task is statistically correlated within an image, and that randomly sampling a much smaller set of pixels is sufficient. Moreover, and showed improved results by respectively sampling only 6% and 12% of the hardest pixels, instead of all of them, in fully-supervised training.

2 Approximate ground truth from bounding box annotations

We use GrabCut (a classic foreground segmentation technique given a bounding-box prior) and MCG (a segment-proposal algorithm) to obtain a foreground mask from a bounding-box annotation, following . To achieve high precision in this approximate labelling, a pixel is only assigned to the object class represented by the bounding box if both GrabCut and MCG agree (Fig. 2).

Note that the final stage of MCG uses a random forest trained with pixel-level supervision on Pascal VOC to rank all the proposed segments. We do not perform this ranking step, and obtain a foreground mask from MCG by selecting the proposal that has the highest Intersection over Union (IoU) with the bounding box annotation.

This approach is used to obtain labels for both semantic- and instance-segmentation as shown in Fig. 2. As each bounding box corresponds to an instance, the foreground for each box is the annotation for that instance. If the foreground of two bounding boxes of the same class overlap, the region is marked as “ignore” as we do not have enough information to attribute it to either instance.

3 Approximate ground-truth from image-level annotations

When only image-level tags are available, we leverage the fact that CNNs trained for image classification still have localisation information present in their convolutional layers . Consequently, when presented with a dataset of only images and their tags, we first train a network to perform multi-label classification. Thereafter, we extract weak localisation cues for all the object classes that are present in the image (according to the image-level tags). These localisation heatmaps (as shown in Fig. 3) are thresholded to obtain the approximate ground-truth for a particular class. It is possible for localisation heatmaps for different classes to overlap. In this case, thresholded heatmaps occupying a smaller area are given precedence. We found this rule, like , to be effective in preventing small or thin objects from being missed.

Though this approach is independent of the weak localisation method used, we used Grad-CAM . Grad-CAM is agnostic to the network architecture unlike CAM and also achieves better performance than Excitation BP on the ImageNet localisation task .

We cannot differentiate different instances of the same class from only image tags as the number of instances is unknown. This form of weak supervision is thus appropriate for “stuff” classes which cannot have multiple instances. Note that saliency priors, used by many works such as on Pascal VOC, are not suitable for “stuff” classes as popular saliency datasets only consider “things” to be salient.

4 Iterative ground truth approximation

The ground truth approximated in Sec. 3.2 and 3.3 can be used to train a network from random initialisation. However, the ground truth can subsequently be iteratively refined by using the outputs of the network on the training set as the new approximate ground truth as shown in Fig 4. The network’s output is also post-processed with DenseCRF using the parameters of Deeplab (as also done by ) to improve the predictions at boundaries. Moreover, any pixel labelled a “thing” class that is outside the bounding-box of the “thing” class is set to “ignore” as we are certain that a pixel for a thing class cannot be outside its bounding box. For a dataset such as Pascal VOC, we can set these pixels to be “background” rather than “ignore”. This is because “background” is the only “stuff” class in the dataset.

5 Network Architecture

Using the approximate ground truth generation method described in this section, we can train a variety of segmentation models. Moreover, we can trivially combine this with full human-annotations to operate in a semi-supervised setting. We use the architecture of Arnab et al. as it produces both semantic- and instance-segmentations, and can be trained end-to-end, given object detections. This network consists of a semantic segmentation subnetwork, followed by an instance subnetwork which partitions the initial semantic segmentation into an instance segmentation with the aid of object detections, as shown in Fig. 5.

We denote the output of the first module, which can be any semantic segmentation network, as Q\mathbf{Q} where Qi(l)Q_{i}(l) is the probability of pixel ii of being assigned semantic label ll. The instance subnetwork has two inputs – Q\mathbf{Q} and a set of object detections for the image. There are DD detections, each of the form (ld,sd,Bd)\left(l_{d},s_{d},B_{d}\right) where ldl_{d} is the detected class label, sds_{d}\in the score and BdB_{d} the set of pixels lying within the bounding box of the dthd^{th} detection. This model assumes that each object detection represents a possible instance, and it assigns every pixel in the initial semantic segmentation an instance label using a Conditional Random Field (CRF). This is done by defining a multinomial random variable, XiX_{i}, at each of the NN pixels in the image, with X=[X1,X2,XN]\mathbf{X}=[X_{1},X_{2}\ldots,X_{N}]^{\top}. This variable takes on a label from the set {1,,D}\{1,\ldots,D\} where DD is the number of detections. This formulation ensures that each pixel can only be assigned one label. The energy of the assignment x\mathbf{x} to all instance variables X\mathbf{X} is then defined as

The first unary term, the box term, encourages a pixel to be assigned to the instance represented by a detection if it falls within its bounding box,

Note that this term is robust to false-positive detections since it is low if the semantic segmentation at pixel ii, Qi(lk)Q_{i}(l_{k}) does not agree with the detected label, lkl_{k}. The global term,

is independent of bounding boxes and can thus overcome errors in mislocalised bounding boxes not covering the whole instance. Finally, the pairwise term is the common densely-connected Gaussian and bilateral filter encouraging appearance and spatial consistency.

In contrast to , we also consider stuff classes (which object detectors are not trained for), by simply adding “dummy” detections covering the whole image with a score of 1 for all stuff classes in the dataset. This allows our network to jointly segment all “things” and “stuff” classes at an instance level. As mentioned before, the box and global unary terms are not affected by false-positive detections arising from detections for classes that do not correspond to the initial semantic segmentation Q\mathbf{Q}. The Maximum-a-Posteriori (MAP) estimate of the CRF is the final labelling, and this is obtained by using mean-field inference, which is formulated as a differentiable, recurrent network .

We first train the semantic segmentation subnetwork using a standard cross-entropy loss with the approximate ground truth described in Sec 3.2 and 3.3. Thereafter, we append the instance subnetwork and finetune the entire network end-to-end. For the instance subnetwork, the loss function must take into account that different permutations of the same instance labelling are equivalent. As a result, the ground truth is “matched” to the prediction before the cross-entropy loss is computed as described in .

Experimental Evaluation

We evaluate on two standard segmentation datasets, Pascal VOC and Cityscapes . Our weakly- and fully-supervised experiments are trained with the same images, but in the former case, pixel-level ground truth is approximated as described in Sec. 3.1 through 3.4.

Pascal VOC has 20 “thing” classes annotated, for which we use bounding box supervision. There is a single “background” class for all other object classes. Following common practice on this dataset, we utilise additional images from the SBD dataset to obtain a training set of 10582 images. In some of our experiments, we also use 54000 images from Microsoft COCO only for the initial pretraining of the semantic subnetwork. We evaluate on the validation set, of 1449 images, as the evaluation server is not available for instance segmentation.

Cityscapes has 8 “thing” classes, for which we use bounding box annotations, and 11 “stuff” class labels for which we use image-level tags. We train our initial semantic segmentation model with the images for which 19998 coarse and 2975 fine annotations are available. Thereafter, we train our instance segmentation network using the 2975 images with fine annotations available as these have instance ground truth labelled. Details of the multi-label classification network we trained in order to obtain weak localisation cues from image-level tags (Sec. 3.3) are described in the supplementary. When using Grad-CAM, the original authors originally used a threshold of 15% of the maximum value for weak localisation on ImageNet. However, we increased the threshold to 50% to obtain higher precision on this more cluttered dataset.

Our underlying segmentation network is a reimplementation of PSPNet . For fair comparison to our weakly-supervised model, we train a fully-supervised model ourselves, using the same training hyperparameters (detailed in the supplementary) instead of using the authors’ public, fully-supervised model. The original PSPNet implementation used a large batch size synchronised over 16 GPUs, as larger batch sizes give better estimates of batch statistics used for batch normalisation . In contrast, our experiments are performed on a single GPU with a batch size of one 521×521521\times 521 image crop. As a small batch size gives noisy estimates of batch statistics, our batch statistics are “frozen” to the values from the ImageNet-pretrained model as common practice . Our instance subnetwork requires object detections, and we train Faster-RCNN for this task. All our networks use a ResNet-101 backbone.

We use the APrAP^{r} metric , commonly used in evaluating instance segmentation. It extends the APAP, a ranking metric used in object detection , to segmentation where a predicted instance is considered correct if its Intersection over Union (IoU) with the ground truth instance is more than a certain threshold. We also report the APvolrAP^{r}_{vol} which is the mean APrAP^{r} across a range of IoU thresholds. Following the literature, we use a range of 0.10.1 to 0.90.9 in increments of 0.10.1 on VOC, and 0.50.5 to 0.950.95 in increments of 0.050.05 on Cityscapes.

However, as noted by several authors , the APrAP^{r} is a ranking metric that does not penalise methods which predict more instances than there actually are in the image as long as they are ranked correctly. Moreover, as it considers each instance independently, it does not penalise overlapping instances. As a result, we also report the Panoptic Quality (PQ) recently proposed by ,

where pp and gg are the predicted and ground truth segments, and TP\mathit{TP}, FP\mathit{FP} and FN\mathit{FN} respectively denote the set of true positives, false positives and false negatives.

2 Results on Pascal VOC

Tables 1 and 2 show the state-of-art results of our method for semantic- and instance-segmentation respectively. For both semantic- and instance-segmentation, our weakly supervised model obtains about 95% of the performance of its fully-supervised counterpart, emphasising that accurate models can be learned from only bounding box annotations, which are significantly quicker and cheaper to obtain than pixelwise annotations. Table 2 also shows that our weakly-supervised model outperforms some recent fully supervised instance segmentation methods such as and . Moreover, our fully-supervised instance segmentation model outperforms all previous work on this dataset. The main difference of our model to is that our network is based on the PSPNet architecture using ResNet-101, whilst used the network of based on VGG .

We can obtain semantic segmentations from the output of our semantic subnetwork, or from the final instance segmentation (as we produce non-overlapping instances) by taking the union of all instances which have the same semantic label. We find that the IoU obtained from the final instance segmentation, and the initial pretrained semantic subnetwork to be very similar, and report the latter in Tab.1. Further qualitative and quantitative results, including success and failure cases, are included in the supplement.

Our instance subnetwork can be trained in a piecewise fashion, or the entire network including the semantic subnetwork can be trained end-to-end. End-to-end training was shown to obtain higher performance by for full supervision. We also observe this effect for weak supervision from bounding box annotations. A weakly supervised model, trained with COCO annotations improves from an APvolrAP^{r}_{vol} of 53.3 to 55.5. When not using COCO for training the initial semantic subnetwork, a slightly higher increase by 3.9 from 51.7 is observed. This emphasises that our training strategy (Sec. 3.1) is effective for both semantic- and instance-segmentation.

The approximate ground truth used to train our model can also be generated in an iterative manner, as discussed in Sec. 3.4. However, as the results from a single iteration (Tab. 1 and 2) are already very close to fully-supervised performance, this offers negligible benefit. Iterative training is, however, crucial for obtaining good results on Cityscapes as discussed in Sec. 4.3.

We also consider the case where we have a combination of weak and full annotations. As shown in Tab. 4, we consider all combinations of weak- and full-supervision of the training data from Pascal VOC and COCO. Table 4 shows that training with fully-supervised data from COCO and weakly-supervised data from VOC performs about the same as weak supervision from both datasets for both semantic- and instance-segmentation. Furthermore, training with fully annotated VOC data and weakly labelled COCO data obtains similar results to full supervision from both datasets. We have qualitatively observed that the annotations in Pascal VOC are of higher quality than those of Microsoft COCO (random samples from both datasets are shown in the supplementary). And this intuition is evident in the fact that there is not much difference between training with weak or full annotations from COCO. This suggests that in the case of segmentation, per-pixel labelling of additional images is not particularly useful if they are not labelled to a high standard, and that labelling fewer images at a higher quality (Pascal VOC) is more beneficial than labelling many images at a lower quality (COCO). This is because Tab. 4 demonstrates how both semantic- and instance-segmentation networks can be trained to achieve similar performance by using only bounding box labels instead of low-quality segmentation masks. The average annotation time can be considered a proxy for segmentation quality. While a COCO instance took an average of 79 seconds to segment , this figure is not mentioned for Pascal VOC .

3 Results on Cityscapes

Tables 4 and 5 present, what to our knowledge is, the first weakly supervised results for either semantic or instance segmentation on Cityscapes. Table 4 shows that, as expected for semantic segmentation, our weakly supervised model performs better, relative to the fully-supervised model, for “thing” classes compared to “stuff” classes. This is because we have more informative bounding box labels for “things”, compared to only image-level tags for “stuff”. For semantic segmentation, we obtain about 97% of fully-supervised performance for “things” (similar to our results on Pascal VOC) and 83% for “stuff”. Note that we evaluate images at a single-scale, and higher absolute scores could be obtained by multi-scale ensembling .

For instance-level segmentation, the fully-supervised ratios for the PQ are similar to the IoU ratio for semantic segmentation. In Tab. 5, we report the APvolrAP^{r}_{vol} and PQ for both thing and stuff classes, assuming that there is only one instance of a “stuff” class in the image if it is present.

Here, the APvolrAP^{r}_{vol} for “stuff” classes is higher than that for “things”. This is because there can only be one instance of a “stuff” class, which makes instances easier to detect, particularly for classes such as “road” which typically occupy a large portion of the image. The Cityscapes evaluation server, and previous work on this dataset, only report the APvolrAP^{r}_{vol} for “thing” classes. As a result, we report results for “stuff” classes only on the validation set. Table 5 also compares our results to existing work which produces non-overlapping instances on this dataset, and shows that both our fully- and weakly-supervised models are competitive with recently published work on this dataset. We also include the results of our fully-supervised model, initialised from the public PSPNet model released by the authors, and show that this is competitive with the state-of-art among methods producing non-overlapping segmentations (note that also uses the same PSPNet model). Figure 7 shows some predictions of our weakly supervised model; further results are in the supplementary.

Iteratively refining our approximate ground truth during training, as described in Sec. 3.4, greatly improves our performance on both semantic- and instance-segmentation as shown in Fig. 6. We trained the network for 150 000 iterations before regenerating the approximate ground truth using the network’s own output on the training set. Unlike on Pascal VOC, iterative training is necessary to obtain good performance on Cityscapes as the approximate ground truth generated on the first iteration is not sufficient to obtain high accuracy. This was expected for “stuff” classes, since we began from weak localisation cues derived from the image-level tags. However, as shown in Fig. 6, “thing” classes also improved substantially with iterative training, unlike on Pascal VOC where there was no difference. Compared to VOC, Cityscapes is a more cluttered dataset, and has large scale variations as the distance of an object from the car-mounted camera changes. These dataset differences may explain why the image priors employed by the methods we used (GrabCut and MCG ) to obtain approximate ground truth annotations from bounding boxes are less effective. Furthermore, in contrast to Pascal VOC, Cityscapes has frequent co-occurences of the same objects in many different images, making it more challenging for weakly supervised methods.

The APrAP^{r} metric is a ranking metric derived from object detection. It thus requires predicted instances to be scored such that they are ranked in the correct relative order. As our network uses object detections as an additional input and each detection represents a possible instance, we set the score of a predicted instance to be equal to the object detection score. For the case of stuff classes, which object detectors are not trained for, we use a constant detection score of 1 as described in Sec. 3.5. An alternative to using a constant score for “stuff” classes is to take the mean of the softmax-probability of all pixels within the segmentation mask. Table 6 shows that this latter method improves the APrAP^{r} for stuff classes. For “things”, ranking with the detection score performs better and comes closer to oracle performance which is the maximum APrAP^{r} that could be obtained with the predicted instances.

Fig. 7. Example results on Cityscapes of our weakly supervised model.

Changing the score of a segmented instance does not change the quality of the actual segmentation, but does impact the APrAP^{r} greatly as shown in Tab. 6. The PQ, which does not use scores, is unaffected by different ranking methods, and this suggests that it is a better metric for evaluating non-overlapping instance segmentation where each pixel in the image is explained.

Conclusion and Future Work

We have presented, to our knowledge, the first weakly-supervised method that jointly produces non-overlapping instance and semantic segmentation for both “thing” and “stuff” classes. Using only bounding boxes, we are able to achieve 95% of state-of-art fully-supervised performance on Pascal VOC. On Cityscapes, we use image-level annotations for “stuff” classes and obtain 88.8% of fully-supervised performance for semantic segmentation and 85.6% for instance segmentation (measured with the PQ). Crucially, the weak annotations we use incur only about 3% of the time of full labelling. As annotating pixel-level segmentation is time consuming, there is a dilemma between labelling few images with high quality or many images with low quality. Our semi-supervised experiment suggests that the latter is not an effective use of annotation budgets as similar performance can be obtained from only bounding-box annotations.

Future work is to perform instance segmentation using only image-level tags and the number of instances of each object present in the image as supervision. This will require a network architecture that does not use object detections as an additional input.

This work was supported by Huawei Technologies Co., Ltd., the EPSRC, Clarendon Fund, ERC grant ERC-2012-AdG 321162-HELIOS, EPRSRC grant Seebibyte EP/M013774/1 and EPSRC/MURI grant EP/N019474/1.

References

Appendix

Section 0.A presents further qualitative and quantitative results of our experiments on Cityscapes and Pascal VOC. Section 0.B describes the training of the networks described in the main paper. Section 4.2 of our paper mentioned that the annotation quality of Pascal VOC is better than COCO . Some randomly drawn images from these datasets are presented to illustrate this point in Sec. 0.C. Finally, Sec. 0.D shows our calculation of how much the overall annotation time is reduced by using weak annotations, in comparison to full annotations, on the Cityscapes dataset.

Appendix 0.A Additional Qualitative and Quantitative Results

Figure 7 and Tab. 7 present additional qualitative and quantitative results on the Cityscapes dataset. Similarly, Fig. 8 and Tab. 8 show additional results on the Pascal VOC dataset.

Appendix 0.B Experimental Details

The underlying semantic segmentation network is a reimplementation of PSPNet as described in Sec. 3.5 of the main paper, using a ResNet-101 backbone. This network has an output stride of 8, meaning that the result of the network has to be upsampled by a factor of 8 to obtain the final prediction at the original resolution.

We used most of the same training hyperparameters for training both our fully- and weakly-supervised networks. A batch size of a single 521×521521\times 521 image crop, momentum of 0.90.9, and a weight decay of 5×1045\times 10^{-4} were used in all our experiments.

We trained the semantic segmentation module first, and finetuned the entire instance segmentation network afterwards. For training the semantic segmentation module, the fully supervised models were trained with an initial learning rate of 1×1041\times 10^{-4}, which was then reduced to 1×1051\times 10^{-5} when the training loss converged. We used the same learning rate schedule for our weakly-supervised model on Pascal VOC where we did not do any iterative training. In total, about 400k400\text{k} iterations of training were performed. When training our weakly-supervised model iteratively on Cityscapes, we used an initial learning rate of 1×1041\times 10^{-4} which was then halved for each subsequent stage of iterative training. Each of these iterative training stages were 150k150\text{k} iterations long. Both of the weakly- and fully-supervised models were initialised with ImageNet-pretrained weights and batch normalisation statistics.

In the instance training stage, we fixed the learning rate to 1×1051\times 10^{-5} for both weakly- and fully-supervised experiments on the VOC and Cityscapes datasets. We observed that a total of 400k400\text{k} iterations were required for the models’ training losses to converge.

When training the Faster-RCNN object detector , we used all the default training hyperparameters in the publicly available code.

B.2 Multi-label classification network

We obtained weak localisation cues, as described in Sec. 3.3 of the main paper, by first training a network to perform multi-label classification on the Cityscapes dataset.

We adapted the same PSPNet architecture for segmentation for the classification task: The output of the last convolutional layer (conv5_4) is followed by a global average pooling layer to aggregate all the spatial information. Thereafter, a fully-connected layer with 19 outputs (the number of classes in the Cityscapes dataset) is appended. This network was then trained with a binary cross entropy loss for each of the 19 labels in the dataset. The loss for a single image is

where y\mathbf{y} is the ground truth image-level label vector and yi=1y_{i}=1 if the ithi^{th} class is present in the image and 0 otherwise. ziz_{i} is the logit for the ithi^{th} class output by the final fully-connected layer in the network.

It is not possible to fit an entire 2048×10242048\times 1024 Cityscapes image in memory to perform multi-label classification. Using the PSPNet architecture described above (with an output stride of 8), it would take 48.8 GB of memory to train a network with a batch size of 1. Even the standard ResNet-101 architecture (which has a higher output stride of 32, and thus sixteen times less spatial resolution) would take 21.7 GB of memory, which is still almost double the 12GB available in our Titan X GPU. Consequently, we took 15 fixed crops of size 500×400500\times 400 from the original 2048×10242048\times 1024 image and trained with these crops instead. We were careful not to take random crops during training, as this could be a form of extra supervision. Instead, as we took 15 fixed crops which tile the image and derived image-level labels from them, it effectively means that in a real-world scenario annotators would be asked to annotate image-level labels for fifteen 500×400500\times 400 images rather than a single 2048×10242048\times 1024 image.

This multi-label classification network was trained with a batch size of 1 and a fixed learning rate of 1×1041\times 10^{-4} until the training loss converged. We found that this occurred after 50k50\text{k} iterations of training. At this point, the mean Average Precision (mAP) on the validation set was 78.8. The mAP is also used by the Pascal VOC dataset to benchmark multi-label classification .

Appendix 0.C Comparison of Pascal VOC and Microsoft COCO annotation quality

Section 4.2 of the main paper mentioned that images in Pascal VOC are annotated at a higher quality than those in Microsoft COCO . Figure 9 illustrates this observation. Images were randomly drawn from Microsoft COCO, and then images from Pascal VOC with the same semantic classes present are shown alongside for comparison. The polygons used to annotate the objects in COCO are evident, and the annotations at the boundaries of objects are often incorrect.

Appendix 0.D Calculation of reduction factor in annotation time if only weak labels are used

The Cityscapes dataset has 11 “stuff” classes, and 8 “thing” classes annotated. Over the training and validation sets, there are an average of 17.917.9 instances of “thing” classes per full-resolution, 2048×10242048\times 1024 image.

For the calculation in Sec. 1 of the paper, we assumed that each instance of a “thing” class is labelled with a bounding box, and that image-level tags are annotated for all present “stuff” classes. We assumed that a bounding box takes 7 seconds per instance to draw and that an image-level tag takes 1 second to label .

Therefore the average time to annotate “thing” classes with a bounding-box is 17.9×7=125.317.9\times 7=125.3 seconds. As we took 15 fixed crops per image (as described in Sec. 0.B.2) and there are an average of 3.8 “stuff” tags per crop, the average time to annotate stuff classes is 15×3.8=5715\times 3.8=57 seconds. This totals 182.3182.3 seconds =3.0=3.0 minutes per image. Thus the annotation time is reduced by a factor of 29.629.6 (since the images originally required 90 minutes to label at a pixel-level by hand ) if weak annotations in the form of bounding boxes and image-level tags are used.