Skip to content

feat(datasets): merge multiple local datasets into a new one - #110

Open
ravediamond wants to merge 1 commit into
huggingface:mainfrom
ravediamond:merge-datasets
Open

ravediamond wants to merge 1 commit into
huggingface:mainfrom
ravediamond:merge-datasets

Conversation

@ravediamond

@ravediamond ravediamond commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Closes #109.

Wraps lerobot.datasets.dataset_tools.merge_datasets(). New POST /merge-datasets endpoint takes a list of local repo_ids and an output name, loads each dataset (repairing an unfinalized recording first), and writes the merged result to the local cache. Originals are untouched.

Added a "Merge" button on the dataset browser page that opens a dialog to pick datasets and name the result — on success it navigates straight to the merged dataset.

Validation only (no dataset merged): need at least 2 datasets, a non-empty output name that doesn't collide with an existing one, same path-traversal guard as delete-dataset.

Tested: pytest (268 + 4 new, all passing), ruff check/format, tsc, eslint, prod build all clean. Not tested manually against real datasets — happy to do that before merge if useful, or if someone with a couple of local datasets handy can try it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Merge multiple local datasets into one

1 participant