You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,7 +210,7 @@ A `LeRobotDataset` is serialised using several widespread file formats for each
210
210
- videos are stored in mp4 format to save space
211
211
- metadata are stored in plain json/jsonl files
212
212
213
-
Dataset can be uploaded/downloaded from the HuggingFace hub seamlessly. To work on a local dataset, you can use the `local_files_only` argument and specify its location with the `root` argument if it's not in the default `~/.cache/huggingface/lerobot` location.
213
+
Dataset can be uploaded/downloaded from the HuggingFace hub seamlessly. To work on a local dataset, you can specify its location with the `root` argument if it's not in the default `~/.cache/huggingface/lerobot` location.
Note: If you didn't push your dataset yet, add `--control.local_files_only=true`.
367
-
368
366
## J. Train a policy
369
367
370
368
To train a policy to control your robot, use the [`python lerobot/scripts/train.py`](../lerobot/scripts/train.py) script. A few arguments are required. Here is an example command:
Note: If you didn't push your dataset yet, add `--control.local_files_only=true`.
382
-
383
379
Let's explain it:
384
380
1. We provided the dataset as argument with `--dataset.repo_id=${HF_USER}/so100_test`.
385
381
2. We provided the policy with `policy.type=act`. This loads configurations from [`configuration_act.py`](../lerobot/common/policies/act/configuration_act.py). Importantly, this policy will automatically adapt to the number of motor sates, motor actions and cameras of your robot (e.g. `laptop` and `phone`) which have been saved in your dataset.
Note: If you didn't push your dataset yet, add `--control.local_files_only=true`.
422
-
423
421
## J. Train a policy
424
422
425
423
To train a policy to control your robot, use the [`python lerobot/scripts/train.py`](../lerobot/scripts/train.py) script. A few arguments are required. Here is an example command:
Note: If you didn't push your dataset yet, add `--control.local_files_only=true`.
437
-
438
434
Let's explain it:
439
435
1. We provided the dataset as argument with `--dataset.repo_id=${HF_USER}/lekiwi_test`.
440
436
2. We provided the policy with `policy.type=act`. This loads configurations from [`configuration_act.py`](../lerobot/common/policies/act/configuration_act.py). Importantly, this policy will automatically adapt to the number of motor sates, motor actions and cameras of your robot (e.g. `laptop` and `phone`) which have been saved in your dataset.
Note: If you didn't push your dataset yet, add `--control.local_files_only=true`.
288
-
289
287
## Train a policy
290
288
291
289
To train a policy to control your robot, use the [`python lerobot/scripts/train.py`](../lerobot/scripts/train.py) script. A few arguments are required. Here is an example command:
Note: If you didn't push your dataset yet, add `--control.local_files_only=true`.
303
-
304
300
Let's explain it:
305
301
1. We provided the dataset as argument with `--dataset.repo_id=${HF_USER}/moss_test`.
306
302
2. We provided the policy with `policy.type=act`. This loads configurations from [`configuration_act.py`](../lerobot/common/policies/act/configuration_act.py). Importantly, this policy will automatically adapt to the number of motor sates, motor actions and cameras of your robot (e.g. `laptop` and `phone`) which have been saved in your dataset.
Copy file name to clipboardExpand all lines: examples/7_get_started_with_real_robot.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -768,7 +768,7 @@ You can use the `record` function from [`lerobot/scripts/control_robot.py`](../l
768
768
1. Frames from cameras are saved on disk in threads, and encoded into videos at the end of each episode recording.
769
769
2. Video streams from cameras are displayed in window so that you can verify them.
770
770
3. Data is stored with [`LeRobotDataset`](../lerobot/common/datasets/lerobot_dataset.py) format which is pushed to your Hugging Face page (unless `--control.push_to_hub=false` is provided).
771
-
4. Checkpoints are done during recording, so if any issue occurs, you can resume recording by re-running the same command again with `--control.resume=true`. You might need to add `--control.local_files_only=true` if your dataset was not uploaded to hugging face hub. Also you will need to manually delete the dataset directory to start recording from scratch.
771
+
4. Checkpoints are done during recording, so if any issue occurs, you can resume recording by re-running the same command again with `--control.resume=true`. You will need to manually delete the dataset directory if you want to start recording from scratch.
772
772
5. Set the flow of data recording using command line arguments:
773
773
-`--control.warmup_time_s=10` defines the number of seconds before starting data collection. It allows the robot devices to warmup and synchronize (10 seconds by default).
774
774
-`--control.episode_time_s=60` defines the number of seconds for data recording for each episode (60 seconds by default).
Note: You might need to add `--control.local_files_only=true` if your dataset was not uploaded to hugging face hub.
887
-
888
886
Your robot should replicate movements similar to those you recorded. For example, check out [this video](https://x.com/RemiCadene/status/1793654950905680090) where we use `replay` on a Aloha robot from [Trossen Robotics](https://www.trossenrobotics.com).
Note: You might need to add `--dataset.local_files_only=true` if your dataset was not uploaded to hugging face hub.
906
-
907
903
Let's explain it:
908
904
1. We provided the dataset as argument with `--dataset.repo_id=${HF_USER}/koch_test`.
909
905
2. We provided the policy with `policy.type=act`. This loads configurations from [`configuration_act.py`](../lerobot/common/policies/act/configuration_act.py). Importantly, this policy will automatically adapt to the number of motor sates, motor actions and cameras of your robot (e.g. `laptop` and `phone`) which have been saved in your dataset.
0 commit comments