Skip to content

Repository files navigation

demo

β˜€οΈS1GFloods Benchmarkβ˜€οΈ

DAM-Net: Flood detection from SAR imagery using differential attention metric-based vision transformers

Tamer Saleh1,2, Xingxing Weng1, Shimaa Holail1, Chen Hao1, Gui Song-Xia1

1 Wuhan University, 2 Benha University

ISPRS paper Google Drive Dataset HuggingFace Dataset Baidu Drive Dataset

πŸ›ŽοΈUpdates

  • πŸŽ‰ February 2026 Achievement: S1GFloods has been selected as an πŸ”₯ ESI Hot Paper and Highly Cited Paper, placing it among the top 1% of publications in the Geosciences field πŸ†πŸŒ
  • 13 May 2024: DAM-Net has been accepted by ISPRS JP&RS and online available now!!
  • 02 July 2023: The S1GFloods benchmark related to our paper has now released. You are warmly welcome to use it!!
  • 25 June 2023: DAM-Net has been submitted for publication at ISPRS Journal of Photogrammetry and Remote Sensing!!
  • 01 Jun 2023: The arXiv paper of DAM-Net is now online.

πŸ”­Dataset Overview

  • S1GFloods is the first open-access, globally distributed, event-diverse Sentinel-1 SAR dataset specifically designed to support AI-based flood response applications. The dataset comprises 5,360 image pairs with a spatial size of 256 Γ— 256 pixels, covering 46 major flood events that occurred between 2015 and 2022 across six continents, with particular emphasis on developing countries. Its broad geographic and event diversity provides a comprehensive benchmark for developing and evaluating robust flood-mapping models.

  • The accompanying animation illustrates pre- and post-event SAR imagery along with sample flood-mapping results for a rural region in Iran affected by severe flooding in March 2019. The figure on the right presents a magnified visualization of a 1 km Γ— 1 km area (highlighted by the yellow box in the larger scene), demonstrating the extent of flood impacts on buildings as identified by our model.

  • Dataset Statistics

  • Training Set: 4,300 image pairs
  • Validation Set: 530 image pairs
  • Testing Set: 530 image pairs
  • Image Size: 256 Γ— 256 pixels
  • Spatial Resolution: 10 meters
  • Each image pair includes:
  • A manually annotated binary label map
  • Pixel value 0: Background / non-flooded area
  • Pixel value 255: Newly inundated flood area

image1

image3

Requirements

Python 3.7+ Pytorch 1.7.1 torchvision 0.8.2 Opencv 4.5.5 CUDA Toolkit 10.1 Python-SNAPPY 8.0 Wandb 0.13.10

Our model

An overview of the proposed DAM-Net. The feature maps of the pre-and post-event image pairs are extracted through a Siamese structure and pre-trained remote sensing. Overall

πŸ”­ Baselines

  • πŸ“– πŸ“– πŸ“– DTCDSCN [here]
  • πŸ“– πŸ“– πŸ“– UNet [here]
  • πŸ“– πŸ“– πŸ“– FC-Siam [here]
  • πŸ“– πŸ“– πŸ“– SNUNet–ECAM [here]
  • πŸ“– πŸ“– πŸ“– Siam-Nested-UNet [here]
  • πŸ“– πŸ“– πŸ“– ResNet50-IMP [here]
  • πŸ“– πŸ“– πŸ“– ResNet50-RSP [here]
  • πŸ“– πŸ“– πŸ“– Swin–T-RSP [here]
  • πŸ“– πŸ“– πŸ“– Swin-T-IMP [here]
  • πŸ“– πŸ“– πŸ“– ViTAEv2 [here]

πŸ“’ Dataset Preparation

Prepare the following folders to organize this repo:

 For the S1GFloods dataset, clip the images to 256 Γ— 256 patches. Please, respect the following structure: 
          β”œβ”€β”€ SIGFloods
          β”‚   β”œβ”€β”€ train
          β”‚   β”‚   β”œβ”€β”€ A                           Images of Time 1 before the flood event
          β”‚   β”‚   β”‚   └── <region><year><XY>.png
          β”‚   β”‚   β”œβ”€β”€ B                           Images of Time 2 after the flood event
          β”‚   β”‚   β”‚   └── <region><year><XY>.png
          β”‚   β”‚   └── GT                          Ground truth labels
          β”‚   β”‚       └── <region><year><XY>.png
          β”‚   β”œβ”€β”€ val 
          β”‚   β”‚   β”œβ”€β”€ A                           
          β”‚   β”‚   β”‚   └── <region><year><XY>.png
          β”‚   β”‚   β”œβ”€β”€ B                           
          β”‚   β”‚   β”‚   └── <region><year><XY>.png
          β”‚   β”‚   └── GT                          
          β”‚   β”‚       └── <region><year><XY>.png
          β”‚   β”œβ”€β”€ test
          β”‚   β”‚   β”œβ”€β”€ A                           
          β”‚   β”‚   β”‚   └── <region><year><XY>.png
          β”‚   β”‚   β”œβ”€β”€ B                           
          β”‚   β”‚   β”‚   └── <region><year><XY>.png
          β”‚   β”‚   └── GT                          
          β”‚   β”‚       └── <region><year><XY>.png
          β”‚  

🚚 Datasets

You can download our novel public S1GFloods dataset through the following link:

πŸ“š Use example

  • Training

    python train.py
  • Testing

    python eval.py

Results

Visualization

πŸ“ƒ Citing

@article{saleh2024dam,
  title={DAM-Net: Flood detection from SAR imagery using differential attention metric-based vision transformers},
  author={Saleh, Tamer and Weng, Xingxing and Holail, Shimaa and Hao, Chen and Xia, Gui-Song},
  journal={ISPRS Journal of Photogrammetry and Remote Sensing},
  volume={212},
  pages={440--453},
  year={2024},
  publisher={Elsevier}
}

Contact Information

If you have any questions or would like to collaborate, please reach out to me at tamersaleh@whu.edu.cn.

License

The datasets are released for non-commercial and research purposes only. For commercial purposes, please contact the authors.

Acknowledgment

Appreciate the work from the following repositories:

Related resources

Star History

Star History Chart

About

The official repo for ISPRS JP&RS 2024 "DAM-Net: Flood detection from SAR imagery using differential attention metric-based vision transformers"

Topics

Resources

Stars

54 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages