feat(schema): update schema of surface_ann.json#252
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
There was a problem hiding this comment.
Pull request overview
This PR extends the SurfaceAnn schema to support instance and attribute references, making the schema more flexible for complex annotation data. The changes align with related work in tier4_perception_dataset pull request #278.
Changes:
- Added optional
instance_tokenandattribute_tokensfields toSurfaceAnnschema - Made the
maskfield optional in the schema - Updated test fixtures to include the new fields
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| t4_devkit/schema/tables/surface_ann.py | Added instance_token and attribute_tokens fields to the schema, made mask optional |
| tests/schema/conftest.py | Updated surface_ann_dict test fixture with new fields |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
743e1e2 to
92aeb32
Compare
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
a71f2a0 to
612fd15
Compare
SamratThapa120
left a comment
There was a problem hiding this comment.
LGTM thanks.
It is okay as a different PR, but we should add sanity check to ensure instance_token and attribute_token refers to records in the Instance and Attribute tables.
|
NOTE: Merge this PR to #249. |
What
This PR is related to tier4/tier4_perception_dataset#278.
This pull request extends the
SurfaceAnnschema to support additional annotation details, specifically instance and attribute references, and updates related test fixtures accordingly. These changes improve the schema's flexibility for representing more complex annotation data.Schema enhancements:
instance_token(optional string) andattribute_tokens(optional list of strings) fields to theSurfaceAnnschema to allow referencing instance and attribute categories. [1] [2]maskfield inSurfaceAnnoptional to align with the new schema flexibility. [1] [2]Test updates:
surface_ann_dicttest fixture to include the newinstance_tokenandattribute_tokensfields, ensuring tests cover the extended schema.