Skip to content

Commit 1685204

Browse files
committed
delete_final_points_pedcrossing
1 parent 542633e commit 1685204

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openlanev2/lanesegment/preprocessing/collect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ def collect(root_path : str, data_dict : dict, collection : str, with_sd_map : b
7474
if 'annotation' not in frame:
7575
continue
7676
for i, area in enumerate(frame['annotation']['area']):
77+
if area['points'][0] == area['points'][-1]:
78+
meta[identifier]['annotation']['area'][i]['points'] = _fix_pts_interpolate(np.array(area['points']), n_points['area']+1)[:-1]
7779
meta[identifier]['annotation']['area'][i]['points'] = _fix_pts_interpolate(np.array(area['points']), n_points['area'])
7880
for i, lane_segment in enumerate(frame['annotation']['lane_segment']):
7981
meta[identifier]['annotation']['lane_segment'][i]['centerline'] = _fix_pts_interpolate(np.array(lane_segment['centerline']), n_points['centerline'])

0 commit comments

Comments
 (0)