Skip to content
weichenrsPublic

About

[IEEE TPAMI 2025] REST: Holistic Learning for End-to-End Semantic Segmentation of Whole-Scene Remote Sensing Imagery

Resources

Contributing

Stars

45 stars

Watchers

2 watching

Forks

Latest commit

Β 

History

61 Commits

Folders and files

Repository files navigation

REST: Holistic Learning for End-to-End Semantic Segmentation of Whole-Scene Remote Sensing Imagery (IEEE TPAMI 2025)

TPAMI 2025 Python 3.9 PyTorch License: CC BY-NC 4.0

Official implementation of the IEEE TPAMI 2025 paper "REST: Holistic Learning for End-to-End Semantic Segmentation of Whole-Scene Remote Sensing Imagery".

🏠 Method Overview

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.

🎯 Key Features

  • 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

πŸ“ Updates & Milestones

  • βœ… [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

πŸš€ Quick Start [in preparation]

Installation

Please refer to INSTALL.md for detailed installation instructions.

Data Preparation

  1. Download the datasets:

  2. 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
  3. Organize your data structure:

    REST/
    β”œβ”€β”€ data/
    β”‚   β”œβ”€β”€ GLH-Water/
    β”‚   β”œβ”€β”€ FBP_new/
    β”‚   β”œβ”€β”€ WHU-OHS/
    β”‚   └── UAVid/
    β”œβ”€β”€ checkpoints/
    β”‚   β”œβ”€β”€ REST_water_swin_large.pth
    β”‚   └── baseline_fbp_swin_large.pth
    └── ...
    

Inference (refer to sh/test.sh)

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 

Training (refer to sh/train.sh)

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 4

πŸ“ Model Zoo [in preparation]

We 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

πŸ“– Documentation [in preparation]

πŸ› οΈ Project Structure

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

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

πŸ“„ Citation

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}}
}

πŸ“ž Contact

πŸ™ Acknowledgements

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.

πŸ“œ License

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.

⚠️ Important: The source code is only available for non-commercial research. For commercial use, please contact Yansheng Li at Wuhan University (yansheng.li@whu.edu.cn).


⭐ If you find this project helpful, please consider giving it a star! ⭐

About

[IEEE TPAMI 2025] REST: Holistic Learning for End-to-End Semantic Segmentation of Whole-Scene Remote Sensing Imagery

Resources

Contributing

Stars

45 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages