hustvl / MapTR

[ICLR'23 Spotlight] MapTR: Structured Modeling and Learning for Online Vectorized HD Map Construction
MIT License
984 stars 152 forks source link

maptrV2 Prepare nuScenes data centerline #93

Open ldhai opened 10 months ago

ldhai commented 10 months ago

When I use the code will generate nuscenes_map_infostemporal{train,val}.pkl, which contain local vectorized map annotations. I meet an error ("networkx.exception.NodeNotFound: target node [(15.0, 2.355), (15.0, -2.636), (4.167, -30.0), (-15.0, 15.813), (0.284, -30.0)] not in graph"). Has anyone encountered this error and how to solve it? image

LegendBC commented 10 months ago

Other people have contacted me about this error. But I rerun my script in my environment and didn't reproduce this error. Can you provide me with your specific environmental setting?

I uploaded the annotation file in the repo's GitHub releasement. You can directly try MapTRv2 with our generated annotation files.

yqj20020174 commented 10 months ago

I have the same problem. I cannot find the annotation file. Where is it ?

ldhai commented 10 months ago

I have the same problem. I cannot find the annotation file. Where is it ?

https://github.com/hustvl/MapTR/releases

ldhai commented 10 months ago

Other people have contacted me about this error. But I rerun my script in my environment and didn't reproduce this error. Can you provide me with your specific environmental setting?

I uploaded the annotation file in the repo's GitHub releasement. You can directly try MapTRv2 with our generated annotation files.

I'm running up training with your annotation file, can you provide me with your trained MapTRv2* (with centerline) model, I'd like to visualize the effect with your model first. My environment is as follows, that error above, I don't know if it's a mistake in the code or step where the data is processed:

image image image image

LegendBC commented 10 months ago

@ldhai I just upload centerline ckpt & log, please check it out.

ldhai commented 10 months ago

@ldhai I just upload centerline ckpt & log, please check it out.

Thank you very much! Hmmmmm, can you update that visualization code, it's the maptrV2 visualization code (with the centerline), or is it enough to just use the maptr visualization code.

chdzhen commented 10 months ago

Other people have contacted me about this error. But I rerun my script in my environment and didn't reproduce this error. Can you provide me with your specific environmental setting?

I uploaded the annotation file in the repo's GitHub releasement. You can directly try MapTRv2 with our generated annotation files.

at file 'custom_nusc_map_converter.py' line 742, need add "for leave in leaves:" ? for root in roots: for leave in leaves: paths = nx.all_simple_paths(pts_G, root, leave) all_paths.extend(paths)

pnnnnnnn commented 10 months ago

i have the same problem. i update networkx from 2.2 to 2.3 and fix this problem

LegendBC commented 10 months ago

@ldhai I just upload centerline ckpt & log, please check it out.

Thank you very much! Hmmmmm, can you update that visualization code, it's the maptrV2 visualization code (with the centerline), or is it enough to just use the maptr visualization code.

Yes, the visualization is almost the same. You only need to add one more color for centerline and use plt.quiver.

LegendBC commented 10 months ago

Other people have contacted me about this error. But I rerun my script in my environment and didn't reproduce this error. Can you provide me with your specific environmental setting? I uploaded the annotation file in the repo's GitHub releasement. You can directly try MapTRv2 with our generated annotation files.

at file 'custom_nusc_map_converter.py' line 742, need add "for leave in leaves:" ? for root in roots: for leave in leaves: paths = nx.all_simple_paths(pts_G, root, leave) all_paths.extend(paths)

You don't need nested for loop and you can refer to official documents for further details.

LegendBC commented 10 months ago

i have the same problem. i update networkx from 2.2 to 2.3 and fix this problem

Thanks for your help and remind. My networkx version is 2.8.7

MonkeyJohn commented 9 months ago

i have the same problem. i update networkx from 2.2 to 2.3 and fix this problem

well , it works

HongbiaoZ commented 9 months ago

@ldhai I just upload centerline ckpt & log, please check it out.

Hi, thanks for your great work. I didn't find the link of ckpt and log file for maptrv2 in Readme. Could you send the link here?

PeggyPeppa commented 8 months ago

@LegendBC Hi Can you provide the whole enviroment of yor our device? It seems that there are alot conflicts according to your installation readme.

Ricky-Developer commented 8 months ago

i have the same problem. i update networkx from 2.2 to 2.3 and fix this problem

thanks a lot!

liaoqingPKU commented 3 weeks ago

@ldhai I just upload centerline ckpt & log, please check it out.

Hi, thanks for your great work. I didn't find the link of ckpt and log file for maptrv2 in Readme. Could you send the link here?

@ldhai I just upload centerline ckpt & log, please check it out.

Hi, thanks for your great work. I didn't find the link of ckpt and log file for maptrv2 in Readme. Could you send the link here?

@ldhai I just upload centerline ckpt & log, please check it out.

Hi, thanks for your great work. I didn't find the link of ckpt and log file for maptrv2 in Readme. Could you send the link here?

change to main branch and you will find the links