apls icon indicating copy to clipboard operation
apls copied to clipboard

AttributeError: 'NoneType' object has no attribute 'nodes'

Open heeji289 opened this issue 6 years ago • 1 comments

I tried to use your code. I installed everything that dependencies required. Following your guide, I typed below words in terminal.

python apls.py --test_method=gt_json_prop_json --output_name=gt_json_prop_json
--truth_dir=data/gt_json_prop_json/AOI_2_Vegas_Train/spacenetroads
--prop_dir=data/gt_json_prop_json/AOI_2_Vegas_Train/osm

I also checked that there are geojson files in indicated directories.

But after executing, I got this error message,

image

This error occur in this line. image

Why they trigger error like that? Why G_gt_init has none value?

Thank you.

#8

heeji289 avatar Sep 25 '19 12:09 heeji289

I ran into the same problem. The issue is this line: https://github.com/CosmiQ/apls/blob/b14ec4ee99e334e1f907ec0743fca6c6595da24f/apls/apls.py#L98 Since speed_key was not given, this line returns nothing. I changed it to return G_. That unearthed another bug where outdir was not defined. To fix this, uncomment the code here: https://github.com/CosmiQ/apls/blob/b14ec4ee99e334e1f907ec0743fca6c6595da24f/apls/apls.py#L2982 I haven't thoroughly inspected the output, but it runs now and produces a bunch of output files.

drStacky avatar Dec 03 '19 19:12 drStacky