Code base, tutorials and other information for the paper SolarMapper: estimating solar array location, size, and capacity using deep learning and overhead imagery.
- Edit hyper-parameters in
config.jsonor make your custom config file with the same format asconfig.json. - Run
python train.py --config CONFIG_PATHif you're using your custom config file andCONFIG_PATHis the path to your config file. Without the--configflag,train.pywill look forconfig.jsonin themrsrepo directory.
- Edit settings parameters (GPU ID, model path, etc.) in
evaluate.py. Notice thatDS_NAMEshould match the one in the config file of the trained model. - Run
python evaluate.py.
- Edit settings parameters in
infer.pyin the same way as for model evaluation.DS_NAMEshould match the one in the trained model, too. - The
FILE_LISTparameter takes the path to a.txtfile which contains full paths of testing image files (one file path per row). - Run
python infer.py.