nutonomy / nuscenes-devkit

The devkit of the nuScenes dataset.
https://www.nuScenes.org
Other
2.18k stars 616 forks source link

speed about get_map_mask #1018

Closed haofengsiji closed 6 months ago

haofengsiji commented 6 months ago

Compared to Boston Seaport and Singapore One-North, , the loading speed of Singapore Queenstown and Singapore Holland Village's local map is very slow, as shown in the image below.

image

Is there any way to improve the loading speed of the local map?

def load_map(map_name):
    nusc_map = NuScenesMap(dataroot='../../data/nuscenes', 
                        map_name=map_name)
    patch_box = (1000., 1000., 100, 100)
    patch_angle = 0 # Default orientation where North is up
    layer_names = ('drivable_area', 'carpark_area', 'road_block', 'walkway', 'ped_crossing', 'stop_line', 'road_divider', 'lane_divider')
    canvas_size = (256, 256)
    map_mask = nusc_map.get_map_mask(patch_box, patch_angle, layer_names, canvas_size)
iaoqian commented 3 months ago

Have you solved this problem?