-
Notifications
You must be signed in to change notification settings - Fork 303
Open
Description
PrepareImageInputs类的get_inputs方法中,在sequential情况下,最后获取adjacent的转换矩阵的代码是这样的
`
if self.sequential:
for adj_info in results['adjacent']:
post_trans.extend(post_trans[:len(cam_names)])
post_rots.extend(post_rots[:len(cam_names)])
intrins.extend(intrins[:len(cam_names)])
# align
for cam_name in cam_names:
sensor2ego, ego2global = \
self.get_sensor_transforms(adj_info, cam_name)
sensor2egos.append(sensor2ego)
ego2globals.append(ego2global)
`
依次遍历每各adjacent,将该时刻各相机的转换矩阵放入list中。假设序列长度为T个帧,那么总长度就会是6T,每6个相邻的是同一时刻的6个相机对应的转换矩阵。
但是前面的图像获取部分代码的结构是,外面用一个for循环遍历相机,里面用一个for循环遍历所有adj_info并读出对应相机的图像。也就是说,依次处理各相机,将该相机的T个图像全部读出,再处理下一个相机。因此,虽然图像总数也是6T,但排列顺序是每T个相邻的是同一相机的所有图像。
因此,sensor2egos和imgs虽然长度都是6*T,但好像不能依次对应?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels