|
14 | 14 |
|
15 | 15 | import packaging.version
|
16 | 16 |
|
17 |
| -V2_MESSAGE = """ |
18 |
| -The dataset you requested ({repo_id}) is in {version} format. |
19 |
| -
|
20 |
| -We introduced a new format since v2.0 which is not backward compatible with v1.x. |
21 |
| -Please, use our conversion script. Modify the following command with your own task description: |
22 |
| -``` |
23 |
| -python -m lerobot.datasets.v2.convert_dataset_v1_to_v2 \\ |
24 |
| - --repo-id {repo_id} \\ |
25 |
| - --single-task "TASK DESCRIPTION." # <---- /!\\ Replace TASK DESCRIPTION /!\\ |
26 |
| -``` |
27 |
| -
|
28 |
| -A few examples to replace TASK DESCRIPTION: "Pick up the blue cube and place it into the bin.", "Insert the |
29 |
| -peg into the socket.", "Slide open the ziploc bag.", "Take the elevator to the 1st floor.", "Open the top |
30 |
| -cabinet, store the pot inside it then close the cabinet.", "Push the T-shaped block onto the T-shaped |
31 |
| -target.", "Grab the spray paint on the shelf and place it in the bin on top of the robot dog.", "Fold the |
32 |
| -sweatshirt.", ... |
33 |
| -
|
34 |
| -If you encounter a problem, contact LeRobot maintainers on [Discord](https://discord.com/invite/s3KuuzsPFb) |
35 |
| -or open an [issue on GitHub](https://github.com/huggingface/lerobot/issues/new/choose). |
36 |
| -""" |
37 |
| - |
38 |
| -V21_MESSAGE = """ |
39 |
| -The dataset you requested ({repo_id}) is in {version} format. |
40 |
| -While current version of LeRobot is backward-compatible with it, the version of your dataset still uses global |
41 |
| -stats instead of per-episode stats. Update your dataset stats to the new format using this command: |
42 |
| -``` |
43 |
| -python -m lerobot.datasets.v21.convert_dataset_v20_to_v21 --repo-id={repo_id} |
44 |
| -``` |
45 |
| -
|
46 |
| -If you encounter a problem, contact LeRobot maintainers on [Discord](https://discord.com/invite/s3KuuzsPFb) |
47 |
| -or open an [issue on GitHub](https://github.com/huggingface/lerobot/issues/new/choose). |
48 |
| -""" |
49 |
| - |
50 | 17 | V30_MESSAGE = """
|
51 | 18 | The dataset you requested ({repo_id}) is in {version} format.
|
52 |
| -While current version of LeRobot is backward-compatible with it, the version of your dataset still uses global |
53 |
| -stats instead of per-episode stats. Update your dataset stats to the new format using this command: |
| 19 | +
|
| 20 | +We introduced a new format since v3.0 which is not backward compatible with v2.1. |
| 21 | +Please, update your dataset to the new format using this command: |
54 | 22 | ```
|
55 | 23 | python -m lerobot.datasets.v30.convert_dataset_v21_to_v30 --repo-id={repo_id}
|
56 | 24 | ```
|
|
0 commit comments