Introduction
Autonomous vehicles rely heavily on semantic segmentation to interpret their surroundings. However, dynamic objects—such as other vehicles, cyclists, and pedestrians—frequently occlude the static "floor plan" of the environment. For a robot, knowing what lies behind a parked truck (e.g., whether it is a sidewalk or a driveway) is crucial for safe path planning and behavior prediction.
Traditional image inpainting focuses on RGB textures, aiming to make a missing region look "natural" to a human observer. In contrast, this research argues that for autonomous systems, the exact texture of a brick wall is less important than knowing that the region is a wall. The authors propose a solution for semantic image inpainting: removing dynamic objects from a segmentation map and hallucinating the most probable static background.
Methodology
The authors adapt a Generative Adversarial Network (GAN) paradigm, specifically building upon the "Generative Inpainting Network" by Yu et al. (2018). The core innovation lies in shifting the domain from RGB pixels to semantic labels.
Technical Modifications
- Input Representation: The network consumes one-hot encoded tensors where each channel represents a specific semantic class (e.g., road, vegetation, sky).
- Loss Function: Standard RGB inpainting uses $\ell_1$ or $\ell_2$ reconstruction losses. This model replaces them with a softmax cross-entropy loss, treating inpainting as a pixel-wise classification problem. This forces the model to make "hard" assignments for each pixel rather than blurry averages.
- Architecture: A coarse-to-fine generator is employed, featuring an attention layer that allows the network to "borrow" features from distant, visible parts of the background to fill in occluded regions accurately.
- Spatially Discounted Loss: To manage uncertainty, pixels further from the hole's boundary are penalized less, acknowledging that the center of a large occluded area is inherently harder to predict.
Datasets
The study utilizes two primary datasets to train and evaluate the model:
- Cityscapes: A standard dataset for urban scene understanding. While it provides real-world complexity, it lacks "empty road" ground truth for direct evaluation of inpainting.
- MICC-SRI (Semantic Road Inpainting): A novel dataset introduced by the authors using the CARLA simulator. By running the same simulation twice—once with traffic and once without—they generated 11,913 pairs of perfectly aligned frames. This provides the first quantitative benchmark for semantic inpainting by offering the "ground truth" of the static layout.
Key Results and Insights
The GAN-based approach significantly outperformed traditional computer vision baselines both quantitatively and qualitatively.
Performance Comparison
On the MICC-SRI dataset using ground truth input, the GAN achieved 81.94% per-pixel accuracy within masked regions. In comparison, the Nearest Neighbor baseline reached 68.41%, and PatchMatch (a popular RGB inpainting algorithm) achieved only 19.32%.
Structural Reasoning
Unlike simple baselines, the GAN learns the "grammar" of urban layouts. For instance, it understands that a sidewalk typically sits between a road and a building. The authors also found that performing inpainting after semantic segmentation (Segmentation $\to$ Inpaint) yields much higher accuracy than inpainting the RGB image and then segmenting the result (Inpaint $\to$ Segmentation). This suggests that semantics provide a more stable domain for structural reasoning than raw textures.
Conclusion and Future Work
While the model shows strong performance, some limitations remain. Confusion matrices indicate that "Sidewalk" is occasionally confused with "Road" due to their geometric proximity. Furthermore, using predicted segmentations (e.g., from DeepLab) rather than ground truth makes the task harder, as the rounded edges of predicted masks lack the sharp structural cues the GAN uses to "snap" boundaries together.
Future research directions include integrating this static layout understanding into ego-vehicle trajectory planning in crowded scenarios and exploring "future anticipation"—predicting how the layout evolves as the vehicle moves through the environment.
Summary updated