Skip to content

Commit

Permalink
Fix format_deepen_annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
kokseang committed Feb 3, 2025
1 parent e1f3163 commit 08c46cb
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions perception_dataset/deepen/deepen_to_t4_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,47 +211,47 @@ def _format_deepen_annotation(
"dataset_id": "DOnC2vK05ojPr7qiqCsk2Ee7",
"file_id": "0.pcd",
"label_category_id": "car",
"label_id": "car:1",
"label_type": "3d_bbox",
"project_id": "defaultproject",
"stage_id": "QA",
"attributes": {
"state": "moving",
"occlusion": "none",
"cycle_state": "with_rider"
},
"attributes_source": {
"state": "manual",
"occlusion": "manual",
"cycle_state": "manual"
},
"create_time_millis": 1634623252175,
"label_set_id": "default",
"labeller_email": "[email protected]",
"sensor_id": "lidar",
"three_d_bbox": {
"cx": 81526.54828555016,
"cy": 50383.480369180215,
"cz": 34.93298238813448,
"h": 1.5030299457129388,
"l": 4.895038637695593,
"w": 2.107137758889027,
"quaternion": {
"x": 0,
"y": 0,
"z": 0.7522213131298905,
"w": 0.6589105372303157
}
},
"update_time_millis": 1634623252175,
"user_id": "[email protected]",
"version": 782
"label_id": "car:1",
"label_type": "3d_bbox",
"project_id": "defaultproject",
"stage_id": "QA",
"attributes": {
"state": "moving",
"occlusion": "none",
"cycle_state": "with_rider"
},
"attributes_source": {
"state": "manual",
"occlusion": "manual",
"cycle_state": "manual"
},
"create_time_millis": 1634623252175,
"label_set_id": "default",
"labeller_email": "[email protected]",
"sensor_id": "lidar",
"three_d_bbox": {
"cx": 81526.54828555016,
"cy": 50383.480369180215,
"cz": 34.93298238813448,
"h": 1.5030299457129388,
"l": 4.895038637695593,
"w": 2.107137758889027,
"quaternion": {
"x": 0,
"y": 0,
"z": 0.7522213131298905,
"w": 0.6589105372303157
}
},
"update_time_millis": 1634623252175,
"user_id": "[email protected]",
"version": 782
},
]
Args:
anno_path (str): path to the deepen annotation file
camera_index (Dict[str, int]): camera index dictionary
anno_path (str): path to the deepen annotation file
camera_index (Dict[str, int]): camera index dictionary
"""
anno_dict: Dict[str, Dict[int, List[Dict[str, Any]]]] = {}
for label_dict in label_dicts:
Expand Down

0 comments on commit 08c46cb

Please sign in to comment.