Comments (1)
def pb2dict(obj):
"""
Takes a ProtoBuf Message obj and convertes it to a dict.
"""
adict = {}
if not obj.IsInitialized():
return None
for field in obj.DESCRIPTOR.fields:
if not getattr(obj, field.name):
continue
if not field.label == field.LABEL_REPEATED:
if not field.type == field.TYPE_MESSAGE:
adict[field.name] = getattr(obj, field.name)
else:
value = pb2dict(getattr(obj, field.name))
if value:
adict[field.name] = value
else:
if field.type == field.TYPE_MESSAGE:
adict[field.name] = [pb2dict(v) for v in getattr(obj, field.name)]
else:
adict[field.name] = [v for v in getattr(obj, field.name)]
return adict
from waymo-open-dataset.
Related Issues (20)
- Optimize parquet files (sorted columns and row group size) HOT 8
- I want to locate intersection in google map but donot have the origin for global coordinates HOT 1
- the collection time span of the data in the Waymo Open Motion Dataset
- Something is wrong when logging in the website. HOT 2
- How should I project the lidar data to the camera image with the depth in v2? HOT 1
- Unable to install the waymo-open-dataset package
- Does Waymo provides the geographic coordinates (latitude, longitude, altitude) of the starting point (origin) of each segment
- Are testing and testing_location disjoint or do they have some overlap? For context, whatβs the difference between the two folders?
- Perception Dataset V201 Lidar Timestamp Issue HOT 1
- protoc failed: error executing command HOT 2
- Are the timestamps for traffic signals synchronized with the timestamps for vehicle HOT 1
- Are the heading values of tracks in waymo motion dataset already normalized? HOT 1
- Cannot click to agree on the license when downloading the dataset HOT 1
- Efficiently loading Waymo raw data? HOT 3
- Camera extrinsics per frame (to get global frame coordinates)
- KeyFrames Sampling Rate
- 3D bounding box detection [VIDEO]
- Issue with convert_range_image_to_point_cloud HOT 1
- Unkown worng of WOSAC submission HOT 6
- How can i get the compute_detection_metrics_main with the new version of the library?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from waymo-open-dataset.