VecRoad icon indicating copy to clipboard operation
VecRoad copied to clipboard

A question about infer.py

Open kangkai98 opened this issue 5 years ago • 5 comments

Thank you for your excellent work! But I encounter a problem when I run infer.py. The problem is when I set INFER_STEP: "start", START_FROM_ROAD_PEAK: True, the file can successfully run. If I change the INFER_STEP to"after_seg", it will report an error when doing post_process_graph. Can you give me some advice? Thanks again.

infer anchor start batch_size:1 Except save graph yunnan_city Traceback (most recent call last): File "infer.py", line 586, in main() File "infer.py", line 222, in main post_process_graph(graph_dict) File "infer.py", line 425, in post_process_graph road_segments, _ = graph_helper.get_graph_road_segments(g) File "/f2020/kangkai/VecRoad/lib/graph.py", line 635, in get_graph_road_segments for edge in graph.edges.values(): AttributeError: 'NoneType' object has no attribute 'edges'

kangkai98 avatar Dec 02 '20 05:12 kangkai98

Hi, kangkau. The log says "Except save graph yunnan_city", that means there is a bug here https://github.com/tansor/VecRoad/blob/17e78980b6eb7170702dc79663c595f26bcdb664/infer.py#L192 Please check the except_yunnan_city.graph file and function infer_anchor for more details.

tansor avatar Dec 06 '20 14:12 tansor

Thank you for your advice!! I've solved the problem mentioned above. There's another question I want to ask, there are still some disconnected roads in the final results. How can I adjust the parameters in default.yml to increase the road connectivity? Thank you very much!

kangkai98 avatar Dec 07 '20 16:12 kangkai98

HI,I had the same problem,can you tell me how to solve this problem?

ziyu1018 avatar Mar 02 '22 06:03 ziyu1018

Thank you for your advice!! I've solved the problem mentioned above. There's another question I want to ask, there are still some disconnected roads in the final results. How can I adjust the parameters in default.yml to increase the road connectivity? Thank you very much!

hello , I have the same problem , can you tell me how to solve it?

WentangChen avatar Jun 07 '23 07:06 WentangChen