- Activate conda environment (Note this repo uses Python 3.8.13)
- Install requirements using
pip install -r requirements.txt
- Go to
src
directory:cd src
- Run code (NOTE: make sure to update the global variables to reflect correct filepaths):
python 00_filter_csv.py
python 01_download_hls.py
- <OUT_DIR>
- |--<site_id>
- |--date
- |--<band1.tiff>
- |--<band2.tiff>
- .
- .
- |--<bandn.tiff>
- |--date
- |--<site_id>
Source: https://github.com/isikdogan/deepwatermap
- Download trained model here
- place the two
cp.*
files in thecheckpoints
directory
- place the two
- Makes sure all required packages are installed:
pip install -r requirements.txt
- Go to
src
directory:cd src
- Run:
python water_mask.py