ohicarip commited on
Commit
9f144ea
·
verified ·
1 Parent(s): 259606c

Document cleanup_smal and correct SMPL-X naming

Browse files
Files changed (1) hide show
  1. README.md +53 -14
README.md CHANGED
@@ -13,7 +13,7 @@ tags:
13
  - multimodal
14
  - motion-capture
15
  - 4D
16
- - SMPL
17
  - MANO
18
  - SMAL
19
  - MERT
@@ -31,18 +31,19 @@ configs:
31
  path: interpet_audio/*.mp3
32
  ---
33
 
34
- # InterPet4D (v1)
35
 
36
  **Authors:** Yichen Peng\*, Jyun-Ting Song\*, Chen-Chieh Liao\*, Kris Kitani, Hideki Koike, Erwin Wu
37
  <sub>\*Equal contribution.</sub>
38
 
39
- **InterPet4D** is a multimodal, ego-centric dataset of natural human–pet (dog) interactions. Each clip provides time-synchronized **audio**, **SMPL human body motion**, **MANO hand motion**, **pet skeletal motion**, and **SMAL pet body parameters**, enabling research on cross-species interaction, multimodal motion generation, audio-conditioned animation, and animal behavior understanding.
40
 
41
  ## Highlights
42
 
43
  - **113 interaction sessions** across **13 dogs** (`dog00`–`dog12`) and **~23 participants** (`p01`–`p23`).
44
  - **227 ego-centric clips** (~17–20 s each) captured with head-mounted glasses (Project Aria–style).
45
- - **Time-aligned modalities** per clip: raw audio, MERT audio embeddings, SMPL body, MANO hands, pet skeleton, and SMAL pet body fits.
 
46
 
47
  ## Dataset Structure
48
 
@@ -50,10 +51,14 @@ configs:
50
  interpet4d_ver1/
51
  ├── interpet_audio/ # Raw audio (.mp3)
52
  ├── interpet_mert/ # MERT pre-extracted audio embeddings (.npy)
53
- ├── smpl_npy/ # SMPL human body parameters (.npy, dict)
54
  ├── mano_npy/ # MANO left/right hand parameters (.npy, dict)
55
  ├── pet_npy/ # Pet (dog) 3D keypoint trajectories (.npy)
56
- └── smal_npy/ # SMAL pet body fits (.npz, stacked per-frame)
 
 
 
 
57
  ```
58
 
59
  ### File Naming Convention
@@ -74,21 +79,22 @@ The basename (without extension) is the **clip ID**, shared across all directori
74
  |---|---|---|---|
75
  | `interpet_audio/` | MP3 | 48 kHz, stereo | Ego-microphone audio. |
76
  | `interpet_mert/` | `.npy` | `(T_a, 1024)` float32 | [MERT](https://huggingface.co/m-a-p/MERT-v1-95M) features at ~75 Hz. |
77
- | `smpl_npy/` | `.npy` (dict) | see below | Per-subject SMPL parameters. |
78
  | `mano_npy/` | `.npy` (dict) | see below | `{'left': {...}, 'right': {...}}`. |
79
  | `pet_npy/` | `.npy` | `(T_p, 20, 4)` float32 | 20-joint pet skeleton; last axis is `(x, y, z, score)`. |
80
  | `smal_npy/` | `.npz` | see below | SMAL pet body fits, per-frame parameters stacked over time. |
 
81
 
82
- **SMPL dict schema** (key = subject id, e.g. `aria01`):
83
 
84
  ```python
85
  {
86
  'global_orient': (T, 3) # axis-angle root orientation
87
  'transl': (T, 3) # root translation (meters)
88
  'body_pose': (T, 69) # 23 joints × 3 (axis-angle)
89
- 'betas': (T, 10) # SMPL shape coefficients
90
  'joints': (T, 45, 3) # 3D joint positions
91
- 'vertices': (T, 6890, 3) # SMPL mesh vertices
92
  'epoch_loss': (T,) # optimization residual
93
  }
94
  ```
@@ -121,6 +127,34 @@ The basename (without extension) is the **clip ID**, shared across all directori
121
 
122
  > SMAL fits cover **226 of 227 clips** (one clip lacks fits). Frame indices in `frame_idx` are not necessarily contiguous — use them to align with the raw video frame rate.
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  > **Note on temporal alignment.** All modalities are aligned by clip ID. Body / hand / pet motion are sampled at the same frame rate `T`; MERT features are at a higher rate `T_a`. Resample with the clip duration when fusing.
125
 
126
  ## Loading Example
@@ -135,13 +169,16 @@ audio, sr = librosa.load(f"interpet_audio/{clip_id}.mp3", sr=None)
135
  mert = np.load(f"interpet_mert/{clip_id}.npy") # (T_a, 1024)
136
  pet = np.load(f"pet_npy/{clip_id}.npy") # (T, 20, 4)
137
  mano = np.load(f"mano_npy/{clip_id}.npy", allow_pickle=True).item()
138
- smpl = np.load(f"smpl_npy/{clip_id}.npy", allow_pickle=True).item()
139
  smal = np.load(f"smal_npy/{clip_id}.npz") # dict-like
 
 
140
 
141
  print(audio.shape, sr)
142
- print(smpl['aria01']['body_pose'].shape)
143
  print(mano['right']['joints'].shape)
144
  print(smal['pose_rotmat'].shape, smal['frame_idx'][:5])
 
145
  ```
146
 
147
  Or via the `datasets` library:
@@ -151,9 +188,10 @@ from datasets import load_dataset
151
  ds = load_dataset("<your-username>/interpet4d_ver1")
152
  ```
153
 
154
- ## Release Plan
155
 
156
- The current `smal_npy/` contains **raw SMAL fits** directly from our automated pipeline. A **refined / cleaned-up version of the SMAL parameters** will be released in a future update.
 
157
 
158
  ## Intended Uses
159
 
@@ -188,6 +226,7 @@ If you use InterPet4D in your research, please cite:
188
 
189
  ## Changelog
190
 
 
191
  - **v1 (2026-06)** — Initial release: 227 clips, 13 dogs, ~23 participants, four time-aligned modalities.
192
 
193
  ## Contact
 
13
  - multimodal
14
  - motion-capture
15
  - 4D
16
+ - SMPL-X
17
  - MANO
18
  - SMAL
19
  - MERT
 
31
  path: interpet_audio/*.mp3
32
  ---
33
 
34
+ # InterPet4D (v1.1)
35
 
36
  **Authors:** Yichen Peng\*, Jyun-Ting Song\*, Chen-Chieh Liao\*, Kris Kitani, Hideki Koike, Erwin Wu
37
  <sub>\*Equal contribution.</sub>
38
 
39
+ **InterPet4D** is a multimodal, ego-centric dataset of natural human–pet (dog) interactions. Each clip provides time-synchronized **audio**, **SMPL-X human body motion**, **MANO hand motion**, **pet skeletal motion**, and **SMAL pet body parameters**, enabling research on cross-species interaction, multimodal motion generation, audio-conditioned animation, and animal behavior understanding.
40
 
41
  ## Highlights
42
 
43
  - **113 interaction sessions** across **13 dogs** (`dog00`–`dog12`) and **~23 participants** (`p01`–`p23`).
44
  - **227 ego-centric clips** (~17–20 s each) captured with head-mounted glasses (Project Aria–style).
45
+ - **Time-aligned modalities** per clip: raw audio, MERT audio embeddings, SMPL-X body, MANO hands, pet skeleton, and SMAL pet body fits.
46
+ - **Cleaned SMAL motion release** for 225 clips, with direct 6D rotations, temporal cleaning, world-up coordinates, initial-yaw normalization, and a fixed zero-height floor.
47
 
48
  ## Dataset Structure
49
 
 
51
  interpet4d_ver1/
52
  ├── interpet_audio/ # Raw audio (.mp3)
53
  ├── interpet_mert/ # MERT pre-extracted audio embeddings (.npy)
54
+ ├── smpl_npy/ # SMPL-X human body parameters (.npy, dict)
55
  ├── mano_npy/ # MANO left/right hand parameters (.npy, dict)
56
  ├── pet_npy/ # Pet (dog) 3D keypoint trajectories (.npy)
57
+ ├── smal_npy/ # Raw SMAL pet body fits (.npz, stacked per-frame)
58
+ └── cleanup_smal/ # Cleaned/canonicalized SMAL motion
59
+ ├── manifest.json
60
+ ├── stats.npz
61
+ └── clips/ # One packed .npz per available clip
62
  ```
63
 
64
  ### File Naming Convention
 
79
  |---|---|---|---|
80
  | `interpet_audio/` | MP3 | 48 kHz, stereo | Ego-microphone audio. |
81
  | `interpet_mert/` | `.npy` | `(T_a, 1024)` float32 | [MERT](https://huggingface.co/m-a-p/MERT-v1-95M) features at ~75 Hz. |
82
+ | `smpl_npy/` | `.npy` (dict) | see below | Per-subject SMPL-X parameters. |
83
  | `mano_npy/` | `.npy` (dict) | see below | `{'left': {...}, 'right': {...}}`. |
84
  | `pet_npy/` | `.npy` | `(T_p, 20, 4)` float32 | 20-joint pet skeleton; last axis is `(x, y, z, score)`. |
85
  | `smal_npy/` | `.npz` | see below | SMAL pet body fits, per-frame parameters stacked over time. |
86
+ | `cleanup_smal/clips/` | `.npz` | see below | Cleaned direct-6D SMAL motion at 30 Hz, packed per clip. |
87
 
88
+ **SMPL-X dict schema** (key = subject id, e.g. `aria01`):
89
 
90
  ```python
91
  {
92
  'global_orient': (T, 3) # axis-angle root orientation
93
  'transl': (T, 3) # root translation (meters)
94
  'body_pose': (T, 69) # 23 joints × 3 (axis-angle)
95
+ 'betas': (T, 10) # SMPL-X shape coefficients
96
  'joints': (T, 45, 3) # 3D joint positions
97
+ 'vertices': (T, 6890, 3) # exported body mesh vertices
98
  'epoch_loss': (T,) # optimization residual
99
  }
100
  ```
 
127
 
128
  > SMAL fits cover **226 of 227 clips** (one clip lacks fits). Frame indices in `frame_idx` are not necessarily contiguous — use them to align with the raw video frame rate.
129
 
130
+ **Cleaned SMAL (`cleanup_smal/`) schema** — 225 clips and 137,710 frames:
131
+
132
+ ```python
133
+ {
134
+ 'feature': (T, 213) # concatenated motion feature
135
+ 'local_rotation_6d': (T, 204) # 34 local joints × 6D
136
+ 'root_rotation_6d': (T, 6)
137
+ 'root_translation': (T, 3) # dog-body units
138
+ 'frame_idx': (T,) # original sparse frame index
139
+ 'segments': (S, 2) # valid [start, end) ranges
140
+ 'temporal_jump_after': (T - 1,)
141
+ 'shape': (37,) # betas + betas_limbs
142
+ 'betas': (30,)
143
+ 'betas_limbs': (7,)
144
+ 'fixed_scale': ()
145
+ 'initial_world_rotation': (3, 3)
146
+ 'initial_world_translation': (3,)
147
+ 'ground_world_z': ()
148
+ 'ground_source': ()
149
+ 'reprojection_px': (T,)
150
+ 'quality_weight': (T,)
151
+ }
152
+ ```
153
+
154
+ The 213D `feature` layout is `[local_rotation_6d (204), root_rotation_6d (6), root_translation (3)]`. Local poses passed through the frozen BARC v3 Real-NVP representation and were decoded back to direct rotations before temporal quaternion/translation smoothing. Root motion is world-up, aligned to the initial yaw, expressed relative to the initial horizontal position, and floor-normalized to `z = 0`. This is a cleaned and canonicalized release, not an image-conditioned SMAL refinement result.
155
+
156
+ `cleanup_smal/clips/` uses clip IDs without the leading `interpet_` prefix. For example, `dog01_p01_take01_ego_001.npz` corresponds to `interpet_dog01_p01_take01_ego_001` in the other modality folders. The two clips excluded from this release are `dog01_p01_take01_ego_002` (no SMAL fit) and `dog06_p14_take01_ego_001` (non-finite shape parameters).
157
+
158
  > **Note on temporal alignment.** All modalities are aligned by clip ID. Body / hand / pet motion are sampled at the same frame rate `T`; MERT features are at a higher rate `T_a`. Resample with the clip duration when fusing.
159
 
160
  ## Loading Example
 
169
  mert = np.load(f"interpet_mert/{clip_id}.npy") # (T_a, 1024)
170
  pet = np.load(f"pet_npy/{clip_id}.npy") # (T, 20, 4)
171
  mano = np.load(f"mano_npy/{clip_id}.npy", allow_pickle=True).item()
172
+ smplx = np.load(f"smpl_npy/{clip_id}.npy", allow_pickle=True).item()
173
  smal = np.load(f"smal_npy/{clip_id}.npz") # dict-like
174
+ cleanup_id = clip_id.removeprefix("interpet_")
175
+ clean_smal = np.load(f"cleanup_smal/clips/{cleanup_id}.npz")
176
 
177
  print(audio.shape, sr)
178
+ print(smplx['aria01']['body_pose'].shape)
179
  print(mano['right']['joints'].shape)
180
  print(smal['pose_rotmat'].shape, smal['frame_idx'][:5])
181
+ print(clean_smal['feature'].shape, clean_smal['frame_idx'][:5])
182
  ```
183
 
184
  Or via the `datasets` library:
 
188
  ds = load_dataset("<your-username>/interpet4d_ver1")
189
  ```
190
 
191
+ ## SMAL Releases
192
 
193
+ - `smal_npy/` contains the **raw SMAL fits** from the automated fitting pipeline and covers 226 clips.
194
+ - `cleanup_smal/` contains the **cleaned and canonicalized direct-6D motion representation** and covers 225 clips. See `cleanup_smal/manifest.json` for split, segment, coordinate-system, and normalization metadata.
195
 
196
  ## Intended Uses
197
 
 
226
 
227
  ## Changelog
228
 
229
+ - **v1.1 (2026-10)** — Added `cleanup_smal/` and corrected the human body model name from SMPL to SMPL-X.
230
  - **v1 (2026-06)** — Initial release: 227 clips, 13 dogs, ~23 participants, four time-aligned modalities.
231
 
232
  ## Contact