fix(schema): align to the tier4_perception_dataset document #249
+118
−35
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.
What
There is a subtle difference in the definition of
autolabel_metadatafrom the document oftier4_perception_dataset.This pull request introduces a new
AutolabelMetadatatype to encapsulate metadata about models used for auto-labeling, replacing the previous usage of a raw list ofAutolabelModelinstances. The change is reflected consistently across the schema, codebase, and tests, improving clarity and extensibility of the auto-labeling metadata representation.Schema and documentation updates:
AutolabelMetadatatype, which wraps a list ofAutolabelModelentries, and updated documentation to describe its structure and usage.sample_annotation,sample_data,object_ann,surface_ann) to useautolabel_metadata: <option[AutolabelMetadata]>instead of a list ofAutolabelModel. [1] [2] [3] [4]Codebase changes:
AutolabelMetadatadataclass and its conversion logic inautolabel_metadata.py, and updated theAutolabelMixinand all relevant schema tables to use this new type. [1] [2] [3] [4]Test updates:
AutolabelMetadatastructure instead of a list of models. [1] [2] [3]AutolabelMetadataconversion and error handling, and updatedAutolabelMixintests to use the new type. [1] [2] [3]These changes make the handling of auto-labeling metadata more robust and future-proof by introducing a clear, extensible structure.