Skip to content

Commit 72ff3ac

Browse files
committed
delete_final_points_pedcrossing
1 parent 1685204 commit 72ff3ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openlanev2/lanesegment/preprocessing/collect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ def collect(root_path : str, data_dict : dict, collection : str, with_sd_map : b
7676
for i, area in enumerate(frame['annotation']['area']):
7777
if area['points'][0] == area['points'][-1]:
7878
meta[identifier]['annotation']['area'][i]['points'] = _fix_pts_interpolate(np.array(area['points']), n_points['area']+1)[:-1]
79-
meta[identifier]['annotation']['area'][i]['points'] = _fix_pts_interpolate(np.array(area['points']), n_points['area'])
79+
else:
80+
meta[identifier]['annotation']['area'][i]['points'] = _fix_pts_interpolate(np.array(area['points']), n_points['area'])
8081
for i, lane_segment in enumerate(frame['annotation']['lane_segment']):
8182
meta[identifier]['annotation']['lane_segment'][i]['centerline'] = _fix_pts_interpolate(np.array(lane_segment['centerline']), n_points['centerline'])
8283
meta[identifier]['annotation']['lane_segment'][i]['left_laneline'] = _fix_pts_interpolate(np.array(lane_segment['left_laneline']), n_points['left_laneline'])

0 commit comments

Comments
 (0)