UrbanSARFlood / README.md
earthflow's picture
Update README.md
b35a694 verified
metadata
license: cc-by-4.0

How to use it

Install Dataset4EO

git clone --branch streaming https://github.com/EarthNets/Dataset4EO.git

pip install -e .

Then download the dataset from this Huggingface repo.

import dataset4eo as eodata
import time

train_dataset = eodata.StreamingDataset(input_dir="UrbanSARFlood/train", num_channels=8, channels_to_select=[0,1,2,3], shuffle=True, drop_last=True)
sample = dataset[101]
print(sample.keys())
print(sample["image"])        
print(sample["simage"].shape)
print(sample["label"]) 

We acknowledge and give full credit to the original authors of SpectralEarth for their effort in creating this dataset. The dataset is re-hosted in compliance with its original license to facilitate further research. Please cite the following paper for the creation of the dataset:

@inproceedings{zhao2024urbansarfloods,
  title={UrbanSARFloods: Sentinel-1 SLC-Based Benchmark Dataset for Urban and Open-Area Flood Mapping},
  author={Zhao, Jie and Xiong, Zhitong and Zhu, Xiao Xiang},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={419--429},
  year={2024}
}