Skip to content

feat!: add support of loading dataset metadata#156

Merged
ktro2828 merged 3 commits into
mainfrom
feat/tier4/metadata
Jun 9, 2025
Merged

feat!: add support of loading dataset metadata#156
ktro2828 merged 3 commits into
mainfrom
feat/tier4/metadata

Conversation

@ktro2828

@ktro2828 ktro2828 commented May 26, 2025

Copy link
Copy Markdown
Collaborator

What

This PR adds support of loading T4 dataset metadata including dataset ID and version.
Note that the parameter of initializing Tier4 class is changed from this PR as below.

Now, we have the following dataset structure:

dataset1
└── 0
   ├── annotation
   ├── data
   ...

Then you can initialize

>>> from t4_devkit import Tier4

>>> t4 = Tier4("dataset1")
>>> t4.data_root
"dataset1/0"
>>> t4.dataset_id
"dataset1"
>>> t4.version
"0"

It is also allowed to load T4 dataset without version directory, then version returns None:

dataset2
├── annotation
├── data
 ...
>>> from t4_devkit import Tier4

>>> t4 = Tier4("dataset1")
>>> t4.data_root
"dataset1"
>>> t4.dataset_id
"dataset1"
>>> t4.version
None

@github-actions github-actions Bot added documentation Improvements or additions to documentation new-feature New feature or request labels May 26, 2025
@github-actions

github-actions Bot commented May 26, 2025

Copy link
Copy Markdown
Contributor

☂️ Python Coverage

current status: ❌

Overall Coverage

Lines Covered Coverage Threshold Status
2351 1588 68% 50% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
t4_devkit/common/sanity.py 0% 🔴
t4_devkit/helper/rendering.py 13% 🔴
t4_devkit/tier4.py 17% 🔴
TOTAL 10% 🔴

updated for commit: 270421c by action🐍

@ktro2828 ktro2828 force-pushed the feat/tier4/metadata branch from a15ae93 to d041032 Compare May 27, 2025 01:43
ktro2828 added 2 commits May 27, 2025 17:25
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@ktro2828 ktro2828 force-pushed the feat/tier4/metadata branch from d041032 to 90dc1b6 Compare May 27, 2025 08:29
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@ktro2828 ktro2828 force-pushed the feat/tier4/metadata branch from 90dc1b6 to 270421c Compare May 27, 2025 08:32
@ktro2828 ktro2828 merged commit f23bf60 into main Jun 9, 2025
4 of 5 checks passed
@ktro2828 ktro2828 deleted the feat/tier4/metadata branch June 9, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

1 participant