File size: 4,326 Bytes
cc4bbb5
 
46db7a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cc4bbb5
46db7a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
license: apache-2.0
authors:
  - williamdgomez
task_categories:
  - robotics
tags:
  - tsfile
  - timeseries
  - tabular
  - robotics
  - lerobot
  - manipulation
modality:
  - timeseries
  - tabular
pretty_name: SNOW.SB TsFile
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/williamdgomez_snow_sb.tsfile
size_categories:
  - 10K<n<100K
---

# SNOW.SB TsFile

This repository is an Apache TsFile conversion of the LeRobot dataset
[`williamdgomez/SNOW.SB`](https://huggingface.co/datasets/williamdgomez/SNOW.SB).
The original Hugging Face repository and its commit history identify
`williamdgomez` as the dataset author/uploader. The source dataset was created
with LeRobot v3.0 for the `lekiwi_client` robot.

## Source Dataset

- Dataset: [`williamdgomez/SNOW.SB`](https://huggingface.co/datasets/williamdgomez/SNOW.SB)
- Author/uploader: [`williamdgomez`](https://huggingface.co/williamdgomez)
- License: Apache-2.0
- Task: Pick up the block and place it in the bin
- Split: `train` (`0:91`)
- Sampling rate: 24 fps
- Scale: 91 episodes, 73,578 frames, 1 task
- Source data shards: 91 Parquet files under `data/chunk-000/file-*.parquet`
- Source video files: 273 MP4 files, 91 per camera stream

The source video streams are stored at [`videos/`](https://huggingface.co/datasets/williamdgomez/SNOW.SB/tree/main/videos):

- `videos/observation.images.front/chunk-000/file-{file_index:03d}.mp4`
- `videos/observation.images.wrist/chunk-000/file-{file_index:03d}.mp4`
- `videos/observation.images.top/chunk-000/file-{file_index:03d}.mp4`

Videos are not included in this TsFile repository. They remain available in
the original Hugging Face dataset and can be aligned with rows using
`episode_index`, `frame_index`, and the source `meta/episodes` offsets.

## Converted Files

- TsFile: `data/williamdgomez_snow_sb.tsfile`
- Table: `williamdgomez_snow_sb`
- Rows: 73,578
- Devices: 91 (`episode_index` x `task_index`)
- Time precision: milliseconds
- Metadata: `meta/` mirrors the source metadata; `meta/info.json` records the
  TsFile path and conversion mapping.

## Schema

`Time` is `round(timestamp * 1000)` and is stored in milliseconds. The source
`timestamp` is dropped after this conversion because it is exactly the seconds
representation of `Time`; `Time` restarts at zero for each episode.

| Column group | TsFile columns | Type / role |
|---|---|---|
| Time | `Time` | INT64/TIMESTAMP, TIME |
| Tags | `episode_index`, `task_index` | TAG/device segments |
| Frame metadata | `frame_index`, `sample_index` | INT64 FIELD; `sample_index` is source `index` |
| Action | `action_0` ... `action_8` | FLOAT FIELD, flattened from `action[9]` |
| Observation | `observation_state_0` ... `observation_state_8` | FLOAT FIELD, flattened from `observation.state[9]` |

Vector names preserve their source prefixes (`.` becomes `_`) and append a
zero-based element index. The three video features
(`observation.images.front`, `.wrist`, `.top`) are omitted from the TsFile
because TsFile stores the numeric time-series table while the original MP4
files remain at the source URL.

## Encoding and Compression

The local conversion used the type-aware TsFile writer profile requested for
this dataset:

- FLOAT/DOUBLE: `GORILLA` with `LZ4`
- INT32/INT64 and `Time`: `TS_2DIFF` with `LZ4`
- BOOLEAN (if present): `RLE` with `LZ4`
- TAG columns: TsFile table/device TAG mechanism

The generated TsFile is 1,456,157 bytes. The merged staged Parquet is
1,235,578 bytes, and the 91 source Parquet shards total 3,152,836 bytes.

## Validation

Apache TsFile Python SDK readback succeeded. The TsFile metadata row count and
query readback both equal the staged Parquet count: 73,578 rows. All 91
episode devices have monotonic `Time` values with no duplicate
(`episode_index`, `task_index`, `Time`) keys.

## Usage

```python
from tsfile import TsFileReader

reader = TsFileReader("data/williamdgomez_snow_sb.tsfile")
table = reader.get_all_table_schemas()["williamdgomez_snow_sb"]
columns = [c.get_column_name() for c in table.get_columns() if c.get_column_name() != "Time"]

with reader.query_table("williamdgomez_snow_sb", columns, batch_size=65536) as result:
    batch = result.read_arrow_batch()
```

## Citation

The original dataset card does not provide a paper or BibTeX citation.