VectorW commited on
Commit
d8f8a45
·
verified ·
1 Parent(s): f657e63

Strip README to preview-minimal; fix lab attribution to robopylab

Browse files
Files changed (1) hide show
  1. README.md +5 -141
README.md CHANGED
@@ -6,153 +6,17 @@ pretty_name: EgoInfinity
6
  viewer: false
7
  tags:
8
  - egocentric
9
- - hand-tracking
10
- - 3d-scene
11
- - video
12
- - action-recognition
13
  - derivative-of-action100m
14
  ---
15
 
16
- # EgoInfinity Dataset
17
 
18
- Derivative scene assets for a curated subset of [Action100M] (Meta FAIR)
19
- clips. Used as the data backend for the
20
- [EgoInfinity Browser](https://huggingface.co/spaces/Rice-RobotPI-Lab/egoinfinity)
21
- Space.
22
 
23
- Source code: <https://github.com/Rice-RobotPI-Lab/EgoInfinity>
24
-
25
- [Action100M]: https://github.com/facebookresearch/Action100M
26
-
27
- ## Contents
28
-
29
- ```
30
- samples/
31
- ├── index.json # browse-time episode list (consumed by the Space)
32
- └── <clip_id>/
33
- ├── scene.json # camera intrinsics, object metadata, asset paths
34
- ├── signals.json # per-frame action signals (OR-merged across objects)
35
- ├── thumb.jpg # 320×180 preview rendered from depth
36
- ├── recording.viser # full 3D scene (point cloud + meshes + hands)
37
-
38
- │ # Visualization (lossy, fast for streaming)
39
- ├── depth.mp4 # MoGe-2 depth, inferno colormap
40
- ├── flow.mp4 # MEMFOF optical flow visualization
41
- ├── mask.mp4 # SAM-tracked object cutout × original RGB
42
-
43
- │ # Hand reconstruction (lossless)
44
- ├── hand_joints.bin # (T, H, 21, 3) float32; 3D joint positions
45
- ├── hand_verts.bin # (T, H, 778, 3) float32; baked MANO vertices
46
- ├── hand_faces.bin # (F, 3) uint16; MANO topology
47
- ├── hand_meta.json # bone connectivity + helper metadata
48
-
49
- │ # Object reconstruction (lossless)
50
- ├── object_pose.bin # (T, N_obj, 4, 4) float32; per-frame 6DoF
51
- ├── object_obb.bin # (N_obj, 8, 3) float32; first-valid-frame OBB
52
- ├── objects/obj_N.ply # SAM3D point cloud per object
53
-
54
- │ # Raw arrays (lossless, downstream-ready)
55
- ├── depth.npz # (T, H, W) uint16 mm; lossless depth
56
- ├── masks.npz # per-object packed-bit SAM masks
57
- ├── bg_template.png # uint16-mm PNG; bg depth template
58
- └── pose_track.json # full per-object tracker timeseries
59
- ```
60
-
61
- ## Downloading
62
-
63
- This dataset ships per-clip directories of mp4 / npz / bin / ply / json
64
- files — it is **not** a tabular dataset. The HF auto-loader (`load_dataset(...)`)
65
- will fail because the per-file JSON schemas are intentionally heterogeneous
66
- (`scene.json`, `signals.json`, `hand_meta.json`, etc. each describe a
67
- different aspect of the clip). Use `snapshot_download` instead:
68
-
69
- ```python
70
- from huggingface_hub import snapshot_download
71
- root = snapshot_download(
72
- repo_id="Rice-RobotPI-Lab/egoinfinity",
73
- repo_type="dataset",
74
- # Optional: pull only what you need.
75
- # allow_patterns=["samples/index.json", "samples/<clip_id>/*"],
76
- )
77
- # root / "samples" / "<clip_id>" now has all assets for that clip.
78
- ```
79
-
80
- To grab a single clip:
81
-
82
- ```python
83
- from huggingface_hub import hf_hub_download
84
- hf_hub_download(repo_id="Rice-RobotPI-Lab/egoinfinity",
85
- repo_type="dataset",
86
- filename="samples/<clip_id>/scene.json")
87
- ```
88
-
89
- ## Loading raw arrays
90
-
91
- ```python
92
- import numpy as np, cv2, json
93
-
94
- # Depth (uint16 mm → meters). Sentinel 0 = absent / NaN.
95
- depth = np.load("depth.npz")["depth"] # (T, H, W) uint16
96
- depth_m = depth.astype(np.float32) / 1000.0
97
-
98
- # Per-object SAM masks (packed bits per frame per object).
99
- m = np.load("masks.npz")
100
- T, H, W = m["_shape"]
101
- oids = m["_oids"] # ordered object ids
102
- def mask_for(oid: int, t: int) -> np.ndarray:
103
- bits = np.unpackbits(m[f"oid_{oid}"][t])[: H * W]
104
- return bits.reshape(H, W).astype(bool)
105
-
106
- # Background depth template (rest scene) → meters
107
- bg = cv2.imread("bg_template.png", cv2.IMREAD_UNCHANGED).astype(np.float32) / 1000.0
108
-
109
- # Per-object tracker state: contact_soft, grasp_soft, motion, trust, chamfer,
110
- # scale_correction, obs_obb_per_frame, etc. Keyed by str(oid).
111
- pti = json.load(open("pose_track.json"))
112
-
113
- # Per-frame 6DoF object pose (camera frame), (T, N_obj, 4, 4) float32
114
- N_obj = len(json.load(open("scene.json"))["reconstruction"]["objects"])
115
- poses = np.fromfile("object_pose.bin", dtype=np.float32).reshape(-1, N_obj, 4, 4)
116
- ```
117
-
118
- > **Note:** original RGB frames are not redistributed. Anything that needs
119
- > the source pixels (re-running SAM3 detect, SAM2 track, MEMFOF flow, or
120
- > SAM3D mesh build) cannot be done from this dataset alone. Algorithms that
121
- > consume `(depth, masks, hand_*, mesh, pose, bg_template)` (grasp / contact
122
- > classification, state-machine tuning, ICP-based pose refinement) work
123
- > standalone.
124
-
125
- `<clip_id>` is `<youtube_video_id>_<start_sec>_<end_sec>`. The only original
126
- YouTube pixels that appear in this repository are inside the SAM-tracked
127
- object region of `mask.mp4` (everything outside the mask is painted black);
128
- no full source frames are redistributed.
129
 
130
  ## License
131
 
132
- This dataset is released under the FAIR Noncommercial Research License v1
133
- (see [LICENSE-Action100M](LICENSE-Action100M)) for **noncommercial research
134
- use only**. Per Section 1.b.ii, redistribution must include a copy of this
135
- license file.
136
-
137
- ### Attribution
138
-
139
- - **Source clips** are from [Action100M] (Meta FAIR). Full source videos
140
- remain on YouTube; only the SAM-tracked region appears in `mask.mp4` as
141
- a per-frame cutout.
142
- - **Depth maps** were generated using MoGe-2.
143
- - **Optical flow** was computed using MEMFOF.
144
- - **Object segmentation** uses Meta SAM-3 / SAM-3D.
145
- - **Hand parameters** were estimated using a WiLoR-based pipeline. Vertex
146
- positions are baked from the MANO model (Romero et al., 2017); MANO weights
147
- are not redistributed.
148
-
149
- ## Citation
150
 
151
- ```bibtex
152
- @misc{egoinfinity2026,
153
- title = {EgoInfinity: A Web-Scale Data Engine for Video-to-Action Robot Learning through Egocentric Views},
154
- author = {Rice Robot Perception \& Intelligence Lab},
155
- year = {2026},
156
- note = {Preview release}
157
- }
158
- ```
 
6
  viewer: false
7
  tags:
8
  - egocentric
 
 
 
 
9
  - derivative-of-action100m
10
  ---
11
 
12
+ # EgoInfinity (preview)
13
 
14
+ Derivative scene assets for a curated subset of Action100M (Meta FAIR) clips.
 
 
 
15
 
16
+ **Preview not for general release.** Schema and contents may change.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  ## License
19
 
20
+ FAIR Noncommercial Research License v1 (see [LICENSE-Action100M](LICENSE-Action100M)). Noncommercial research only.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
+ Built by **robopylab**.