Skip to content

Conversation

@ktro2828
Copy link
Collaborator

What

This PR is related to tier4/tier4_perception_dataset#278.

This pull request extends the SurfaceAnn schema 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:

  • Added instance_token (optional string) and attribute_tokens (optional list of strings) fields to the SurfaceAnn schema to allow referencing instance and attribute categories. [1] [2]
  • Made the mask field in SurfaceAnn optional to align with the new schema flexibility. [1] [2]

Test updates:

  • Updated the surface_ann_dict test fixture to include the new instance_token and attribute_tokens fields, ensuring tests cover the extended schema.

Copilot AI review requested due to automatic review settings January 24, 2026 12:40
@github-actions github-actions bot added bug Something isn't working ci Continuous Integration (CI) processes and testing labels Jan 24, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 24, 2026

☂️ Python Coverage

current status: ❌

Overall Coverage

Lines Covered Coverage Threshold Status
4127 3419 83% 50% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
t4_devkit/schema/tables/surface_ann.py 75% 🔴
TOTAL 75% 🔴

updated for commit: a71f2a0 by action🐍

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_token and attribute_tokens fields to SurfaceAnn schema
  • Made the mask field 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.

@ktro2828 ktro2828 changed the title fix: update schema of surface_ann.json feat: update schema of surface_ann.json Jan 24, 2026
@ktro2828 ktro2828 force-pushed the fix/schema/surface-ann branch from 40a29e9 to 743e1e2 Compare January 24, 2026 12:43
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@ktro2828 ktro2828 force-pushed the fix/schema/surface-ann branch from 743e1e2 to 92aeb32 Compare January 24, 2026 12:45
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jan 25, 2026
@ktro2828 ktro2828 added new-feature New feature or request and removed bug Something isn't working labels Jan 26, 2026
@ktro2828 ktro2828 self-assigned this Jan 29, 2026
@ktro2828 ktro2828 changed the title feat: update schema of surface_ann.json feat(schema): update schema of surface_ann.json Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous Integration (CI) processes and testing documentation Improvements or additions to documentation new-feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants