Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,28 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Kinder-worldmodel Dataset
|
| 2 |
|
| 3 |
-
This repository contains
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
## Files
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
-
|
| 11 |
-
Demo video showing
|
| 12 |
|
| 13 |
-
|
| 14 |
Demo video showing point tracking across frames.
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
## Dataset Description
|
| 17 |
|
| 18 |
-
The
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
## How to Download
|
| 22 |
|
| 23 |
-
You can download the
|
| 24 |
|
| 25 |
-
You can also download
|
| 26 |
|
| 27 |
```python
|
| 28 |
from huggingface_hub import hf_hub_download
|
|
@@ -34,3 +129,65 @@ file_path = hf_hub_download(
|
|
| 34 |
)
|
| 35 |
|
| 36 |
print(file_path)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- robotics
|
| 5 |
+
- computer-vision
|
| 6 |
+
tags:
|
| 7 |
+
- point-cloud
|
| 8 |
+
- hdf5
|
| 9 |
+
- point-tracking
|
| 10 |
+
- canonical-point-cloud
|
| 11 |
+
- rigid-transform
|
| 12 |
+
- world-model
|
| 13 |
+
pretty_name: Kinder Worldmodel Dataset
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
# Kinder-worldmodel Dataset
|
| 17 |
|
| 18 |
+
This repository contains processed HDF5 datasets and demo videos for the Kinder-worldmodel project.
|
| 19 |
+
|
| 20 |
+
The uploaded files demonstrate two related point cloud representations:
|
| 21 |
+
|
| 22 |
+
1. **Tracked / all-point-cloud HDF5 data**
|
| 23 |
+
2. **Canonical point cloud replay using per-geom rigid transforms**
|
| 24 |
|
| 25 |
## Files
|
| 26 |
|
| 27 |
+
* `sweep_tracked_pointcloud_all.hdf5`
|
| 28 |
+
Processed HDF5 file containing complete point cloud data and point tracking information.
|
| 29 |
+
|
| 30 |
+
* `sweep_canonical.hdf5`
|
| 31 |
+
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.
|
| 32 |
|
| 33 |
+
* `videos/complete_pointcloud_demo.mp4`
|
| 34 |
+
Demo video showing complete point cloud visualization.
|
| 35 |
|
| 36 |
+
* `videos/point_tracking_demo.mp4`
|
| 37 |
Demo video showing point tracking across frames.
|
| 38 |
|
| 39 |
+
* `videos/canonicalpointcloud-excluding kitchen floor.mp4`
|
| 40 |
+
Demo video showing transform-based canonical point cloud replay at 30 fps.
|
| 41 |
+
|
| 42 |
## Dataset Description
|
| 43 |
|
| 44 |
+
The dataset is intended for inspecting complete point clouds, point tracking, and transform-based point cloud replay.
|
| 45 |
+
|
| 46 |
+
For the canonical point cloud representation, each rigid geom is stored using:
|
| 47 |
+
|
| 48 |
+
* one canonical surface point set in local coordinates
|
| 49 |
+
* per-timestep 4x4 rigid transforms
|
| 50 |
+
|
| 51 |
+
This avoids storing a full point cloud for every timestep.
|
| 52 |
+
|
| 53 |
+
## Canonical Point Cloud Replay
|
| 54 |
+
|
| 55 |
+
The canonical point cloud replay demo is rendered from the new HDF5 format, not from per-timestep point clouds stored in the file.
|
| 56 |
+
|
| 57 |
+
For each rigid geom, the file stores:
|
| 58 |
+
|
| 59 |
+
```text
|
| 60 |
+
canonical_pointcloud/<geom_name>/xyz
|
| 61 |
+
geom_transforms/<geom_name>[t]
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
At each frame, world-space points are reconstructed using:
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
world_pts = (T @ pts_h.T).T[:, :3]
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
where:
|
| 71 |
+
|
| 72 |
+
* `pts_h` is the homogeneous version of the canonical local point cloud
|
| 73 |
+
* `T` is the 4x4 rigid transform for that geom at timestep `t`
|
| 74 |
+
* `world_pts` are the reconstructed world-frame points
|
| 75 |
+
|
| 76 |
+
### What is shown in the canonical replay video
|
| 77 |
+
|
| 78 |
+
The clip shows:
|
| 79 |
+
|
| 80 |
+
* reconstructed scene at 30 fps from `hdf5_data/sweep_canonical.hdf5`
|
| 81 |
+
* task: `SweepIntoDrawer3D-o5`
|
| 82 |
+
* number of demos: 1
|
| 83 |
+
* kitchen and floor geometry filtered out
|
| 84 |
+
* robot, task objects, and other non-kitchen geometry kept
|
| 85 |
+
|
| 86 |
+
The filtered-out geoms include names containing:
|
| 87 |
+
|
| 88 |
+
```text
|
| 89 |
+
kitchen
|
| 90 |
+
floor
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
This removes cabinets, panels, drawers, and floor geometry.
|
| 94 |
+
|
| 95 |
+
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.
|
| 96 |
+
|
| 97 |
+
One-line summary:
|
| 98 |
+
|
| 99 |
+
```text
|
| 100 |
+
Transform-based point cloud replay at 30 fps; kitchen/floor removed by geom-name filter.
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
## Related Fields
|
| 104 |
+
|
| 105 |
+
The same canonical HDF5 file also contains fields that are not visualized in the canonical replay video:
|
| 106 |
+
|
| 107 |
+
* `actions`
|
| 108 |
+
Original demo actions.
|
| 109 |
+
|
| 110 |
+
* `actions_delta_ee_transform`
|
| 111 |
+
End-effector delta transform per action step, computed at `robot_pinch_site`.
|
| 112 |
+
|
| 113 |
+
* `obs/ee_pose`
|
| 114 |
+
End-effector pose per step for debugging.
|
| 115 |
|
| 116 |
## How to Download
|
| 117 |
|
| 118 |
+
You can download the files directly from this Hugging Face dataset repository.
|
| 119 |
|
| 120 |
+
You can also download a file using Python:
|
| 121 |
|
| 122 |
```python
|
| 123 |
from huggingface_hub import hf_hub_download
|
|
|
|
| 129 |
)
|
| 130 |
|
| 131 |
print(file_path)
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
To download the canonical HDF5 file:
|
| 135 |
+
|
| 136 |
+
```python
|
| 137 |
+
from huggingface_hub import hf_hub_download
|
| 138 |
+
|
| 139 |
+
file_path = hf_hub_download(
|
| 140 |
+
repo_id="Flashkernel/Kinder-worldmodel",
|
| 141 |
+
filename="sweep_canonical.hdf5",
|
| 142 |
+
repo_type="dataset"
|
| 143 |
+
)
|
| 144 |
+
|
| 145 |
+
print(file_path)
|
| 146 |
+
```
|
| 147 |
+
|
| 148 |
+
## How to Inspect the HDF5 File
|
| 149 |
+
|
| 150 |
+
Install dependencies:
|
| 151 |
+
|
| 152 |
+
```bash
|
| 153 |
+
pip install h5py
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
Then inspect the file structure:
|
| 157 |
+
|
| 158 |
+
```python
|
| 159 |
+
import h5py
|
| 160 |
+
|
| 161 |
+
file_path = "sweep_canonical.hdf5"
|
| 162 |
+
|
| 163 |
+
with h5py.File(file_path, "r") as f:
|
| 164 |
+
def print_structure(name, obj):
|
| 165 |
+
if isinstance(obj, h5py.Dataset):
|
| 166 |
+
print(name, obj.shape, obj.dtype)
|
| 167 |
+
else:
|
| 168 |
+
print(name)
|
| 169 |
+
|
| 170 |
+
f.visititems(print_structure)
|
| 171 |
+
```
|
| 172 |
+
|
| 173 |
+
## Visualization
|
| 174 |
+
|
| 175 |
+
The demo videos show:
|
| 176 |
+
|
| 177 |
+
1. Complete point cloud visualization
|
| 178 |
+
2. Point tracking across frames
|
| 179 |
+
3. Canonical point cloud replay from canonical points and per-geom 4x4 transforms
|
| 180 |
+
|
| 181 |
+
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.
|
| 182 |
+
|
| 183 |
+
## Usage Notes
|
| 184 |
+
|
| 185 |
+
This is a dataset repository, so it is not meant to be run directly.
|
| 186 |
+
|
| 187 |
+
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.
|
| 188 |
+
|
| 189 |
+
## Repository Link
|
| 190 |
+
|
| 191 |
+
Dataset page:
|
| 192 |
+
|
| 193 |
+
https://huggingface.co/datasets/Flashkernel/Kinder-worldmodel
|