-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kokseang
committed
Feb 3, 2025
1 parent
e1f3163
commit 08c46cb
Showing
1 changed file
with
37 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|