Repository navigation
[python] Separate single-source and multi-source LeRobot readers - #11713
Draft
XiaoHongbo-Hope wants to merge 1 commit into
Draft
XiaoHongbo-Hope wants to merge 1 commit into
XiaoHongbo-Hope wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
PaimonLeRobotDatasetcurrently combines every source in a table group. Evendataset_indexonly restricts the Episodes being sampled; its metadata, indices, vocabularies and statistics still describe the combined group.Split the public interfaces:
PaimonLeRobotDatasetreads one source, selected by its storeddataset_idUUID ordataset_index. It uses source-local indices and Episode selection, original vocabularies/FPS, and stored Dataset statistics. A group with one source needs no selector.PaimonMultiLeRobotDatasetexplicitly retains the existing whole-group reader with global indices and combined metadata.For example, selecting source B now returns its first frame as
index=0, with B's statistics, rather than the group's frame offset and merged statistics. Calling the single-source class on a group with multiple sources requires an explicit selector; callers that want combined training migrate to the new class.The two paths share indexed frame lookup, batched media decoding and DataLoader support. This PR changes no table schemas or source association keys. The persisted statistics-cache removal remains in #11649.
Validation
git diff --checkpass.