Water-HRNet:

March 24, 2022 · View on GitHub

  • A deep Network for surface water mapping .
  • Just a binary classification problem. Water or Not Water.
  • Since the training dataset used is too small, the effect of the model is not guaranteed, it is only used to complete my coursework.

-- Model

  • We use HRNet as the main model structure(HRNet-W48). watnet

-- Dataset and Trained Model

AccmIoUfwIoU
0.97570.93230.9528

-- Simple Use

-- Step 1

  • clone the rep
git clone https://github.com/faye0078/LULC
  • Install dependence
cv2
gdal
matplotlib
numpy
tqdm
Pillow
torch
torchvision

-- Step 2

  • Download Sentinel-2 images, and select these six bands. You can also use the other image has same bands(such as landset).
BandCentral Wavelength (µm)Resolution (m)
Band 2 – Blue0.49010
Band 3 – Green0.56010
Band 4 – Red0.66510
Band 8 – NIR0.84210
Band 11 – SWIR1.61020
Band 12 – SWIR2.19020
  • Download the trained model, and move it in dir saved_model.

-- Step 3

  • change the input_path and the output_path in test.py
  • run the test.py
python test.py

-- Train the model

  • download the Sentinel-2 image dataset, and move it in dir dataset.
  • change the config.py based on your computer.
  • run the train.py
python train.py

-- Acknowledgement

  • We thanks the authors for providing some of the code in this repo:
    HRNet and WatNet
  • We use the HRNet model code from the former, and use the readTiff, cutImg code from the latter.