waymo-open-dataset
waymo-open-dataset copied to clipboard
expand new label about waymo open dataset protos.metrics
I use waymo-open-dataset for python now when I want to add more label. so I fixed labels.proto and python lib/site-package waymo_open_dataset/label_pb2.py but It's not worked...
I have error message: ValueError: Unknown enum value: 5
Do you have any idea about this?...
This sounds like a protobuf issue, but it's hard to debug without seeing the rest of your code. Could you provide more context?
How did you solve this problem? Could you please teach me?
\usr\local\lib64\python3.6\site-packages\waymo_open_dataset\label_pb2.py
hi, is it solved? that's code is right I just add values too. and fix Descriptor serialized_pb about my code I added Forklift type serialized_pb=_b('\n\x1ewaymo_open_dataset/label.proto\x12\x12 waymo.open_dataset\x1a(waymo_open_dataset/protos/keypoint.proto "\xd0\t\n\x05Label\x12*\n\x03\x62ox\x18\x01 \x01(\x0b\x32\x1d .waymo.open_dataset.Label.Box\x12\x34\n\x08metadata\x18\x02 \x01(\x0b\x32" .waymo.open_dataset.Label.Metadata\x12,\n\x04type\x18\x03 \x01(\x0e\x32\x1e .waymo.open_dataset.Label.Type\x12\n\n\x02id\x18\x04 \x01(\t\x12M \n\x1a\x64\x65tection_difficulty_level\x18\x05 \x01(\x0e\x32 ).waymo.open_dataset.Label.DifficultyLevel\x12L\n\x19 tracking_difficulty_level\x18\x06 \x01(\x0e\x32 ).waymo.open_dataset.Label.DifficultyLevel\x12\x1f\n\x17 num_lidar_points_in_box\x18\x07 \x01(\x05\x12#\n\x1b num_top_lidar_points_in_box\x18\r \x01(\x05\x12G\n\x0flaser_keypoints \x18\x08 \x01(\x0b\x32,.waymo.open_dataset.keypoints.LaserKeypointsH\x00\x12 I\n\x10\x63\x61mera_keypoints\x18\t \x01(\x0b\x32 -.waymo.open_dataset.keypoints.CameraKeypointsH\x00\x12:\n\x0b\x61ssociation \x18\n \x01(\x0b\x32%.waymo.open_dataset.Label.Association\x12 \n\x18 most_visible_camera_name\x18\x0b \x01(\t\x12\x38\n\x11\x63\x61 mera_synced_box\x18\x0c \x01(\x0b\x32\x1d.waymo.open_dataset.Label.Box \x1a\xbf\x01\n\x03\x42ox\x12\x10\n\x08\x63\x65nter_x\x18\x01 \x01( \x01\x12\x10\n\x08\x63\x65nter_y\x18\x02 \x01(\x01\x12\x10\n\x08\x63\x65 nter_z\x18\x03 \x01(\x01\x12\x0e\n\x06length\x18\x05 \x01(\x01\x12\r\n\x05 width\x18\x04 \x01(\x01\x12\x0e\n\x06height\x18\x06 \x01(\x01\x12\x0f\n\x07 heading\x18\x07 \x01(\x01"B\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN \x10\x00\x12\x0b\n\x07TYPE_3D\x10\x01\x12\x0b\n\x07TYPE_2D \x10\x02\x12\x0e\n\nTYPE_AA_2D\x10\x03\x1ap\n\x08Metadata\x12\x0f\n\x07 speed_x\x18\x01 \x01(\x01\x12\x0f\n\x07speed_y\x18\x02 \x01( \x01\x12\x0f\n\x07speed_z\x18\x05 \x01(\x01\x12\x0f\n\x07\x61\x63\x63\x65l_x \x18\x03 \x01(\x01\x12\x0f\n\x07\x61\x63\x63\x65l_y\x18\x04 \x01( \x01\x12\x0f\n\x07\x61\x63\x63\x65l_z\x18\x06 \x01(\x01\x1a&\n\x0b\x41 ssociation\x12\x17\n\x0flaser_object_id\x18\x01 \x01(\t"s\n\x04Type \x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\x10\n\x0cTYPE_VEHICLE \x10\x01\x12\x13\n\x0fTYPE_PEDESTRIAN\x10\x02\x12\r\n\tTYPE_SIGN \x10\x03\x12\x10\n\x0cTYPE_CYCLIST\x10\x04\x12\x11\n\rTYPE_FORKLIFT \x10\x05"8\n\x0f\x44ifficultyLevel\x12\x0b\n\x07UNKNOWN \x10\x00\x12\x0b\n\x07LEVEL_1\x10\x01\x12\x0b\n\x07LEVEL_2 \x10\x02\x42\x11\n\x0fkeypoints_oneof"2\n\x0ePolygon2dProto\x12\t\n\x01x \x18\x01 \x03(\x01\x12\t\n\x01y\x18\x02 \x03(\x01\x12\n\n\x02id\x18\x03 \x01 (\t')
I hope the answer helps you 2023년 4월 25일 (화) 오후 7:35, Stone-sy @.***>님이 작성:
[image: image] https://user-images.githubusercontent.com/52024213/234251655-3b541b29-5865-4755-a4e1-1b155f08e825.png \usr\local\lib64\python3.6\site-packages\waymo_open_dataset\label_pb2.py
— Reply to this email directly, view it on GitHub https://github.com/waymo-research/waymo-open-dataset/issues/592#issuecomment-1521561238, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4NMBUN4ZRBGXXGOJGQFALXC6SI7ANCNFSM6AAAAAAUSJTNKE . You are receiving this because you authored the thread.Message ID: @.***>
hi, is it solved? that's code is right I just add values too. and fix Descriptor serialized_pb about my code I added Forklift type serialized_pb=_b('\n\x1ewaymo_open_dataset/label.proto\x12\x12 waymo.open_dataset\x1a(waymo_open_dataset/protos/keypoint.proto "\xd0\t\n\x05Label\x12*\n\x03\x62ox\x18\x01 \x01(\x0b\x32\x1d .waymo.open_dataset.Label.Box\x12\x34\n\x08metadata\x18\x02 \x01(\x0b\x32" .waymo.open_dataset.Label.Metadata\x12,\n\x04type\x18\x03 \x01(\x0e\x32\x1e .waymo.open_dataset.Label.Type\x12\n\n\x02id\x18\x04 \x01(\t\x12M \n\x1a\x64\x65tection_difficulty_level\x18\x05 \x01(\x0e\x32 ).waymo.open_dataset.Label.DifficultyLevel\x12L\n\x19 tracking_difficulty_level\x18\x06 \x01(\x0e\x32 ).waymo.open_dataset.Label.DifficultyLevel\x12\x1f\n\x17 num_lidar_points_in_box\x18\x07 \x01(\x05\x12#\n\x1b num_top_lidar_points_in_box\x18\r \x01(\x05\x12G\n\x0flaser_keypoints \x18\x08 \x01(\x0b\x32,.waymo.open_dataset.keypoints.LaserKeypointsH\x00\x12 I\n\x10\x63\x61mera_keypoints\x18\t \x01(\x0b\x32 -.waymo.open_dataset.keypoints.CameraKeypointsH\x00\x12:\n\x0b\x61ssociation \x18\n \x01(\x0b\x32%.waymo.open_dataset.Label.Association\x12 \n\x18 most_visible_camera_name\x18\x0b \x01(\t\x12\x38\n\x11\x63\x61 mera_synced_box\x18\x0c \x01(\x0b\x32\x1d.waymo.open_dataset.Label.Box \x1a\xbf\x01\n\x03\x42ox\x12\x10\n\x08\x63\x65nter_x\x18\x01 \x01( \x01\x12\x10\n\x08\x63\x65nter_y\x18\x02 \x01(\x01\x12\x10\n\x08\x63\x65 nter_z\x18\x03 \x01(\x01\x12\x0e\n\x06length\x18\x05 \x01(\x01\x12\r\n\x05 width\x18\x04 \x01(\x01\x12\x0e\n\x06height\x18\x06 \x01(\x01\x12\x0f\n\x07 heading\x18\x07 \x01(\x01"B\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN \x10\x00\x12\x0b\n\x07TYPE_3D\x10\x01\x12\x0b\n\x07TYPE_2D \x10\x02\x12\x0e\n\nTYPE_AA_2D\x10\x03\x1ap\n\x08Metadata\x12\x0f\n\x07 speed_x\x18\x01 \x01(\x01\x12\x0f\n\x07speed_y\x18\x02 \x01( \x01\x12\x0f\n\x07speed_z\x18\x05 \x01(\x01\x12\x0f\n\x07\x61\x63\x63\x65l_x \x18\x03 \x01(\x01\x12\x0f\n\x07\x61\x63\x63\x65l_y\x18\x04 \x01( \x01\x12\x0f\n\x07\x61\x63\x63\x65l_z\x18\x06 \x01(\x01\x1a&\n\x0b\x41 ssociation\x12\x17\n\x0flaser_object_id\x18\x01 \x01(\t"s\n\x04Type \x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\x10\n\x0cTYPE_VEHICLE \x10\x01\x12\x13\n\x0fTYPE_PEDESTRIAN\x10\x02\x12\r\n\tTYPE_SIGN \x10\x03\x12\x10\n\x0cTYPE_CYCLIST\x10\x04\x12\x11\n\rTYPE_FORKLIFT \x10\x05"8\n\x0f\x44ifficultyLevel\x12\x0b\n\x07UNKNOWN \x10\x00\x12\x0b\n\x07LEVEL_1\x10\x01\x12\x0b\n\x07LEVEL_2 \x10\x02\x42\x11\n\x0fkeypoints_oneof"2\n\x0ePolygon2dProto\x12\t\n\x01x \x18\x01 \x03(\x01\x12\t\n\x01y\x18\x02 \x03(\x01\x12\n\n\x02id\x18\x03 \x01 (\t') I hope the answer helps you 2023년 4월 25일 (화) 오후 7:35, Stone-sy @.>님이 작성: … [image: image] https://user-images.githubusercontent.com/52024213/234251655-3b541b29-5865-4755-a4e1-1b155f08e825.png \usr\local\lib64\python3.6\site-packages\waymo_open_dataset\label_pb2.py — Reply to this email directly, view it on GitHub <#592 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4NMBUN4ZRBGXXGOJGQFALXC6SI7ANCNFSM6AAAAAAUSJTNKE . You are receiving this because you authored the thread.Message ID: @.>
You add these but I don't have them. I only want to add a type. What should I do? Thank you!
that's not right !
I just write my example.. you must try in your case in my case I want to add Forklift type, so add TYPE_FORKLIFT fix code in your case
2023년 4월 26일 (수) 오후 2:25, Stone-sy @.***>님이 작성:
hi, is it solved? that's code is right I just add values too. and fix Descriptor serialized_pb about my code I added Forklift type serialized_pb=_b('\n\x1ewaymo_open_dataset/label.proto\x12\x12 waymo.open_dataset\x1a(waymo_open_dataset/protos/keypoint.proto "\xd0\t\n\x05Label\x12*\n\x03\x62ox\x18\x01 \x01(\x0b\x32\x1d .waymo.open_dataset.Label.Box\x12\x34\n\x08metadata\x18\x02 \x01(\x0b\x32" .waymo.open_dataset.Label.Metadata\x12,\n\x04type\x18\x03 \x01(\x0e\x32\x1e .waymo.open_dataset.Label.Type\x12\n\n\x02id\x18\x04 \x01(\t\x12M \n\x1a\x64\x65tection_difficulty_level\x18\x05 \x01(\x0e\x32 ).waymo.open_dataset.Label.DifficultyLevel\x12L\n\x19 tracking_difficulty_level\x18\x06 \x01(\x0e\x32 ).waymo.open_dataset.Label.DifficultyLevel\x12\x1f\n\x17 num_lidar_points_in_box\x18\x07 \x01(\x05\x12#\n\x1b num_top_lidar_points_in_box\x18\r \x01(\x05\x12G\n\x0flaser_keypoints \x18\x08 \x01(\x0b\x32,.waymo.open_dataset.keypoints.LaserKeypointsH\x00\x12 I\n\x10\x63\x61mera_keypoints\x18\t \x01(\x0b\x32 -.waymo.open_dataset.keypoints.CameraKeypointsH\x00\x12:\n\x0b\x61ssociation \x18\n \x01(\x0b\x32%.waymo.open_dataset.Label.Association\x12 \n\x18 most_visible_camera_name\x18\x0b \x01(\t\x12\x38\n\x11\x63\x61 mera_synced_box\x18\x0c \x01(\x0b\x32\x1d.waymo.open_dataset.Label.Box \x1a\xbf\x01\n\x03\x42ox\x12\x10\n\x08\x63\x65nter_x\x18\x01 \x01( \x01\x12\x10\n\x08\x63\x65nter_y\x18\x02 \x01(\x01\x12\x10\n\x08\x63\x65 nter_z\x18\x03 \x01(\x01\x12\x0e\n\x06length\x18\x05 \x01(\x01\x12\r\n\x05 width\x18\x04 \x01(\x01\x12\x0e\n\x06height\x18\x06 \x01(\x01\x12\x0f\n\x07 heading\x18\x07 \x01(\x01"B\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN \x10\x00\x12\x0b\n\x07TYPE_3D\x10\x01\x12\x0b\n\x07TYPE_2D \x10\x02\x12\x0e\n\nTYPE_AA_2D\x10\x03\x1ap\n\x08Metadata\x12\x0f\n\x07 speed_x\x18\x01 \x01(\x01\x12\x0f\n\x07speed_y\x18\x02 \x01( \x01\x12\x0f\n\x07speed_z\x18\x05 \x01(\x01\x12\x0f\n\x07\x61\x63\x63\x65l_x \x18\x03 \x01(\x01\x12\x0f\n\x07\x61\x63\x63\x65l_y\x18\x04 \x01( \x01\x12\x0f\n\x07\x61\x63\x63\x65l_z\x18\x06 \x01(\x01\x1a&\n\x0b\x41 ssociation\x12\x17\n\x0flaser_object_id\x18\x01 \x01(\t"s\n\x04Type \x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\x10\n\x0cTYPE_VEHICLE \x10\x01\x12\x13\n\x0fTYPE_PEDESTRIAN\x10\x02\x12\r\n\tTYPE_SIGN \x10\x03\x12\x10\n\x0cTYPE_CYCLIST\x10\x04\x12\x11\n\rTYPE_FORKLIFT \x10\x05"8\n\x0f\x44ifficultyLevel\x12\x0b\n\x07UNKNOWN \x10\x00\x12\x0b\n\x07LEVEL_1\x10\x01\x12\x0b\n\x07LEVEL_2 \x10\x02\x42\x11\n\x0fkeypoints_oneof"2\n\x0ePolygon2dProto\x12\t\n\x01x \x18\x01 \x03(\x01\x12\t\n\x01y\x18\x02 \x03(\x01\x12\n\n\x02id\x18\x03 \x01 (\t') I hope the answer helps you 2023년 4월 25일 (화) 오후 7:35, Stone-sy @.
>님이 작성: … <#m_2172892711643661916_m_-7660115859927592089_> [image: image] https://user-images.githubusercontent.com/52024213/234251655-3b541b29-5865-4755-a4e1-1b155f08e825.png https://user-images.githubusercontent.com/52024213/234251655-3b541b29-5865-4755-a4e1-1b155f08e825.png \usr\local\lib64\python3.6\site-packages\waymo_open_dataset\label_pb2.py — Reply to this email directly, view it on GitHub <#592 (comment) https://github.com/waymo-research/waymo-open-dataset/issues/592#issuecomment-1521561238>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4NMBUN4ZRBGXXGOJGQFALXC6SI7ANCNFSM6AAAAAAUSJTNKE https://github.com/notifications/unsubscribe-auth/AX4NMBUN4ZRBGXXGOJGQFALXC6SI7ANCNFSM6AAAAAAUSJTNKE . You are receiving this because you authored the thread.Message ID: @.>
[image: image] https://user-images.githubusercontent.com/52024213/234477409-54a14a05-8e6c-4ce9-a256-7014c9ed9588.png You add these but I don't have them. I only want to add a type. What should I do? Thank you!
— Reply to this email directly, view it on GitHub https://github.com/waymo-research/waymo-open-dataset/issues/592#issuecomment-1522805182, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4NMBXVUNOBZGCS2QK7PODXDCWVPANCNFSM6AAAAAAUSJTNKE . You are receiving this because you authored the thread.Message ID: @.***>
that's not right ! I just write my example.. you must try in your case in my case I want to add Forklift type, so add TYPE_FORKLIFT fix code in your case 2023년 4월 26일 (수) 오후 2:25, Stone-sy @.>님이 작성: … hi, is it solved? that's code is right I just add values too. and fix Descriptor serialized_pb about my code I added Forklift type serialized_pb=_b('\n\x1ewaymo_open_dataset/label.proto\x12\x12 waymo.open_dataset\x1a(waymo_open_dataset/protos/keypoint.proto "\xd0\t\n\x05Label\x12\n\x03\x62ox\x18\x01 \x01(\x0b\x32\x1d .waymo.open_dataset.Label.Box\x12\x34\n\x08metadata\x18\x02 \x01(\x0b\x32" .waymo.open_dataset.Label.Metadata\x12,\n\x04type\x18\x03 \x01(\x0e\x32\x1e .waymo.open_dataset.Label.Type\x12\n\n\x02id\x18\x04 \x01(\t\x12M \n\x1a\x64\x65tection_difficulty_level\x18\x05 \x01(\x0e\x32 ).waymo.open_dataset.Label.DifficultyLevel\x12L\n\x19 tracking_difficulty_level\x18\x06 \x01(\x0e\x32 ).waymo.open_dataset.Label.DifficultyLevel\x12\x1f\n\x17 num_lidar_points_in_box\x18\x07 \x01(\x05\x12#\n\x1b num_top_lidar_points_in_box\x18\r \x01(\x05\x12G\n\x0flaser_keypoints \x18\x08 \x01(\x0b\x32,.waymo.open_dataset.keypoints.LaserKeypointsH\x00\x12 I\n\x10\x63\x61mera_keypoints\x18\t \x01(\x0b\x32 -.waymo.open_dataset.keypoints.CameraKeypointsH\x00\x12:\n\x0b\x61ssociation \x18\n \x01(\x0b\x32%.waymo.open_dataset.Label.Association\x12 \n\x18 most_visible_camera_name\x18\x0b \x01(\t\x12\x38\n\x11\x63\x61 mera_synced_box\x18\x0c \x01(\x0b\x32\x1d.waymo.open_dataset.Label.Box \x1a\xbf\x01\n\x03\x42ox\x12\x10\n\x08\x63\x65nter_x\x18\x01 \x01( \x01\x12\x10\n\x08\x63\x65nter_y\x18\x02 \x01(\x01\x12\x10\n\x08\x63\x65 nter_z\x18\x03 \x01(\x01\x12\x0e\n\x06length\x18\x05 \x01(\x01\x12\r\n\x05 width\x18\x04 \x01(\x01\x12\x0e\n\x06height\x18\x06 \x01(\x01\x12\x0f\n\x07 heading\x18\x07 \x01(\x01"B\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN \x10\x00\x12\x0b\n\x07TYPE_3D\x10\x01\x12\x0b\n\x07TYPE_2D \x10\x02\x12\x0e\n\nTYPE_AA_2D\x10\x03\x1ap\n\x08Metadata\x12\x0f\n\x07 speed_x\x18\x01 \x01(\x01\x12\x0f\n\x07speed_y\x18\x02 \x01( \x01\x12\x0f\n\x07speed_z\x18\x05 \x01(\x01\x12\x0f\n\x07\x61\x63\x63\x65l_x \x18\x03 \x01(\x01\x12\x0f\n\x07\x61\x63\x63\x65l_y\x18\x04 \x01( \x01\x12\x0f\n\x07\x61\x63\x63\x65l_z\x18\x06 \x01(\x01\x1a&\n\x0b\x41 ssociation\x12\x17\n\x0flaser_object_id\x18\x01 \x01(\t"s\n\x04Type \x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\x10\n\x0cTYPE_VEHICLE \x10\x01\x12\x13\n\x0fTYPE_PEDESTRIAN\x10\x02\x12\r\n\tTYPE_SIGN \x10\x03\x12\x10\n\x0cTYPE_CYCLIST\x10\x04\x12\x11\n\rTYPE_FORKLIFT \x10\x05"8\n\x0f\x44ifficultyLevel\x12\x0b\n\x07UNKNOWN \x10\x00\x12\x0b\n\x07LEVEL_1\x10\x01\x12\x0b\n\x07LEVEL_2 \x10\x02\x42\x11\n\x0fkeypoints_oneof"2\n\x0ePolygon2dProto\x12\t\n\x01x \x18\x01 \x03(\x01\x12\t\n\x01y\x18\x02 \x03(\x01\x12\n\n\x02id\x18\x03 \x01 (\t') I hope the answer helps you 2023년 4월 25일 (화) 오후 7:35, Stone-sy @. >님이 작성: … <#m_2172892711643661916_m_-7660115859927592089_> [image: image] https://user-images.githubusercontent.com/52024213/234251655-3b541b29-5865-4755-a4e1-1b155f08e825.png https://user-images.githubusercontent.com/52024213/234251655-3b541b29-5865-4755-a4e1-1b155f08e825.png \usr\local\lib64\python3.6\site-packages\waymo_open_dataset\label_pb2.py — Reply to this email directly, view it on GitHub <#592 (comment) <#592 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4NMBUN4ZRBGXXGOJGQFALXC6SI7ANCNFSM6AAAAAAUSJTNKE https://github.com/notifications/unsubscribe-auth/AX4NMBUN4ZRBGXXGOJGQFALXC6SI7ANCNFSM6AAAAAAUSJTNKE . You are receiving this because you authored the thread.Message ID: @.> [image: image] https://user-images.githubusercontent.com/52024213/234477409-54a14a05-8e6c-4ce9-a256-7014c9ed9588.png You add these but I don't have them. I only want to add a type. What should I do? Thank you! — Reply to this email directly, view it on GitHub <#592 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4NMBXVUNOBZGCS2QK7PODXDCWVPANCNFSM6AAAAAAUSJTNKE . You are receiving this because you authored the thread.Message ID: @.*>
I found that if I only modify label_pb2.py
didn't work. Should I modify the label.proto
? Besides, what version do you use?
have some one resolve this problem?i want to use this tools to eval my own datast,but the label classes is not same as WOD。
您好!您的邮件我已收到!