-
Notifications
You must be signed in to change notification settings - Fork 989
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
LeRobotDataset v2.1 #711
Open
aliberts
wants to merge
14
commits into
main
Choose a base branch
from
user/aliberts/2025_02_10_dataset_v2.1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
LeRobotDataset v2.1 #711
+1,708
−1,110
Conversation
This file contains 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
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com>
Co-authored-by: Remi Cadene <re.cadene@gmail.com> Co-authored-by: Remi <remi.cadene@huggingface.co>
# for free
to join this conversation on GitHub.
Already have an account?
# 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.
What this does
This PR introduces aims to improve the usability of
LeRobotDataset
. We increaseCODEBASE_VERSION
fromv2.0
tov2.1
as changes are backward compatible withv2.0
.What do I need to do?
Simply run this script on your dataset to update the stats
This will:
episodes_stats.jsonl
stats.json
.info.json
.main
branch and tags it withv2.1
.Changes
stats.json
with per-episode statsepisodes_stats.jsonl
. Episodes stats are then aggregated over selected episodes at initialization of the dataset. Stats computation speed is greatly improved. Per-episode stats #521task
is defined per frame and added withadd_frame
instead ofadd episode
Add frame level task #693episode_buffer
Validate features duringadd_frame
+ Add 2D-to-5D + Add string #720local_files_only
, only usecodebase_version
frominfo.json
and delete non-main branches Removelocal_files_only
and usecodebase_version
instead of branches #734consolidate()
method Remove datasetconsolidate
#752LEROBOT_HOME
->HF_LEROBOT_HOME
and includeHF_HOME
UseHF_HOME
env variable #753TODOs in later PRs
hf_dataset.set_format("torch")
instead of customhf_dataset.set_transform(hf_transform_to_torch)
How it was tested
test_datasets
test_compute_stats