feat: add FastLabel 3D to T4 format #183
Merged
+345
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new conversion task to the
perception_dataset
module, adds new label configurations, and includes utility functions to handle rotations. The most important changes include adding a new converter class for FastLabel to T4 data, updating the conversion script to handle the new task, and enhancing the annotation loading and formatting functions.New Converter Class:
perception_dataset/fastlabel_to_t4/fastlabel_to_t4_converter.py
: Added theFastLabelToT4Converter
class to convert FastLabel data to T4 data, including methods to handle directory structures, annotations, and consistency checks.Conversion Script Update:
perception_dataset/convert.py
: Updated themain
function to include a new task"convert_fastlabel_to_t4"
that utilizes theFastLabelToT4Converter
class.Annotation Handling Enhancements:
perception_dataset/fastlabel_to_t4/fastlabel_2d_to_t4_converter.py
: Modified the_load_annotation_jsons
method to support filtering and loading annotations based on dataset names and delimiters.Utility Functions for Rotations:
perception_dataset/utils/transform.py
: Addedrotation_to_quaternion
andquaternion_to_rotation
functions to convert between rotation vectors and quaternions.Label Configuration:
config/label/object.yaml
: Added new label configurations forother_pedestrian
andother_vehicle
.