-
Notifications
You must be signed in to change notification settings - Fork 1.4k
LeRobotDataset v2.1 #711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
LeRobotDataset v2.1 #711
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
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>
Co-authored-by: Remi Cadene <re.cadene@gmail.com>
…ggingface/lerobot into user/aliberts/2025_02_10_dataset_v2.1
Cadene
approved these changes
Feb 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful! Thanks
Comment on lines
-381
to
-382
Note: If you didn't push your dataset yet, add `--control.local_files_only=true`. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch ;)
JIy3AHKO
pushed a commit
to vertix/lerobot
that referenced
this pull request
Feb 27, 2025
Co-authored-by: Remi <remi.cadene@huggingface.co> Co-authored-by: Remi Cadene <re.cadene@gmail.com>
I suppose that the following script is not anymore the way to publish dataset+stats ?
|
2 tasks
@johnMinelli Please refer to: #881 |
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
enhancement
Suggestions for new features or improvements
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 thanks to subsampling of images. 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 #753HFApi.upload_large_folder
for large datasets Addupload_large_folder
argument inpush_to_hub
#763TODOs 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