Code for "Lucas Hu, Caleb Robinson, and Bistra Dilkina. 2021. Model Generalization in Deep Learning Applications for Land Cover Mapping. In Fragile Earth ’21: KDD 2021 Workshop. ACM, New York, NY, USA, 9 pages." (https://arxiv.org/abs/2008.10351)
git clone
this repositorycd
into root of this repositorypip install -r requirements.txt
git clone https://github.com/kobiso/CBAM-keras
git clone https://github.com/titu1994/DenseNet
- Download and extract SEN12MS dataset: https://arxiv.org/abs/1906.07789
- Edit dataset paths in
config.json
- Run
one_time_scripts/save_segmentation_patches_to_npy.py
to preprocess dataset
- Train models:
python classify.py -c config.json --train
- Generate predictions:
python classify.py -c config.json --predict