SpaceNet_SAR_Buildings_Solutions
SpaceNet_SAR_Buildings_Solutions copied to clipboard
Convert mask to polygon
Dear @motokimura i am trying to generate the Polygons from the masks and try to run the below command which you have given in README.md
ENSEMBLE_EXP_IDS='[9999,9998,9997,9996,9995]' # previous experiments used for ensemble
./tools/pred_array_to_poly.py [--config CONFIG_FILE] ENSEMBLE_EXP_IDS ${ENSEMBLE_EXP_IDS}
I have changed the above command in according to my environment which is a s follows:
ENSEMBLE_EXP_IDS='[19,18,17,16,15]' python ./tools/pred_array_to_poly.py --config home/ehsanirshad/Downloads/SpaceNet_SAR_Buildings_Solutions-master/4-motokimura/tmp/logs/exp_0019/config.yml ENSEMBLE_EXP_IDS 19
I want to ask first of all does i am running the command right? I am getting the error given in the screenshot below:
Does your config.yaml
really exist under home/ehsanirshad/Downloads/SpaceNet_SAR_Buildings_Solutions-master/4-motokimura/tmp/logs/exp_0019/config.yml
?
Shouldn't home/...
be /home/...
?
Oops my bad , yes there was a typos mistake while providing the path /home...
, i have edit the command as well
ENSEMBLE_EXP_IDS='[19,18,17,16,15]' python ./tools/pred_array_to_poly.py --config configs/test_to_val_images.yml ENSEMBLE_EXP_IDS [19,18,17,16,15]
but now it is giving the following error:
File "/home/ehsanirshad/anaconda3/envs/solaris/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/val_polygons'
Screenshot is attached below:
Also please tell me does these polygons that will be generated will have the array of lat/long like geojson?