Skip to content

chore(root): fixing root semantics in convert_dataset script#3073

Merged
imstevenpmwork merged 2 commits intomainfrom
fix/root-convert-dataset
Mar 4, 2026
Merged

chore(root): fixing root semantics in convert_dataset script#3073
imstevenpmwork merged 2 commits intomainfrom
fix/root-convert-dataset

Conversation

@CarolinePascal
Copy link
Collaborator

Type / Scope

  • Type: Chore
  • Scope: convert_dataset_v21_to_v30 script

Summary / Motivation

Following up on #3035, this PR fixes the interpretation of the root argument in the convert_dataset_v21_to_v30 script.

Related issues

  • Fixes / Closes: # (if any)
  • Related: # (if any)

What changed

  • root now defines the exact dataset folder containing meta/, data/, videos/.

How was this tested (or how to run locally)

Successfully converted a local dataset using the --root argument.

Checklist (required before merge)

  • Linting/formatting run (pre-commit run -a)
  • All tests pass locally (pytest)
  • Documentation updated
  • CI is green

Reviewer notes

  • Anything the reviewer should focus on (performance, edge-cases, specific files) or general notes.
  • Anyone in the community is free to review the PR.

Copilot AI review requested due to automatic review settings March 3, 2026 15:14
@github-actions github-actions bot added the dataset Issues regarding data inputs, processing, or datasets label Mar 3, 2026
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 updates the convert_dataset_v21_to_v30 conversion script so the --root argument matches current dataset path semantics: root is the dataset directory itself (no longer a parent directory that gets repo_id appended).

Changes:

  • Adjust --root handling to treat the provided path as the dataset root directory (no /repo_id suffix).
  • Clarify path semantics in the script’s usage docstring.
  • Update the CLI help text for --root to mention the default location.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

s1lent4gnt
s1lent4gnt previously approved these changes Mar 3, 2026
Copy link
Member

@s1lent4gnt s1lent4gnt left a comment

Choose a reason for hiding this comment

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

Thank you for checking this, LGTM!

Signed-off-by: Caroline Pascal <caroline8.pascal@gmail.com>
Copy link
Member

@s1lent4gnt s1lent4gnt left a comment

Choose a reason for hiding this comment

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

LGTM!

@imstevenpmwork imstevenpmwork merged commit 4303b3c into main Mar 4, 2026
23 of 27 checks passed
@imstevenpmwork imstevenpmwork deleted the fix/root-convert-dataset branch March 4, 2026 10:11
LePao1 pushed a commit to LePao1/lerobot that referenced this pull request Mar 7, 2026
…ngface#3073)

* fix(root): fixing root semantincs in convert_dataset script

* fix(\): fixing command syntax in dataset conversion script

Signed-off-by: Caroline Pascal <caroline8.pascal@gmail.com>

---------

Signed-off-by: Caroline Pascal <caroline8.pascal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dataset Issues regarding data inputs, processing, or datasets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants