Skip to content

Commit 66801d5

Browse files
Merge branch 'user/michel-aractingi/2025_06_30_dataset_v3' into user/michel-aractingi/2025-9-9-incremental_parquet_writing
2 parents a58d6e9 + ad39bbc commit 66801d5

File tree

1 file changed

+3
-35
lines changed

1 file changed

+3
-35
lines changed

src/lerobot/datasets/backward_compatibility.py

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -14,43 +14,11 @@
1414

1515
import packaging.version
1616

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-
5017
V30_MESSAGE = """
5118
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:
5422
```
5523
python -m lerobot.datasets.v30.convert_dataset_v21_to_v30 --repo-id={repo_id}
5624
```

0 commit comments

Comments
 (0)