REST: Holistic Learning for End-to-End Semantic Segmentation of Whole-Scene Remote Sensing Imagery (IEEE TPAMI 2025)
Official implementation of the IEEE TPAMI 2025 paper "REST: Holistic Learning for End-to-End Semantic Segmentation of Whole-Scene Remote Sensing Imagery".
REST (Robust End-to-end semantic Segmentation architecture for whole-scene remoTe sensing imagery) is the first intrinsically end-to-end framework for truly holistic segmentation of whole-scene remote sensing imagery (WRI). Unlike conventional deep learning methods that struggle with GPU memory limitations and resort to suboptimal cropping or fusion strategies, REST enables seamless processing of large-scale remote sensing imagery without performance degradation.
Overview of the REST framework. The Spatial Parallel Interaction Mechanism (SPIM) enables holistic processing of whole-scene remote sensing imagery through efficient parallel computation and divide-and-conquer strategy, eliminating the need for cropping or fusion while maintaining global context awareness.
- First end-to-end framework for holistic whole-scene remote sensing imagery segmentation
- Spatial Parallel Interaction Mechanism (SPIM) - Novel approach combining parallel computation with divide-and-conquer strategy to overcome GPU memory constraints while achieving global context awareness
- Plug-and-play architecture - Compatible with mainstream segmentation encoders/decoders and foundation models, enabling seamless integration
- True holistic processing - Eliminates suboptimal cropping or fusion strategies, processing entire scenes without performance degradation
- Memory efficient - Processes arbitrarily large images through innovative parallel interaction mechanisms
- Scalable performance - Near-linear throughput scaling with additional GPUs (theoretical and experimentally validated)
- Multi-platform support - Satellite, drone, multispectral, and hyperspectral imagery in unified framework
- Versatile applications - Single-class to multi-class segmentation scenarios with consistent superior performance
- β [2024.10.08] π― REST repository created and project initiated!
- β [2025.01.25] π₯οΈ Web interface and online inference system deployed
- β [2025.03.31] ποΈββοΈ Released initial pre-trained model weights for testing (GLH-Water & Five-Billion-Pixels)
- β [2025.04.02] π¦ Updated sample datasets and testing data for quick start
- β [2025.09.10] π REST paper officially accepted by IEEE TPAMI 2025!
- β [2026.03.17] π [Current] Major documentation update - comprehensive guides for training, evaluation, and data preparation
- π [Coming Soon] π Complete model zoo release with all benchmark results
- π [Coming Soon] π Integration with Hugging Face Model Hub for easy access
- β³ [In Development] π§ Multi-task support beyond segmentation (detection, classification, change detection)
- β³ [In Development] β‘ REST v2 - Enhanced training and inference efficiency with optimized algorithms
Please refer to INSTALL.md for detailed installation instructions.
-
Download the datasets:
-
Download pre-trained models:
# Download all models cd REST/checkpoints python download_model.py # Or download individually wget https://github.com/weichenrs/REST_code/releases/download/models/REST_water_swin_large.pth -O checkpoints/REST_water_swin_large.pth wget https://github.com/weichenrs/REST_code/releases/download/models-0.1/baseline_fbp_swin_large.pth -O checkpoints/baseline_fbp_swin_large.pth
-
Organize your data structure:
REST/ βββ data/ β βββ GLH-Water/ β βββ FBP_new/ β βββ WHU-OHS/ β βββ UAVid/ βββ checkpoints/ β βββ REST_water_swin_large.pth β βββ baseline_fbp_swin_large.pth βββ ...
Run inference on sample images:
# Test on GLH-Water dataset (REST, multiple GPUs needed)
tools/dist_test.sh configs/swin/water/swin-large-patch4-window7-skysense-pre_upernet_2xb2-80k_water-sp_test_12800.py checkpoints/REST_water_swin_large.pth 8 --out show_dirs/test_REST_8gpu_ws --work-dir show_dirs/test_REST_8gpu_ws
# Test on Five-Billion-Pixels dataset (baseline)
tools/dist_test.sh configs/swin/fbp/swin-large-patch4-window7-skysense-pre_upernet_2xb2-80k_fbp-512x512_test.py checkpoints/baseline_fbp_swin_large.pth 1 --out show_dirs/test_baseline --work-dir show_dirs/test_baseline Train your own REST model:
# Single GPU training
python tools/train.py configs/swin/fbp/swin-large-patch4-window7-skysense-pre_upernet_2xb2-80k_fbp-512x512.py
# Multi-GPU training
bash tools/dist_train.sh configs/swin/fbp/swin-large-patch4-window7-skysense-pre_upernet_2xb2-80k_fbp-2048x2048_sp.py 4We provide pre-trained models for different datasets and configurations:
| Model | Dataset | Backbone | mIoU | Config | Download |
|---|---|---|---|---|---|
| Baseline | GLH-Water | Swin-Large | TODO | TODO | TODO |
| Baseline | Five-Billion-Pixels | Swin-Large | 69.68 | config | model |
| Baseline | WHU-OHS | Swin-Large | TODO | TODO | TODO |
| Baseline | UAVid | Swin-Large | TODO | TODO | TODO |
| REST | GLH-Water | Swin-Large | TODO | TODO | model |
| REST | Five-Billion-Pixels | Swin-Large | 72.95 | TODO | TODO |
| REST | WHU-OHS | Swin-Large | TODO | TODO | TODO |
| REST | UAVid | Swin-Large | TODO | TODO | TODO |
- Installation Guide: Detailed installation instructions
- Data Preparation: How to prepare your datasets
- Training Guide: Comprehensive training instructions
- Evaluation Guide: Model evaluation and metrics
REST/
βββ assets/ # Images and visual resources
βββ checkpoints/ # Pre-trained model weights
βββ configs/ # Configuration files
β βββ _base_/ # Base configurations
β βββ compare/ # Comparison model configs
β βββ convnext/ # ConvNeXt backbone configs
β βββ swin/ # Swin Transformer backbone configs
β βββ vssm/ # Vision State Space Model configs
βββ data/ # Dataset directory
βββ docs/ # Documentation files
βββ mmcv_custom/ # Custom MMCV components
βββ mmseg/ # Core segmentation modules
βββ sh/ # Shell scripts for execution
βββ tools/ # Training and testing utilities
βββ vmamba/ # VMamba backbone integration
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
If you find REST useful in your research, please consider citing:
@article{rest2025,
title={REST: Holistic Learning for End-to-End Semantic Segmentation of Whole-Scene Remote Sensing Imagery},
author={Chen, Wei and Bruzzone, Lorenzo and Dang, Bo and Gao, Yuan and Deng, Youming and Yu, Jin-Gang and Yuan, Liangqi and Li, Yansheng},
journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
year={2025},
volume={},
number={},
pages={1-18},
publisher={IEEE},
doi={10.1109/TPAMI.2025.3609767}}
}- Core Author: Wei Chen
- Corresponding Author: Yansheng Li
- Institution: Wuhan University, School of Remote Sensing and Information Engineering
- Project Page: https://weichenrs.github.io/REST/
This work is built upon several excellent open-source projects:
- MMSegmentation - Comprehensive segmentation toolbox
- SkySense - Powerful remote sensing foundation model SkySense
- VMamba - VMamba implementation
We thank the remote sensing community for providing high-quality datasets and the authors of foundation models for enabling our plug-and-play architecture design.
Copyright (c) 2025 Wei Chen
This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/4.0/
Under the following terms:
- Attribution β You must give appropriate credit, provide a link to the license, and indicate if changes were made.
- NonCommercial β You may not use the material for commercial purposes.
