Merge pull request #16 from xczhanjun/truck

Fix create data problem : missing sample_index and camera_intrinsics …
This commit is contained in:
Haotian (Ken) Tang 2022-06-10 00:07:01 -04:00 committed by GitHub
commit 93d99697ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -211,6 +211,7 @@ class NuScenesDataset(Custom3DDataset):
data = dict(
token=info["token"],
sample_idx=info['token'],
lidar_path=info["lidar_path"],
sweeps=info["sweeps"],
timestamp=info["timestamp"],
@ -251,7 +252,7 @@ class NuScenesDataset(Custom3DDataset):
# camera intrinsics
camera_intrinsics = np.eye(4).astype(np.float32)
camera_intrinsics[:3, :3] = camera_info["cam_intrinsic"]
camera_intrinsics[:3, :3] = camera_info["camera_intrinsics"]
data["camera_intrinsics"].append(camera_intrinsics)
# lidar to image transform