initialneil commited on
Commit
aa991fc
·
verified ·
1 Parent(s): a02aaf7

Add P1C1 metadata + SMPL-X + previews

Browse files
LICENSE ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ DREAMS-AVATAR dataset licence (research only)
2
+ =============================================
3
+
4
+ PROVISIONAL. This text states the intent under which the data is published; the
5
+ maintainer may replace it with a formal licence.
6
+
7
+ 1. Permitted use
8
+ The videos, calibration, SMPL-X registrations and preview images in this
9
+ repository are made available for NON-COMMERCIAL ACADEMIC RESEARCH ONLY.
10
+
11
+ 2. Not permitted
12
+ a. Commercial use of any kind.
13
+ b. Redistribution of the imagery (videos, frames, preview sheets), in whole or
14
+ in part, outside this repository.
15
+ c. Any use intended to identify, re-identify, impersonate, or generate
16
+ likenesses of the captured subjects outside a research context.
17
+ d. Training or evaluating biometric identification or surveillance systems.
18
+
19
+ 3. Derived data
20
+ SMPL-X parameters, meshes and renderings derived from this data inherit these
21
+ terms.
22
+
23
+ 4. SMPL-X body model
24
+ The SMPL-X model is NOT included in this repository. It must be obtained from
25
+ https://smpl-x.is.tue.mpg.de and remains subject to the Max Planck Institute
26
+ licence. Nothing here grants any right to that model.
27
+
28
+ 5. Source captures
29
+ The raw multiview captures originate from the DEGAS project. Their original
30
+ capture terms continue to apply and take precedence over this file where they
31
+ are stricter.
32
+
33
+ 6. Subject removal
34
+ A captured subject may request removal of their capture by opening a
35
+ discussion on this repository; the maintainer will remove it.
36
+
37
+ 7. No warranty
38
+ Provided "as is", without warranty of any kind. The registrations are the
39
+ output of an automatic tracker and contain errors.
README.md ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: DREAMS-AVATAR
3
+ license: other
4
+ license_name: dreams-avatar-research-only
5
+ license_link: LICENSE
6
+ language:
7
+ - en
8
+ task_categories:
9
+ - image-to-3d
10
+ - keypoint-detection
11
+ tags:
12
+ - 3d
13
+ - avatar
14
+ - smplx
15
+ - multiview
16
+ - human-pose-estimation
17
+ - motion-capture
18
+ - degas
19
+ size_categories:
20
+ - n<1K
21
+ configs:
22
+ - config_name: default
23
+ data_files:
24
+ - split: train
25
+ path: previews/**
26
+ ---
27
+
28
+ # DREAMS-AVATAR
29
+
30
+ **DEGAS multiview captures, re-registered to pure SMPL-X.**
31
+
32
+ 32 calibrated, matted camera views of a full-body performance, with one SMPL-X body fitted
33
+ to all views at once by the
34
+ [Holistic-Multiview-Tracker](https://github.com/initialneil/Holistic-Multiview-Tracker)
35
+ (branch `reusable-v0.2.0`): 300 shape coefficients, 100 expression coefficients, jaw and
36
+ both eyes, hands as free 45-dim axis-angle (`use_pca=False`).
37
+
38
+ 3-panel QC on three held-out views of the same instant, `raw | omni-600 landmarks | SMPL-X overlay`:
39
+
40
+ ![P1C1 f1400 cam03](https://huggingface.co/datasets/initialneil/DREAMS-AVATAR/resolve/main/assets/showcase/P1C1_f00001400_cam03.jpg)
41
+ ![P1C1 f1400 cam06](https://huggingface.co/datasets/initialneil/DREAMS-AVATAR/resolve/main/assets/showcase/P1C1_f00001400_cam06.jpg)
42
+ ![P1C1 f1400 cam12](https://huggingface.co/datasets/initialneil/DREAMS-AVATAR/resolve/main/assets/showcase/P1C1_f00001400_cam12.jpg)
43
+
44
+ Open hand, splayed fingers, front torso: the hands are read from RGB (WiLoR) rather than
45
+ zeroed, the face is driven by dense MediaPipe landmarks so the 100 expression coefficients
46
+ are actually observable, and the overlay is the *same* body seen from every camera.
47
+
48
+ Browse the fitted result frame by frame in the **Data** tab above: one row per
49
+ (capture x every 100th frame), each carrying the 32-view QC contact sheet.
50
+
51
+ ---
52
+
53
+ ## What is in here
54
+
55
+ | | |
56
+ |---|---|
57
+ | Captures | 10 (`P1C1`, `P1C2`, `P2C1`, `P2C2`, `P3C1`, `P3C2`, `P4C1`, `P4C2`, `P5C2`, `P6C2`) |
58
+ | Subjects | 6 (`P1`..`P6`) |
59
+ | Cameras per capture | 32, hardware-synchronised, calibrated, static |
60
+ | Image size | 2048 x 1500 RGB, matted (black background) plus a per-pixel alpha matte |
61
+ | Frame rate | 22 fps |
62
+ | Registration | pure SMPL-X, neutral, `num_betas=300`, `num_expression_coeffs=100`, `use_pca=False`, `flat_hand_mean=False`, `use_face_contour=True` |
63
+ | Per capture | ~2 GiB of video + one consolidated `smplx.npz` + calibration + QC preview |
64
+
65
+ ### How the captures are meant to be used
66
+
67
+ `Cy` is the session: **`C1` is the training capture, `C2` is the test capture** of the same
68
+ subject.
69
+
70
+ * **`P1`..`P4`** ship **both** sessions, so each of those subjects has a train capture and a
71
+ held-out test capture.
72
+ * **`P5` and `P6`** are for **cross-reenactment only**: only their **`C2`** captures are
73
+ included, as driving sequences to animate an avatar trained on somebody else. There are
74
+ no `P5C1` / `P6C1` here (`P5C1` does not exist at all; `P6C1` is deliberately excluded).
75
+
76
+ | subject | C1 (train) | C2 (test / driving) | role |
77
+ |---|---|---|---|
78
+ | P1 | yes | yes | train + test |
79
+ | P2 | yes | yes | train + test |
80
+ | P3 | yes | yes | train + test |
81
+ | P4 | yes | yes | train + test |
82
+ | P5 | not included | yes | cross-reenact driving only |
83
+ | P6 | not included | yes | cross-reenact driving only |
84
+
85
+ ### Upload status
86
+
87
+ | Capture | videos | SMPL-X | frames |
88
+ |---|---|---|---|
89
+ | P1C1 | yes | yes | 1836 |
90
+ | the other 9 | pending | pending | |
91
+
92
+ Captures are tracked and uploaded one at a time; this table is updated as each lands.
93
+
94
+ ---
95
+
96
+ ## Layout
97
+
98
+ ```
99
+ data/<PxCy>/
100
+ videos/cam00.mp4 ... cam31.mp4 32 matted H.264 videos, 4096x1500 side-by-side
101
+ smplx.npz our SMPL-X registration, all frames stacked
102
+ cameras.json the capture calibration (32 rigs x 1 camera)
103
+ capture.json machine-readable capture card (sizes, conventions)
104
+ preview.jpg one 32-view QC contact sheet
105
+ previews/
106
+ <PxCy>_f<frame:08d>.jpg QC contact sheets, one per sampled frame
107
+ metadata.jsonl the table rendered in the Data tab
108
+ assets/showcase/ the 3-panel images used above
109
+ scripts/
110
+ load_capture.py minimal reader: videos + smplx + cameras
111
+ prepare_training.py decode into an AvatarReX / DEGAS training layout
112
+ upload_capture.sh packaging + upload pipeline (for maintainers)
113
+ ```
114
+
115
+ ### `videos/camNN.mp4`
116
+
117
+ Each file is **4096 x 1500**: the **left half is the matted RGB image**, the **right half
118
+ is the alpha matte** (replicated over 3 channels). The calibration `(fx, fy, cx, cy, w=2048,
119
+ h=1500)` refers to the left half.
120
+
121
+ Camera index `NN` corresponds to `cameras.json -> rigs[NN].cameras[0]`.
122
+
123
+ ### `smplx.npz`
124
+
125
+ Every per-frame fit stacked over time, bit-identical to what the tracker wrote (no
126
+ downcasting, no re-quantisation):
127
+
128
+ | key | shape | notes |
129
+ |---|---|---|
130
+ | `frames` | `(T,)` int32 | GT frame id, 1-based. This is the index everything else is keyed by. |
131
+ | `video_frames` | `(T,)` int32 | `frames - 1`, the 0-based frame index inside `camNN.mp4` |
132
+ | `global_orient` | `(T,3)` float32 | axis-angle, world frame |
133
+ | `body_pose` | `(T,63)` float32 | 21 joints, axis-angle |
134
+ | `jaw_pose` | `(T,3)` float32 | |
135
+ | `leye_pose`, `reye_pose` | `(T,3)` float32 | driven by the MediaPipe iris landmarks |
136
+ | `left_hand_pose`, `right_hand_pose` | `(T,45)` float32 | full axis-angle, **not** PCA |
137
+ | `betas` | `(T,300)` float32 | shape (constant over a capture) |
138
+ | `expression` | `(T,100)` float32 | |
139
+ | `transl` | `(T,3)` float32 | |
140
+ | `joints` | `(T,144,3)` float32 | SMPL-X joints in world coordinates, shipped for convenience |
141
+ | `view_ids` | `(T,Vmax)` int16 | which cameras the fit actually used at that frame, `-1` padded |
142
+ | `n_views`, `n_face_views` | `(T,)` int16 | views used / views with an accepted face crop |
143
+ | `stages` | `(T,)` str | fit schedule at that frame (`A+B+C+F` cold start, `W` warm) |
144
+ | `smplx_kwargs` | scalar str | JSON, the exact `smplx.SMPLX(...)` constructor arguments |
145
+ | `meta` | scalar str | JSON, capture-level provenance |
146
+
147
+ Vertices are **not** shipped (they are a deterministic function of the parameters, and
148
+ would add ~200 MB per capture). Rebuild them with the `smplx_kwargs` above; the SMPL-X body
149
+ model itself must be obtained from [smpl-x.is.tue.mpg.de](https://smpl-x.is.tue.mpg.de)
150
+ under its own licence.
151
+
152
+ ### Conventions you need to get right
153
+
154
+ **Frames.** `frame` always means the GT frame id in `smplx.npz["frames"]` (1-based). The
155
+ matching video frame index is `frame - 1`: the mp4s hold `N-1` frames against the capture's
156
+ `N` GT frames, so GT frame 0 has no image. Getting this wrong fits every frame against its
157
+ neighbour and is nearly invisible in a static pose.
158
+
159
+ **Cameras.** `cameras.json` is nested (`rigs[i].cameras[0]`) and its world is **Y-down**,
160
+ while SMPL-X is Y-up. The registration lives in the flipped, Y-up world, so:
161
+
162
+ ```python
163
+ A = np.diag([1.0, -1.0, -1.0]) # world_flip
164
+ K = [[fx, 0, cx], [0, fy, cy], [0, 0, 1]]
165
+ R_w2c = R @ A
166
+ t_w2c = -R @ c # c = camera centre as stored in cameras.json
167
+ x_cam = R_w2c @ x_world + t_w2c
168
+ uv = (K @ x_cam)[:2] / x_cam[2]
169
+ ```
170
+
171
+ `scripts/load_capture.py` does exactly this; `scripts/prepare_training.py` bakes the flip
172
+ into the emitted `calibration_full.json` so downstream training code never sees it.
173
+
174
+ Distortion `D` is all-zero for these captures (the images ship undistorted).
175
+
176
+ ---
177
+
178
+ ## Quickstart
179
+
180
+ ```bash
181
+ pip install huggingface_hub numpy opencv-python
182
+ huggingface-cli download initialneil/DREAMS-AVATAR --repo-type dataset \
183
+ --include "data/P1C1/*" "scripts/*" --local-dir ./DREAMS-AVATAR
184
+ ```
185
+
186
+ ```python
187
+ import sys; sys.path.append("DREAMS-AVATAR/scripts")
188
+ from load_capture import Capture
189
+
190
+ cap = Capture("DREAMS-AVATAR/data/P1C1")
191
+ print(cap) # 32 cams, 1836 frames, 2048x1500
192
+
193
+ rgb, alpha = cap.read_frame("cam03", frame=1400) # (1500,2048,3), (1500,2048)
194
+ uv = cap.cameras["cam03"].project(cap.joints(frame=1400)) # (144,2) pixels
195
+
196
+ params = cap.smplx_params(frame=1400) # 10 arrays, each (1, D)
197
+ print(cap.smplx_forward_kwargs) # feed straight into smplx.SMPLX(...)
198
+ ```
199
+
200
+ Rebuilding the mesh:
201
+
202
+ ```python
203
+ import smplx, torch
204
+ m = smplx.SMPLX(model_path="<your SMPLX dir>", batch_size=1, **cap.smplx_forward_kwargs)
205
+ out = m(**{k: torch.from_numpy(v) for k, v in cap.smplx_params(1400).items()})
206
+ verts = out.vertices[0].numpy() # (10475,3) in the same world as the cameras
207
+ ```
208
+
209
+ Sequential decode is far cheaper than seeking:
210
+
211
+ ```python
212
+ for frame, rgb, alpha in cap.iter_frames("cam03", start=1, end=200):
213
+ ...
214
+ ```
215
+
216
+ ## Preparing avatar-training input
217
+
218
+ `scripts/prepare_training.py` turns a capture into the flat, per-camera-folder layout that
219
+ the DEGAS / AvatarReX style trainers expect:
220
+
221
+ ```bash
222
+ python scripts/prepare_training.py data/P1C1 --out /scratch/train/P1C1 \
223
+ --stride 4 --cams 0 3 6 9 12 15 18 21 --masks --workers 8
224
+ ```
225
+
226
+ ```
227
+ /scratch/train/P1C1/
228
+ calibration_full.json {"cam00": {K, R, T, RT, imgSize, ...}} world-to-camera, Y-up
229
+ cam_cam00/00000001.jpg RGB, named by GT frame id
230
+ cam_cam00/mask/00000001.png
231
+ smplx/00000001.npz per-frame params, (1,D)
232
+ smplx_params.npz the same params stacked
233
+ meta.json
234
+ ```
235
+
236
+ This is the **proposed** training contract. Key names and the image/mask split will be
237
+ reconciled against the training code in the retrain phase; re-emitting after a format
238
+ change costs one ffmpeg pass per camera.
239
+
240
+ ---
241
+
242
+ ## How the registration was produced
243
+
244
+ [Holistic-Multiview-Tracker](https://github.com/initialneil/Holistic-Multiview-Tracker),
245
+ branch `reusable-v0.2.0`. One SMPL-X body, N calibrated views, minimising the summed 2D
246
+ reprojection error rather than fitting a visual hull:
247
+
248
+ | part | predictor |
249
+ |---|---|
250
+ | body | [sapiens-omni-600](https://github.com/initialneil/sapiens-omni-600), 600 dense 2D surface landmarks |
251
+ | hands | [WiLoR](https://github.com/rolpotamias/WiLoR), reprojected as a vertex-to-vertex term (MANO is the SMPL-X hand submesh) |
252
+ | face | MediaPipe FaceLandmarker, 105 embedded points plus 10 iris points |
253
+
254
+ Sequence mode warm-starts frame `N` from frame `N-1` and only cold-starts the first frame of
255
+ a shard, so a ~1800 frame capture is practical. FLAME and joint offsets are off: this is
256
+ native SMPL-X, matching [DEGAS](https://initialneil.github.io/DEGAS.html).
257
+
258
+ The `previews/` contact sheets and the 3-panel images above are the tracker's own QC output,
259
+ rendered on every 100th frame with the mesh rasterised through the true calibrated camera.
260
+
261
+ ## Related
262
+
263
+ - [DEGAS](https://initialneil.github.io/DEGAS.html): Detailed Expressions on Full-Body Gaussian Avatars
264
+ - [Holistic-Tracker](https://github.com/initialneil/Holistic-Tracker): the monocular counterpart
265
+
266
+ ## Licence and consent
267
+
268
+ Research use only, non-commercial. The captures show identifiable people; do not
269
+ redistribute the imagery, and do not use it to build systems that identify or impersonate
270
+ the subjects. The SMPL-X body model is **not** included here and remains subject to its own
271
+ licence from the Max Planck Institute.
272
+
273
+ If you are a subject in this data and want it removed, open a discussion on this repo.
274
+
275
+ ## Citation
276
+
277
+ ```bibtex
278
+ @misc{dreams-avatar-2026,
279
+ title = {DREAMS-AVATAR: DEGAS multiview captures re-registered to pure SMPL-X},
280
+ author = {Shao, Zhijing},
281
+ year = {2026},
282
+ url = {https://huggingface.co/datasets/initialneil/DREAMS-AVATAR}
283
+ }
284
+ ```
assets/showcase/P1C1_f00001400_cam03.jpg ADDED

Git LFS Details

  • SHA256: 138a9e3ceb0539d13ec31165de80835e685dc4b4fba0ffd0d9699f77065f0a62
  • Pointer size: 131 Bytes
  • Size of remote file: 172 kB
assets/showcase/P1C1_f00001400_cam06.jpg ADDED

Git LFS Details

  • SHA256: fe14852f2f4683794f1ed557af1c3dbc004aa4f65f57f4bdf75c37bda5ffc438
  • Pointer size: 130 Bytes
  • Size of remote file: 91.1 kB
assets/showcase/P1C1_f00001400_cam12.jpg ADDED

Git LFS Details

  • SHA256: 00b2ec0565fa9a2b9a5229f2d83ed2ca6da5ff5258c1ac782d8a20cc22f9e6cc
  • Pointer size: 131 Bytes
  • Size of remote file: 102 kB
data/P1C1/cameras.json ADDED
@@ -0,0 +1,2893 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "ground_plane" :
3
+ [
4
+ 0.0,
5
+ 0.0,
6
+ 0.0,
7
+ 0.0
8
+ ],
9
+ "radius" : 1.0,
10
+ "rigs" :
11
+ [
12
+ {
13
+ "camera_model" : "MindVision",
14
+ "cameras" :
15
+ [
16
+ {
17
+ "D" :
18
+ [
19
+ 0.0,
20
+ 0.0,
21
+ 0.0,
22
+ 0.0,
23
+ 0.0,
24
+ 0.0,
25
+ 0.0,
26
+ 0.0,
27
+ 0.0,
28
+ 0.0,
29
+ 0.0
30
+ ],
31
+ "R" :
32
+ [
33
+ [
34
+ 0.99977880716323853,
35
+ 0.0063244248740375042,
36
+ 0.020059023052453995
37
+ ],
38
+ [
39
+ -0.0054655848070979118,
40
+ 0.99907785654067993,
41
+ -0.042585421353578568
42
+ ],
43
+ [
44
+ -0.020309854298830032,
45
+ 0.042466368526220322,
46
+ 0.99889141321182251
47
+ ]
48
+ ],
49
+ "c" :
50
+ [
51
+ -7.1153044700622559e-07,
52
+ -1.4826395511627197,
53
+ -2.6142139434814453
54
+ ],
55
+ "cx" : 1024.0,
56
+ "cy" : 750.0,
57
+ "depth_scale" : 1.0,
58
+ "fov" : 0.0,
59
+ "fx" : 2378.634765625,
60
+ "fy" : 2378.634765625,
61
+ "h" : 1500,
62
+ "info" : "042032820187-color",
63
+ "lens_flip" : "no",
64
+ "lens_type" : "RECTILINEAR",
65
+ "w" : 2048
66
+ }
67
+ ],
68
+ "ground_plane" :
69
+ [
70
+ 0.0,
71
+ 0.0,
72
+ 0.0,
73
+ 0.0
74
+ ],
75
+ "image_format" : "RGB",
76
+ "info" : "042032820187",
77
+ "rig_position" :
78
+ [
79
+ 0.0,
80
+ 0.0,
81
+ 0.0
82
+ ],
83
+ "rig_rotation" :
84
+ [
85
+ [
86
+ 1.0,
87
+ 0.0,
88
+ 0.0
89
+ ],
90
+ [
91
+ 0.0,
92
+ 1.0,
93
+ 0.0
94
+ ],
95
+ [
96
+ 0.0,
97
+ 0.0,
98
+ 1.0
99
+ ]
100
+ ]
101
+ },
102
+ {
103
+ "camera_model" : "MindVision",
104
+ "cameras" :
105
+ [
106
+ {
107
+ "D" :
108
+ [
109
+ 0.0,
110
+ 0.0,
111
+ 0.0,
112
+ 0.0,
113
+ 0.0,
114
+ 0.0,
115
+ 0.0,
116
+ 0.0,
117
+ 0.0,
118
+ 0.0,
119
+ 0.0
120
+ ],
121
+ "R" :
122
+ [
123
+ [
124
+ 0.99974364042282104,
125
+ -0.018158476799726486,
126
+ -0.013526227325201035
127
+ ],
128
+ [
129
+ 0.020207745954394341,
130
+ 0.98502480983734131,
131
+ 0.17122434079647064
132
+ ],
133
+ [
134
+ 0.01021450012922287,
135
+ -0.1714538037776947,
136
+ 0.98513919115066528
137
+ ]
138
+ ],
139
+ "c" :
140
+ [
141
+ -0.00013948231935501099,
142
+ -0.3537394106388092,
143
+ -2.6267125606536865
144
+ ],
145
+ "cx" : 1024.0,
146
+ "cy" : 750.0,
147
+ "depth_scale" : 1.0,
148
+ "fov" : 0.0,
149
+ "fx" : 1789.2591552734375,
150
+ "fy" : 1789.2591552734375,
151
+ "h" : 1500,
152
+ "info" : "042032820172-color",
153
+ "lens_flip" : "no",
154
+ "lens_type" : "RECTILINEAR",
155
+ "w" : 2048
156
+ }
157
+ ],
158
+ "ground_plane" :
159
+ [
160
+ 0.0,
161
+ 0.0,
162
+ 0.0,
163
+ 0.0
164
+ ],
165
+ "image_format" : "RGB",
166
+ "info" : "042032820172",
167
+ "rig_position" :
168
+ [
169
+ 0.0,
170
+ 0.0,
171
+ 0.0
172
+ ],
173
+ "rig_rotation" :
174
+ [
175
+ [
176
+ 1.0,
177
+ 0.0,
178
+ 0.0
179
+ ],
180
+ [
181
+ 0.0,
182
+ 1.0,
183
+ 0.0
184
+ ],
185
+ [
186
+ 0.0,
187
+ 0.0,
188
+ 1.0
189
+ ]
190
+ ]
191
+ },
192
+ {
193
+ "camera_model" : "MindVision",
194
+ "cameras" :
195
+ [
196
+ {
197
+ "D" :
198
+ [
199
+ 0.0,
200
+ 0.0,
201
+ 0.0,
202
+ 0.0,
203
+ 0.0,
204
+ 0.0,
205
+ 0.0,
206
+ 0.0,
207
+ 0.0,
208
+ 0.0,
209
+ 0.0
210
+ ],
211
+ "R" :
212
+ [
213
+ [
214
+ 0.99985349178314209,
215
+ -0.01560401264578104,
216
+ 0.0070295259356498718
217
+ ],
218
+ [
219
+ 0.016968213021755219,
220
+ 0.85028314590454102,
221
+ -0.52605199813842773
222
+ ],
223
+ [
224
+ 0.0022314377129077911,
225
+ 0.52609431743621826,
226
+ 0.85042327642440796
227
+ ]
228
+ ],
229
+ "c" :
230
+ [
231
+ -0.0073757311329245567,
232
+ -2.3462204933166504,
233
+ -2.621171236038208
234
+ ],
235
+ "cx" : 1024.0,
236
+ "cy" : 750.0,
237
+ "depth_scale" : 1.0,
238
+ "fov" : 0.0,
239
+ "fx" : 1785.7711181640625,
240
+ "fy" : 1785.7711181640625,
241
+ "h" : 1500,
242
+ "info" : "041131220272-color",
243
+ "lens_flip" : "no",
244
+ "lens_type" : "RECTILINEAR",
245
+ "w" : 2048
246
+ }
247
+ ],
248
+ "ground_plane" :
249
+ [
250
+ 0.0,
251
+ 0.0,
252
+ 0.0,
253
+ 0.0
254
+ ],
255
+ "image_format" : "RGB",
256
+ "info" : "041131220272",
257
+ "rig_position" :
258
+ [
259
+ 0.0,
260
+ 0.0,
261
+ 0.0
262
+ ],
263
+ "rig_rotation" :
264
+ [
265
+ [
266
+ 1.0,
267
+ 0.0,
268
+ 0.0
269
+ ],
270
+ [
271
+ 0.0,
272
+ 1.0,
273
+ 0.0
274
+ ],
275
+ [
276
+ 0.0,
277
+ 0.0,
278
+ 1.0
279
+ ]
280
+ ]
281
+ },
282
+ {
283
+ "camera_model" : "MindVision",
284
+ "cameras" :
285
+ [
286
+ {
287
+ "D" :
288
+ [
289
+ 0.0,
290
+ 0.0,
291
+ 0.0,
292
+ 0.0,
293
+ 0.0,
294
+ 0.0,
295
+ 0.0,
296
+ 0.0,
297
+ 0.0,
298
+ 0.0,
299
+ 0.0
300
+ ],
301
+ "R" :
302
+ [
303
+ [
304
+ 0.99755185842514038,
305
+ 0.0083239311352372169,
306
+ -0.069433599710464478
307
+ ],
308
+ [
309
+ -0.010169358924031258,
310
+ 0.999603271484375,
311
+ -0.026267355307936668
312
+ ],
313
+ [
314
+ 0.06918739527463913,
315
+ 0.026909150183200836,
316
+ 0.99724066257476807
317
+ ]
318
+ ],
319
+ "c" :
320
+ [
321
+ -0.21882268786430359,
322
+ -1.4867063760757446,
323
+ -2.644909143447876
324
+ ],
325
+ "cx" : 1024.0,
326
+ "cy" : 750.0,
327
+ "depth_scale" : 1.0,
328
+ "fov" : 0.0,
329
+ "fx" : 5182.36376953125,
330
+ "fy" : 5182.36376953125,
331
+ "h" : 1500,
332
+ "info" : "042131020001-color",
333
+ "lens_flip" : "no",
334
+ "lens_type" : "RECTILINEAR",
335
+ "w" : 2048
336
+ }
337
+ ],
338
+ "ground_plane" :
339
+ [
340
+ 0.0,
341
+ 0.0,
342
+ 0.0,
343
+ 0.0
344
+ ],
345
+ "image_format" : "RGB",
346
+ "info" : "042131020001",
347
+ "rig_position" :
348
+ [
349
+ 0.0,
350
+ 0.0,
351
+ 0.0
352
+ ],
353
+ "rig_rotation" :
354
+ [
355
+ [
356
+ 1.0,
357
+ 0.0,
358
+ 0.0
359
+ ],
360
+ [
361
+ 0.0,
362
+ 1.0,
363
+ 0.0
364
+ ],
365
+ [
366
+ 0.0,
367
+ 0.0,
368
+ 1.0
369
+ ]
370
+ ]
371
+ },
372
+ {
373
+ "camera_model" : "MindVision",
374
+ "cameras" :
375
+ [
376
+ {
377
+ "D" :
378
+ [
379
+ 0.0,
380
+ 0.0,
381
+ 0.0,
382
+ 0.0,
383
+ 0.0,
384
+ 0.0,
385
+ 0.0,
386
+ 0.0,
387
+ 0.0,
388
+ 0.0,
389
+ 0.0
390
+ ],
391
+ "R" :
392
+ [
393
+ [
394
+ 0.685649573802948,
395
+ 0.0071092415601015091,
396
+ -0.727897047996521
397
+ ],
398
+ [
399
+ -0.38862979412078857,
400
+ 0.84909361600875854,
401
+ -0.35778054594993591
402
+ ],
403
+ [
404
+ 0.61550921201705933,
405
+ 0.5281946063041687,
406
+ 0.58494347333908081
407
+ ]
408
+ ],
409
+ "c" :
410
+ [
411
+ -1.8865025043487549,
412
+ -2.3287115097045898,
413
+ -1.8302794694900513
414
+ ],
415
+ "cx" : 1024.0,
416
+ "cy" : 750.0,
417
+ "depth_scale" : 1.0,
418
+ "fov" : 0.0,
419
+ "fx" : 1781.2928466796875,
420
+ "fy" : 1781.2928466796875,
421
+ "h" : 1500,
422
+ "info" : "042032820159-color",
423
+ "lens_flip" : "no",
424
+ "lens_type" : "RECTILINEAR",
425
+ "w" : 2048
426
+ }
427
+ ],
428
+ "ground_plane" :
429
+ [
430
+ 0.0,
431
+ 0.0,
432
+ 0.0,
433
+ 0.0
434
+ ],
435
+ "image_format" : "RGB",
436
+ "info" : "042032820159",
437
+ "rig_position" :
438
+ [
439
+ 0.0,
440
+ 0.0,
441
+ 0.0
442
+ ],
443
+ "rig_rotation" :
444
+ [
445
+ [
446
+ 1.0,
447
+ 0.0,
448
+ 0.0
449
+ ],
450
+ [
451
+ 0.0,
452
+ 1.0,
453
+ 0.0
454
+ ],
455
+ [
456
+ 0.0,
457
+ 0.0,
458
+ 1.0
459
+ ]
460
+ ]
461
+ },
462
+ {
463
+ "camera_model" : "MindVision",
464
+ "cameras" :
465
+ [
466
+ {
467
+ "D" :
468
+ [
469
+ 0.0,
470
+ 0.0,
471
+ 0.0,
472
+ 0.0,
473
+ 0.0,
474
+ 0.0,
475
+ 0.0,
476
+ 0.0,
477
+ 0.0,
478
+ 0.0,
479
+ 0.0
480
+ ],
481
+ "R" :
482
+ [
483
+ [
484
+ 0.71022188663482666,
485
+ 0.012667356058955193,
486
+ -0.70386385917663574
487
+ ],
488
+ [
489
+ -0.038413528352975845,
490
+ 0.99904584884643555,
491
+ -0.020780798047780991
492
+ ],
493
+ [
494
+ 0.70292907953262329,
495
+ 0.041796877980232239,
496
+ 0.71003079414367676
497
+ ]
498
+ ],
499
+ "c" :
500
+ [
501
+ -1.8813941478729248,
502
+ -1.471271276473999,
503
+ -1.8304221630096436
504
+ ],
505
+ "cx" : 1024.0,
506
+ "cy" : 750.0,
507
+ "depth_scale" : 1.0,
508
+ "fov" : 0.0,
509
+ "fx" : 2371.3564453125,
510
+ "fy" : 2371.3564453125,
511
+ "h" : 1500,
512
+ "info" : "042032820156-color",
513
+ "lens_flip" : "no",
514
+ "lens_type" : "RECTILINEAR",
515
+ "w" : 2048
516
+ }
517
+ ],
518
+ "ground_plane" :
519
+ [
520
+ 0.0,
521
+ 0.0,
522
+ 0.0,
523
+ 0.0
524
+ ],
525
+ "image_format" : "RGB",
526
+ "info" : "042032820156",
527
+ "rig_position" :
528
+ [
529
+ 0.0,
530
+ 0.0,
531
+ 0.0
532
+ ],
533
+ "rig_rotation" :
534
+ [
535
+ [
536
+ 1.0,
537
+ 0.0,
538
+ 0.0
539
+ ],
540
+ [
541
+ 0.0,
542
+ 1.0,
543
+ 0.0
544
+ ],
545
+ [
546
+ 0.0,
547
+ 0.0,
548
+ 1.0
549
+ ]
550
+ ]
551
+ },
552
+ {
553
+ "camera_model" : "MindVision",
554
+ "cameras" :
555
+ [
556
+ {
557
+ "D" :
558
+ [
559
+ 0.0,
560
+ 0.0,
561
+ 0.0,
562
+ 0.0,
563
+ 0.0,
564
+ 0.0,
565
+ 0.0,
566
+ 0.0,
567
+ 0.0,
568
+ 0.0,
569
+ 0.0
570
+ ],
571
+ "R" :
572
+ [
573
+ [
574
+ 0.68823426961898804,
575
+ -0.0013963263481855392,
576
+ -0.72548723220825195
577
+ ],
578
+ [
579
+ 0.1251538097858429,
580
+ 0.98523449897766113,
581
+ 0.11683104932308197
582
+ ],
583
+ [
584
+ 0.71461188793182373,
585
+ -0.17120462656021118,
586
+ 0.67824685573577881
587
+ ]
588
+ ],
589
+ "c" :
590
+ [
591
+ -1.8826209306716919,
592
+ -0.3555065393447876,
593
+ -1.8431063890457153
594
+ ],
595
+ "cx" : 1024.0,
596
+ "cy" : 750.0,
597
+ "depth_scale" : 1.0,
598
+ "fov" : 0.0,
599
+ "fx" : 1771.633056640625,
600
+ "fy" : 1771.633056640625,
601
+ "h" : 1500,
602
+ "info" : "041131220255-color",
603
+ "lens_flip" : "no",
604
+ "lens_type" : "RECTILINEAR",
605
+ "w" : 2048
606
+ }
607
+ ],
608
+ "ground_plane" :
609
+ [
610
+ 0.0,
611
+ 0.0,
612
+ 0.0,
613
+ 0.0
614
+ ],
615
+ "image_format" : "RGB",
616
+ "info" : "041131220255",
617
+ "rig_position" :
618
+ [
619
+ 0.0,
620
+ 0.0,
621
+ 0.0
622
+ ],
623
+ "rig_rotation" :
624
+ [
625
+ [
626
+ 1.0,
627
+ 0.0,
628
+ 0.0
629
+ ],
630
+ [
631
+ 0.0,
632
+ 1.0,
633
+ 0.0
634
+ ],
635
+ [
636
+ 0.0,
637
+ 0.0,
638
+ 1.0
639
+ ]
640
+ ]
641
+ },
642
+ {
643
+ "camera_model" : "MindVision",
644
+ "cameras" :
645
+ [
646
+ {
647
+ "D" :
648
+ [
649
+ 0.0,
650
+ 0.0,
651
+ 0.0,
652
+ 0.0,
653
+ 0.0,
654
+ 0.0,
655
+ 0.0,
656
+ 0.0,
657
+ 0.0,
658
+ 0.0,
659
+ 0.0
660
+ ],
661
+ "R" :
662
+ [
663
+ [
664
+ 0.63659375905990601,
665
+ 0.0070461789146065712,
666
+ -0.77116703987121582
667
+ ],
668
+ [
669
+ -0.022916210815310478,
670
+ 0.99968951940536499,
671
+ -0.0097830016165971756
672
+ ],
673
+ [
674
+ 0.77085864543914795,
675
+ 0.02390003390610218,
676
+ 0.63655763864517212
677
+ ]
678
+ ],
679
+ "c" :
680
+ [
681
+ -2.0620980262756348,
682
+ -1.4757134914398193,
683
+ -1.6690757274627686
684
+ ],
685
+ "cx" : 1024.0,
686
+ "cy" : 750.0,
687
+ "depth_scale" : 1.0,
688
+ "fov" : 0.0,
689
+ "fx" : 5077.1103515625,
690
+ "fy" : 5077.1103515625,
691
+ "h" : 1500,
692
+ "info" : "042131020034-color",
693
+ "lens_flip" : "no",
694
+ "lens_type" : "RECTILINEAR",
695
+ "w" : 2048
696
+ }
697
+ ],
698
+ "ground_plane" :
699
+ [
700
+ 0.0,
701
+ 0.0,
702
+ 0.0,
703
+ 0.0
704
+ ],
705
+ "image_format" : "RGB",
706
+ "info" : "042131020034",
707
+ "rig_position" :
708
+ [
709
+ 0.0,
710
+ 0.0,
711
+ 0.0
712
+ ],
713
+ "rig_rotation" :
714
+ [
715
+ [
716
+ 1.0,
717
+ 0.0,
718
+ 0.0
719
+ ],
720
+ [
721
+ 0.0,
722
+ 1.0,
723
+ 0.0
724
+ ],
725
+ [
726
+ 0.0,
727
+ 0.0,
728
+ 1.0
729
+ ]
730
+ ]
731
+ },
732
+ {
733
+ "camera_model" : "MindVision",
734
+ "cameras" :
735
+ [
736
+ {
737
+ "D" :
738
+ [
739
+ 0.0,
740
+ 0.0,
741
+ 0.0,
742
+ 0.0,
743
+ 0.0,
744
+ 0.0,
745
+ 0.0,
746
+ 0.0,
747
+ 0.0,
748
+ 0.0,
749
+ 0.0
750
+ ],
751
+ "R" :
752
+ [
753
+ [
754
+ 0.022983022034168243,
755
+ 0.0098905907943844795,
756
+ -0.9996868371963501
757
+ ],
758
+ [
759
+ -0.04140155017375946,
760
+ 0.99910265207290649,
761
+ 0.0089329807087779045
762
+ ],
763
+ [
764
+ 0.99887824058532715,
765
+ 0.041183274239301682,
766
+ 0.023371884599328041
767
+ ]
768
+ ],
769
+ "c" :
770
+ [
771
+ -2.6552853584289551,
772
+ -1.4731272459030151,
773
+ -0.016699902713298798
774
+ ],
775
+ "cx" : 1024.0,
776
+ "cy" : 750.0,
777
+ "depth_scale" : 1.0,
778
+ "fov" : 0.0,
779
+ "fx" : 2351.86328125,
780
+ "fy" : 2351.86328125,
781
+ "h" : 1500,
782
+ "info" : "042032820189-color",
783
+ "lens_flip" : "no",
784
+ "lens_type" : "RECTILINEAR",
785
+ "w" : 2048
786
+ }
787
+ ],
788
+ "ground_plane" :
789
+ [
790
+ 0.0,
791
+ 0.0,
792
+ 0.0,
793
+ 0.0
794
+ ],
795
+ "image_format" : "RGB",
796
+ "info" : "042032820189",
797
+ "rig_position" :
798
+ [
799
+ 0.0,
800
+ 0.0,
801
+ 0.0
802
+ ],
803
+ "rig_rotation" :
804
+ [
805
+ [
806
+ 1.0,
807
+ 0.0,
808
+ 0.0
809
+ ],
810
+ [
811
+ 0.0,
812
+ 1.0,
813
+ 0.0
814
+ ],
815
+ [
816
+ 0.0,
817
+ 0.0,
818
+ 1.0
819
+ ]
820
+ ]
821
+ },
822
+ {
823
+ "camera_model" : "MindVision",
824
+ "cameras" :
825
+ [
826
+ {
827
+ "D" :
828
+ [
829
+ 0.0,
830
+ 0.0,
831
+ 0.0,
832
+ 0.0,
833
+ 0.0,
834
+ 0.0,
835
+ 0.0,
836
+ 0.0,
837
+ 0.0,
838
+ 0.0,
839
+ 0.0
840
+ ],
841
+ "R" :
842
+ [
843
+ [
844
+ -0.020695451647043228,
845
+ -0.0095787998288869858,
846
+ -0.99973994493484497
847
+ ],
848
+ [
849
+ -0.51971369981765747,
850
+ 0.85433661937713623,
851
+ 0.0025728605687618256
852
+ ],
853
+ [
854
+ 0.85408979654312134,
855
+ 0.51963174343109131,
856
+ -0.022659115493297577
857
+ ]
858
+ ],
859
+ "c" :
860
+ [
861
+ -2.6613638401031494,
862
+ -2.3336374759674072,
863
+ -0.019422814249992371
864
+ ],
865
+ "cx" : 1024.0,
866
+ "cy" : 750.0,
867
+ "depth_scale" : 1.0,
868
+ "fov" : 0.0,
869
+ "fx" : 1787.1995849609375,
870
+ "fy" : 1787.1995849609375,
871
+ "h" : 1500,
872
+ "info" : "042032820178-color",
873
+ "lens_flip" : "no",
874
+ "lens_type" : "RECTILINEAR",
875
+ "w" : 2048
876
+ }
877
+ ],
878
+ "ground_plane" :
879
+ [
880
+ 0.0,
881
+ 0.0,
882
+ 0.0,
883
+ 0.0
884
+ ],
885
+ "image_format" : "RGB",
886
+ "info" : "042032820178",
887
+ "rig_position" :
888
+ [
889
+ 0.0,
890
+ 0.0,
891
+ 0.0
892
+ ],
893
+ "rig_rotation" :
894
+ [
895
+ [
896
+ 1.0,
897
+ 0.0,
898
+ 0.0
899
+ ],
900
+ [
901
+ 0.0,
902
+ 1.0,
903
+ 0.0
904
+ ],
905
+ [
906
+ 0.0,
907
+ 0.0,
908
+ 1.0
909
+ ]
910
+ ]
911
+ },
912
+ {
913
+ "camera_model" : "MindVision",
914
+ "cameras" :
915
+ [
916
+ {
917
+ "D" :
918
+ [
919
+ 0.0,
920
+ 0.0,
921
+ 0.0,
922
+ 0.0,
923
+ 0.0,
924
+ 0.0,
925
+ 0.0,
926
+ 0.0,
927
+ 0.0,
928
+ 0.0,
929
+ 0.0
930
+ ],
931
+ "R" :
932
+ [
933
+ [
934
+ -0.0017560217529535294,
935
+ -0.0098642986267805099,
936
+ -0.99994975328445435
937
+ ],
938
+ [
939
+ 0.1782233864068985,
940
+ 0.98393911123275757,
941
+ -0.010019334033131599
942
+ ],
943
+ [
944
+ 0.98398852348327637,
945
+ -0.17823202908039093,
946
+ 3.0228868126869202e-05
947
+ ]
948
+ ],
949
+ "c" :
950
+ [
951
+ -2.6583425998687744,
952
+ -0.3582407534122467,
953
+ -0.020087916404008865
954
+ ],
955
+ "cx" : 1024.0,
956
+ "cy" : 750.0,
957
+ "depth_scale" : 1.0,
958
+ "fov" : 0.0,
959
+ "fx" : 1776.6854248046875,
960
+ "fy" : 1776.6854248046875,
961
+ "h" : 1500,
962
+ "info" : "041131220260-color",
963
+ "lens_flip" : "no",
964
+ "lens_type" : "RECTILINEAR",
965
+ "w" : 2048
966
+ }
967
+ ],
968
+ "ground_plane" :
969
+ [
970
+ 0.0,
971
+ 0.0,
972
+ 0.0,
973
+ 0.0
974
+ ],
975
+ "image_format" : "RGB",
976
+ "info" : "041131220260",
977
+ "rig_position" :
978
+ [
979
+ 0.0,
980
+ 0.0,
981
+ 0.0
982
+ ],
983
+ "rig_rotation" :
984
+ [
985
+ [
986
+ 1.0,
987
+ 0.0,
988
+ 0.0
989
+ ],
990
+ [
991
+ 0.0,
992
+ 1.0,
993
+ 0.0
994
+ ],
995
+ [
996
+ 0.0,
997
+ 0.0,
998
+ 1.0
999
+ ]
1000
+ ]
1001
+ },
1002
+ {
1003
+ "camera_model" : "MindVision",
1004
+ "cameras" :
1005
+ [
1006
+ {
1007
+ "D" :
1008
+ [
1009
+ 0.0,
1010
+ 0.0,
1011
+ 0.0,
1012
+ 0.0,
1013
+ 0.0,
1014
+ 0.0,
1015
+ 0.0,
1016
+ 0.0,
1017
+ 0.0,
1018
+ 0.0,
1019
+ 0.0
1020
+ ],
1021
+ "R" :
1022
+ [
1023
+ [
1024
+ -0.072798892855644226,
1025
+ -0.0074999937787652016,
1026
+ -0.99731838703155518
1027
+ ],
1028
+ [
1029
+ -0.013888604007661343,
1030
+ 0.99988240003585815,
1031
+ -0.0065054791048169136
1032
+ ],
1033
+ [
1034
+ 0.99724996089935303,
1035
+ 0.013377770781517029,
1036
+ -0.072894491255283356
1037
+ ]
1038
+ ],
1039
+ "c" :
1040
+ [
1041
+ -2.6990907192230225,
1042
+ -1.480023980140686,
1043
+ 0.22978486120700836
1044
+ ],
1045
+ "cx" : 1024.0,
1046
+ "cy" : 750.0,
1047
+ "depth_scale" : 1.0,
1048
+ "fov" : 0.0,
1049
+ "fx" : 5138.12109375,
1050
+ "fy" : 5138.12109375,
1051
+ "h" : 1500,
1052
+ "info" : "042131020029-color",
1053
+ "lens_flip" : "no",
1054
+ "lens_type" : "RECTILINEAR",
1055
+ "w" : 2048
1056
+ }
1057
+ ],
1058
+ "ground_plane" :
1059
+ [
1060
+ 0.0,
1061
+ 0.0,
1062
+ 0.0,
1063
+ 0.0
1064
+ ],
1065
+ "image_format" : "RGB",
1066
+ "info" : "042131020029",
1067
+ "rig_position" :
1068
+ [
1069
+ 0.0,
1070
+ 0.0,
1071
+ 0.0
1072
+ ],
1073
+ "rig_rotation" :
1074
+ [
1075
+ [
1076
+ 1.0,
1077
+ 0.0,
1078
+ 0.0
1079
+ ],
1080
+ [
1081
+ 0.0,
1082
+ 1.0,
1083
+ 0.0
1084
+ ],
1085
+ [
1086
+ 0.0,
1087
+ 0.0,
1088
+ 1.0
1089
+ ]
1090
+ ]
1091
+ },
1092
+ {
1093
+ "camera_model" : "MindVision",
1094
+ "cameras" :
1095
+ [
1096
+ {
1097
+ "D" :
1098
+ [
1099
+ 0.0,
1100
+ 0.0,
1101
+ 0.0,
1102
+ 0.0,
1103
+ 0.0,
1104
+ 0.0,
1105
+ 0.0,
1106
+ 0.0,
1107
+ 0.0,
1108
+ 0.0,
1109
+ 0.0
1110
+ ],
1111
+ "R" :
1112
+ [
1113
+ [
1114
+ -0.76026898622512817,
1115
+ -0.0055369534529745579,
1116
+ -0.64958482980728149
1117
+ ],
1118
+ [
1119
+ -0.021611243486404419,
1120
+ 0.99962574243545532,
1121
+ 0.016772985458374023
1122
+ ],
1123
+ [
1124
+ 0.64924883842468262,
1125
+ 0.0267903171479702,
1126
+ -0.76010406017303467
1127
+ ]
1128
+ ],
1129
+ "c" :
1130
+ [
1131
+ -1.7545278072357178,
1132
+ -1.4870845079421997,
1133
+ 2.0024347305297852
1134
+ ],
1135
+ "cx" : 1024.0,
1136
+ "cy" : 750.0,
1137
+ "depth_scale" : 1.0,
1138
+ "fov" : 0.0,
1139
+ "fx" : 5218.81787109375,
1140
+ "fy" : 5218.81787109375,
1141
+ "h" : 1500,
1142
+ "info" : "042131020019-color",
1143
+ "lens_flip" : "no",
1144
+ "lens_type" : "RECTILINEAR",
1145
+ "w" : 2048
1146
+ }
1147
+ ],
1148
+ "ground_plane" :
1149
+ [
1150
+ 0.0,
1151
+ 0.0,
1152
+ 0.0,
1153
+ 0.0
1154
+ ],
1155
+ "image_format" : "RGB",
1156
+ "info" : "042131020019",
1157
+ "rig_position" :
1158
+ [
1159
+ 0.0,
1160
+ 0.0,
1161
+ 0.0
1162
+ ],
1163
+ "rig_rotation" :
1164
+ [
1165
+ [
1166
+ 1.0,
1167
+ 0.0,
1168
+ 0.0
1169
+ ],
1170
+ [
1171
+ 0.0,
1172
+ 1.0,
1173
+ 0.0
1174
+ ],
1175
+ [
1176
+ 0.0,
1177
+ 0.0,
1178
+ 1.0
1179
+ ]
1180
+ ]
1181
+ },
1182
+ {
1183
+ "camera_model" : "MindVision",
1184
+ "cameras" :
1185
+ [
1186
+ {
1187
+ "D" :
1188
+ [
1189
+ 0.0,
1190
+ 0.0,
1191
+ 0.0,
1192
+ 0.0,
1193
+ 0.0,
1194
+ 0.0,
1195
+ 0.0,
1196
+ 0.0,
1197
+ 0.0,
1198
+ 0.0,
1199
+ 0.0
1200
+ ],
1201
+ "R" :
1202
+ [
1203
+ [
1204
+ -0.69281274080276489,
1205
+ 0.0010390696115791798,
1206
+ -0.72111678123474121
1207
+ ],
1208
+ [
1209
+ -0.36976057291030884,
1210
+ 0.85801893472671509,
1211
+ 0.35648369789123535
1212
+ ],
1213
+ [
1214
+ 0.61910223960876465,
1215
+ 0.51361703872680664,
1216
+ -0.5940622091293335
1217
+ ]
1218
+ ],
1219
+ "c" :
1220
+ [
1221
+ -1.8988977670669556,
1222
+ -2.3343207836151123,
1223
+ 1.7938884496688843
1224
+ ],
1225
+ "cx" : 1024.0,
1226
+ "cy" : 750.0,
1227
+ "depth_scale" : 1.0,
1228
+ "fov" : 0.0,
1229
+ "fx" : 1791.7742919921875,
1230
+ "fy" : 1791.7742919921875,
1231
+ "h" : 1500,
1232
+ "info" : "041131220235-color",
1233
+ "lens_flip" : "no",
1234
+ "lens_type" : "RECTILINEAR",
1235
+ "w" : 2048
1236
+ }
1237
+ ],
1238
+ "ground_plane" :
1239
+ [
1240
+ 0.0,
1241
+ 0.0,
1242
+ 0.0,
1243
+ 0.0
1244
+ ],
1245
+ "image_format" : "RGB",
1246
+ "info" : "041131220235",
1247
+ "rig_position" :
1248
+ [
1249
+ 0.0,
1250
+ 0.0,
1251
+ 0.0
1252
+ ],
1253
+ "rig_rotation" :
1254
+ [
1255
+ [
1256
+ 1.0,
1257
+ 0.0,
1258
+ 0.0
1259
+ ],
1260
+ [
1261
+ 0.0,
1262
+ 1.0,
1263
+ 0.0
1264
+ ],
1265
+ [
1266
+ 0.0,
1267
+ 0.0,
1268
+ 1.0
1269
+ ]
1270
+ ]
1271
+ },
1272
+ {
1273
+ "camera_model" : "MindVision",
1274
+ "cameras" :
1275
+ [
1276
+ {
1277
+ "D" :
1278
+ [
1279
+ 0.0,
1280
+ 0.0,
1281
+ 0.0,
1282
+ 0.0,
1283
+ 0.0,
1284
+ 0.0,
1285
+ 0.0,
1286
+ 0.0,
1287
+ 0.0,
1288
+ 0.0,
1289
+ 0.0
1290
+ ],
1291
+ "R" :
1292
+ [
1293
+ [
1294
+ -0.68310022354125977,
1295
+ 0.0047086798585951328,
1296
+ -0.73030942678451538
1297
+ ],
1298
+ [
1299
+ 0.1166602298617363,
1300
+ 0.98784250020980835,
1301
+ -0.10274986922740936
1302
+ ],
1303
+ [
1304
+ 0.72094690799713135,
1305
+ -0.1553865373134613,
1306
+ -0.67534476518630981
1307
+ ]
1308
+ ],
1309
+ "c" :
1310
+ [
1311
+ -1.9096056222915649,
1312
+ -0.35902422666549683,
1313
+ 1.8335007429122925
1314
+ ],
1315
+ "cx" : 1024.0,
1316
+ "cy" : 750.0,
1317
+ "depth_scale" : 1.0,
1318
+ "fov" : 0.0,
1319
+ "fx" : 1797.0045166015625,
1320
+ "fy" : 1797.0045166015625,
1321
+ "h" : 1500,
1322
+ "info" : "042032820188-color",
1323
+ "lens_flip" : "no",
1324
+ "lens_type" : "RECTILINEAR",
1325
+ "w" : 2048
1326
+ }
1327
+ ],
1328
+ "ground_plane" :
1329
+ [
1330
+ 0.0,
1331
+ 0.0,
1332
+ 0.0,
1333
+ 0.0
1334
+ ],
1335
+ "image_format" : "RGB",
1336
+ "info" : "042032820188",
1337
+ "rig_position" :
1338
+ [
1339
+ 0.0,
1340
+ 0.0,
1341
+ 0.0
1342
+ ],
1343
+ "rig_rotation" :
1344
+ [
1345
+ [
1346
+ 1.0,
1347
+ 0.0,
1348
+ 0.0
1349
+ ],
1350
+ [
1351
+ 0.0,
1352
+ 1.0,
1353
+ 0.0
1354
+ ],
1355
+ [
1356
+ 0.0,
1357
+ 0.0,
1358
+ 1.0
1359
+ ]
1360
+ ]
1361
+ },
1362
+ {
1363
+ "camera_model" : "MindVision",
1364
+ "cameras" :
1365
+ [
1366
+ {
1367
+ "D" :
1368
+ [
1369
+ 0.0,
1370
+ 0.0,
1371
+ 0.0,
1372
+ 0.0,
1373
+ 0.0,
1374
+ 0.0,
1375
+ 0.0,
1376
+ 0.0,
1377
+ 0.0,
1378
+ 0.0,
1379
+ 0.0
1380
+ ],
1381
+ "R" :
1382
+ [
1383
+ [
1384
+ -0.7058335542678833,
1385
+ 0.0033496017567813396,
1386
+ -0.70836979150772095
1387
+ ],
1388
+ [
1389
+ -0.024536110460758209,
1390
+ 0.99927318096160889,
1391
+ 0.029173431918025017
1392
+ ],
1393
+ [
1394
+ 0.70795261859893799,
1395
+ 0.037972215563058853,
1396
+ -0.70523834228515625
1397
+ ]
1398
+ ],
1399
+ "c" :
1400
+ [
1401
+ -1.9000109434127808,
1402
+ -1.4761124849319458,
1403
+ 1.8084433078765869
1404
+ ],
1405
+ "cx" : 1024.0,
1406
+ "cy" : 750.0,
1407
+ "depth_scale" : 1.0,
1408
+ "fov" : 0.0,
1409
+ "fx" : 2391.1611328125,
1410
+ "fy" : 2391.1611328125,
1411
+ "h" : 1500,
1412
+ "info" : "042032820166-color",
1413
+ "lens_flip" : "no",
1414
+ "lens_type" : "RECTILINEAR",
1415
+ "w" : 2048
1416
+ }
1417
+ ],
1418
+ "ground_plane" :
1419
+ [
1420
+ 0.0,
1421
+ 0.0,
1422
+ 0.0,
1423
+ 0.0
1424
+ ],
1425
+ "image_format" : "RGB",
1426
+ "info" : "042032820166",
1427
+ "rig_position" :
1428
+ [
1429
+ 0.0,
1430
+ 0.0,
1431
+ 0.0
1432
+ ],
1433
+ "rig_rotation" :
1434
+ [
1435
+ [
1436
+ 1.0,
1437
+ 0.0,
1438
+ 0.0
1439
+ ],
1440
+ [
1441
+ 0.0,
1442
+ 1.0,
1443
+ 0.0
1444
+ ],
1445
+ [
1446
+ 0.0,
1447
+ 0.0,
1448
+ 1.0
1449
+ ]
1450
+ ]
1451
+ },
1452
+ {
1453
+ "camera_model" : "MindVision",
1454
+ "cameras" :
1455
+ [
1456
+ {
1457
+ "D" :
1458
+ [
1459
+ 0.0,
1460
+ 0.0,
1461
+ 0.0,
1462
+ 0.0,
1463
+ 0.0,
1464
+ 0.0,
1465
+ 0.0,
1466
+ 0.0,
1467
+ 0.0,
1468
+ 0.0,
1469
+ 0.0
1470
+ ],
1471
+ "R" :
1472
+ [
1473
+ [
1474
+ -0.99995827674865723,
1475
+ -0.0089588714763522148,
1476
+ 0.0017825812101364136
1477
+ ],
1478
+ [
1479
+ -0.008868013508617878,
1480
+ 0.99891477823257446,
1481
+ 0.045722953975200653
1482
+ ],
1483
+ [
1484
+ -0.002190273255109787,
1485
+ 0.045705240219831467,
1486
+ -0.99895250797271729
1487
+ ]
1488
+ ],
1489
+ "c" :
1490
+ [
1491
+ -0.050685644149780273,
1492
+ -1.4931169748306274,
1493
+ 2.6202154159545898
1494
+ ],
1495
+ "cx" : 1024.0,
1496
+ "cy" : 750.0,
1497
+ "depth_scale" : 1.0,
1498
+ "fov" : 0.0,
1499
+ "fx" : 2418.541748046875,
1500
+ "fy" : 2418.541748046875,
1501
+ "h" : 1500,
1502
+ "info" : "042032820158-color",
1503
+ "lens_flip" : "no",
1504
+ "lens_type" : "RECTILINEAR",
1505
+ "w" : 2048
1506
+ }
1507
+ ],
1508
+ "ground_plane" :
1509
+ [
1510
+ 0.0,
1511
+ 0.0,
1512
+ 0.0,
1513
+ 0.0
1514
+ ],
1515
+ "image_format" : "RGB",
1516
+ "info" : "042032820158",
1517
+ "rig_position" :
1518
+ [
1519
+ 0.0,
1520
+ 0.0,
1521
+ 0.0
1522
+ ],
1523
+ "rig_rotation" :
1524
+ [
1525
+ [
1526
+ 1.0,
1527
+ 0.0,
1528
+ 0.0
1529
+ ],
1530
+ [
1531
+ 0.0,
1532
+ 1.0,
1533
+ 0.0
1534
+ ],
1535
+ [
1536
+ 0.0,
1537
+ 0.0,
1538
+ 1.0
1539
+ ]
1540
+ ]
1541
+ },
1542
+ {
1543
+ "camera_model" : "MindVision",
1544
+ "cameras" :
1545
+ [
1546
+ {
1547
+ "D" :
1548
+ [
1549
+ 0.0,
1550
+ 0.0,
1551
+ 0.0,
1552
+ 0.0,
1553
+ 0.0,
1554
+ 0.0,
1555
+ 0.0,
1556
+ 0.0,
1557
+ 0.0,
1558
+ 0.0,
1559
+ 0.0
1560
+ ],
1561
+ "R" :
1562
+ [
1563
+ [
1564
+ -0.99610930681228638,
1565
+ -0.0075509278103709221,
1566
+ 0.087802208960056305
1567
+ ],
1568
+ [
1569
+ -0.0055164704099297523,
1570
+ 0.99971121549606323,
1571
+ 0.023390570655465126
1572
+ ],
1573
+ [
1574
+ -0.087953470647335052,
1575
+ 0.02281520701944828,
1576
+ -0.99586319923400879
1577
+ ]
1578
+ ],
1579
+ "c" :
1580
+ [
1581
+ 0.1831657886505127,
1582
+ -1.4902843236923218,
1583
+ 2.636763334274292
1584
+ ],
1585
+ "cx" : 1024.0,
1586
+ "cy" : 750.0,
1587
+ "depth_scale" : 1.0,
1588
+ "fov" : 0.0,
1589
+ "fx" : 4996.25732421875,
1590
+ "fy" : 4996.25732421875,
1591
+ "h" : 1500,
1592
+ "info" : "042131020041-color",
1593
+ "lens_flip" : "no",
1594
+ "lens_type" : "RECTILINEAR",
1595
+ "w" : 2048
1596
+ }
1597
+ ],
1598
+ "ground_plane" :
1599
+ [
1600
+ 0.0,
1601
+ 0.0,
1602
+ 0.0,
1603
+ 0.0
1604
+ ],
1605
+ "image_format" : "RGB",
1606
+ "info" : "042131020041",
1607
+ "rig_position" :
1608
+ [
1609
+ 0.0,
1610
+ 0.0,
1611
+ 0.0
1612
+ ],
1613
+ "rig_rotation" :
1614
+ [
1615
+ [
1616
+ 1.0,
1617
+ 0.0,
1618
+ 0.0
1619
+ ],
1620
+ [
1621
+ 0.0,
1622
+ 1.0,
1623
+ 0.0
1624
+ ],
1625
+ [
1626
+ 0.0,
1627
+ 0.0,
1628
+ 1.0
1629
+ ]
1630
+ ]
1631
+ },
1632
+ {
1633
+ "camera_model" : "MindVision",
1634
+ "cameras" :
1635
+ [
1636
+ {
1637
+ "D" :
1638
+ [
1639
+ 0.0,
1640
+ 0.0,
1641
+ 0.0,
1642
+ 0.0,
1643
+ 0.0,
1644
+ 0.0,
1645
+ 0.0,
1646
+ 0.0,
1647
+ 0.0,
1648
+ 0.0,
1649
+ 0.0
1650
+ ],
1651
+ "R" :
1652
+ [
1653
+ [
1654
+ -0.9997449517250061,
1655
+ -0.01295993197709322,
1656
+ -0.018494654446840286
1657
+ ],
1658
+ [
1659
+ -0.020760234445333481,
1660
+ 0.84976887702941895,
1661
+ 0.52674645185470581
1662
+ ],
1663
+ [
1664
+ 0.0088895875960588455,
1665
+ 0.52699613571166992,
1666
+ -0.84982115030288696
1667
+ ]
1668
+ ],
1669
+ "c" :
1670
+ [
1671
+ -0.054456010460853577,
1672
+ -2.352524995803833,
1673
+ 2.6293706893920898
1674
+ ],
1675
+ "cx" : 1024.0,
1676
+ "cy" : 750.0,
1677
+ "depth_scale" : 1.0,
1678
+ "fov" : 0.0,
1679
+ "fx" : 1790.0133056640625,
1680
+ "fy" : 1790.0133056640625,
1681
+ "h" : 1500,
1682
+ "info" : "041131220261-color",
1683
+ "lens_flip" : "no",
1684
+ "lens_type" : "RECTILINEAR",
1685
+ "w" : 2048
1686
+ }
1687
+ ],
1688
+ "ground_plane" :
1689
+ [
1690
+ 0.0,
1691
+ 0.0,
1692
+ 0.0,
1693
+ 0.0
1694
+ ],
1695
+ "image_format" : "RGB",
1696
+ "info" : "041131220261",
1697
+ "rig_position" :
1698
+ [
1699
+ 0.0,
1700
+ 0.0,
1701
+ 0.0
1702
+ ],
1703
+ "rig_rotation" :
1704
+ [
1705
+ [
1706
+ 1.0,
1707
+ 0.0,
1708
+ 0.0
1709
+ ],
1710
+ [
1711
+ 0.0,
1712
+ 1.0,
1713
+ 0.0
1714
+ ],
1715
+ [
1716
+ 0.0,
1717
+ 0.0,
1718
+ 1.0
1719
+ ]
1720
+ ]
1721
+ },
1722
+ {
1723
+ "camera_model" : "MindVision",
1724
+ "cameras" :
1725
+ [
1726
+ {
1727
+ "D" :
1728
+ [
1729
+ 0.0,
1730
+ 0.0,
1731
+ 0.0,
1732
+ 0.0,
1733
+ 0.0,
1734
+ 0.0,
1735
+ 0.0,
1736
+ 0.0,
1737
+ 0.0,
1738
+ 0.0,
1739
+ 0.0
1740
+ ],
1741
+ "R" :
1742
+ [
1743
+ [
1744
+ -0.99963837862014771,
1745
+ 0.026743648573756218,
1746
+ -0.00283021479845047
1747
+ ],
1748
+ [
1749
+ 0.026818025857210159,
1750
+ 0.98346394300460815,
1751
+ -0.17910754680633545
1752
+ ],
1753
+ [
1754
+ -0.0020065736025571823,
1755
+ -0.17911867797374725,
1756
+ -0.98382538557052612
1757
+ ]
1758
+ ],
1759
+ "c" :
1760
+ [
1761
+ -0.048479326069355011,
1762
+ -0.36015069484710693,
1763
+ 2.6487228870391846
1764
+ ],
1765
+ "cx" : 1024.0,
1766
+ "cy" : 750.0,
1767
+ "depth_scale" : 1.0,
1768
+ "fov" : 0.0,
1769
+ "fx" : 1779.42236328125,
1770
+ "fy" : 1779.42236328125,
1771
+ "h" : 1500,
1772
+ "info" : "041131220253-color",
1773
+ "lens_flip" : "no",
1774
+ "lens_type" : "RECTILINEAR",
1775
+ "w" : 2048
1776
+ }
1777
+ ],
1778
+ "ground_plane" :
1779
+ [
1780
+ 0.0,
1781
+ 0.0,
1782
+ 0.0,
1783
+ 0.0
1784
+ ],
1785
+ "image_format" : "RGB",
1786
+ "info" : "041131220253",
1787
+ "rig_position" :
1788
+ [
1789
+ 0.0,
1790
+ 0.0,
1791
+ 0.0
1792
+ ],
1793
+ "rig_rotation" :
1794
+ [
1795
+ [
1796
+ 1.0,
1797
+ 0.0,
1798
+ 0.0
1799
+ ],
1800
+ [
1801
+ 0.0,
1802
+ 1.0,
1803
+ 0.0
1804
+ ],
1805
+ [
1806
+ 0.0,
1807
+ 0.0,
1808
+ 1.0
1809
+ ]
1810
+ ]
1811
+ },
1812
+ {
1813
+ "camera_model" : "MindVision",
1814
+ "cameras" :
1815
+ [
1816
+ {
1817
+ "D" :
1818
+ [
1819
+ 0.0,
1820
+ 0.0,
1821
+ 0.0,
1822
+ 0.0,
1823
+ 0.0,
1824
+ 0.0,
1825
+ 0.0,
1826
+ 0.0,
1827
+ 0.0,
1828
+ 0.0,
1829
+ 0.0
1830
+ ],
1831
+ "R" :
1832
+ [
1833
+ [
1834
+ -0.64273864030838013,
1835
+ 0.0031604096293449402,
1836
+ 0.76607900857925415
1837
+ ],
1838
+ [
1839
+ 0.024652188643813133,
1840
+ 0.99955892562866211,
1841
+ 0.01655951701104641
1842
+ ],
1843
+ [
1844
+ -0.76568889617919922,
1845
+ 0.029528968036174774,
1846
+ -0.64253294467926025
1847
+ ]
1848
+ ],
1849
+ "c" :
1850
+ [
1851
+ 2.0458173751831055,
1852
+ -1.4919195175170898,
1853
+ 1.7196044921875
1854
+ ],
1855
+ "cx" : 1024.0,
1856
+ "cy" : 750.0,
1857
+ "depth_scale" : 1.0,
1858
+ "fov" : 0.0,
1859
+ "fx" : 5231.091796875,
1860
+ "fy" : 5231.091796875,
1861
+ "h" : 1500,
1862
+ "info" : "042131020028-color",
1863
+ "lens_flip" : "no",
1864
+ "lens_type" : "RECTILINEAR",
1865
+ "w" : 2048
1866
+ }
1867
+ ],
1868
+ "ground_plane" :
1869
+ [
1870
+ 0.0,
1871
+ 0.0,
1872
+ 0.0,
1873
+ 0.0
1874
+ ],
1875
+ "image_format" : "RGB",
1876
+ "info" : "042131020028",
1877
+ "rig_position" :
1878
+ [
1879
+ 0.0,
1880
+ 0.0,
1881
+ 0.0
1882
+ ],
1883
+ "rig_rotation" :
1884
+ [
1885
+ [
1886
+ 1.0,
1887
+ 0.0,
1888
+ 0.0
1889
+ ],
1890
+ [
1891
+ 0.0,
1892
+ 1.0,
1893
+ 0.0
1894
+ ],
1895
+ [
1896
+ 0.0,
1897
+ 0.0,
1898
+ 1.0
1899
+ ]
1900
+ ]
1901
+ },
1902
+ {
1903
+ "camera_model" : "MindVision",
1904
+ "cameras" :
1905
+ [
1906
+ {
1907
+ "D" :
1908
+ [
1909
+ 0.0,
1910
+ 0.0,
1911
+ 0.0,
1912
+ 0.0,
1913
+ 0.0,
1914
+ 0.0,
1915
+ 0.0,
1916
+ 0.0,
1917
+ 0.0,
1918
+ 0.0,
1919
+ 0.0
1920
+ ],
1921
+ "R" :
1922
+ [
1923
+ [
1924
+ -0.70267671346664429,
1925
+ -0.0042091058567166328,
1926
+ 0.71149677038192749
1927
+ ],
1928
+ [
1929
+ 0.027837298810482025,
1930
+ 0.9990541934967041,
1931
+ 0.0334024578332901
1932
+ ],
1933
+ [
1934
+ -0.71096444129943848,
1935
+ 0.043277278542518616,
1936
+ -0.70189493894577026
1937
+ ]
1938
+ ],
1939
+ "c" :
1940
+ [
1941
+ 1.8445219993591309,
1942
+ -1.4873323440551758,
1943
+ 1.8655474185943604
1944
+ ],
1945
+ "cx" : 1024.0,
1946
+ "cy" : 750.0,
1947
+ "depth_scale" : 1.0,
1948
+ "fov" : 0.0,
1949
+ "fx" : 2359.339111328125,
1950
+ "fy" : 2359.339111328125,
1951
+ "h" : 1500,
1952
+ "info" : "042032820179-color",
1953
+ "lens_flip" : "no",
1954
+ "lens_type" : "RECTILINEAR",
1955
+ "w" : 2048
1956
+ }
1957
+ ],
1958
+ "ground_plane" :
1959
+ [
1960
+ 0.0,
1961
+ 0.0,
1962
+ 0.0,
1963
+ 0.0
1964
+ ],
1965
+ "image_format" : "RGB",
1966
+ "info" : "042032820179",
1967
+ "rig_position" :
1968
+ [
1969
+ 0.0,
1970
+ 0.0,
1971
+ 0.0
1972
+ ],
1973
+ "rig_rotation" :
1974
+ [
1975
+ [
1976
+ 1.0,
1977
+ 0.0,
1978
+ 0.0
1979
+ ],
1980
+ [
1981
+ 0.0,
1982
+ 1.0,
1983
+ 0.0
1984
+ ],
1985
+ [
1986
+ 0.0,
1987
+ 0.0,
1988
+ 1.0
1989
+ ]
1990
+ ]
1991
+ },
1992
+ {
1993
+ "camera_model" : "MindVision",
1994
+ "cameras" :
1995
+ [
1996
+ {
1997
+ "D" :
1998
+ [
1999
+ 0.0,
2000
+ 0.0,
2001
+ 0.0,
2002
+ 0.0,
2003
+ 0.0,
2004
+ 0.0,
2005
+ 0.0,
2006
+ 0.0,
2007
+ 0.0,
2008
+ 0.0,
2009
+ 0.0
2010
+ ],
2011
+ "R" :
2012
+ [
2013
+ [
2014
+ -0.70941370725631714,
2015
+ -0.0058966665528714657,
2016
+ 0.70476764440536499
2017
+ ],
2018
+ [
2019
+ -0.12919087707996368,
2020
+ 0.98410987854003906,
2021
+ -0.12180867046117783
2022
+ ],
2023
+ [
2024
+ -0.69285053014755249,
2025
+ -0.17746229469776154,
2026
+ -0.69890284538269043
2027
+ ]
2028
+ ],
2029
+ "c" :
2030
+ [
2031
+ 1.8645299673080444,
2032
+ -0.36033046245574951,
2033
+ 1.8825584650039673
2034
+ ],
2035
+ "cx" : 1024.0,
2036
+ "cy" : 750.0,
2037
+ "depth_scale" : 1.0,
2038
+ "fov" : 0.0,
2039
+ "fx" : 1791.569580078125,
2040
+ "fy" : 1791.569580078125,
2041
+ "h" : 1500,
2042
+ "info" : "041131220273-color",
2043
+ "lens_flip" : "no",
2044
+ "lens_type" : "RECTILINEAR",
2045
+ "w" : 2048
2046
+ }
2047
+ ],
2048
+ "ground_plane" :
2049
+ [
2050
+ 0.0,
2051
+ 0.0,
2052
+ 0.0,
2053
+ 0.0
2054
+ ],
2055
+ "image_format" : "RGB",
2056
+ "info" : "041131220273",
2057
+ "rig_position" :
2058
+ [
2059
+ 0.0,
2060
+ 0.0,
2061
+ 0.0
2062
+ ],
2063
+ "rig_rotation" :
2064
+ [
2065
+ [
2066
+ 1.0,
2067
+ 0.0,
2068
+ 0.0
2069
+ ],
2070
+ [
2071
+ 0.0,
2072
+ 1.0,
2073
+ 0.0
2074
+ ],
2075
+ [
2076
+ 0.0,
2077
+ 0.0,
2078
+ 1.0
2079
+ ]
2080
+ ]
2081
+ },
2082
+ {
2083
+ "camera_model" : "MindVision",
2084
+ "cameras" :
2085
+ [
2086
+ {
2087
+ "D" :
2088
+ [
2089
+ 0.0,
2090
+ 0.0,
2091
+ 0.0,
2092
+ 0.0,
2093
+ 0.0,
2094
+ 0.0,
2095
+ 0.0,
2096
+ 0.0,
2097
+ 0.0,
2098
+ 0.0,
2099
+ 0.0
2100
+ ],
2101
+ "R" :
2102
+ [
2103
+ [
2104
+ -0.71407037973403931,
2105
+ -0.018623331561684608,
2106
+ 0.69982612133026123
2107
+ ],
2108
+ [
2109
+ 0.34658393263816833,
2110
+ 0.85914283990859985,
2111
+ 0.37650126218795776
2112
+ ],
2113
+ [
2114
+ -0.60826230049133301,
2115
+ 0.51139688491821289,
2116
+ -0.60703384876251221
2117
+ ]
2118
+ ],
2119
+ "c" :
2120
+ [
2121
+ 1.837710976600647,
2122
+ -2.3479263782501221,
2123
+ 1.8526068925857544
2124
+ ],
2125
+ "cx" : 1024.0,
2126
+ "cy" : 750.0,
2127
+ "depth_scale" : 1.0,
2128
+ "fov" : 0.0,
2129
+ "fx" : 1808.480712890625,
2130
+ "fy" : 1808.480712890625,
2131
+ "h" : 1500,
2132
+ "info" : "041131220236-color",
2133
+ "lens_flip" : "no",
2134
+ "lens_type" : "RECTILINEAR",
2135
+ "w" : 2048
2136
+ }
2137
+ ],
2138
+ "ground_plane" :
2139
+ [
2140
+ 0.0,
2141
+ 0.0,
2142
+ 0.0,
2143
+ 0.0
2144
+ ],
2145
+ "image_format" : "RGB",
2146
+ "info" : "041131220236",
2147
+ "rig_position" :
2148
+ [
2149
+ 0.0,
2150
+ 0.0,
2151
+ 0.0
2152
+ ],
2153
+ "rig_rotation" :
2154
+ [
2155
+ [
2156
+ 1.0,
2157
+ 0.0,
2158
+ 0.0
2159
+ ],
2160
+ [
2161
+ 0.0,
2162
+ 1.0,
2163
+ 0.0
2164
+ ],
2165
+ [
2166
+ 0.0,
2167
+ 0.0,
2168
+ 1.0
2169
+ ]
2170
+ ]
2171
+ },
2172
+ {
2173
+ "camera_model" : "MindVision",
2174
+ "cameras" :
2175
+ [
2176
+ {
2177
+ "D" :
2178
+ [
2179
+ 0.0,
2180
+ 0.0,
2181
+ 0.0,
2182
+ 0.0,
2183
+ 0.0,
2184
+ 0.0,
2185
+ 0.0,
2186
+ 0.0,
2187
+ 0.0,
2188
+ 0.0,
2189
+ 0.0
2190
+ ],
2191
+ "R" :
2192
+ [
2193
+ [
2194
+ -0.076994970440864563,
2195
+ 0.00070070661604404449,
2196
+ 0.99703121185302734
2197
+ ],
2198
+ [
2199
+ -0.17270408570766449,
2200
+ 0.98487383127212524,
2201
+ -0.01402910053730011
2202
+ ],
2203
+ [
2204
+ -0.98195981979370117,
2205
+ -0.1732715368270874,
2206
+ -0.075709313154220581
2207
+ ]
2208
+ ],
2209
+ "c" :
2210
+ [
2211
+ 2.6400704383850098,
2212
+ -0.35975420475006104,
2213
+ 0.086691178381443024
2214
+ ],
2215
+ "cx" : 1024.0,
2216
+ "cy" : 750.0,
2217
+ "depth_scale" : 1.0,
2218
+ "fov" : 0.0,
2219
+ "fx" : 1789.728271484375,
2220
+ "fy" : 1789.728271484375,
2221
+ "h" : 1500,
2222
+ "info" : "042032820182-color",
2223
+ "lens_flip" : "no",
2224
+ "lens_type" : "RECTILINEAR",
2225
+ "w" : 2048
2226
+ }
2227
+ ],
2228
+ "ground_plane" :
2229
+ [
2230
+ 0.0,
2231
+ 0.0,
2232
+ 0.0,
2233
+ 0.0
2234
+ ],
2235
+ "image_format" : "RGB",
2236
+ "info" : "042032820182",
2237
+ "rig_position" :
2238
+ [
2239
+ 0.0,
2240
+ 0.0,
2241
+ 0.0
2242
+ ],
2243
+ "rig_rotation" :
2244
+ [
2245
+ [
2246
+ 1.0,
2247
+ 0.0,
2248
+ 0.0
2249
+ ],
2250
+ [
2251
+ 0.0,
2252
+ 1.0,
2253
+ 0.0
2254
+ ],
2255
+ [
2256
+ 0.0,
2257
+ 0.0,
2258
+ 1.0
2259
+ ]
2260
+ ]
2261
+ },
2262
+ {
2263
+ "camera_model" : "MindVision",
2264
+ "cameras" :
2265
+ [
2266
+ {
2267
+ "D" :
2268
+ [
2269
+ 0.0,
2270
+ 0.0,
2271
+ 0.0,
2272
+ 0.0,
2273
+ 0.0,
2274
+ 0.0,
2275
+ 0.0,
2276
+ 0.0,
2277
+ 0.0,
2278
+ 0.0,
2279
+ 0.0
2280
+ ],
2281
+ "R" :
2282
+ [
2283
+ [
2284
+ -0.039545632898807526,
2285
+ 0.010706024244427681,
2286
+ 0.99916034936904907
2287
+ ],
2288
+ [
2289
+ 0.51809543371200562,
2290
+ 0.8552476167678833,
2291
+ 0.011341636069118977
2292
+ ],
2293
+ [
2294
+ -0.8544081449508667,
2295
+ 0.51810890436172485,
2296
+ -0.039368048310279846
2297
+ ]
2298
+ ],
2299
+ "c" :
2300
+ [
2301
+ 2.6209020614624023,
2302
+ -2.3470981121063232,
2303
+ 0.082048363983631134
2304
+ ],
2305
+ "cx" : 1024.0,
2306
+ "cy" : 750.0,
2307
+ "depth_scale" : 1.0,
2308
+ "fov" : 0.0,
2309
+ "fx" : 1789.5955810546875,
2310
+ "fy" : 1789.5955810546875,
2311
+ "h" : 1500,
2312
+ "info" : "042032820186-color",
2313
+ "lens_flip" : "no",
2314
+ "lens_type" : "RECTILINEAR",
2315
+ "w" : 2048
2316
+ }
2317
+ ],
2318
+ "ground_plane" :
2319
+ [
2320
+ 0.0,
2321
+ 0.0,
2322
+ 0.0,
2323
+ 0.0
2324
+ ],
2325
+ "image_format" : "RGB",
2326
+ "info" : "042032820186",
2327
+ "rig_position" :
2328
+ [
2329
+ 0.0,
2330
+ 0.0,
2331
+ 0.0
2332
+ ],
2333
+ "rig_rotation" :
2334
+ [
2335
+ [
2336
+ 1.0,
2337
+ 0.0,
2338
+ 0.0
2339
+ ],
2340
+ [
2341
+ 0.0,
2342
+ 1.0,
2343
+ 0.0
2344
+ ],
2345
+ [
2346
+ 0.0,
2347
+ 0.0,
2348
+ 1.0
2349
+ ]
2350
+ ]
2351
+ },
2352
+ {
2353
+ "camera_model" : "MindVision",
2354
+ "cameras" :
2355
+ [
2356
+ {
2357
+ "D" :
2358
+ [
2359
+ 0.0,
2360
+ 0.0,
2361
+ 0.0,
2362
+ 0.0,
2363
+ 0.0,
2364
+ 0.0,
2365
+ 0.0,
2366
+ 0.0,
2367
+ 0.0,
2368
+ 0.0,
2369
+ 0.0
2370
+ ],
2371
+ "R" :
2372
+ [
2373
+ [
2374
+ 0.055626779794692993,
2375
+ -0.0024624969810247421,
2376
+ 0.99844855070114136
2377
+ ],
2378
+ [
2379
+ 0.022725043818354607,
2380
+ 0.99974101781845093,
2381
+ 0.0011996012181043625
2382
+ ],
2383
+ [
2384
+ -0.99819302558898926,
2385
+ 0.022623056545853615,
2386
+ 0.055668327957391739
2387
+ ]
2388
+ ],
2389
+ "c" :
2390
+ [
2391
+ 2.7049500942230225,
2392
+ -1.4966907501220703,
2393
+ -0.15607133507728577
2394
+ ],
2395
+ "cx" : 1024.0,
2396
+ "cy" : 750.0,
2397
+ "depth_scale" : 1.0,
2398
+ "fov" : 0.0,
2399
+ "fx" : 5311.93896484375,
2400
+ "fy" : 5311.93896484375,
2401
+ "h" : 1500,
2402
+ "info" : "042131020016-color",
2403
+ "lens_flip" : "no",
2404
+ "lens_type" : "RECTILINEAR",
2405
+ "w" : 2048
2406
+ }
2407
+ ],
2408
+ "ground_plane" :
2409
+ [
2410
+ 0.0,
2411
+ 0.0,
2412
+ 0.0,
2413
+ 0.0
2414
+ ],
2415
+ "image_format" : "RGB",
2416
+ "info" : "042131020016",
2417
+ "rig_position" :
2418
+ [
2419
+ 0.0,
2420
+ 0.0,
2421
+ 0.0
2422
+ ],
2423
+ "rig_rotation" :
2424
+ [
2425
+ [
2426
+ 1.0,
2427
+ 0.0,
2428
+ 0.0
2429
+ ],
2430
+ [
2431
+ 0.0,
2432
+ 1.0,
2433
+ 0.0
2434
+ ],
2435
+ [
2436
+ 0.0,
2437
+ 0.0,
2438
+ 1.0
2439
+ ]
2440
+ ]
2441
+ },
2442
+ {
2443
+ "camera_model" : "MindVision",
2444
+ "cameras" :
2445
+ [
2446
+ {
2447
+ "D" :
2448
+ [
2449
+ 0.0,
2450
+ 0.0,
2451
+ 0.0,
2452
+ 0.0,
2453
+ 0.0,
2454
+ 0.0,
2455
+ 0.0,
2456
+ 0.0,
2457
+ 0.0,
2458
+ 0.0,
2459
+ 0.0
2460
+ ],
2461
+ "R" :
2462
+ [
2463
+ [
2464
+ -0.029232239350676537,
2465
+ -0.01076057180762291,
2466
+ 0.99951469898223877
2467
+ ],
2468
+ [
2469
+ 0.053320862352848053,
2470
+ 0.99850159883499146,
2471
+ 0.012309110723435879
2472
+ ],
2473
+ [
2474
+ -0.99814945459365845,
2475
+ 0.053654808551073074,
2476
+ -0.028614671900868416
2477
+ ]
2478
+ ],
2479
+ "c" :
2480
+ [
2481
+ 2.6447646617889404,
2482
+ -1.495847225189209,
2483
+ 0.081528395414352417
2484
+ ],
2485
+ "cx" : 1024.0,
2486
+ "cy" : 750.0,
2487
+ "depth_scale" : 1.0,
2488
+ "fov" : 0.0,
2489
+ "fx" : 2408.6162109375,
2490
+ "fy" : 2408.6162109375,
2491
+ "h" : 1500,
2492
+ "info" : "042032820167-color",
2493
+ "lens_flip" : "no",
2494
+ "lens_type" : "RECTILINEAR",
2495
+ "w" : 2048
2496
+ }
2497
+ ],
2498
+ "ground_plane" :
2499
+ [
2500
+ 0.0,
2501
+ 0.0,
2502
+ 0.0,
2503
+ 0.0
2504
+ ],
2505
+ "image_format" : "RGB",
2506
+ "info" : "042032820167",
2507
+ "rig_position" :
2508
+ [
2509
+ 0.0,
2510
+ 0.0,
2511
+ 0.0
2512
+ ],
2513
+ "rig_rotation" :
2514
+ [
2515
+ [
2516
+ 1.0,
2517
+ 0.0,
2518
+ 0.0
2519
+ ],
2520
+ [
2521
+ 0.0,
2522
+ 1.0,
2523
+ 0.0
2524
+ ],
2525
+ [
2526
+ 0.0,
2527
+ 0.0,
2528
+ 1.0
2529
+ ]
2530
+ ]
2531
+ },
2532
+ {
2533
+ "camera_model" : "MindVision",
2534
+ "cameras" :
2535
+ [
2536
+ {
2537
+ "D" :
2538
+ [
2539
+ 0.0,
2540
+ 0.0,
2541
+ 0.0,
2542
+ 0.0,
2543
+ 0.0,
2544
+ 0.0,
2545
+ 0.0,
2546
+ 0.0,
2547
+ 0.0,
2548
+ 0.0,
2549
+ 0.0
2550
+ ],
2551
+ "R" :
2552
+ [
2553
+ [
2554
+ 0.71080350875854492,
2555
+ 0.005710309837013483,
2556
+ 0.70336753129959106
2557
+ ],
2558
+ [
2559
+ 0.36521205306053162,
2560
+ 0.85161840915679932,
2561
+ -0.37598693370819092
2562
+ ],
2563
+ [
2564
+ -0.60114771127700806,
2565
+ 0.52413111925125122,
2566
+ 0.60324788093566895
2567
+ ]
2568
+ ],
2569
+ "c" :
2570
+ [
2571
+ 1.8218140602111816,
2572
+ -2.340024471282959,
2573
+ -1.8943350315093994
2574
+ ],
2575
+ "cx" : 1024.0,
2576
+ "cy" : 750.0,
2577
+ "depth_scale" : 1.0,
2578
+ "fov" : 0.0,
2579
+ "fx" : 1803.7322998046875,
2580
+ "fy" : 1803.7322998046875,
2581
+ "h" : 1500,
2582
+ "info" : "042071120027-color",
2583
+ "lens_flip" : "no",
2584
+ "lens_type" : "RECTILINEAR",
2585
+ "w" : 2048
2586
+ }
2587
+ ],
2588
+ "ground_plane" :
2589
+ [
2590
+ 0.0,
2591
+ 0.0,
2592
+ 0.0,
2593
+ 0.0
2594
+ ],
2595
+ "image_format" : "RGB",
2596
+ "info" : "042071120027",
2597
+ "rig_position" :
2598
+ [
2599
+ 0.0,
2600
+ 0.0,
2601
+ 0.0
2602
+ ],
2603
+ "rig_rotation" :
2604
+ [
2605
+ [
2606
+ 1.0,
2607
+ 0.0,
2608
+ 0.0
2609
+ ],
2610
+ [
2611
+ 0.0,
2612
+ 1.0,
2613
+ 0.0
2614
+ ],
2615
+ [
2616
+ 0.0,
2617
+ 0.0,
2618
+ 1.0
2619
+ ]
2620
+ ]
2621
+ },
2622
+ {
2623
+ "camera_model" : "MindVision",
2624
+ "cameras" :
2625
+ [
2626
+ {
2627
+ "D" :
2628
+ [
2629
+ 0.0,
2630
+ 0.0,
2631
+ 0.0,
2632
+ 0.0,
2633
+ 0.0,
2634
+ 0.0,
2635
+ 0.0,
2636
+ 0.0,
2637
+ 0.0,
2638
+ 0.0,
2639
+ 0.0
2640
+ ],
2641
+ "R" :
2642
+ [
2643
+ [
2644
+ 0.69692009687423706,
2645
+ -0.0033488078042864799,
2646
+ 0.71714097261428833
2647
+ ],
2648
+ [
2649
+ -0.12217219918966293,
2650
+ 0.9848170280456543,
2651
+ 0.12332612276077271
2652
+ ],
2653
+ [
2654
+ -0.70666563510894775,
2655
+ -0.17356313765048981,
2656
+ 0.68592965602874756
2657
+ ]
2658
+ ],
2659
+ "c" :
2660
+ [
2661
+ 1.8281830549240112,
2662
+ -0.35650897026062012,
2663
+ -1.908189058303833
2664
+ ],
2665
+ "cx" : 1024.0,
2666
+ "cy" : 750.0,
2667
+ "depth_scale" : 1.0,
2668
+ "fov" : 0.0,
2669
+ "fx" : 1812.3741455078125,
2670
+ "fy" : 1812.3741455078125,
2671
+ "h" : 1500,
2672
+ "info" : "042032820173-color",
2673
+ "lens_flip" : "no",
2674
+ "lens_type" : "RECTILINEAR",
2675
+ "w" : 2048
2676
+ }
2677
+ ],
2678
+ "ground_plane" :
2679
+ [
2680
+ 0.0,
2681
+ 0.0,
2682
+ 0.0,
2683
+ 0.0
2684
+ ],
2685
+ "image_format" : "RGB",
2686
+ "info" : "042032820173",
2687
+ "rig_position" :
2688
+ [
2689
+ 0.0,
2690
+ 0.0,
2691
+ 0.0
2692
+ ],
2693
+ "rig_rotation" :
2694
+ [
2695
+ [
2696
+ 1.0,
2697
+ 0.0,
2698
+ 0.0
2699
+ ],
2700
+ [
2701
+ 0.0,
2702
+ 1.0,
2703
+ 0.0
2704
+ ],
2705
+ [
2706
+ 0.0,
2707
+ 0.0,
2708
+ 1.0
2709
+ ]
2710
+ ]
2711
+ },
2712
+ {
2713
+ "camera_model" : "MindVision",
2714
+ "cameras" :
2715
+ [
2716
+ {
2717
+ "D" :
2718
+ [
2719
+ 0.0,
2720
+ 0.0,
2721
+ 0.0,
2722
+ 0.0,
2723
+ 0.0,
2724
+ 0.0,
2725
+ 0.0,
2726
+ 0.0,
2727
+ 0.0,
2728
+ 0.0,
2729
+ 0.0
2730
+ ],
2731
+ "R" :
2732
+ [
2733
+ [
2734
+ 0.77913391590118408,
2735
+ -0.015277845785021782,
2736
+ 0.62667125463485718
2737
+ ],
2738
+ [
2739
+ 0.017884960398077965,
2740
+ 0.99983775615692139,
2741
+ 0.0021392218768596649
2742
+ ],
2743
+ [
2744
+ -0.62660235166549683,
2745
+ 0.0095412544906139374,
2746
+ 0.77928072214126587
2747
+ ]
2748
+ ],
2749
+ "c" :
2750
+ [
2751
+ 1.6819428205490112,
2752
+ -1.4865034818649292,
2753
+ -2.1011180877685547
2754
+ ],
2755
+ "cx" : 1024.0,
2756
+ "cy" : 750.0,
2757
+ "depth_scale" : 1.0,
2758
+ "fov" : 0.0,
2759
+ "fx" : 5215.01416015625,
2760
+ "fy" : 5215.01416015625,
2761
+ "h" : 1500,
2762
+ "info" : "042052820027-color",
2763
+ "lens_flip" : "no",
2764
+ "lens_type" : "RECTILINEAR",
2765
+ "w" : 2048
2766
+ }
2767
+ ],
2768
+ "ground_plane" :
2769
+ [
2770
+ 0.0,
2771
+ 0.0,
2772
+ 0.0,
2773
+ 0.0
2774
+ ],
2775
+ "image_format" : "RGB",
2776
+ "info" : "042052820027",
2777
+ "rig_position" :
2778
+ [
2779
+ 0.0,
2780
+ 0.0,
2781
+ 0.0
2782
+ ],
2783
+ "rig_rotation" :
2784
+ [
2785
+ [
2786
+ 1.0,
2787
+ 0.0,
2788
+ 0.0
2789
+ ],
2790
+ [
2791
+ 0.0,
2792
+ 1.0,
2793
+ 0.0
2794
+ ],
2795
+ [
2796
+ 0.0,
2797
+ 0.0,
2798
+ 1.0
2799
+ ]
2800
+ ]
2801
+ },
2802
+ {
2803
+ "camera_model" : "MindVision",
2804
+ "cameras" :
2805
+ [
2806
+ {
2807
+ "D" :
2808
+ [
2809
+ 0.0,
2810
+ 0.0,
2811
+ 0.0,
2812
+ 0.0,
2813
+ 0.0,
2814
+ 0.0,
2815
+ 0.0,
2816
+ 0.0,
2817
+ 0.0,
2818
+ 0.0,
2819
+ 0.0
2820
+ ],
2821
+ "R" :
2822
+ [
2823
+ [
2824
+ 0.72792786359786987,
2825
+ -0.0098063843324780464,
2826
+ 0.68558359146118164
2827
+ ],
2828
+ [
2829
+ 0.032681748270988464,
2830
+ 0.99925744533538818,
2831
+ -0.020407211035490036
2832
+ ],
2833
+ [
2834
+ -0.68487441539764404,
2835
+ 0.037261050194501877,
2836
+ 0.72770780324935913
2837
+ ]
2838
+ ],
2839
+ "c" :
2840
+ [
2841
+ 1.8307652473449707,
2842
+ -1.4816135168075562,
2843
+ -1.9038161039352417
2844
+ ],
2845
+ "cx" : 1024.0,
2846
+ "cy" : 750.0,
2847
+ "depth_scale" : 1.0,
2848
+ "fov" : 0.0,
2849
+ "fx" : 2419.163818359375,
2850
+ "fy" : 2419.163818359375,
2851
+ "h" : 1500,
2852
+ "info" : "042032820175-color",
2853
+ "lens_flip" : "no",
2854
+ "lens_type" : "RECTILINEAR",
2855
+ "w" : 2048
2856
+ }
2857
+ ],
2858
+ "ground_plane" :
2859
+ [
2860
+ 0.0,
2861
+ 0.0,
2862
+ 0.0,
2863
+ 0.0
2864
+ ],
2865
+ "image_format" : "RGB",
2866
+ "info" : "042032820175",
2867
+ "rig_position" :
2868
+ [
2869
+ 0.0,
2870
+ 0.0,
2871
+ 0.0
2872
+ ],
2873
+ "rig_rotation" :
2874
+ [
2875
+ [
2876
+ 1.0,
2877
+ 0.0,
2878
+ 0.0
2879
+ ],
2880
+ [
2881
+ 0.0,
2882
+ 1.0,
2883
+ 0.0
2884
+ ],
2885
+ [
2886
+ 0.0,
2887
+ 0.0,
2888
+ 1.0
2889
+ ]
2890
+ ]
2891
+ }
2892
+ ]
2893
+ }
data/P1C1/capture.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "capture": "P1C1",
3
+ "subject": "P1",
4
+ "session": "C1",
5
+ "role": "train",
6
+ "n_cams": 32,
7
+ "n_rigs_in_calibration": 32,
8
+ "video": {
9
+ "width": 4096,
10
+ "height": 1500,
11
+ "n_frames": 1836,
12
+ "fps": 22.0,
13
+ "codec": "h264",
14
+ "pix_fmt": "yuv444p",
15
+ "layout": "side-by-side: LEFT half = RGB, RIGHT half = alpha matte",
16
+ "rgb_width": 2048
17
+ },
18
+ "video_bytes": 2101806372,
19
+ "frame_convention": {
20
+ "smplx_frame": "GT frame id, 1-based; stored in smplx.npz['frames']",
21
+ "video_frame": "smplx_frame - 1, 0-based index into camNN.mp4"
22
+ },
23
+ "camera_convention": {
24
+ "K": "[[fx,0,cx],[0,fy,cy],[0,0,1]] from rigs[i].cameras[0]",
25
+ "R_w2c": "R @ diag(1,-1,-1)",
26
+ "t_w2c": "-R @ c",
27
+ "note": "cameras.json world is Y-down; the world_flip puts the fit in the same Y-up world as the DEGAS GT"
28
+ },
29
+ "n_frames": 1836,
30
+ "gt_frame_range": [
31
+ 1,
32
+ 1836
33
+ ],
34
+ "smplx_kwargs": {
35
+ "model_type": "smplx",
36
+ "gender": "neutral",
37
+ "use_pca": false,
38
+ "num_betas": 300,
39
+ "num_expression_coeffs": 100,
40
+ "use_face_contour": true,
41
+ "flat_hand_mean": false,
42
+ "create_global_orient": false,
43
+ "create_body_pose": false,
44
+ "create_betas": false,
45
+ "create_left_hand_pose": false,
46
+ "create_right_hand_pose": false,
47
+ "create_jaw_pose": false,
48
+ "create_leye_pose": false,
49
+ "create_reye_pose": false,
50
+ "create_expression": false,
51
+ "create_transl": false
52
+ }
53
+ }
data/P1C1/preview.jpg ADDED

Git LFS Details

  • SHA256: 5846c3e6ba3efca7c4c1b01c1acbe0abf05ba93e6b50b3325a81b69baf46d655
  • Pointer size: 131 Bytes
  • Size of remote file: 330 kB
data/P1C1/smplx.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5974c67525495bdbdab0519cd38f22edc570f16c411f2c182c43ad2e3e01bfa
3
+ size 6829764
previews/P1C1_f00000100.jpg ADDED

Git LFS Details

  • SHA256: 5e79b0dc9e9f316b2d8a4cf2cbfa94d156e8e1bf98b8528ae8a9ce2f38ee0c92
  • Pointer size: 131 Bytes
  • Size of remote file: 253 kB
previews/P1C1_f00000200.jpg ADDED

Git LFS Details

  • SHA256: f0f45db45a96ce8277f3993a99fb17fc313c7e6118a5d31ea8596d8422723c43
  • Pointer size: 131 Bytes
  • Size of remote file: 238 kB
previews/P1C1_f00000300.jpg ADDED

Git LFS Details

  • SHA256: d75032ec33b14def2414bf6cb5e846386a27c82b8fb613ef8f6d39349fc28fa7
  • Pointer size: 131 Bytes
  • Size of remote file: 238 kB
previews/P1C1_f00000400.jpg ADDED

Git LFS Details

  • SHA256: 0dbbacc9eff61799f4289dc664dd7f414248f6f2e14f384cd63d4b410a5ec494
  • Pointer size: 131 Bytes
  • Size of remote file: 248 kB
previews/P1C1_f00000500.jpg ADDED

Git LFS Details

  • SHA256: cedfe44be93850a1f4673d591b207bf418854c140045e71c361d73fd2f05cb32
  • Pointer size: 131 Bytes
  • Size of remote file: 239 kB
previews/P1C1_f00000600.jpg ADDED

Git LFS Details

  • SHA256: f4f73daf4b2377b29ce1497bdfb3e8340cae1dfe3ed62b0ee45b9337f0e6aa89
  • Pointer size: 131 Bytes
  • Size of remote file: 226 kB
previews/P1C1_f00000700.jpg ADDED

Git LFS Details

  • SHA256: 630a4789897f14f52e7249b62a7f83376fe2a2766ee34146dc64b382d0b10561
  • Pointer size: 131 Bytes
  • Size of remote file: 233 kB
previews/P1C1_f00000800.jpg ADDED

Git LFS Details

  • SHA256: 10395bb97a2d3ece3c2a5d69db17e6539b23596e604c014cee0c6a05ad257f1c
  • Pointer size: 131 Bytes
  • Size of remote file: 235 kB
previews/P1C1_f00000900.jpg ADDED

Git LFS Details

  • SHA256: ea5aeef40221f90676adc42a218a55d82dbb0979a00008083a4af67b6264e841
  • Pointer size: 131 Bytes
  • Size of remote file: 234 kB
previews/P1C1_f00001000.jpg ADDED

Git LFS Details

  • SHA256: e8ba5eefcfb5b70831b65d58cfdf9e2b766f5fa0113b4e2e472de44bd128be3e
  • Pointer size: 131 Bytes
  • Size of remote file: 224 kB
previews/P1C1_f00001100.jpg ADDED

Git LFS Details

  • SHA256: 0ddd53df86511cec5104075e7b52fa75020c36f0ce6884b5e0f09c2abcd6b547
  • Pointer size: 131 Bytes
  • Size of remote file: 238 kB
previews/P1C1_f00001200.jpg ADDED

Git LFS Details

  • SHA256: e2712f2f32a5001186a93ba1f3985cc9edeb838a2d5f0bae312a17229f61f1dc
  • Pointer size: 131 Bytes
  • Size of remote file: 252 kB
previews/P1C1_f00001300.jpg ADDED

Git LFS Details

  • SHA256: 65188853740483bb81963b505ab7fe5d728b621601feb0f5d579991350400f20
  • Pointer size: 131 Bytes
  • Size of remote file: 215 kB
previews/P1C1_f00001400.jpg ADDED

Git LFS Details

  • SHA256: 245f50c477bd9bc6113ea034ee1aff38e8bef39dd674418092217cb9accf25a6
  • Pointer size: 131 Bytes
  • Size of remote file: 232 kB
previews/P1C1_f00001500.jpg ADDED

Git LFS Details

  • SHA256: 24175ac7307ab9b60690d33f7bf16fe9115fe5f6e4834c19c9a151d5ca13738d
  • Pointer size: 131 Bytes
  • Size of remote file: 227 kB
previews/P1C1_f00001600.jpg ADDED

Git LFS Details

  • SHA256: f47f5134a35a16cea3c8ae2657de66bbf4cdc6cd24a665179d3bb8a7c783672d
  • Pointer size: 131 Bytes
  • Size of remote file: 226 kB
previews/P1C1_f00001700.jpg ADDED

Git LFS Details

  • SHA256: da73a7bc3035bbfde9eddc3bb95cd7b6020a2996d238ec9cc0ac2b1198a8dbe9
  • Pointer size: 131 Bytes
  • Size of remote file: 235 kB
previews/P1C1_f00001800.jpg ADDED

Git LFS Details

  • SHA256: 41ad04715233b479f47949aa55907abd39cf325b82e84d0798e883615d44d95a
  • Pointer size: 131 Bytes
  • Size of remote file: 216 kB
previews/metadata.jsonl ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"file_name": "P1C1_f00000100.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 100, "video_frame": 99, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 12, "stages": "W", "body_height_m": 1.6515, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
2
+ {"file_name": "P1C1_f00000200.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 200, "video_frame": 199, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 11, "stages": "W", "body_height_m": 1.7022, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
3
+ {"file_name": "P1C1_f00000300.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 300, "video_frame": 299, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 10, "stages": "W", "body_height_m": 1.9227, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
4
+ {"file_name": "P1C1_f00000400.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 400, "video_frame": 399, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 11, "stages": "W", "body_height_m": 1.6455, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
5
+ {"file_name": "P1C1_f00000500.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 500, "video_frame": 499, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 11, "stages": "W", "body_height_m": 1.6573, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
6
+ {"file_name": "P1C1_f00000600.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 600, "video_frame": 599, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 10, "stages": "W", "body_height_m": 1.6455, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
7
+ {"file_name": "P1C1_f00000700.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 700, "video_frame": 699, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 10, "stages": "W", "body_height_m": 1.6465, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
8
+ {"file_name": "P1C1_f00000800.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 800, "video_frame": 799, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 10, "stages": "W", "body_height_m": 1.643, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
9
+ {"file_name": "P1C1_f00000900.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 900, "video_frame": 899, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 11, "stages": "W", "body_height_m": 1.6407, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
10
+ {"file_name": "P1C1_f00001000.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 1000, "video_frame": 999, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 9, "stages": "W", "body_height_m": 1.6732, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
11
+ {"file_name": "P1C1_f00001100.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 1100, "video_frame": 1099, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 10, "stages": "W", "body_height_m": 1.6627, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
12
+ {"file_name": "P1C1_f00001200.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 1200, "video_frame": 1199, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 11, "stages": "W", "body_height_m": 1.6596, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
13
+ {"file_name": "P1C1_f00001300.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 1300, "video_frame": 1299, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 9, "stages": "W", "body_height_m": 1.4965, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
14
+ {"file_name": "P1C1_f00001400.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 1400, "video_frame": 1399, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 11, "stages": "W", "body_height_m": 1.6594, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
15
+ {"file_name": "P1C1_f00001500.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 1500, "video_frame": 1499, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 9, "stages": "W", "body_height_m": 1.6556, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
16
+ {"file_name": "P1C1_f00001600.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 1600, "video_frame": 1599, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 9, "stages": "W", "body_height_m": 1.6423, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
17
+ {"file_name": "P1C1_f00001700.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 1700, "video_frame": 1699, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 10, "stages": "W", "body_height_m": 1.6608, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
18
+ {"file_name": "P1C1_f00001800.jpg", "capture": "P1C1", "subject": "P1", "session": "C1", "role": "train", "frame": 1800, "video_frame": 1799, "n_cams": 32, "n_frames": 1836, "n_views_fit": 32, "n_face_views": 9, "stages": "W", "body_height_m": 1.6651, "videos": "data/P1C1/videos", "smplx": "data/P1C1/smplx.npz", "cameras": "data/P1C1/cameras.json"}
scripts/build_metadata.py ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Rebuild `previews/metadata.jsonl` -- the table the HF dataset viewer renders.
3
+
4
+ One row per (capture x sampled frame). The `file_name` column is resolved by the
5
+ `imagefolder` builder into an `image` feature, so Data Studio shows a browsable
6
+ thumbnail of every QC contact sheet next to its metadata.
7
+
8
+ Columns
9
+ file_name -> image 32-view QC contact sheet [raw | omni-600 | SMPL-X]
10
+ capture PxCy
11
+ subject / session Px / Cy
12
+ role train (C1) / test (C2) / cross_reenact_driving (P5,P6 C2)
13
+ frame GT frame id (1-based)
14
+ video_frame frame - 1, 0-based index into videos/camNN.mp4
15
+ n_cams cameras in the capture
16
+ n_frames fitted frames in the capture
17
+ n_views_fit views actually used by the fit at this frame
18
+ n_face_views views with an accepted MediaPipe face at this frame
19
+ stages fit schedule at this frame (A+B+C+F cold / W warm)
20
+ body_height_m SMPL-X joint-span height, a cheap sanity number
21
+ videos / smplx / cameras repo-relative paths to the full-res assets
22
+
23
+ Run after every capture is staged; it rescans the whole staging tree.
24
+
25
+ Usage:
26
+ python build_metadata.py --staging /mnt/sdb/degas_project/DREAMS-AVATAR-hf/staging
27
+ """
28
+ from __future__ import annotations
29
+
30
+ import argparse
31
+ import json
32
+ import sys
33
+ from pathlib import Path
34
+
35
+ import numpy as np
36
+
37
+
38
+ def build(staging: Path) -> dict:
39
+ prev_dir = staging / "previews"
40
+ data_dir = staging / "data"
41
+ captures = sorted(p.name for p in data_dir.iterdir() if p.is_dir()) if data_dir.is_dir() else []
42
+ if not captures:
43
+ raise SystemExit(f"no captures under {data_dir}")
44
+
45
+ rows = []
46
+ for cap in captures:
47
+ d = data_dir / cap
48
+ card = json.loads((d / "capture.json").read_text())
49
+ z = np.load(d / "smplx.npz", allow_pickle=False)
50
+ frames = z["frames"].astype(int)
51
+ idx_of = {int(f): i for i, f in enumerate(frames)}
52
+ joints = z["joints"]
53
+ n_views = z["n_views"]
54
+ n_face = z["n_face_views"]
55
+ stages = z["stages"]
56
+
57
+ imgs = sorted(prev_dir.glob(f"{cap}_f*.jpg"))
58
+ for img in imgs:
59
+ fr = int(img.stem.split("_f")[1])
60
+ i = idx_of.get(fr)
61
+ if i is None:
62
+ print(f"[metadata] WARN {img.name}: frame {fr} not in smplx.npz", file=sys.stderr)
63
+ continue
64
+ j = joints[i]
65
+ rows.append({
66
+ "file_name": img.name,
67
+ "capture": cap,
68
+ "subject": card["subject"],
69
+ "session": card["session"],
70
+ "role": card.get("role", ""),
71
+ "frame": fr,
72
+ "video_frame": fr - 1,
73
+ "n_cams": int(card["n_cams"]),
74
+ "n_frames": int(card.get("n_frames", len(frames))),
75
+ "n_views_fit": int(n_views[i]),
76
+ "n_face_views": int(n_face[i]),
77
+ "stages": str(stages[i]),
78
+ "body_height_m": round(float(j[:, 1].max() - j[:, 1].min()), 4),
79
+ "videos": f"data/{cap}/videos",
80
+ "smplx": f"data/{cap}/smplx.npz",
81
+ "cameras": f"data/{cap}/cameras.json",
82
+ })
83
+
84
+ rows.sort(key=lambda r: (r["capture"], r["frame"]))
85
+ prev_dir.mkdir(parents=True, exist_ok=True)
86
+ out = prev_dir / "metadata.jsonl"
87
+ with out.open("w") as fh:
88
+ for r in rows:
89
+ fh.write(json.dumps(r) + "\n")
90
+ print(f"[metadata] {out}: {len(rows)} rows over {len(captures)} captures "
91
+ f"({', '.join(captures)})", flush=True)
92
+ return {"rows": len(rows), "captures": captures, "path": str(out)}
93
+
94
+
95
+ def main() -> int:
96
+ ap = argparse.ArgumentParser(description=__doc__,
97
+ formatter_class=argparse.RawDescriptionHelpFormatter)
98
+ ap.add_argument("--staging", type=Path, required=True)
99
+ a = ap.parse_args()
100
+ print(json.dumps(build(a.staging)))
101
+ return 0
102
+
103
+
104
+ if __name__ == "__main__":
105
+ sys.exit(main())
scripts/consolidate_smplx.py ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Consolidate per-frame Holistic-Multiview-Tracker SMPL-X npz -> ONE per-capture smplx.npz.
3
+
4
+ Source (READ ONLY, produced by the tracker):
5
+ <DEGAS_DATASET>/<PxCy>/hmt_seq_out/smplx/smplx_<gt_frame:08d>.npz
6
+
7
+ Each per-frame file holds unbatched arrays:
8
+ global_orient(3) body_pose(63) jaw_pose(3) leye_pose(3) reye_pose(3)
9
+ left_hand_pose(45) right_hand_pose(45) betas(300) expression(100) transl(3)
10
+ vertices(10475,3) joints(144,3)
11
+ view_ids(V,) gt_frame() n_face_views() stages()
12
+
13
+ Output `smplx.npz` stacks every parameter over time, LOSSLESSLY (identical dtypes,
14
+ no downcast, no re-quantisation) and adds an explicit frame index:
15
+
16
+ frames int32 (T,) GT frame id, == the number in the source filename
17
+ video_frames int32 (T,) frames - 1 == 0-based frame index inside videos/camNN.mp4
18
+ global_orient float32 (T,3)
19
+ body_pose float32 (T,63)
20
+ jaw_pose float32 (T,3)
21
+ leye_pose float32 (T,3)
22
+ reye_pose float32 (T,3)
23
+ left_hand_pose float32 (T,45) axis-angle, use_pca=False
24
+ right_hand_pose float32 (T,45) axis-angle, use_pca=False
25
+ betas float32 (T,300)
26
+ expression float32 (T,100)
27
+ transl float32 (T,3)
28
+ joints float32 (T,144,3) SMPL-X joints in world frame (derived, shipped for convenience)
29
+ view_ids int16 (T,Vmax) camera indices actually used at that frame, -1 padded
30
+ n_views int16 (T,)
31
+ n_face_views int16 (T,)
32
+ stages <U.. (T,) fit schedule for that frame ("A+B+C+F" cold / "W" warm)
33
+ smplx_kwargs <U.. () JSON: exact smplx.SMPLX(...) kwargs to rebuild the model
34
+ meta <U.. () JSON: capture, n_frames, source, tracker commit, ...
35
+
36
+ `vertices` (10475,3 per frame, ~230 MB per capture) is DERIVED and omitted by default;
37
+ pass --with-vertices to also emit <out_dir>/smplx_vertices.npz.
38
+
39
+ Usage:
40
+ python consolidate_smplx.py P1C1 --out /path/to/staging/data/P1C1/smplx.npz
41
+ """
42
+ from __future__ import annotations
43
+
44
+ import argparse
45
+ import json
46
+ import sys
47
+ from pathlib import Path
48
+
49
+ import numpy as np
50
+
51
+ DATASET_ROOT = Path("/mnt/sdb/degas_project/DEGAS_DATASET")
52
+
53
+ # Params that are stacked over time. Order is the SMPL-X forward() kwarg order.
54
+ PARAM_KEYS = [
55
+ "global_orient", "body_pose", "jaw_pose", "leye_pose", "reye_pose",
56
+ "left_hand_pose", "right_hand_pose", "betas", "expression", "transl",
57
+ ]
58
+ EXTRA_KEYS = ["joints"]
59
+
60
+ # Locked by the tracker (configs/degas.yaml + hmt/smplx_builder.py LOCKED_KWARGS).
61
+ SMPLX_KWARGS = dict(
62
+ model_type="smplx",
63
+ gender="neutral",
64
+ use_pca=False,
65
+ num_betas=300,
66
+ num_expression_coeffs=100,
67
+ use_face_contour=True,
68
+ flat_hand_mean=False,
69
+ create_global_orient=False,
70
+ create_body_pose=False,
71
+ create_betas=False,
72
+ create_left_hand_pose=False,
73
+ create_right_hand_pose=False,
74
+ create_jaw_pose=False,
75
+ create_leye_pose=False,
76
+ create_reye_pose=False,
77
+ create_expression=False,
78
+ create_transl=False,
79
+ )
80
+
81
+
82
+ def consolidate(capture: str, dataset_root: Path, out_path: Path,
83
+ with_vertices: bool = False, verify: bool = True) -> dict:
84
+ seq = dataset_root / capture / "hmt_seq_out" / "smplx"
85
+ files = sorted(seq.glob("smplx_*.npz"))
86
+ if not files:
87
+ raise SystemExit(f"no per-frame npz under {seq}")
88
+
89
+ frames = np.array([int(f.stem.split("_")[1]) for f in files], np.int32)
90
+ T = len(files)
91
+ print(f"[consolidate] {capture}: {T} frames, GT {frames[0]}..{frames[-1]}", flush=True)
92
+
93
+ acc: dict[str, list] = {k: [] for k in PARAM_KEYS + EXTRA_KEYS}
94
+ view_ids, n_face, stages, verts = [], [], [], []
95
+
96
+ for i, f in enumerate(files):
97
+ z = np.load(f, allow_pickle=False)
98
+ for k in PARAM_KEYS + EXTRA_KEYS:
99
+ acc[k].append(z[k])
100
+ view_ids.append(np.asarray(z["view_ids"], np.int16))
101
+ n_face.append(int(z["n_face_views"]))
102
+ stages.append(str(z["stages"]))
103
+ if with_vertices:
104
+ verts.append(z["vertices"])
105
+ assert int(z["gt_frame"]) == int(frames[i]), f"{f}: gt_frame != filename"
106
+ if (i + 1) % 500 == 0:
107
+ print(f" .. {i + 1}/{T}", flush=True)
108
+
109
+ vmax = max(len(v) for v in view_ids)
110
+ vids = np.full((T, vmax), -1, np.int16)
111
+ for i, v in enumerate(view_ids):
112
+ vids[i, :len(v)] = v
113
+
114
+ out = {k: np.stack(acc[k]) for k in PARAM_KEYS + EXTRA_KEYS}
115
+ out["frames"] = frames
116
+ out["video_frames"] = (frames - 1).astype(np.int32)
117
+ out["view_ids"] = vids
118
+ out["n_views"] = np.array([len(v) for v in view_ids], np.int16)
119
+ out["n_face_views"] = np.asarray(n_face, np.int16)
120
+ out["stages"] = np.asarray(stages)
121
+ out["smplx_kwargs"] = np.asarray(json.dumps(SMPLX_KWARGS))
122
+ out["meta"] = np.asarray(json.dumps({
123
+ "capture": capture,
124
+ "n_frames": T,
125
+ "gt_frame_first": int(frames[0]),
126
+ "gt_frame_last": int(frames[-1]),
127
+ "video_frame_offset": -1,
128
+ "note": "video frame index = GT frame - 1 (GT frame 0 has no video frame)",
129
+ "source": "Holistic-Multiview-Tracker run_degas_sequence.py (branch reusable-v0.2.0)",
130
+ "world_frame": "Y-up; cameras.json world is Y-down -> world_flip=diag(1,-1,-1)",
131
+ }))
132
+
133
+ out_path.parent.mkdir(parents=True, exist_ok=True)
134
+ np.savez_compressed(out_path, **out)
135
+ mb = out_path.stat().st_size / 2**20
136
+ print(f"[consolidate] wrote {out_path} ({mb:.1f} MB)", flush=True)
137
+
138
+ if with_vertices:
139
+ vp = out_path.with_name("smplx_vertices.npz")
140
+ np.savez_compressed(vp, frames=frames, vertices=np.stack(verts))
141
+ print(f"[consolidate] wrote {vp} ({vp.stat().st_size / 2**20:.1f} MB)", flush=True)
142
+
143
+ if verify:
144
+ _verify(out_path, files, frames)
145
+
146
+ return {"capture": capture, "n_frames": T, "bytes": out_path.stat().st_size,
147
+ "gt_first": int(frames[0]), "gt_last": int(frames[-1]),
148
+ "n_views_max": int(vmax)}
149
+
150
+
151
+ def _verify(out_path: Path, files: list[Path], frames: np.ndarray) -> None:
152
+ """Bit-exact round-trip check on a random sample of frames."""
153
+ z = np.load(out_path, allow_pickle=False)
154
+ rng = np.random.default_rng(0)
155
+ idx = rng.choice(len(files), size=min(25, len(files)), replace=False)
156
+ for i in idx:
157
+ src = np.load(files[int(i)], allow_pickle=False)
158
+ for k in PARAM_KEYS + EXTRA_KEYS:
159
+ a, b = src[k], z[k][int(i)]
160
+ if a.dtype != b.dtype or not np.array_equal(a, b):
161
+ raise SystemExit(f"LOSSY: frame {frames[i]} key {k} mismatch")
162
+ print(f"[consolidate] verify OK: {len(idx)} random frames bit-identical to source", flush=True)
163
+
164
+
165
+ def main() -> int:
166
+ ap = argparse.ArgumentParser(description=__doc__,
167
+ formatter_class=argparse.RawDescriptionHelpFormatter)
168
+ ap.add_argument("capture", help="e.g. P1C1")
169
+ ap.add_argument("--dataset-root", type=Path, default=DATASET_ROOT)
170
+ ap.add_argument("--out", type=Path, required=True, help="output smplx.npz path")
171
+ ap.add_argument("--with-vertices", action="store_true",
172
+ help="also write smplx_vertices.npz (~200 MB/capture)")
173
+ ap.add_argument("--no-verify", action="store_true")
174
+ a = ap.parse_args()
175
+ info = consolidate(a.capture, a.dataset_root, a.out, a.with_vertices, not a.no_verify)
176
+ print(json.dumps(info))
177
+ return 0
178
+
179
+
180
+ if __name__ == "__main__":
181
+ sys.exit(main())
scripts/hf_upload.py ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Push the staging tree to the HuggingFace dataset repo.
3
+
4
+ Two upload paths:
5
+ * SMALL files (README, previews/, assets/, scripts/, cameras.json, smplx.npz,
6
+ capture.json, preview.jpg) -> `upload_folder`, one atomic commit.
7
+ * BIG files (data/<PxCy>/videos/*.mp4, ~2 GiB per capture) -> `upload_large_folder`,
8
+ which is chunked, multi-worker and RESUMABLE: it keeps per-file state under
9
+ <staging>/.cache/huggingface, so re-running after a network drop skips what is done.
10
+
11
+ Usage:
12
+ python hf_upload.py --staging .../staging --capture P1C1 # meta + that capture
13
+ python hf_upload.py --staging .../staging --meta-only # README/previews/scripts
14
+ python hf_upload.py --staging .../staging --capture P1C1 --videos-only
15
+ """
16
+ from __future__ import annotations
17
+
18
+ import argparse
19
+ import json
20
+ import sys
21
+ from pathlib import Path
22
+
23
+ from huggingface_hub import HfApi
24
+
25
+ REPO_ID = "initialneil/DREAMS-AVATAR"
26
+
27
+ META_PATTERNS = [
28
+ "README.md", "LICENSE",
29
+ "previews/*.jsonl", "previews/*.jpg", "assets/**/*.jpg",
30
+ "scripts/*.py", "scripts/*.sh",
31
+ ]
32
+ CAPTURE_SMALL = ["data/{cap}/cameras.json", "data/{cap}/smplx.npz",
33
+ "data/{cap}/capture.json", "data/{cap}/preview.jpg"]
34
+ CAPTURE_BIG = ["data/{cap}/videos/*.mp4"]
35
+
36
+
37
+ def ensure_repo(api: HfApi, repo_id: str, private: bool) -> str:
38
+ url = api.create_repo(repo_id=repo_id, repo_type="dataset", private=private,
39
+ exist_ok=True)
40
+ info = api.repo_info(repo_id=repo_id, repo_type="dataset")
41
+ print(f"[repo] {url} private={info.private}", flush=True)
42
+ return str(url)
43
+
44
+
45
+ def main() -> int:
46
+ ap = argparse.ArgumentParser(description=__doc__,
47
+ formatter_class=argparse.RawDescriptionHelpFormatter)
48
+ ap.add_argument("--staging", type=Path, required=True)
49
+ ap.add_argument("--repo-id", default=REPO_ID)
50
+ ap.add_argument("--capture", default=None)
51
+ ap.add_argument("--meta-only", action="store_true")
52
+ ap.add_argument("--videos-only", action="store_true")
53
+ ap.add_argument("--private", action="store_true", help="create as private (default PUBLIC)")
54
+ ap.add_argument("--workers", type=int, default=4)
55
+ a = ap.parse_args()
56
+
57
+ api = HfApi()
58
+ who = api.whoami()["name"]
59
+ print(f"[hf] logged in as {who}", flush=True)
60
+ ensure_repo(api, a.repo_id, a.private)
61
+
62
+ if not a.videos_only:
63
+ pats = list(META_PATTERNS)
64
+ if a.capture:
65
+ pats += [p.format(cap=a.capture) for p in CAPTURE_SMALL]
66
+ msg = (f"Add {a.capture} metadata + SMPL-X + previews" if a.capture
67
+ else "Update dataset card / previews / scripts")
68
+ print(f"[upload] small files: {pats}", flush=True)
69
+ ci = api.upload_folder(repo_id=a.repo_id, repo_type="dataset",
70
+ folder_path=str(a.staging), allow_patterns=pats,
71
+ commit_message=msg)
72
+ print(f"[upload] commit {getattr(ci, 'oid', ci)}", flush=True)
73
+
74
+ if a.capture and not a.meta_only:
75
+ pats = [p.format(cap=a.capture) for p in CAPTURE_BIG]
76
+ print(f"[upload] LARGE (resumable): {pats}", flush=True)
77
+ api.upload_large_folder(repo_id=a.repo_id, repo_type="dataset",
78
+ folder_path=str(a.staging), allow_patterns=pats,
79
+ num_workers=a.workers, print_report=True,
80
+ print_report_every=30)
81
+ print("[upload] large folder done", flush=True)
82
+
83
+ files = api.list_repo_files(repo_id=a.repo_id, repo_type="dataset")
84
+ print(json.dumps({"repo": f"https://huggingface.co/datasets/{a.repo_id}",
85
+ "n_files": len(files)}))
86
+ return 0
87
+
88
+
89
+ if __name__ == "__main__":
90
+ sys.exit(main())
scripts/load_capture.py ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Minimal reader for one DREAMS-AVATAR capture: videos + SMPL-X + cameras.
3
+
4
+ Zero dependencies beyond numpy + opencv-python. Nothing here needs the SMPL-X model
5
+ file -- that is only required if you want vertices (see `smplx_forward_kwargs`).
6
+
7
+ from load_capture import Capture
8
+
9
+ cap = Capture("data/P1C1")
10
+ print(cap) # P1C1: 32 cams, 1836 frames, 2048x1500
11
+
12
+ # --- cameras -------------------------------------------------------------
13
+ cam = cap.cameras["cam03"]
14
+ uv = cam.project(cap.joints(frame=1400)) # (144,2) pixel coords in the RGB half
15
+
16
+ # --- images --------------------------------------------------------------
17
+ rgb, alpha = cap.read_frame("cam03", frame=1400) # (1500,2048,3) uint8, (1500,2048) uint8
18
+ for frame, rgb, alpha in cap.iter_frames("cam03", start=1400, end=1410):
19
+ ...
20
+
21
+ # --- SMPL-X --------------------------------------------------------------
22
+ p = cap.smplx_params(frame=1400) # dict of (1,D) float32 torch-ready arrays
23
+ kw = cap.smplx_forward_kwargs # exact smplx.SMPLX(**kw) constructor args
24
+
25
+ Frame convention
26
+ `frame` is ALWAYS the GT frame id stored in smplx.npz["frames"] (1-based).
27
+ The matching video frame index is `frame - 1` (GT frame 0 has no video frame).
28
+ This module does the -1 for you; never pass a raw video index.
29
+
30
+ Video layout
31
+ Each camNN.mp4 is 4096x1500: LEFT half = matted RGB, RIGHT half = the alpha matte
32
+ replicated over 3 channels. The calibration (fx, fy, cx, cy, w=2048, h=1500) refers
33
+ to the LEFT half.
34
+
35
+ Camera convention
36
+ K = [[fx, 0, cx], [0, fy, cy], [0, 0, 1]] from cameras.json rigs[i].cameras[0]
37
+ R_w2c = R @ diag(1, -1, -1) (world_flip: cameras.json is Y-down)
38
+ t_w2c = -R @ c (c = camera centre, unflipped world)
39
+ x_cam = R_w2c @ x_world + t_w2c ; uv = (K @ x_cam)[:2] / x_cam[2]
40
+ """
41
+ from __future__ import annotations
42
+
43
+ import json
44
+ from dataclasses import dataclass
45
+ from pathlib import Path
46
+ from typing import Iterator
47
+
48
+ import numpy as np
49
+
50
+ WORLD_FLIP = np.diag([1.0, -1.0, -1.0]) # cameras.json world (Y-down) -> SMPL-X world (Y-up)
51
+
52
+ PARAM_KEYS = ("global_orient", "body_pose", "jaw_pose", "leye_pose", "reye_pose",
53
+ "left_hand_pose", "right_hand_pose", "betas", "expression", "transl")
54
+
55
+
56
+ @dataclass(frozen=True)
57
+ class PinholeCamera:
58
+ name: str
59
+ K: np.ndarray # (3,3)
60
+ R_w2c: np.ndarray # (3,3)
61
+ t_w2c: np.ndarray # (3,)
62
+ width: int
63
+ height: int
64
+
65
+ def project(self, xyz_world: np.ndarray) -> np.ndarray:
66
+ """(N,3) world points -> (N,2) pixels in the RGB half."""
67
+ x = np.asarray(xyz_world, np.float64).reshape(-1, 3) @ self.R_w2c.T + self.t_w2c
68
+ uvw = x @ self.K.T
69
+ return uvw[:, :2] / uvw[:, 2:3]
70
+
71
+ @property
72
+ def center(self) -> np.ndarray:
73
+ """Camera centre in the SMPL-X (Y-up) world."""
74
+ return -self.R_w2c.T @ self.t_w2c
75
+
76
+ @property
77
+ def extrinsic(self) -> np.ndarray:
78
+ """(3,4) world-to-camera [R|t]."""
79
+ return np.concatenate([self.R_w2c, self.t_w2c[:, None]], 1)
80
+
81
+
82
+ def load_cameras(path: str | Path, world_flip: bool = True) -> dict[str, PinholeCamera]:
83
+ """cameras.json -> {"cam00": PinholeCamera, ...}; index i == videos/cam{i:02d}.mp4."""
84
+ d = json.loads(Path(path).read_text())
85
+ A = WORLD_FLIP if world_flip else np.eye(3)
86
+ cams: dict[str, PinholeCamera] = {}
87
+ for i, rig in enumerate(d["rigs"]):
88
+ c = rig["cameras"][0]
89
+ K = np.array([[c["fx"], 0.0, c["cx"]], [0.0, c["fy"], c["cy"]], [0.0, 0.0, 1.0]], np.float64)
90
+ R = np.asarray(c["R"], np.float64).reshape(3, 3)
91
+ C = np.asarray(c["c"], np.float64).reshape(3)
92
+ cams[f"cam{i:02d}"] = PinholeCamera(f"cam{i:02d}", K, R @ A, -R @ C,
93
+ int(c["w"]), int(c["h"]))
94
+ return cams
95
+
96
+
97
+ class Capture:
98
+ """One `data/<PxCy>/` directory."""
99
+
100
+ def __init__(self, root: str | Path):
101
+ self.root = Path(root)
102
+ self.name = self.root.name
103
+ self.cameras = load_cameras(self.root / "cameras.json")
104
+ self.video_dir = self.root / "videos"
105
+ z = np.load(self.root / "smplx.npz", allow_pickle=False)
106
+ self.smplx = {k: z[k] for k in z.files}
107
+ self.frames: np.ndarray = self.smplx["frames"].astype(int)
108
+ self._idx = {int(f): i for i, f in enumerate(self.frames)}
109
+ self.smplx_forward_kwargs: dict = json.loads(str(self.smplx["smplx_kwargs"]))
110
+ self.meta: dict = json.loads(str(self.smplx["meta"]))
111
+ self.card: dict = json.loads((self.root / "capture.json").read_text()) \
112
+ if (self.root / "capture.json").exists() else {}
113
+
114
+ # ---------------------------------------------------------------- indexing
115
+ def index(self, frame: int) -> int:
116
+ if frame not in self._idx:
117
+ raise KeyError(f"{self.name}: no SMPL-X fit for GT frame {frame} "
118
+ f"(have {self.frames[0]}..{self.frames[-1]})")
119
+ return self._idx[frame]
120
+
121
+ def video_frame(self, frame: int) -> int:
122
+ return frame - 1
123
+
124
+ # ---------------------------------------------------------------- SMPL-X
125
+ def smplx_params(self, frame: int, batched: bool = True) -> dict[str, np.ndarray]:
126
+ """The 10 SMPL-X forward() tensors at `frame`, shaped (1,D) if batched."""
127
+ i = self.index(frame)
128
+ out = {k: self.smplx[k][i] for k in PARAM_KEYS}
129
+ return {k: v[None] for k, v in out.items()} if batched else out
130
+
131
+ def joints(self, frame: int) -> np.ndarray:
132
+ return self.smplx["joints"][self.index(frame)]
133
+
134
+ # ---------------------------------------------------------------- video
135
+ def read_frame(self, cam: str, frame: int) -> tuple[np.ndarray, np.ndarray]:
136
+ """(rgb HxWx3 uint8, alpha HxW uint8) for one camera at one GT frame."""
137
+ import cv2
138
+ vf = self.video_frame(frame)
139
+ cap = cv2.VideoCapture(str(self.video_dir / f"{cam}.mp4"))
140
+ try:
141
+ cap.set(cv2.CAP_PROP_POS_FRAMES, vf)
142
+ ok, bgr = cap.read()
143
+ if not ok:
144
+ raise RuntimeError(f"{cam}: cannot read video frame {vf}")
145
+ finally:
146
+ cap.release()
147
+ return _split(bgr)
148
+
149
+ def iter_frames(self, cam: str, start: int | None = None, end: int | None = None
150
+ ) -> Iterator[tuple[int, np.ndarray, np.ndarray]]:
151
+ """Sequential decode (much faster than repeated seeks). Yields (frame, rgb, alpha)."""
152
+ import cv2
153
+ start = int(self.frames[0]) if start is None else start
154
+ end = int(self.frames[-1]) if end is None else end
155
+ cap = cv2.VideoCapture(str(self.video_dir / f"{cam}.mp4"))
156
+ try:
157
+ cap.set(cv2.CAP_PROP_POS_FRAMES, self.video_frame(start))
158
+ for frame in range(start, end + 1):
159
+ ok, bgr = cap.read()
160
+ if not ok:
161
+ break
162
+ rgb, alpha = _split(bgr)
163
+ yield frame, rgb, alpha
164
+ finally:
165
+ cap.release()
166
+
167
+ def __repr__(self) -> str:
168
+ c = next(iter(self.cameras.values()))
169
+ return (f"<Capture {self.name}: {len(self.cameras)} cams, {len(self.frames)} frames "
170
+ f"(GT {self.frames[0]}..{self.frames[-1]}), {c.width}x{c.height}>")
171
+
172
+
173
+ def _split(bgr: np.ndarray) -> tuple[np.ndarray, np.ndarray]:
174
+ w = bgr.shape[1] // 2
175
+ return bgr[:, :w, ::-1].copy(), bgr[:, w:, 0].copy()
176
+
177
+
178
+ if __name__ == "__main__":
179
+ import argparse
180
+
181
+ ap = argparse.ArgumentParser(description="Smoke-test a capture directory.")
182
+ ap.add_argument("capture_dir", help="e.g. data/P1C1")
183
+ ap.add_argument("--frame", type=int, default=None)
184
+ ap.add_argument("--cam", default="cam03")
185
+ a = ap.parse_args()
186
+
187
+ cap = Capture(a.capture_dir)
188
+ print(cap)
189
+ print("smplx kwargs:", cap.smplx_forward_kwargs)
190
+ f = a.frame if a.frame is not None else int(cap.frames[len(cap.frames) // 2])
191
+ p = cap.smplx_params(f)
192
+ print(f"frame {f}: " + ", ".join(f"{k}{tuple(v.shape)}" for k, v in p.items()))
193
+
194
+ rgb, alpha = cap.read_frame(a.cam, f)
195
+ print(f"{a.cam} rgb{rgb.shape} alpha{alpha.shape} fg={float((alpha > 12).mean()):.3f}")
196
+
197
+ uv = cap.cameras[a.cam].project(cap.joints(f))
198
+ inside = ((uv[:, 0] >= 0) & (uv[:, 0] < rgb.shape[1]) &
199
+ (uv[:, 1] >= 0) & (uv[:, 1] < rgb.shape[0])).mean()
200
+ print(f"reprojected joints inside image: {inside:.1%}")
scripts/make_previews.py ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Build the browsable QC previews for one capture.
3
+
4
+ Reads (READ ONLY) the tracker's QC output:
5
+ <DEGAS_DATASET>/<PxCy>/hmt_seq_out/grid_f<frame:08d>.jpg 32-view contact sheet
6
+ <DEGAS_DATASET>/<PxCy>/hmt_seq_out/panels/f<frame>_cam<NN>.jpg 3-panel per view
7
+
8
+ Writes into the HF staging tree:
9
+ previews/<PxCy>_f<frame:08d>.jpg downscaled contact sheet, one per sampled frame
10
+ (this is the `image` column of the data viewer)
11
+ data/<PxCy>/preview.jpg one representative contact sheet for the capture
12
+
13
+ Usage:
14
+ python make_previews.py P1C1 --staging /mnt/sdb/degas_project/DREAMS-AVATAR-hf/staging
15
+ """
16
+ from __future__ import annotations
17
+
18
+ import argparse
19
+ import json
20
+ import sys
21
+ from pathlib import Path
22
+
23
+ from PIL import Image
24
+
25
+ DATASET_ROOT = Path("/mnt/sdb/degas_project/DEGAS_DATASET")
26
+ Image.MAX_IMAGE_PIXELS = None
27
+
28
+
29
+ def _save_resized(src: Path, dst: Path, width: int, quality: int = 88) -> int:
30
+ im = Image.open(src).convert("RGB")
31
+ if im.width > width:
32
+ h = max(1, round(im.height * width / im.width))
33
+ im = im.resize((width, h), Image.LANCZOS)
34
+ dst.parent.mkdir(parents=True, exist_ok=True)
35
+ im.save(dst, "JPEG", quality=quality, optimize=True, progressive=True)
36
+ return dst.stat().st_size
37
+
38
+
39
+ def make_previews(capture: str, dataset_root: Path, staging: Path,
40
+ grid_width: int = 1920, hero_width: int = 2560) -> dict:
41
+ out_dir = dataset_root / capture / "hmt_seq_out"
42
+ grids = sorted(out_dir.glob("grid_f*.jpg"))
43
+ if not grids:
44
+ raise SystemExit(f"no grid_f*.jpg under {out_dir} -- has the tracker finished {capture}?")
45
+
46
+ prev_dir = staging / "previews"
47
+ rows = []
48
+ total = 0
49
+ for g in grids:
50
+ frame = int(g.stem.split("_f")[1])
51
+ dst = prev_dir / f"{capture}_f{frame:08d}.jpg"
52
+ total += _save_resized(g, dst, grid_width)
53
+ rows.append({"file_name": dst.name, "frame": frame})
54
+
55
+ # capture-level preview.jpg: the middle sampled frame
56
+ mid = grids[len(grids) // 2]
57
+ cap_prev = staging / "data" / capture / "preview.jpg"
58
+ _save_resized(mid, cap_prev, hero_width)
59
+
60
+ print(f"[previews] {capture}: {len(rows)} grids -> {prev_dir} "
61
+ f"({total / 2**20:.1f} MB), preview.jpg from {mid.name}", flush=True)
62
+ return {"capture": capture, "n_previews": len(rows), "rows": rows,
63
+ "preview_source": mid.name, "bytes": total}
64
+
65
+
66
+ def copy_showcase(capture: str, dataset_root: Path, staging: Path,
67
+ frame: int, cams: list[int], width: int = 2560) -> list[str]:
68
+ """Copy the hand-picked 3-panel views used as the README hero images."""
69
+ panels = dataset_root / capture / "hmt_seq_out" / "panels"
70
+ out = []
71
+ for c in cams:
72
+ src = panels / f"f{frame:08d}_cam{c:02d}.jpg"
73
+ if not src.exists():
74
+ print(f"[showcase] MISSING {src}", file=sys.stderr)
75
+ continue
76
+ dst = staging / "assets" / "showcase" / f"{capture}_f{frame:08d}_cam{c:02d}.jpg"
77
+ _save_resized(src, dst, width, quality=92)
78
+ out.append(str(dst.relative_to(staging)))
79
+ print(f"[showcase] {src.name} -> {dst.relative_to(staging)}", flush=True)
80
+ return out
81
+
82
+
83
+ def main() -> int:
84
+ ap = argparse.ArgumentParser(description=__doc__,
85
+ formatter_class=argparse.RawDescriptionHelpFormatter)
86
+ ap.add_argument("capture")
87
+ ap.add_argument("--dataset-root", type=Path, default=DATASET_ROOT)
88
+ ap.add_argument("--staging", type=Path, required=True)
89
+ ap.add_argument("--grid-width", type=int, default=1920)
90
+ ap.add_argument("--showcase-frame", type=int, default=None,
91
+ help="also copy panels/f<frame>_cam<NN>.jpg into assets/showcase/")
92
+ ap.add_argument("--showcase-cams", type=int, nargs="*", default=[3, 6, 12])
93
+ a = ap.parse_args()
94
+
95
+ info = make_previews(a.capture, a.dataset_root, a.staging, a.grid_width)
96
+ if a.showcase_frame is not None:
97
+ info["showcase"] = copy_showcase(a.capture, a.dataset_root, a.staging,
98
+ a.showcase_frame, a.showcase_cams)
99
+ print(json.dumps({k: v for k, v in info.items() if k != "rows"}))
100
+ return 0
101
+
102
+
103
+ if __name__ == "__main__":
104
+ sys.exit(main())
scripts/prepare_training.py ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Decode one DREAMS-AVATAR capture into an AvatarReX / DEGAS-style training layout.
3
+
4
+ NOTE ON SCOPE
5
+ This targets the DEGAS / DREAMS avatar *training input* format (flat
6
+ `calibration_full.json` + per-camera image folders + per-frame SMPL-X). The exact
7
+ key names and the image/mask split will be RECONCILED WITH THE TRAINING CODE in the
8
+ retrain phase -- treat the emitted tree as the proposed contract, not as frozen.
9
+ Everything here is derived from `data/<PxCy>/` alone, so re-emitting after a format
10
+ change is cheap (one ffmpeg pass per camera).
11
+
12
+ INPUT data/<PxCy>/{videos/cam*.mp4, smplx.npz, cameras.json}
13
+ OUTPUT <out>/
14
+ calibration_full.json {"cam00": {K, R, T, RT, imgSize, ...}, ...}
15
+ R,T are WORLD-TO-CAMERA in the SMPL-X Y-up world
16
+ cam_00/00000001.jpg ... RGB, <frame:08d>.jpg, frame == GT frame id
17
+ cam_00/mask/00000001.png ... alpha matte (only with --masks)
18
+ smplx/00000001.npz per-frame SMPL-X params, (1,D) batched
19
+ smplx_params.npz the same params stacked over the emitted range
20
+ meta.json what was emitted and with which conventions
21
+
22
+ WHY THIS SHAPE
23
+ * `calibration_full.json` is flat (`{cam_name: entry}`) which is what AvatarReX and
24
+ the DEGAS trainer both consume -- unlike the capture's nested `rigs[i].cameras[0]`.
25
+ * The world Y-flip is BAKED IN here (R = R_json @ diag(1,-1,-1)), so the trainer needs
26
+ no knowledge of the DEGAS calibration quirk: cameras and SMPL-X are in one frame.
27
+ * Images are written as <GT frame id>, the same number that indexes `smplx.npz`, so a
28
+ dataloader can pair them by filename with no offset table.
29
+
30
+ Examples
31
+ # every 4th frame, 8 front cameras, with masks
32
+ python prepare_training.py data/P1C1 --out /scratch/train/P1C1 \
33
+ --stride 4 --cams 0 3 6 9 12 15 18 21 --masks
34
+
35
+ # everything (32 cams x 1836 frames ~= 59k jpgs, ~40 GB) -- use --workers
36
+ python prepare_training.py data/P1C1 --out /scratch/train/P1C1 --workers 8
37
+ """
38
+ from __future__ import annotations
39
+
40
+ import argparse
41
+ import json
42
+ import shutil
43
+ import subprocess
44
+ import sys
45
+ from concurrent.futures import ProcessPoolExecutor, as_completed
46
+ from pathlib import Path
47
+
48
+ import numpy as np
49
+
50
+ sys.path.insert(0, str(Path(__file__).resolve().parent))
51
+ from load_capture import PARAM_KEYS, Capture, load_cameras # noqa: E402
52
+
53
+
54
+ # --------------------------------------------------------------------- calibration
55
+ def write_calibration(cap: Capture, out: Path) -> dict:
56
+ """Flat AvatarReX-style calibration_full.json (world-to-camera, Y-up world)."""
57
+ entries = {}
58
+ for name, c in cap.cameras.items():
59
+ entries[name] = {
60
+ "K": c.K.tolist(),
61
+ "R": c.R_w2c.tolist(),
62
+ "T": c.t_w2c.tolist(),
63
+ "RT": c.extrinsic.tolist(),
64
+ "imgSize": [c.width, c.height],
65
+ "width": c.width,
66
+ "height": c.height,
67
+ "D": [0.0] * 5, # DEGAS captures ship all-zero distortion
68
+ "center": c.center.tolist(),
69
+ }
70
+ p = out / "calibration_full.json"
71
+ p.write_text(json.dumps(entries, indent=1) + "\n")
72
+ print(f"[calib] {p} ({len(entries)} cameras, world-to-camera, Y-up world)", flush=True)
73
+ return entries
74
+
75
+
76
+ # --------------------------------------------------------------------- images
77
+ def _decode_cam(video: Path, out_dir: Path, frames: list[int], rgb_w: int,
78
+ quality: int, masks: bool, jpg_dir_fmt: str) -> tuple[str, int]:
79
+ """One ffmpeg pass per camera; select only the wanted video frames."""
80
+ cam = video.stem
81
+ img_dir = out_dir / jpg_dir_fmt.format(cam=cam)
82
+ img_dir.mkdir(parents=True, exist_ok=True)
83
+ vidx = [f - 1 for f in frames] # GT frame -> video frame
84
+ sel = "+".join(f"eq(n\\,{v})" for v in vidx)
85
+
86
+ # RGB = left half
87
+ tmp = img_dir / "_tmp"
88
+ tmp.mkdir(exist_ok=True)
89
+ subprocess.run(
90
+ ["ffmpeg", "-y", "-v", "error", "-threads", "1", "-i", str(video),
91
+ "-vf", f"select='{sel}',crop={rgb_w}:in_h:0:0", "-vsync", "0",
92
+ "-q:v", str(quality), str(tmp / "%08d.jpg")],
93
+ check=True)
94
+ got = sorted(tmp.glob("*.jpg"))
95
+ if len(got) != len(frames):
96
+ raise RuntimeError(f"{cam}: ffmpeg returned {len(got)} frames, wanted {len(frames)}")
97
+ for src, f in zip(got, frames):
98
+ src.rename(img_dir / f"{f:08d}.jpg")
99
+ shutil.rmtree(tmp)
100
+
101
+ if masks:
102
+ mdir = img_dir / "mask"
103
+ mdir.mkdir(exist_ok=True)
104
+ tmp.mkdir(exist_ok=True)
105
+ subprocess.run(
106
+ ["ffmpeg", "-y", "-v", "error", "-threads", "1", "-i", str(video),
107
+ "-vf", f"select='{sel}',crop={rgb_w}:in_h:{rgb_w}:0,format=gray", "-vsync", "0",
108
+ str(tmp / "%08d.png")],
109
+ check=True)
110
+ for src, f in zip(sorted(tmp.glob("*.png")), frames):
111
+ src.rename(mdir / f"{f:08d}.png")
112
+ shutil.rmtree(tmp)
113
+ return cam, len(frames)
114
+
115
+
116
+ # --------------------------------------------------------------------- smplx
117
+ def write_smplx(cap: Capture, out: Path, frames: list[int]) -> None:
118
+ sdir = out / "smplx"
119
+ sdir.mkdir(parents=True, exist_ok=True)
120
+ stack = {k: [] for k in PARAM_KEYS}
121
+ for f in frames:
122
+ p = cap.smplx_params(f, batched=True)
123
+ np.savez(sdir / f"{f:08d}.npz", **p)
124
+ for k in PARAM_KEYS:
125
+ stack[k].append(p[k][0])
126
+ np.savez_compressed(out / "smplx_params.npz",
127
+ frames=np.asarray(frames, np.int32),
128
+ **{k: np.stack(v) for k, v in stack.items()},
129
+ smplx_kwargs=np.asarray(json.dumps(cap.smplx_forward_kwargs)))
130
+ print(f"[smplx] {len(frames)} per-frame npz in {sdir} + smplx_params.npz", flush=True)
131
+
132
+
133
+ # --------------------------------------------------------------------- driver
134
+ def prepare(capture_dir: Path, out: Path, stride: int, start: int | None, end: int | None,
135
+ cams: list[int] | None, masks: bool, quality: int, workers: int,
136
+ jpg_dir_fmt: str, dry_run: bool) -> dict:
137
+ cap = Capture(capture_dir)
138
+ print(cap, flush=True)
139
+ out.mkdir(parents=True, exist_ok=True)
140
+
141
+ frames = [int(f) for f in cap.frames]
142
+ if start is not None:
143
+ frames = [f for f in frames if f >= start]
144
+ if end is not None:
145
+ frames = [f for f in frames if f <= end]
146
+ frames = frames[::stride]
147
+ names = ([f"cam{c:02d}" for c in cams] if cams else sorted(cap.cameras))
148
+ missing = [n for n in names if not (cap.video_dir / f"{n}.mp4").exists()]
149
+ if missing:
150
+ raise SystemExit(f"missing videos: {missing}")
151
+
152
+ rgb_w = next(iter(cap.cameras.values())).width
153
+ print(f"[plan] {len(names)} cams x {len(frames)} frames = {len(names) * len(frames)} images "
154
+ f"({rgb_w}x{next(iter(cap.cameras.values())).height}), masks={masks}", flush=True)
155
+ if dry_run:
156
+ return {"dry_run": True, "cams": names, "n_frames": len(frames)}
157
+
158
+ write_calibration(cap, out)
159
+ write_smplx(cap, out, frames)
160
+
161
+ jobs = [(cap.video_dir / f"{n}.mp4", out, frames, rgb_w, quality, masks, jpg_dir_fmt)
162
+ for n in names]
163
+ done = 0
164
+ if workers > 1:
165
+ with ProcessPoolExecutor(max_workers=workers) as ex:
166
+ futs = {ex.submit(_decode_cam, *j): j[0].stem for j in jobs}
167
+ for fu in as_completed(futs):
168
+ cam, n = fu.result()
169
+ done += n
170
+ print(f"[img] {cam}: {n} frames ({done}/{len(jobs) * len(frames)})", flush=True)
171
+ else:
172
+ for j in jobs:
173
+ cam, n = _decode_cam(*j)
174
+ done += n
175
+ print(f"[img] {cam}: {n} frames ({done}/{len(jobs) * len(frames)})", flush=True)
176
+
177
+ meta = {
178
+ "capture": cap.name,
179
+ "source": str(capture_dir),
180
+ "cams": names,
181
+ "frames": {"first": frames[0], "last": frames[-1], "stride": stride, "count": len(frames)},
182
+ "image_dir_format": jpg_dir_fmt,
183
+ "image_name_format": "{frame:08d}.jpg (frame == GT frame id == smplx.npz['frames'])",
184
+ "masks": masks,
185
+ "image_size": [rgb_w, next(iter(cap.cameras.values())).height],
186
+ "calibration": "calibration_full.json, flat {cam: {K,R,T,RT,imgSize}}, "
187
+ "world-to-camera, SMPL-X Y-up world (world_flip already applied)",
188
+ "smplx_kwargs": cap.smplx_forward_kwargs,
189
+ "video_frame_of": "GT frame - 1",
190
+ "status": "PROPOSED training contract -- reconcile with the trainer in the retrain phase",
191
+ }
192
+ (out / "meta.json").write_text(json.dumps(meta, indent=2) + "\n")
193
+ print(f"[done] {out}", flush=True)
194
+ return meta
195
+
196
+
197
+ def main() -> int:
198
+ ap = argparse.ArgumentParser(description=__doc__,
199
+ formatter_class=argparse.RawDescriptionHelpFormatter)
200
+ ap.add_argument("capture_dir", type=Path, help="data/<PxCy>")
201
+ ap.add_argument("--out", type=Path, required=True)
202
+ ap.add_argument("--stride", type=int, default=1)
203
+ ap.add_argument("--start", type=int, default=None, help="first GT frame")
204
+ ap.add_argument("--end", type=int, default=None, help="last GT frame")
205
+ ap.add_argument("--cams", type=int, nargs="*", default=None, help="camera indices, default all")
206
+ ap.add_argument("--masks", action="store_true", help="also write the alpha matte as PNG")
207
+ ap.add_argument("--quality", type=int, default=2, help="ffmpeg -q:v (2 = near-lossless jpg)")
208
+ ap.add_argument("--workers", type=int, default=4)
209
+ ap.add_argument("--dir-format", default="cam_{cam}",
210
+ help="per-camera image dir, e.g. 'cam_{cam}' -> cam_cam00/")
211
+ ap.add_argument("--dry-run", action="store_true")
212
+ a = ap.parse_args()
213
+ prepare(a.capture_dir, a.out, a.stride, a.start, a.end, a.cams, a.masks,
214
+ a.quality, a.workers, a.dir_format, a.dry_run)
215
+ return 0
216
+
217
+
218
+ if __name__ == "__main__":
219
+ sys.exit(main())
scripts/stage_capture.py ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Assemble one capture into the HuggingFace staging tree.
3
+
4
+ staging/data/<PxCy>/videos/cam00.mp4 .. cam31.mp4 hardlink to frameset-videos/NN.mp4
5
+ staging/data/<PxCy>/cameras.json copy of the capture calibration
6
+ staging/data/<PxCy>/smplx.npz written by consolidate_smplx.py
7
+ staging/data/<PxCy>/preview.jpg written by make_previews.py
8
+ staging/data/<PxCy>/capture.json machine-readable capture card
9
+
10
+ Videos are HARDLINKED (same filesystem, /mnt/sdb) so staging costs ~0 bytes and the
11
+ source capture dir is never modified. Falls back to symlink, then copy.
12
+
13
+ The source `frameset-videos/` must already be extracted (`7z x frameset-videos.7z`);
14
+ --extract will do it if the directory is missing.
15
+
16
+ Usage:
17
+ python stage_capture.py P1C1 --staging /mnt/sdb/degas_project/DREAMS-AVATAR-hf/staging
18
+ """
19
+ from __future__ import annotations
20
+
21
+ import argparse
22
+ import json
23
+ import os
24
+ import shutil
25
+ import subprocess
26
+ import sys
27
+ from pathlib import Path
28
+
29
+ DATASET_ROOT = Path("/mnt/sdb/degas_project/DEGAS_DATASET")
30
+
31
+ # The published set is 10 captures. C1 = train, C2 = test.
32
+ # P1..P4 ship both sessions; P5/P6 are CROSS-REENACT DRIVING ONLY, so only their C2 is
33
+ # published. P5C1 does not exist on disk at all; P6C1 exists but is deliberately excluded.
34
+ INCLUDED = ["P1C1", "P1C2", "P2C1", "P2C2", "P3C1", "P3C2",
35
+ "P4C1", "P4C2", "P5C2", "P6C2"]
36
+ EXCLUDED = {
37
+ "P5C1": "does not exist",
38
+ "P6C1": "excluded on purpose: P5/P6 contribute cross-reenact driving (C2) only",
39
+ }
40
+
41
+
42
+ def link_or_copy(src: Path, dst: Path) -> str:
43
+ if dst.exists() or dst.is_symlink():
44
+ dst.unlink()
45
+ dst.parent.mkdir(parents=True, exist_ok=True)
46
+ try:
47
+ os.link(src, dst)
48
+ return "hardlink"
49
+ except OSError:
50
+ try:
51
+ dst.symlink_to(src)
52
+ return "symlink"
53
+ except OSError:
54
+ shutil.copy2(src, dst)
55
+ return "copy"
56
+
57
+
58
+ def probe_video(path: Path) -> dict:
59
+ out = subprocess.run(
60
+ ["ffprobe", "-v", "error", "-select_streams", "v:0", "-show_entries",
61
+ "stream=width,height,nb_frames,r_frame_rate,codec_name,pix_fmt",
62
+ "-of", "json", str(path)],
63
+ capture_output=True, text=True, check=True).stdout
64
+ s = json.loads(out)["streams"][0]
65
+ num, den = s["r_frame_rate"].split("/")
66
+ return {"width": int(s["width"]), "height": int(s["height"]),
67
+ "n_frames": int(s["nb_frames"]), "fps": round(int(num) / int(den), 4),
68
+ "codec": s["codec_name"], "pix_fmt": s["pix_fmt"]}
69
+
70
+
71
+ def stage(capture: str, dataset_root: Path, staging: Path, extract: bool = False,
72
+ force: bool = False) -> dict:
73
+ if capture in EXCLUDED and not force:
74
+ raise SystemExit(
75
+ f"{capture} is NOT part of DREAMS-AVATAR: {EXCLUDED[capture]}.\n"
76
+ f"published captures: {', '.join(INCLUDED)} (--force to override)")
77
+ if capture not in INCLUDED and not force:
78
+ raise SystemExit(f"{capture} is not in the published set "
79
+ f"({', '.join(INCLUDED)}); use --force to add it anyway")
80
+ src = dataset_root / capture
81
+ if not src.is_dir():
82
+ raise SystemExit(f"no such capture: {src}")
83
+
84
+ vdir = src / "frameset-videos"
85
+ if not vdir.is_dir() or not list(vdir.glob("*.mp4")):
86
+ if not extract:
87
+ raise SystemExit(f"{vdir} empty; re-run with --extract (runs 7z x)")
88
+ arc = src / "frameset-videos.7z"
89
+ print(f"[stage] extracting {arc} ...", flush=True)
90
+ subprocess.run(["7z", "x", "-y", f"-o{src}", str(arc)], check=True,
91
+ stdout=subprocess.DEVNULL)
92
+
93
+ mp4s = sorted(vdir.glob("*.mp4"))
94
+ dst = staging / "data" / capture
95
+ mode = None
96
+ total = 0
97
+ for m in mp4s:
98
+ cam = int(m.stem)
99
+ mode = link_or_copy(m, dst / "videos" / f"cam{cam:02d}.mp4")
100
+ total += m.stat().st_size
101
+ print(f"[stage] {capture}: {len(mp4s)} videos via {mode} "
102
+ f"({total / 2**30:.2f} GiB)", flush=True)
103
+
104
+ cams_src = src / "cameras.json"
105
+ shutil.copy2(cams_src, dst / "cameras.json")
106
+ cams = json.loads(cams_src.read_text())
107
+ n_rigs = len(cams["rigs"])
108
+
109
+ v0 = probe_video(mp4s[0])
110
+ assert v0["width"] % 2 == 0
111
+ card = {
112
+ "capture": capture,
113
+ "subject": capture[:2],
114
+ "session": capture[2:],
115
+ "role": ("train" if capture.endswith("C1") else
116
+ ("cross_reenact_driving" if capture[:2] in ("P5", "P6") else "test")),
117
+ "n_cams": len(mp4s),
118
+ "n_rigs_in_calibration": n_rigs,
119
+ "video": {**v0,
120
+ "layout": "side-by-side: LEFT half = RGB, RIGHT half = alpha matte",
121
+ "rgb_width": v0["width"] // 2},
122
+ "video_bytes": total,
123
+ "frame_convention": {
124
+ "smplx_frame": "GT frame id, 1-based; stored in smplx.npz['frames']",
125
+ "video_frame": "smplx_frame - 1, 0-based index into camNN.mp4",
126
+ },
127
+ "camera_convention": {
128
+ "K": "[[fx,0,cx],[0,fy,cy],[0,0,1]] from rigs[i].cameras[0]",
129
+ "R_w2c": "R @ diag(1,-1,-1)",
130
+ "t_w2c": "-R @ c",
131
+ "note": "cameras.json world is Y-down; the world_flip puts the fit in the "
132
+ "same Y-up world as the DEGAS GT",
133
+ },
134
+ }
135
+ smplx_npz = dst / "smplx.npz"
136
+ if smplx_npz.exists():
137
+ import numpy as np
138
+ z = np.load(smplx_npz, allow_pickle=False)
139
+ card["n_frames"] = int(len(z["frames"]))
140
+ card["gt_frame_range"] = [int(z["frames"][0]), int(z["frames"][-1])]
141
+ card["smplx_kwargs"] = json.loads(str(z["smplx_kwargs"]))
142
+ (dst / "capture.json").write_text(json.dumps(card, indent=2) + "\n")
143
+ print(f"[stage] wrote {dst / 'capture.json'}", flush=True)
144
+ return card
145
+
146
+
147
+ def main() -> int:
148
+ ap = argparse.ArgumentParser(description=__doc__,
149
+ formatter_class=argparse.RawDescriptionHelpFormatter)
150
+ ap.add_argument("capture")
151
+ ap.add_argument("--dataset-root", type=Path, default=DATASET_ROOT)
152
+ ap.add_argument("--staging", type=Path, required=True)
153
+ ap.add_argument("--extract", action="store_true", help="7z x frameset-videos.7z if missing")
154
+ ap.add_argument("--force", action="store_true",
155
+ help="stage a capture outside the published 10 (P5C1/P6C1 are excluded)")
156
+ a = ap.parse_args()
157
+ print(json.dumps(stage(a.capture, a.dataset_root, a.staging, a.extract, a.force)))
158
+ return 0
159
+
160
+
161
+ if __name__ == "__main__":
162
+ sys.exit(main())
scripts/upload_capture.sh ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # upload_capture.sh <PxCy> [--extract] [--meta-only] [--no-upload]
3
+ #
4
+ # One finished capture -> the public HF dataset `initialneil/DREAMS-AVATAR`.
5
+ #
6
+ # Published set (10): P1C1 P1C2 P2C1 P2C2 P3C1 P3C2 P4C1 P4C2 P5C2 P6C2
7
+ # C1 = train, C2 = test. P5/P6 are cross-reenact DRIVING only, so only their C2 ships.
8
+ # P5C1 does not exist; P6C1 is excluded on purpose (stage_capture.py refuses both).
9
+ #
10
+ # 1. stage hardlink frameset-videos/NN.mp4 -> staging/data/<PxCy>/videos/camNN.mp4,
11
+ # copy cameras.json, write capture.json
12
+ # 2. smplx hmt_seq_out/smplx/*.npz -> staging/data/<PxCy>/smplx.npz (verified lossless)
13
+ # 3. previews hmt_seq_out/grid_f*.jpg -> staging/previews/<PxCy>_f*.jpg + preview.jpg
14
+ # 4. metadata rebuild staging/previews/metadata.jsonl over ALL staged captures
15
+ # 5. upload small files in one commit, then the mp4s via resumable upload_large_folder
16
+ #
17
+ # The tracker's output dir is only ever READ.
18
+ # Re-runnable: safe to re-run after a network drop, the large upload resumes.
19
+ #
20
+ # ./upload_capture.sh P1C1
21
+ # ./upload_capture.sh P2C1 --extract # if frameset-videos/ not unpacked yet
22
+ # ./upload_capture.sh P1C1 --meta-only # refresh card/smplx/previews, skip the 2 GiB
23
+ set -euo pipefail
24
+
25
+ CAPTURE="${1:?usage: upload_capture.sh <PxCy> [--extract] [--meta-only] [--no-upload]}"
26
+ shift || true
27
+
28
+ HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
29
+ BASE="$(dirname "$HERE")"
30
+ STAGING="${STAGING:-$BASE/staging}"
31
+ DATASET_ROOT="${DATASET_ROOT:-/mnt/sdb/degas_project/DEGAS_DATASET}"
32
+ PY="${PY:-/home/szj/miniconda3/envs/omni_pose/bin/python}"
33
+ LOGDIR="$BASE/logs"; mkdir -p "$LOGDIR"
34
+
35
+ EXTRACT=""; META_ONLY=""; NO_UPLOAD=""
36
+ for arg in "$@"; do
37
+ case "$arg" in
38
+ --extract) EXTRACT="--extract" ;;
39
+ --meta-only) META_ONLY="--meta-only" ;;
40
+ --no-upload) NO_UPLOAD=1 ;;
41
+ *) echo "unknown flag: $arg" >&2; exit 2 ;;
42
+ esac
43
+ done
44
+
45
+ echo "=== [1/5] stage $CAPTURE ==============================================="
46
+ "$PY" "$HERE/stage_capture.py" "$CAPTURE" --dataset-root "$DATASET_ROOT" \
47
+ --staging "$STAGING" $EXTRACT
48
+
49
+ echo "=== [2/5] consolidate SMPL-X ==========================================="
50
+ "$PY" "$HERE/consolidate_smplx.py" "$CAPTURE" --dataset-root "$DATASET_ROOT" \
51
+ --out "$STAGING/data/$CAPTURE/smplx.npz"
52
+
53
+ # capture.json is written before smplx.npz exists on a first run -> refresh it
54
+ "$PY" "$HERE/stage_capture.py" "$CAPTURE" --dataset-root "$DATASET_ROOT" \
55
+ --staging "$STAGING" >/dev/null
56
+
57
+ echo "=== [3/5] previews ====================================================="
58
+ "$PY" "$HERE/make_previews.py" "$CAPTURE" --dataset-root "$DATASET_ROOT" \
59
+ --staging "$STAGING"
60
+
61
+ echo "=== [4/5] metadata.jsonl + scripts ====================================="
62
+ "$PY" "$HERE/build_metadata.py" --staging "$STAGING"
63
+ mkdir -p "$STAGING/scripts"
64
+ cp -f "$HERE"/*.py "$HERE"/*.sh "$STAGING/scripts/" # ship the pipeline with the data
65
+
66
+ if [[ -n "$NO_UPLOAD" ]]; then
67
+ echo "=== [5/5] upload SKIPPED (--no-upload) ==="
68
+ exit 0
69
+ fi
70
+
71
+ echo "=== [5/5] upload to HuggingFace ========================================"
72
+ LOG="$LOGDIR/upload_${CAPTURE}_$(date +%Y%m%d_%H%M%S).log"
73
+ echo "log: $LOG"
74
+ "$PY" "$HERE/hf_upload.py" --staging "$STAGING" --capture "$CAPTURE" $META_ONLY 2>&1 | tee "$LOG"
75
+ echo "=== done: https://huggingface.co/datasets/initialneil/DREAMS-AVATAR ==="