-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
LeRobotDataset v2.1 #711
Conversation
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
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
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 ;)
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 ?
|
@johnMinelli Please refer to: #881 |
The `--local-files-only` argument and its related instructions were removed from the following documentation files to reflect changes introduced in commit 3354d91 "LeRobotDataset v2.1 (huggingface#711)", which removed the `--local-files-only` argument from `lerobot/scripts/visualize_dataset.py` and `lerobot/scripts/visualize_dataset_html.py`. Updated files: 1. README.md 2. examples/7_get_started_with_real_robot.md 3. examples/10_use_so100.md 4. examples/11_use_lekiwi.md 5. examples/11_use_moss.md 6. examples/12_use_so101.md
Co-authored-by: Remi <remi.cadene@huggingface.co> Co-authored-by: Remi Cadene <re.cadene@gmail.com>
Does this change have any implications for the compatibility of the LeRobotDataset and the OnlineBuffer, which is still in verison 2.0 it seems? I.e., if I used LeRobotDataset to pre-train a policy and now I want to continue training using the OnlineBuffer, are there any pitfalls I should be aware of? |
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