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 clonethis repositorycdinto root of this repositorypip install -r requirements.txtgit clone https://github.com/kobiso/CBAM-kerasgit 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.pyto preprocess dataset
- Train models:
python classify.py -c config.json --train - Generate predictions:
python classify.py -c config.json --predict

