Libo Wang, Rui Li, Ce Zhang, Shenghui Fang, Chenxi Duan, Xiaoliang Meng, Peter M. Atkinson
Semantic segmentation of remotely sensed urban scene images is required in a wide range of practical applications, such as land cover mapping, urban change detection, environmental protection, and economic assessment.Driven by rapid developments in deep learning technologies, the convolutional neural network (CNN) has dominated semantic segmentation for many years. CNN adopts hierarchical feature representation, demonstrating strong capabilities for local information extraction. However, the local property of the convolution layer limits the network from capturing the global context. Recently, as a hot topic in the domain of computer vision, Transformer has demonstrated its great potential in global information modelling, boosting many vision-related tasks such as image classification, object detection, and particularly semantic segmentation. In this paper, we propose a Transformer-based decoder and construct a UNet-like Transformer (UNetFormer) for real-time urban scene segmentation. For efficient segmentation, the UNetFormer selects the lightweight ResNet18 as the encoder and develops an efficient global-local attention mechanism to model both global and local information in the decoder. Extensive experiments reveal that our method not only runs faster but also produces higher accuracy compared with state-of-the-art lightweight models. Specifically, the proposed UNetFormer achieved 67.8% and 52.4% mIoU on the UAVid and LoveDA datasets, respectively, while the inference speed can achieve up to 322.4 FPS with a 512x512 input on a single NVIDIA GTX 3090 GPU. In further exploration, the proposed Transformer-based decoder combined with a Swin Transformer encoder also achieves the state-of-the-art result (91.3% F1 and 84.1% mIoU) on the Vaihingen dataset. The source code will be freely available at https://github.com/WangLibo1995/GeoSeg.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Semantic Segmentation | US3D | mIoU | 74.77 | UNetFormer |
| Semantic Segmentation | LoveDA | Category mIoU | 52.4 | UNetFormer |
| Semantic Segmentation | Potsdam | mIoU | 85.18 | UnetFormer |
| Semantic Segmentation | ISPRS Vaihingen | Average F1 | 91.3 | FT-UNetFormer |
| Semantic Segmentation | ISPRS Vaihingen | Category mIoU | 84.1 | FT-UNetFormer |
| Semantic Segmentation | ISPRS Vaihingen | Overall Accuracy | 91.6 | FT-UNetFormer |
| Semantic Segmentation | ISPRS Vaihingen | Average F1 | 90.4 | UNetFormer |
| Semantic Segmentation | ISPRS Vaihingen | Category mIoU | 82.7 | UNetFormer |
| Semantic Segmentation | ISPRS Vaihingen | Overall Accuracy | 91 | UNetFormer |
| Semantic Segmentation | ISPRS Potsdam | Mean F1 | 93.3 | FT-UNetFormer |
| Semantic Segmentation | ISPRS Potsdam | Mean IoU | 87.5 | FT-UNetFormer |
| Semantic Segmentation | ISPRS Potsdam | Overall Accuracy | 92 | FT-UNetFormer |
| Semantic Segmentation | ISPRS Potsdam | Mean F1 | 92.8 | UNetFormer |
| Semantic Segmentation | ISPRS Potsdam | Mean IoU | 86.8 | UNetFormer |
| Semantic Segmentation | ISPRS Potsdam | Overall Accuracy | 91.3 | UNetFormer |
| Semantic Segmentation | Vaihingen | mIoU | 77.24 | UnetFormer |
| Semantic Segmentation | UAVid | Mean IoU | 67.8 | UNetFormer |
| Semantic Segmentation | UAVid | Category mIoU | 67.8 | UNetFormer |
| Scene Segmentation | UAVid | Category mIoU | 67.8 | UNetFormer |
| 10-shot image generation | US3D | mIoU | 74.77 | UNetFormer |
| 10-shot image generation | LoveDA | Category mIoU | 52.4 | UNetFormer |
| 10-shot image generation | Potsdam | mIoU | 85.18 | UnetFormer |
| 10-shot image generation | ISPRS Vaihingen | Average F1 | 91.3 | FT-UNetFormer |
| 10-shot image generation | ISPRS Vaihingen | Category mIoU | 84.1 | FT-UNetFormer |
| 10-shot image generation | ISPRS Vaihingen | Overall Accuracy | 91.6 | FT-UNetFormer |
| 10-shot image generation | ISPRS Vaihingen | Average F1 | 90.4 | UNetFormer |
| 10-shot image generation | ISPRS Vaihingen | Category mIoU | 82.7 | UNetFormer |
| 10-shot image generation | ISPRS Vaihingen | Overall Accuracy | 91 | UNetFormer |
| 10-shot image generation | ISPRS Potsdam | Mean F1 | 93.3 | FT-UNetFormer |
| 10-shot image generation | ISPRS Potsdam | Mean IoU | 87.5 | FT-UNetFormer |
| 10-shot image generation | ISPRS Potsdam | Overall Accuracy | 92 | FT-UNetFormer |
| 10-shot image generation | ISPRS Potsdam | Mean F1 | 92.8 | UNetFormer |
| 10-shot image generation | ISPRS Potsdam | Mean IoU | 86.8 | UNetFormer |
| 10-shot image generation | ISPRS Potsdam | Overall Accuracy | 91.3 | UNetFormer |
| 10-shot image generation | Vaihingen | mIoU | 77.24 | UnetFormer |
| 10-shot image generation | UAVid | Mean IoU | 67.8 | UNetFormer |
| 10-shot image generation | UAVid | Category mIoU | 67.8 | UNetFormer |