waymo-open-dataset icon indicating copy to clipboard operation
waymo-open-dataset copied to clipboard

How to read waymo Block-NeRF dataset?

Open DRosemei opened this issue 2 years ago • 2 comments

I find that waymo Block-NeRF dataset has been provided here. I want to know how to parse these tfrecords. image

DRosemei avatar Jun 22 '22 05:06 DRosemei

Hi, thank you for your interest in the Block-NeRF dataset! We will add some more instructions to the website shortly. In the meantime, you can follow the example below:

files = tf.io.gfile.glob('waymo_block_nerf_mission_bay_validation.tfrecord*')
dataset = tf.data.TFRecordDataset(filenames=files, compression_type='GZIP')

iterator = dataset.as_numpy_iterator()
for entry in iterator:
  example = tf.train.Example()
  example.MergeFromString(entry)
  
  # Decode RGB image.
  img_data = example.features.feature['image'].bytes_list.value[0]
  rgb = tf.image.decode_png(img_data).numpy()
  print(rgb.shape)

  # Find other entries as described on the website.

VincentCa avatar Jun 28 '22 17:06 VincentCa

Hi, you should find that the training split contains about 11,269 and the validation split contains about 576 images. Could you let me know how you counted the number of examples?

VincentCa avatar Aug 16 '22 17:08 VincentCa

Hi @VincentCa ,

May I know how to get 360 degree images for any 1 frame from *.tfrecord? To be more precise, for a given frame I want the 8 camera (mounted on the top) images and 4 camera (front) images.

Thanks.

vinodrajendran001 avatar Feb 08 '23 04:02 vinodrajendran001

Hi @VincentCa ,

May I know how to get 360 degree images for any 1 frame from *.tfrecord? To be more precise, for a given frame I want the 8 camera (mounted on the top) images and 4 camera (front) images.

Thanks.

This dataset provides the camera serial number and camera location for each image, you just need to filter the cameras by serial number and extract the corresponding images

YZsZY avatar Apr 05 '23 16:04 YZsZY