Closed hello7623 closed 9 months ago
in dataset :
def ped2lane_segment(self, points): assert points.shape[0] == 5 dir_vector = points[1] - points[0] dir = np.rad2deg(np.arctan2(dir_vector[1], dir_vector[0])) if dir < -45 or dir > 135: left_boundary = points[[2, 3]] right_boundary = points[[1, 0]] else: left_boundary = points[[0, 1]] right_boundary = points[[3, 2]] centerline = LineString((left_boundary + right_boundary) / 2) left_boundary = LineString(left_boundary) right_boundary = LineString(right_boundary) return centerline, left_boundary, right_boundary
you assert points.shape[0] == 5, but in mapbucket info, some ped cross is not 5 points, so it has assert error.... how to solve it ?
assert points.shape[0] == 5
solved, use new map bucket...
in dataset :
you
assert points.shape[0] == 5
, but in mapbucket info, some ped cross is not 5 points, so it has assert error.... how to solve it ?