Datasets:

Modalities:
Audio
Video
Size:
> 1T
Libraries:
Datasets
License:
weiguangzhao commited on
Commit
8616219
·
verified ·
1 Parent(s): e8e95f1

Add GameRealm partial release: Tracking_Standard_1of5

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. Tracking/Standard/README.md +73 -0
  3. Tracking/Standard/_reader/depth_log_codec.py +253 -0
  4. Tracking/Standard/catalog.jsonl +3 -0
  5. Tracking/Standard/multiview/00001/cam_00/depth.h5 +3 -0
  6. Tracking/Standard/multiview/00001/cam_00/meta.h5 +3 -0
  7. Tracking/Standard/multiview/00001/cam_00/rgb.mp4 +3 -0
  8. Tracking/Standard/multiview/00001/cam_00/trajectory.h5 +3 -0
  9. Tracking/Standard/multiview/00001/cam_01/depth.h5 +3 -0
  10. Tracking/Standard/multiview/00001/cam_01/meta.h5 +3 -0
  11. Tracking/Standard/multiview/00001/cam_01/rgb.mp4 +3 -0
  12. Tracking/Standard/multiview/00001/cam_01/trajectory.h5 +3 -0
  13. Tracking/Standard/multiview/00001/cam_02/depth.h5 +3 -0
  14. Tracking/Standard/multiview/00001/cam_02/meta.h5 +3 -0
  15. Tracking/Standard/multiview/00001/cam_02/rgb.mp4 +3 -0
  16. Tracking/Standard/multiview/00001/cam_02/trajectory.h5 +3 -0
  17. Tracking/Standard/multiview/00004/cam_00/depth.h5 +3 -0
  18. Tracking/Standard/multiview/00004/cam_00/meta.h5 +3 -0
  19. Tracking/Standard/multiview/00004/cam_00/rgb.mp4 +3 -0
  20. Tracking/Standard/multiview/00004/cam_00/trajectory.h5 +3 -0
  21. Tracking/Standard/multiview/00004/cam_01/depth.h5 +3 -0
  22. Tracking/Standard/multiview/00004/cam_01/meta.h5 +3 -0
  23. Tracking/Standard/multiview/00004/cam_01/rgb.mp4 +3 -0
  24. Tracking/Standard/multiview/00004/cam_01/trajectory.h5 +3 -0
  25. Tracking/Standard/multiview/00004/cam_02/depth.h5 +3 -0
  26. Tracking/Standard/multiview/00004/cam_02/meta.h5 +3 -0
  27. Tracking/Standard/multiview/00004/cam_02/rgb.mp4 +3 -0
  28. Tracking/Standard/multiview/00004/cam_02/trajectory.h5 +3 -0
  29. Tracking/Standard/multiview/00008/cam_00/depth.h5 +3 -0
  30. Tracking/Standard/multiview/00008/cam_00/meta.h5 +3 -0
  31. Tracking/Standard/multiview/00008/cam_00/rgb.mp4 +3 -0
  32. Tracking/Standard/multiview/00008/cam_00/trajectory.h5 +3 -0
  33. Tracking/Standard/multiview/00008/cam_01/depth.h5 +3 -0
  34. Tracking/Standard/multiview/00008/cam_01/meta.h5 +3 -0
  35. Tracking/Standard/multiview/00008/cam_01/rgb.mp4 +3 -0
  36. Tracking/Standard/multiview/00008/cam_01/trajectory.h5 +3 -0
  37. Tracking/Standard/multiview/00008/cam_02/depth.h5 +3 -0
  38. Tracking/Standard/multiview/00008/cam_02/meta.h5 +3 -0
  39. Tracking/Standard/multiview/00008/cam_02/rgb.mp4 +3 -0
  40. Tracking/Standard/multiview/00008/cam_02/trajectory.h5 +3 -0
  41. Tracking/Standard/multiview/00009/cam_00/depth.h5 +3 -0
  42. Tracking/Standard/multiview/00009/cam_00/meta.h5 +3 -0
  43. Tracking/Standard/multiview/00009/cam_00/rgb.mp4 +3 -0
  44. Tracking/Standard/multiview/00009/cam_00/trajectory.h5 +3 -0
  45. Tracking/Standard/multiview/00009/cam_01/depth.h5 +3 -0
  46. Tracking/Standard/multiview/00009/cam_01/meta.h5 +3 -0
  47. Tracking/Standard/multiview/00009/cam_01/rgb.mp4 +3 -0
  48. Tracking/Standard/multiview/00009/cam_01/trajectory.h5 +3 -0
  49. Tracking/Standard/multiview/00012/cam_00/depth.h5 +3 -0
  50. Tracking/Standard/multiview/00012/cam_00/meta.h5 +3 -0
.gitattributes CHANGED
@@ -66,3 +66,4 @@ MultiView/reconstruction/00001/multi_2.mkv filter=lfs diff=lfs merge=lfs -text
66
  MultiView/reconstruction/00001/multi_3.mkv filter=lfs diff=lfs merge=lfs -text
67
  Stereo/00001/stereo_1.mkv filter=lfs diff=lfs merge=lfs -text
68
  Stereo/00001/stereo_2.mkv filter=lfs diff=lfs merge=lfs -text
 
 
66
  MultiView/reconstruction/00001/multi_3.mkv filter=lfs diff=lfs merge=lfs -text
67
  Stereo/00001/stereo_1.mkv filter=lfs diff=lfs merge=lfs -text
68
  Stereo/00001/stereo_2.mkv filter=lfs diff=lfs merge=lfs -text
69
+ Tracking/Standard/catalog.jsonl filter=lfs diff=lfs merge=lfs -text
Tracking/Standard/README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GameRealm Tracking Standard
2
+
3
+ This collection is being converted and uploaded. `catalog.jsonl` contains only
4
+ fully committed sequences. `progress.json` reports the current verified totals;
5
+ an unfinished directory without its `_status` receipt is not a completed sample.
6
+
7
+ Only sources whose every camera has original width 1280 and height 720 are
8
+ admitted. Every decoded RGB and depth frame must independently meet that size.
9
+ No resize, padding, crop, frame thinning or point sampling is performed.
10
+ Current benchmark holdout source recordings are excluded. Source recordings
11
+ and previous releases are preserved outside this publication directory.
12
+
13
+ Single-view samples are `singleview/00001/`. Multi-view samples are
14
+ `multiview/00001/cam_00/`, `cam_01/`, etc. Identifiers are opaque and remain fixed;
15
+ gaps can correspond to pending or failed review. Each view has four files:
16
+
17
+ - `rgb.mp4`: H.264, CRF 18, YUV420, original frame sequence and recorded timing.
18
+ - `depth.h5`: camera-Z depth in centimetres, log-u16, row delta, byte shuffle,
19
+ Zstd-3, independent frames and an embedded byte-range index. Float32 exceptions
20
+ are preserved. `_reader/depth_log_codec.py` reads this file.
21
+ - `meta.h5`: frame IDs, timestamps, intrinsics, world-to-camera and c2w matrices,
22
+ modality validity, and explicit availability flags for controls and audio.
23
+ - `trajectory.h5`: all original stored points, their world/pixel trajectories,
24
+ three separate masks, original numeric source fields, and local SE3 where
25
+ available. Fixed query selection is not imposed: `points/query_frame=-1`.
26
+
27
+ `points/point_id` is the original zero-based point index. Its identity is shared
28
+ across views of the same sequence. No game names or private source paths are
29
+ included. Embodied sources retain their dataset identity in `source_dataset`.
30
+
31
+ ## Validity and visibility
32
+
33
+ The definitions are also embedded in each trajectory file's `rules` group:
34
+
35
+ - `masks/valid`: source geometry validity, per-view geometry eligibility, finite
36
+ world coordinates and positive camera Z. Source 3D label/per-view label gates
37
+ are additionally retained when present. A false value does not necessarily
38
+ mean that no numerical coordinates exist.
39
+ - `masks/visibility`: source visibility state equals 1.
40
+ - `masks/visibility_known`: source visibility state is one of 1, 2, 3 or 4.
41
+
42
+ Ignore visibility wherever visibility_known is false. Unknown visibility is
43
+ kept separate from geometric validity. Source visibility is preserved and is
44
+ not recomputed from newly compressed images or depth. Original source masks and
45
+ other numeric fields are retained under `source_numeric`.
46
+
47
+ ## Coordinates, timing and missing modalities
48
+
49
+ Camera matrices and trajectories retain the source coordinate units and values.
50
+ Depth alone is converted to centimetres. Use `camera.input_to_m` and
51
+ `depth.input_to_cm` for the recorded conversion convention; working engine scale
52
+ conventions are not independent physical calibration. c2w is the inverse of the
53
+ stored world-to-camera matrix. Local SE3 retains reference frames, point binding,
54
+ transforms, support masks and fit diagnostics, without a new ground-truth claim.
55
+
56
+ Frame timestamps retain their recorded source clock, which can be simulation,
57
+ capture or nominal delivery time. MP4 timestamps use microsecond ticks; equal
58
+ timestamps receive a one-microsecond playback increment. Original timestamps
59
+ and the adjustment count remain in meta.h5. Missing capture timestamps use -1.
60
+ Controls unavailable in the Standard numeric contract are explicitly absent;
61
+ no control values are invented. No audio.wav is published; has_audio=false.
62
+
63
+ ## Review gates
64
+
65
+ Before uploading any view of a sequence, all its views must pass source SHA256,
66
+ numeric schema/mask/camera checks, full video decode and timestamp checks,
67
+ every-frame depth error/exception checks, exact numeric readback and text-field
68
+ anonymization. Every uploaded payload then receives a full cloud GET/SHA256
69
+ comparison. Only after all files pass is the sequence receipt and catalog entry
70
+ committed. Conversion checks do not certify independent geometric ground truth.
71
+
72
+ Native embodied representations that require a dense geometry/SE3 reader remain
73
+ pending adaptation and are not silently replaced by sampled sparse annotations.
Tracking/Standard/_reader/depth_log_codec.py ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Frame-independent log-u16, row delta, byte shuffle and Zstd depth codec.
2
+
3
+ The .dlog file concatenates independent Zstd frames. Its .index.json sidecar
4
+ contains byte ranges, dimensions and quantization parameters. Physical units
5
+ remain centimeters. Codes 1..65535 span [near_cm, far_cm]; 0 decodes to zero.
6
+ Nonzero values outside that range, signed zero and nonfinite values are stored
7
+ as exact float32 exceptions, so they are never silently clipped.
8
+ """
9
+ from __future__ import annotations
10
+
11
+ import hashlib
12
+ import json
13
+ import math
14
+ from pathlib import Path
15
+
16
+ import numpy as np
17
+ import zstandard as zstd
18
+
19
+ MAGIC = b"HELIOS_DLOG_V1\n"
20
+ SCHEMA = "helios-depth-log-u16-v1"
21
+
22
+
23
+ def parameters(near_cm=10.0, far_cm=100_000_000.0):
24
+ if not (math.isfinite(near_cm) and math.isfinite(far_cm) and 0 < near_cm < far_cm):
25
+ raise ValueError("Require finite 0 < near_cm < far_cm")
26
+ return {"schema": SCHEMA, "unit": "centimeter", "near_cm": float(near_cm),
27
+ "far_cm": float(far_cm), "quantization": "log-nearest-u16",
28
+ "valid_codes": [1, 65535], "zero_code": 0,
29
+ "delta": "uint16-modular-horizontal-reset-every-row",
30
+ "shuffle": "two-byte-planes-per-frame", "compression": "zstd",
31
+ "compression_level": 3, "zstd_checksum": True,
32
+ "exceptions": "uint32-pixel-indices-followed-by-float32le-values",
33
+ "max_relative_quantization_error": math.expm1(math.log(far_cm/near_cm)/(2*65534))}
34
+
35
+
36
+ def encode_frame(depth, config, compressor=None):
37
+ x = np.asarray(depth, dtype='<f4')
38
+ if x.ndim != 2 or x.size > np.iinfo(np.uint32).max:
39
+ raise ValueError("Expected a 2D frame with uint32-addressable pixels")
40
+ lo, hi = config['near_cm'], config['far_cm']
41
+ valid = np.isfinite(x) & (x >= lo) & (x <= hi)
42
+ # Retain all exceptional nonzero values and the sign bit of negative zero.
43
+ exceptional = ~valid & ((x != 0) | np.signbit(x))
44
+ indices = np.flatnonzero(exceptional).astype('<u4')
45
+ values = x.ravel()[indices].astype('<f4', copy=False)
46
+ codes = np.zeros(x.shape, dtype='<u2')
47
+ codes[valid] = (1 + np.rint(65534 * np.log(x[valid].astype(np.float64)/lo)
48
+ / math.log(hi/lo))).astype(np.uint16)
49
+ delta = codes.copy()
50
+ delta[:, 1:] = codes[:, 1:] - codes[:, :-1]
51
+ shuffled = delta.view(np.uint8).reshape(-1, 2).T.copy().tobytes()
52
+ raw = shuffled + indices.tobytes() + values.tobytes()
53
+ compressor = compressor or zstd.ZstdCompressor(level=3, write_checksum=True)
54
+ blob = compressor.compress(raw)
55
+ entry = {"length": len(blob), "uncompressed_bytes": len(raw),
56
+ "exception_count": len(indices)}
57
+ return blob, entry, codes
58
+
59
+
60
+ def decode_codes(blob, entry, height, width):
61
+ raw = zstd.ZstdDecompressor().decompress(blob, max_output_size=entry['uncompressed_bytes'])
62
+ n, count = height*width, entry['exception_count']
63
+ if len(raw) != 2*n + 8*count or len(raw) != entry['uncompressed_bytes']:
64
+ raise ValueError("Invalid decompressed frame size")
65
+ delta = np.frombuffer(raw, dtype=np.uint8, count=2*n).reshape(2, n).T.copy().view('<u2')
66
+ codes = np.cumsum(delta.reshape(height, width), axis=1, dtype=np.uint16)
67
+ indices = np.frombuffer(raw, dtype='<u4', count=count, offset=2*n)
68
+ values = np.frombuffer(raw, dtype='<f4', count=count, offset=2*n+4*count)
69
+ if count and (indices[-1] >= n or np.any(indices[1:] <= indices[:-1])):
70
+ raise ValueError("Invalid exception indices")
71
+ return codes, indices, values
72
+
73
+
74
+ def codes_to_depth(codes, indices, values, config):
75
+ out = np.zeros(codes.shape, dtype='<f4')
76
+ valid = codes > 0
77
+ out[valid] = config['near_cm'] * np.exp((codes[valid].astype(np.float64)-1)
78
+ * math.log(config['far_cm']/config['near_cm']) / 65534)
79
+ out.ravel()[indices] = values
80
+ return out
81
+
82
+
83
+ def decode_frame(blob, entry, height, width, config):
84
+ return codes_to_depth(*decode_codes(blob, entry, height, width), config)
85
+
86
+
87
+ def compress_hdf5(source, output, config, source_uri=None, source_info=None):
88
+ import h5py
89
+ source, output = Path(source), Path(output)
90
+ output.parent.mkdir(parents=True, exist_ok=True)
91
+ index = {"codec": config, "source_uri": source_uri or str(source),
92
+ "source_info": source_info or {}, "source_bytes": source.stat().st_size,
93
+ "source_sha256": file_sha256(source), "frames": []}
94
+ compressor = zstd.ZstdCompressor(level=3, write_checksum=True)
95
+ max_relative = 0.0
96
+ special_count = 0
97
+ with h5py.File(source, 'r') as f, output.open('wb') as out:
98
+ d = f['depth']
99
+ if d.ndim != 3 or d.dtype.kind != 'f' or d.dtype.itemsize != 4:
100
+ raise ValueError(f"Expected (frames, height, width) float32, got {d.shape} {d.dtype}")
101
+ encoding = d.attrs.get('depth_encoding', '')
102
+ unit = d.attrs.get('unit', '')
103
+ if isinstance(encoding, bytes): encoding = encoding.decode()
104
+ if isinstance(unit, bytes): unit = unit.decode()
105
+ if encoding != 'linear_scene_depth_cm' or unit != 'centimeter':
106
+ raise ValueError(f"Unsupported source depth encoding/unit: {encoding!r}/{unit!r}")
107
+ count, height, width = d.shape
108
+ if count < 1: raise ValueError('Cannot recompress an empty depth dataset')
109
+ index.update(frame_count=count, height=height, width=width,
110
+ original_attributes={k: str(v) for k,v in d.attrs.items()})
111
+ out.write(MAGIC)
112
+ for i in range(count):
113
+ x = np.asarray(d[i], dtype='<f4')
114
+ blob, entry, codes = encode_frame(x, config, compressor)
115
+ # Verify every compressed frame, including exact delta inversion.
116
+ recovered, indices, values = decode_codes(blob, entry, height, width)
117
+ if not np.array_equal(codes, recovered):
118
+ raise ValueError(f"Integer codec roundtrip failed at frame {i}")
119
+ y = codes_to_depth(recovered, indices, values, config)
120
+ if len(indices) and not np.array_equal(x.ravel()[indices].view('<u4'),
121
+ y.ravel()[indices].view('<u4')):
122
+ raise ValueError(f"Exception preservation failed at frame {i}")
123
+ valid = codes > 0
124
+ if valid.any():
125
+ err = float(np.max(np.abs(y[valid].astype(np.float64)/x[valid]-1)))
126
+ if err > config['max_relative_quantization_error'] + 2e-7:
127
+ raise ValueError(f"Quantization bound exceeded at frame {i}: {err}")
128
+ max_relative = max(max_relative, err)
129
+ entry.update(frame_index=i, offset=out.tell())
130
+ out.write(blob)
131
+ index['frames'].append(entry)
132
+ special_count += entry['exception_count']
133
+ index.update(compressed_bytes=output.stat().st_size, compressed_sha256=file_sha256(output),
134
+ verified=True, max_observed_relative_error=max_relative,
135
+ exception_pixel_count=special_count,
136
+ original_raw_bytes=count*height*width*4)
137
+ sidecar = Path(str(output)+'.index.json')
138
+ sidecar.write_text(json.dumps(index, ensure_ascii=False, separators=(',', ':')))
139
+ return index, sidecar
140
+
141
+
142
+ def file_sha256(path):
143
+ h = hashlib.sha256()
144
+ with Path(path).open('rb') as f:
145
+ for block in iter(lambda: f.read(8*1024*1024), b''): h.update(block)
146
+ return h.hexdigest()
147
+
148
+
149
+ def pack_into_hdf5(source, output, config, source_uri=None, source_info=None):
150
+ """Keep a genuine .h5 container and original filename for in-place updates.
151
+
152
+ A contiguous byte dataset carries independent Zstd frames. The embedded
153
+ index makes the file self describing; the sidecar enables remote ranges.
154
+ Direct f['depth'] float32 access must be replaced with DepthLogReader.
155
+ """
156
+ import h5py
157
+ import tempfile
158
+ output = Path(output)
159
+ output.parent.mkdir(parents=True,exist_ok=True)
160
+ with tempfile.TemporaryDirectory(prefix='depth-pack-', dir=output.parent) as tmp:
161
+ packed = Path(tmp)/'depth.dlog'
162
+ index, _ = compress_hdf5(source, packed, config, source_uri, source_info)
163
+ index.pop('compressed_sha256')
164
+ index.pop('compressed_bytes')
165
+ index['container'] = 'hdf5'
166
+ index['payload_dataset'] = 'depth_payload_zstd'
167
+ with h5py.File(output, 'w', libver='earliest') as f:
168
+ payload = f.create_dataset('depth_payload_zstd', shape=(packed.stat().st_size,),
169
+ dtype=np.uint8, chunks=None)
170
+ with packed.open('rb') as raw:
171
+ offset = 0
172
+ for chunk in iter(lambda: raw.read(8*1024*1024), b''):
173
+ payload[offset:offset+len(chunk)] = np.frombuffer(chunk, dtype=np.uint8)
174
+ offset += len(chunk)
175
+ f.flush()
176
+ base = payload.id.get_offset()
177
+ if base is None: raise ValueError('Payload dataset is not contiguous')
178
+ index['payload_file_offset'] = base
179
+ for frame in index['frames']: frame['offset'] += base
180
+ f.attrs['depth_codec_schema'] = SCHEMA
181
+ f.attrs['depth_encoding'] = 'log_u16'
182
+ f.attrs['decoded_depth_encoding'] = 'linear_scene_depth_cm'
183
+ f.attrs['unit'] = 'centimeter'
184
+ f.attrs['depth_log_index_json'] = json.dumps(index, ensure_ascii=False, separators=(',', ':'))
185
+ f.attrs['reader'] = 'tools.offload_data.depth_log_codec.DepthLogReader'
186
+ # Re-read every frame through the final HDF5 byte ranges before publishing.
187
+ reader = DepthLogReader(output)
188
+ with packed.open('rb') as original:
189
+ for i, entry in enumerate(index['frames']):
190
+ original.seek(entry['offset']-base)
191
+ expected = decode_codes(original.read(entry['length']),entry,index['height'],index['width'])
192
+ actual = reader.read_codes(i)
193
+ for a,b in zip(actual,expected):
194
+ if not np.array_equal(a.view(np.uint8),b.view(np.uint8)):
195
+ raise ValueError(f'HDF5 container roundtrip failed at frame {i}')
196
+ index['compressed_bytes'] = output.stat().st_size
197
+ index['compressed_sha256'] = file_sha256(output)
198
+ sidecar = Path(str(output)+'.index.json')
199
+ sidecar.write_text(json.dumps(index,ensure_ascii=False,separators=(',',':')))
200
+ return index,sidecar
201
+
202
+
203
+ def embedded_hdf5_index(path):
204
+ import h5py
205
+ with h5py.File(path,'r') as f:
206
+ if f.attrs.get('depth_codec_schema') != SCHEMA: return None
207
+ return json.loads(f.attrs['depth_log_index_json'])
208
+
209
+
210
+ class DepthLogReader:
211
+ """Read a local packed frame, or use fetch_range(offset, length) remotely.
212
+
213
+ read_codes() retains uint16 for a compact cache. read() converts one frame
214
+ to float32 centimeters. RGB, poses and actions remain at source_uri.
215
+ """
216
+ def __init__(self, path=None, index=None, fetch_range=None):
217
+ self.path = Path(path) if path is not None else None
218
+ self.index = index
219
+ if self.index is None:
220
+ with self.path.open('rb') as f: signature = f.read(8)
221
+ if signature == b'\x89HDF\r\n\x1a\n':
222
+ self.index = embedded_hdf5_index(self.path)
223
+ if self.index is None: raise ValueError('HDF5 does not use the log depth codec')
224
+ else:
225
+ self.index = json.loads(Path(str(path)+'.index.json').read_text())
226
+ if self.index['codec']['schema'] != SCHEMA: raise ValueError("Unsupported codec")
227
+ self.fetch_range = fetch_range
228
+
229
+ def read_codes(self, frame_index):
230
+ if not 0 <= frame_index < self.index['frame_count']: raise IndexError(frame_index)
231
+ entry = self.index['frames'][frame_index]
232
+ if self.fetch_range is not None:
233
+ blob = self.fetch_range(entry['offset'], entry['length'])
234
+ else:
235
+ with self.path.open('rb') as f:
236
+ f.seek(self.index.get('payload_file_offset',0))
237
+ if f.read(len(MAGIC)) != MAGIC: raise ValueError("Invalid depth file header")
238
+ f.seek(entry['offset'])
239
+ blob = f.read(entry['length'])
240
+ if len(blob) != entry['length']: raise ValueError("Truncated depth frame")
241
+ return decode_codes(blob, entry, self.index['height'], self.index['width'])
242
+
243
+ def read(self, frame_index):
244
+ return codes_to_depth(*self.read_codes(frame_index), self.index['codec'])
245
+
246
+
247
+ def read_depth_frame(path, frame_index):
248
+ """Read either an original float32 HDF5 or a recompressed HDF5 during migration."""
249
+ import h5py
250
+ with h5py.File(path,'r') as f:
251
+ if f.attrs.get('depth_codec_schema') != SCHEMA:
252
+ return f['depth'][frame_index]
253
+ return DepthLogReader(path).read(frame_index)
Tracking/Standard/catalog.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bf0e281e59f889f3e715c8a2babcbe1a43836b0a0b8fc52b437ad70b73699dd
3
+ size 14394206
Tracking/Standard/multiview/00001/cam_00/depth.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8521e10cacf9c93561a5b580b19ea0b1f0082a8cd0dd9ab815075a3ad9b95d14
3
+ size 56705775
Tracking/Standard/multiview/00001/cam_00/meta.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df375b83beb8e3d077c4b85e6656196da0ec34c5cf1426a4024d4567f4dccd28
3
+ size 75209
Tracking/Standard/multiview/00001/cam_00/rgb.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d008bb90793265df41b89b4ae60b3285a360f18a518ed7dfd8b15f259fbaae4e
3
+ size 17914556
Tracking/Standard/multiview/00001/cam_00/trajectory.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35409ae5c86abd571e429848bb1e500e765f4c30e88b9adfc75138fa1288cba3
3
+ size 19865663
Tracking/Standard/multiview/00001/cam_01/depth.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b8e7804c975be0d8606c1f6f749d6224a141750f6cf5094b33f38e28f195f95
3
+ size 46663589
Tracking/Standard/multiview/00001/cam_01/meta.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3692492b929a6419fe0ea7012e03ea802b42360c307ba8a0709d2fa57dfbd6a0
3
+ size 75179
Tracking/Standard/multiview/00001/cam_01/rgb.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9256e297b0e56378d72511af8bed029c17eebecb4f89fc0d81d45a62c863f6d8
3
+ size 16172764
Tracking/Standard/multiview/00001/cam_01/trajectory.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f374e0c03b696965289ce02b577140fa7df81cee6ecc999e551816706c3c9dc1
3
+ size 19834447
Tracking/Standard/multiview/00001/cam_02/depth.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dde36233cefdb3ae57b4a5b4df38344e692cdb943c90ad296f3203675d6968c
3
+ size 60979620
Tracking/Standard/multiview/00001/cam_02/meta.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ede4c2998142e24885b344fb3ed7a4d0647d776dcfb99df7ae19eb58b6dd436
3
+ size 75354
Tracking/Standard/multiview/00001/cam_02/rgb.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65dbbe67e96a6efa1514b5f21d4897af60c884953b9a4f4c2ab0b8c98adce9b2
3
+ size 19257276
Tracking/Standard/multiview/00001/cam_02/trajectory.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef99c76367fc4415f3d2c3f0838de99cace5069bcdd0630b0289eb893970c1ed
3
+ size 19849148
Tracking/Standard/multiview/00004/cam_00/depth.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2441d8bf1a0926f55fb03b09b9e44b11ac59cd8c6d6eb07748abd3a5f95fc822
3
+ size 123084389
Tracking/Standard/multiview/00004/cam_00/meta.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aedf1de5c5c0a80ff54f0ab119eabae258c1d9523f9862680863bcb7703d67fd
3
+ size 116474
Tracking/Standard/multiview/00004/cam_00/rgb.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88ea46f472c9d7d27dce7cdba97c64efe4b04bd611c366165e3d1c6a931231b7
3
+ size 38654154
Tracking/Standard/multiview/00004/cam_00/trajectory.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fe9a07c9e9c0e4a81652e2e0588b859d5c2edb05d6efb55e85ef8d87663af4a
3
+ size 65210331
Tracking/Standard/multiview/00004/cam_01/depth.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1aa3131936a61a36e76497e7f905ef5c36613d27f70a66495a498d5025096cc2
3
+ size 111226756
Tracking/Standard/multiview/00004/cam_01/meta.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d340ef52ce8533c6981c21408c15360747da4c533cdfdd8990469ae005f0b8a5
3
+ size 116039
Tracking/Standard/multiview/00004/cam_01/rgb.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03ace2327561b1db8d7979b9ebc9d22a35d81c3ce23f50fb498579b866fa23cb
3
+ size 37962186
Tracking/Standard/multiview/00004/cam_01/trajectory.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e979eaa7ab8d8181b88f542a4e1219b76c7ee21c363d92d629a62f3fdb248c96
3
+ size 65042331
Tracking/Standard/multiview/00004/cam_02/depth.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8adbace3e4c995da5d64fc7bc4ea2210d973fbb25690e20e2b66482e1a89e3c3
3
+ size 121645467
Tracking/Standard/multiview/00004/cam_02/meta.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c7322a267e4b7a65f54dab03ea0361af3ba42579b19c5d445e52a836b7ad898
3
+ size 116175
Tracking/Standard/multiview/00004/cam_02/rgb.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36fd6f99eff62c9169a56730c4a4015639fa60f52aac396281ca405f11950cfa
3
+ size 39237638
Tracking/Standard/multiview/00004/cam_02/trajectory.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:145ede7404b63601345fb8cb12976c198abce94d415f7794e7de347c31dd23cf
3
+ size 65141555
Tracking/Standard/multiview/00008/cam_00/depth.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:663a9c4a40a7bdbd85ad276b22151eb705ec9845e9ef85962d604c8bf07a7bc3
3
+ size 305773230
Tracking/Standard/multiview/00008/cam_00/meta.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1feae512df72e4c7eb69898403bad6b85ae7696a0066ccd535046efd00207fca
3
+ size 222138
Tracking/Standard/multiview/00008/cam_00/rgb.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af1c19e760ef7b2401a09c770c2746cfde7bbc5cedf921034b4e3cf650596455
3
+ size 102235666
Tracking/Standard/multiview/00008/cam_00/trajectory.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:714ba756cdce88f4f100c5ccb0cca76287d6956446438807586eae6a1d1bea0a
3
+ size 207364447
Tracking/Standard/multiview/00008/cam_01/depth.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5874d38711b34aa44091ccbb2b922d1875aaf3a979902f5fd9c35232b77a8637
3
+ size 202910495
Tracking/Standard/multiview/00008/cam_01/meta.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a56a01d4a17f598f431251406e30685f02f10d4744b7b9f0ef60113c4cf46cd2
3
+ size 225051
Tracking/Standard/multiview/00008/cam_01/rgb.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:976f9aab4a3879b8b4a797da1145dd0666b88efc0612586fd5871fdcdd028126
3
+ size 45009329
Tracking/Standard/multiview/00008/cam_01/trajectory.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b17523731e5c3fa2a6c2b6520e5f97fc42fc03ba04c740085ad11a3342252a48
3
+ size 199715037
Tracking/Standard/multiview/00008/cam_02/depth.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a63fd246c34a60d1afe9bbf0f7d65425c35bfe6f1eeafdf0702a679423ffd5f2
3
+ size 321585888
Tracking/Standard/multiview/00008/cam_02/meta.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56b3e8c13f947afddb056cff21e7852a680709372cdef7cfea7e5124fcf7bfa8
3
+ size 222713
Tracking/Standard/multiview/00008/cam_02/rgb.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2bc92b6ec2a99028be315671ea638783d6ea717377df05ea152555b00ad86799
3
+ size 103660773
Tracking/Standard/multiview/00008/cam_02/trajectory.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02558a7887dd7105e49d89bf7d07bcae6efd51899b8fa5c70994b77a5405c4c9
3
+ size 204340413
Tracking/Standard/multiview/00009/cam_00/depth.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61807a36a0d4be33104f52abdd19a8ac39836be33eb032a232aa892cf7e7a709
3
+ size 11871210
Tracking/Standard/multiview/00009/cam_00/meta.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e365249efd07aafd8db18a2710aaa948386f907a05fcba877560f8ea649bec21
3
+ size 65153
Tracking/Standard/multiview/00009/cam_00/rgb.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff0ae307761e535c454bc18f7841fc964e4d20313aefc7bc4fc2e12a08a23151
3
+ size 472341
Tracking/Standard/multiview/00009/cam_00/trajectory.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e060edad57ecb5800b7dd704a7bc48411daa607347ec8587037b6732286ef9f
3
+ size 521399
Tracking/Standard/multiview/00009/cam_01/depth.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df11f82ce75c8df4255eaa32dee3b3f96299c48ad3efa7580a7fc33bdd81e467
3
+ size 86711579
Tracking/Standard/multiview/00009/cam_01/meta.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e53ff95d4962d832821081855ecbe1cbedd9ca24db3d83d6d71ac5fda0ea1078
3
+ size 83526
Tracking/Standard/multiview/00009/cam_01/rgb.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46d49c0a0ee047b660d97c8c97a0d5076924470fff4d5949561e0786d9bf7211
3
+ size 1683655
Tracking/Standard/multiview/00009/cam_01/trajectory.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d460442827bb9fa85521ea79fa48eb1bedb9954ea1408570c4c5d551cdbff78
3
+ size 1035009
Tracking/Standard/multiview/00012/cam_00/depth.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba796ab57014e455472eb378e86946f6063e7ca287a56cb47bffd354cbb46089
3
+ size 21501660
Tracking/Standard/multiview/00012/cam_00/meta.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2e2404baba4d21ddb063ce8aea156f8219b950346d3ba1b9e977ac528216576
3
+ size 73662