Closed fei1lee closed 3 weeks ago
When using the Co3D dataset, if a batch loads two frames from the same sequence, they use the same point cloud, resulting in two identical pointcloud_ids https://github.com/facebookresearch/pytorch3d/blob/fca83e6369e62de2736763372a2de949d56d5a74/pytorch3d/implicitron/dataset/frame_data.py#L407. When it reaches https://github.com/facebookresearch/pytorch3d/blob/fca83e6369e62de2736763372a2de949d56d5a74/pytorch3d/implicitron/dataset/frame_data.py#L407, the length of ind is greater than 1. If sequence_point_cloud only appends the point cloud from ind[0], it will cause the batch_size of sequence_point_cloud in the final FrameData to be inconsistent with other data. Is this a bug?
pointcloud_id
ind
sequence_point_cloud
ind[0]
FrameData
I think this is deliberate, to avoid wasting memory on multiple copies of the same data.
When using the Co3D dataset, if a batch loads two frames from the same sequence, they use the same point cloud, resulting in two identical
pointcloud_id
s https://github.com/facebookresearch/pytorch3d/blob/fca83e6369e62de2736763372a2de949d56d5a74/pytorch3d/implicitron/dataset/frame_data.py#L407. When it reaches https://github.com/facebookresearch/pytorch3d/blob/fca83e6369e62de2736763372a2de949d56d5a74/pytorch3d/implicitron/dataset/frame_data.py#L407, the length ofind
is greater than 1. Ifsequence_point_cloud
only appends the point cloud fromind[0]
, it will cause the batch_size ofsequence_point_cloud
in the finalFrameData
to be inconsistent with other data. Is this a bug?