Introduction
Semantic segmentation—assigning a class label to every pixel in an image—is a cornerstone of autonomous driving systems. However, processing high-resolution road-driving images in real-time (>30 FPS) is computationally demanding. To meet these constraints, the research community has largely shifted toward designing custom, lightweight architectures from scratch.
This paper challenges that trend, arguing that specialized models often miss out on the powerful feature representations learned through ImageNet pre-training. The authors introduce SwiftNet, a family of models that pairs standard, off-the-shelf classification backbones with an ultra-lightweight decoder to achieve state-of-the-art performance without the need for complex, custom-built architectures.
The SwiftNet Architecture
The SwiftNet approach is defined by three primary design choices aimed at maximizing both accuracy and inference speed:
- Standard Backbones: Instead of a custom design, SwiftNet utilizes standard lightweight classification networks (such as ResNet-18 or MobileNetV2) as encoders. This allows the model to leverage "free" accuracy gains from ImageNet pre-training, which the authors found can boost performance by up to 5% mIoU.
- Lightweight Ladder Decoder: To restore spatial resolution, the architecture employs a lean upsampling path. It uses bilinear interpolation and simple 1x1 convolutions for "lateral connections" (skip connections) that inject spatial detail from the encoder back into the predictions.
- Interleaved Pyramid Fusion: To capture objects of varying sizes (from distant pedestrians to nearby buses), the model can process input images at multiple resolutions through the same shared-weight encoder. These multi-scale features are then fused within the decoder, increasing the effective receptive field efficiently.
Key Insights and Results
The models were evaluated on the Cityscapes and CamVid benchmarks. The results demonstrated that SwiftNet could outperform existing specialized real-time models like ICNet and ERFNet.
Performance Highlights
- Speed and Accuracy: On the Cityscapes test set, SwiftNetRN-18 achieved 75.5% mIoU at 39.9 FPS on a single GTX 1080Ti at full resolution.
- Hardware Considerations: While MobileNetV2 has fewer theoretical operations (FLOPs), the authors noted that ResNet-18 is often faster on actual GPU hardware because its operations are more optimized for current deep learning libraries like cuDNN.
- Embedded Feasibility: The architecture proved viable for edge computing, running at approximately 18-20 FPS on the NVIDIA Jetson TX2 at reduced resolutions.
Conclusion
SwiftNet demonstrates that custom-built architectures for real-time semantic segmentation are often unnecessary. By pairing standard, pre-trained backbones with an efficient decoder and multi-resolution fusion, it is possible to achieve superior results. This approach suggests that as classification backbones continue to evolve, semantic segmentation performance can be improved simply by swapping in more efficient, pre-trained encoders.
Summary updated