File size: 5,037 Bytes
7e0e552
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b0304c7
 
7e0e552
 
 
 
 
 
b0304c7
 
 
7e0e552
 
 
 
 
b0304c7
7e0e552
 
b0304c7
7e0e552
b0304c7
 
7e0e552
 
 
b0304c7
 
7e0e552
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b0304c7
 
 
7e0e552
b0304c7
7e0e552
b0304c7
 
 
 
 
 
 
 
 
 
 
7e0e552
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
---
license: mit
task_categories:
- robotics
- computer-vision
tags:
- point-cloud
- hdf5
- point-tracking
- canonical-point-cloud
- rigid-transform
- world-model
pretty_name: Kinder Worldmodel Dataset
---

# Kinder-worldmodel Dataset

This repository contains processed HDF5 datasets and demo videos for the Kinder-worldmodel project.

The uploaded files demonstrate two related point cloud representations:

1. **Tracked / all-point-cloud HDF5 data**
2. **Canonical point cloud replay using per-geom rigid transforms**

## Files

* `sweep_tracked_pointcloud_all.hdf5`
  Processed HDF5 file containing complete point cloud data and point tracking information.

* `sweep_canonical.hdf5`
  HDF5 file using a transform-based representation. Instead of storing per-timestep point clouds, it stores canonical surface points for each rigid geom and per-timestep 4x4 transforms.

* `videos/complete_pointcloud_demo.mp4`
  Demo video showing complete point cloud visualization.

* `videos/point_tracking_demo.mp4`
  Demo video showing point tracking across frames.

* `videos/canonicalpointcloud-excluding kitchen floor.mp4`
  Demo video showing transform-based canonical point cloud replay at 30 fps.

## Dataset Description

The dataset is intended for inspecting complete point clouds, point tracking, and transform-based point cloud replay.

For the canonical point cloud representation, each rigid geom is stored using:

* one canonical surface point set in local coordinates
* per-timestep 4x4 rigid transforms

This avoids storing a full point cloud for every timestep.

## Canonical Point Cloud Replay

The canonical point cloud replay demo is rendered from the new HDF5 format, not from per-timestep point clouds stored in the file.

For each rigid geom, the file stores:

```text
canonical_pointcloud/<geom_name>/xyz
geom_transforms/<geom_name>[t]
```

At each frame, world-space points are reconstructed using:

```python
world_pts = (T @ pts_h.T).T[:, :3]
```

where:

* `pts_h` is the homogeneous version of the canonical local point cloud
* `T` is the 4x4 rigid transform for that geom at timestep `t`
* `world_pts` are the reconstructed world-frame points

### What is shown in the canonical replay video

The clip shows:

* reconstructed scene at 30 fps from `hdf5_data/sweep_canonical.hdf5`
* task: `SweepIntoDrawer3D-o5`
* number of demos: 1
* kitchen and floor geometry filtered out
* robot, task objects, and other non-kitchen geometry kept

The filtered-out geoms include names containing:

```text
kitchen
floor
```

This removes cabinets, panels, drawers, and floor geometry.

The displayed result is a filtered view of the same transform-based representation. It shows that geom names can be used to drop background geometry and focus on the manipulator and task-relevant parts without re-exporting the dataset.

One-line summary:

```text
Transform-based point cloud replay at 30 fps; kitchen/floor removed by geom-name filter.
```

## Related Fields

The same canonical HDF5 file also contains fields that are not visualized in the canonical replay video:

* `actions`
  Original demo actions.

* `actions_delta_ee_transform`
  End-effector delta transform per action step, computed at `robot_pinch_site`.

* `obs/ee_pose`
  End-effector pose per step for debugging.

## How to Download

You can download the files directly from this Hugging Face dataset repository.

You can also download a file using Python:

```python
from huggingface_hub import hf_hub_download

file_path = hf_hub_download(
    repo_id="Flashkernel/Kinder-worldmodel",
    filename="sweep_tracked_pointcloud_all.hdf5",
    repo_type="dataset"
)

print(file_path)
```

To download the canonical HDF5 file:

```python
from huggingface_hub import hf_hub_download

file_path = hf_hub_download(
    repo_id="Flashkernel/Kinder-worldmodel",
    filename="sweep_canonical.hdf5",
    repo_type="dataset"
)

print(file_path)
```

## How to Inspect the HDF5 File

Install dependencies:

```bash
pip install h5py
```

Then inspect the file structure:

```python
import h5py

file_path = "sweep_canonical.hdf5"

with h5py.File(file_path, "r") as f:
    def print_structure(name, obj):
        if isinstance(obj, h5py.Dataset):
            print(name, obj.shape, obj.dtype)
        else:
            print(name)

    f.visititems(print_structure)
```

## Visualization

The demo videos show:

1. Complete point cloud visualization
2. Point tracking across frames
3. Canonical point cloud replay from canonical points and per-geom 4x4 transforms

The canonical replay video is generated from canonical local point sets and rigid transforms. It does not require storing a dense per-frame point cloud in the HDF5 file.

## Usage Notes

This is a dataset repository, so it is not meant to be run directly.

To use the data, download the HDF5 file and load it with `h5py`. The videos provide visual examples of the stored representations and reconstruction results.

## Repository Link

Dataset page:

https://huggingface.co/datasets/Flashkernel/Kinder-worldmodel