- preprocess.py: Training dataset augmentation offline. Support up-sampling strategy based on positive and negative.
- rooftop_dataset.py:Create training, validation and test dataset in pytorch format.
- train.py: Training of rooftop extraction model.
- predict.py: Batch prediction based on ensemble strategy and expansion prediction method.
- predict_trt.py: Batch prediction based on TensorRT.
- evaluation.py: Evaluation of dataset.
- deeplab_resnet.py: Deeplabv3+ model based on resnet backbone.
- deeplab_xception.py: Deeplabv3+ model based on xception backbone.
- ensemble_config.json: Configuration of ensemble model. (The path of checkpoints)
Citation: Zhang, Z., Qian, Z., Zhong, T., Chen, M., Zhang, K., Yang, Y., Zhu, R., Zhang, F., Zhang, H., Zhou, F. and Yu, J., 2022. Vectorized rooftop area data for 90 cities in China. Scientific Data, 9(1), pp.1-12.