Skip to content

example: add dataset structure validation helper#1199

Open
AKilalours wants to merge 1 commit into
nutonomy:masterfrom
AKilalours:example/validate-dataset-structure
Open

example: add dataset structure validation helper#1199
AKilalours wants to merge 1 commit into
nutonomy:masterfrom
AKilalours:example/validate-dataset-structure

Conversation

@AKilalours
Copy link
Copy Markdown

@AKilalours AKilalours commented May 10, 2026

Summary

This PR adds a lightweight helper script for validating the local structure of a nuScenes dataset directory.

Why

New users can run into dataset path or extraction issues before initializing the devkit. This script checks whether the expected metadata files exist under the selected dataset version directory.

Changes

  • Added validate_dataset_structure.py
  • Validates the existence of required nuScenes metadata files
  • Supports configurable --dataroot and --version
  • Provides clearer error messages for missing dataroot, version folder, or metadata files

Example

python python-sdk/nuscenes/scripts/validate_dataset_structure.py \
    --dataroot /data/sets/nuscenes \
    --version v1.0-mini

Testing

  • Ran python -m py_compile on the new script
  • Checked diff locally

@AKilalours
Copy link
Copy Markdown
Author

Hi maintainers,

I opened this as a small scoped contribution to improve the beginner experience when working with the nuScenes mini dataset.

Happy to revise the file location, naming, or scope if you prefer a different structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant