Giter Site home page Giter Site logo

Comments (3)

SM1991CODES avatar SM1991CODES commented on June 12, 2024

Is this project active anymore? Could someone please advise?

from waymo-open-dataset.

JingweiJ avatar JingweiJ commented on June 12, 2024

Hi @SM1991CODES ,

The V2 dataset primarily features a different data format optimized for modular reading. Once loaded, you can process the data similarly to how you would with the V1 dataset. You may try this function to convert the segmentation label range image to point cloud:

def convert_range_image_to_point_cloud_labels_v2(
    range_image: v2.perception.lidar.RangeImage,
    segmentation_label: v2.perception.segmentation.LiDARSegmentationRangeImage
) -> np.ndarray:
  range_image_tensor = range_image.tensor
  range_image_mask = range_image_tensor[..., 0] > 0
  sl_tensor = segmentation_label.tensor
  sl_points_tensor = tf.gather_nd(sl_tensor, tf.where(range_image_mask))
  return sl_points_tensor.numpy()

This is similar to the convert_range_image_to_point_cloud_labels function in tutorial/tutorial_3d_semseg.ipynb.

Be sure that you select the (LiDAR) range image and segmentation label that correspond with the matched laser name and frame timestamp.

from waymo-open-dataset.

SM1991CODES avatar SM1991CODES commented on June 12, 2024

Hello,
Thank you for the help - this basically works.
But. I have another problem - I am trying to use v2.merge to combine the fillowing components:
lidar_df = read(path_dataset_root, components["lidar"], context_name)
lidar_labels_df = read(path_dataset_root, components["lidar_labels"], context_name)
lidar_calibs_df = read(path_dataset_root, components["lidar_calibs"], context_name)
ego_pose_df = read(path_dataset_root, components["ego_pose"], context_name)
lidar_seg_labels_df = read(path_dataset_root, components["lidar_seg"], context_name)

    lidar_calibs_df = v2.merge(lidar_df, lidar_calibs_df)
    lidar_calibs_pose_df = v2.merge(lidar_calibs_df, ego_pose_df)

    lidar_labels_sem_df = v2.merge(lidar_seg_labels_df, lidar_labels_df)
    lidar_calibs_labels_df = v2.merge(lidar_calibs_pose_df, lidar_labels_sem_df, left_group=True, right_group=True)

I am trying to get for each frame - point cloud, object labels, ego pose, semantic labels
This does not work.
I am aware that waymo does not provide semantic labels for each frame.

Please advise how to do this correctly.

from waymo-open-dataset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.