SpaceNetChallenge / SpaceNet_SAR_Buildings_Solutions

The winning solutions for the SpaceNet 6 Challenge
Apache License 2.0
74 stars 17 forks source link

Convert mask to polygon #4

Open Ehsan125 opened 3 years ago

Ehsan125 commented 3 years ago

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:

Screenshot from 2021-02-05 18-45-16

motokimura commented 3 years ago

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/...?

Ehsan125 commented 3 years ago

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:

Screenshot from 2021-02-08 10-27-25

Ehsan125 commented 3 years ago

Also please tell me does these polygons that will be generated will have the array of lat/long like geojson?