Skip to content

Commit 594e1af

Browse files
committed
feat: add an example of segments.json
1 parent 76d04c8 commit 594e1af

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

configs/examples/segments.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"0": [
3+
[
4+
5,
5+
15
6+
],
7+
[
8+
10,
9+
20
10+
]
11+
],
12+
"1": [
13+
[
14+
0,
15+
30
16+
]
17+
]
18+
}

src/opentau/scripts/segment_lerobot_dataset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
2424
Example:
2525
python segment_lerobot_dataset.py ./input_dataset ./output_dataset ./segments.json
26+
27+
An example of segments.json can be found in `configs/examples/segments.json`.
2628
"""
2729

2830
import argparse

0 commit comments

Comments
 (0)