TL;DR
This paper tackles the challenge of training effective semantic segmentation models using only synthetic data, which typically performs poorly on real-world images due to domain shift. They propose a novel approach that treats foreground and background classes differently, leveraging object detectors for foregrounds and standard segmentation networks for backgrounds, achieving state-of-the-art results without requiring any real training data.
What Problem Does This Paper Address?
Semantic segmentation, a task crucial for understanding urban scenes (e.g., for autonomous driving), relies heavily on deep learning models. These models, however, require vast amounts of pixel-level annotated data, which is extremely expensive and time-consuming to acquire for real-world images. While synthetic data offers an automatic labeling solution, models trained solely on synthetic data exhibit a significant performance drop when applied to real images. Existing domain adaptation techniques aim to bridge this gap but typically require access to unlabeled real data during training, limiting their applicability in scenarios where only synthetic data is available offline. This paper addresses the problem of effectively utilizing synthetic data for semantic segmentation without relying on any real data during the training phase.
Methods
The core of the proposed method lies in the observation that the domain shift between synthetic and real images affects foreground and background classes differently. Specifically, background textures in synthetic images are often more realistic than foreground textures, but foreground object shapes remain natural.
- Differential Treatment of Classes: The authors propose to handle foreground and background classes separately.
- Background Classes: A standard semantic segmentation network (DeepLab) is used, leveraging the more realistic textures of background classes in synthetic data.
- Foreground Classes: A detection-based approach (Mask R-CNN) is employed. This is because object detectors rely more on shape than texture for recognition, and synthetic object shapes are deemed realistic. Mask R-CNN provides instance-level segmentation, which is then used to extract foreground object masks.
- Fusion Strategy: At test time, predictions from both networks are fused. The Mask R-CNN predictions are prioritized, and any remaining "holes" (pixels not assigned to a foreground object) are filled with predictions from the DeepLab network. This fusion strategy is inspired by panoptic segmentation.
- Leveraging Unsupervised Real Images (Extension): For scenarios where unlabeled real images are available during training, the authors propose a strategy to further improve performance. They use the predictions from their synthetic-trained model on real images as "pseudo ground-truth." Importantly, they assign an "ignore" label to pixels predicted as foreground by DeepLab in these pseudo-labels, acknowledging the unreliability of standard segmentation networks for foregrounds. This pseudo-labeled data is then used to train the DeepLab network.
- VEIS Environment: A secondary contribution is the introduction of the Virtual Environment for Instance Segmentation (VEIS). This environment, built in Unity3D, automatically generates synthetic urban scenes with instance-level annotations for foreground classes, addressing a limitation of existing datasets.
Datasets
- Synthetic Training Data:
- GTA5: Used for training the DeepLab semantic segmentation network for background classes.
- VEIS: A newly introduced dataset generated using the VEIS environment. It provides instance-level annotations for foreground classes and is used to train the Mask R-CNN detector.
- SYNTHIA and VIPER: Also used for training fully-supervised baseline models for comparison.
- Real-World Evaluation Data:
- Cityscapes: The primary dataset for evaluating semantic segmentation performance.
- CamVid: Used for additional evaluation.
Key Insights and Ideas
- Domain Shift is Class-Dependent: The most crucial insight is that the domain shift between synthetic and real data is not uniform across all object classes. Foreground and background classes are affected differently, which can be exploited for better model training.
- Shape Over Texture for Foreground: For foreground objects, realistic shape is more robust to domain shift than realistic texture. This justifies the use of detection-based methods that rely on shape.
- Orthogonal Approach: The proposed method is orthogonal to traditional domain adaptation techniques, meaning it can potentially be combined with them for even better performance.
- Instance-Level Data for Detection: The VEIS dataset's ability to provide instance-level annotations for foreground objects is key to training effective object detectors for this task.
Key Results
- The proposed method, trained solely on synthetic data, significantly outperforms standard semantic segmentation networks trained on synthetic data and state-of-the-art domain adaptation techniques on the Cityscapes dataset.
- The improvement is particularly pronounced for foreground classes.
- When leveraging unsupervised real images (Ours+Pseudo-GT), the performance further boosts, outperforming baselines even without seeing real images during initial training.
- Qualitative results show visually more accurate segmentation, especially around object boundaries and for foreground objects.
- The VEIS dataset, despite being less photo-realistic than GTA5, significantly improves performance when used with the proposed detection-based framework.
Limitations and Future Work
- VEIS Realism: The paper acknowledges that images generated by VEIS are less photo-realistic than those from GTA5. While effective within their proposed framework, they might not significantly improve standard segmentation networks.
- Domain Adaptation Integration: The authors explicitly state that their approach is orthogonal to domain adaptation and suggest investigating how to incorporate domain adaptation techniques into their framework in the future.
- Computational Cost: While not explicitly detailed as a limitation, the use of two separate networks (DeepLab and Mask R-CNN) and a fusion strategy implies a higher computational cost during inference compared to a single segmentation network.
Summary updated