Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert mask to polygon #4

Open
Ehsan125 opened this issue Feb 5, 2021 · 3 comments
Open

Convert mask to polygon #4

Ehsan125 opened this issue Feb 5, 2021 · 3 comments

Comments

@Ehsan125
Copy link

Ehsan125 commented Feb 5, 2021

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
Copy link

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
Copy link
Author

Ehsan125 commented Feb 8, 2021

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
Copy link
Author

Ehsan125 commented Feb 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants