docs(dex-ycb): align reader entry-point guidance and bound FFmpeg filter threads
Browse files
dex-ycb/shared-v1.1/script/dexycb_v1_1/README.md
CHANGED
|
@@ -17,8 +17,9 @@ or a tool for other datasets. Unknown numerical fields/attributes fail closed.
|
|
| 17 |
v1.0 tensor validator. RGB/seg/depth are not re-encoded or replaced.
|
| 18 |
- `pilot_audit_record.py`: the exact one-off post-render audit executed for the
|
| 19 |
recorded pilot workspace; fixed paths are intentional historical evidence.
|
| 20 |
-
- `spec/`: exact supplied
|
| 21 |
-
|
|
|
|
| 22 |
|
| 23 |
Example (run under the 123 server tmux, from the existing project environment):
|
| 24 |
|
|
|
|
| 17 |
v1.0 tensor validator. RGB/seg/depth are not re-encoded or replaced.
|
| 18 |
- `pilot_audit_record.py`: the exact one-off post-render audit executed for the
|
| 19 |
recorded pilot workspace; fixed paths are intentional historical evidence.
|
| 20 |
+
- `spec/`: exact supplied migration input documents and registry, retained for
|
| 21 |
+
provenance. `docs/CONTRACT.md` is the complete current v1.1 consumer contract;
|
| 22 |
+
readers no longer need to combine the historical v1.0 contract with a delta.
|
| 23 |
|
| 24 |
Example (run under the 123 server tmux, from the existing project environment):
|
| 25 |
|
dex-ycb/shared-v1.1/script/dexycb_v1_1/read_example.py
CHANGED
|
@@ -37,7 +37,7 @@ def media_frame(view, component, index, image_size):
|
|
| 37 |
if index < 0 or (profile != 'mkv/depth_float32_bits/v1' and [width, height] != [w, h]):
|
| 38 |
raise ValueError('negative frame index or mismatched image size')
|
| 39 |
path = resolve(view, component['data_ref'])
|
| 40 |
-
command = ['ffmpeg', '-v', 'error', '-nostdin', '-noautorotate', '-threads', '1', '-i', str(path),
|
| 41 |
'-vf', f'select=eq(n\\,{index})', '-frames:v', '1', '-threads', '1',
|
| 42 |
'-f', 'rawvideo', '-pix_fmt', pixel_format, 'pipe:1']
|
| 43 |
result = subprocess.run(command, check=True, capture_output=True)
|
|
|
|
| 37 |
if index < 0 or (profile != 'mkv/depth_float32_bits/v1' and [width, height] != [w, h]):
|
| 38 |
raise ValueError('negative frame index or mismatched image size')
|
| 39 |
path = resolve(view, component['data_ref'])
|
| 40 |
+
command = ['ffmpeg', '-v', 'error', '-nostdin', '-noautorotate', '-filter_threads', '1', '-threads', '1', '-i', str(path),
|
| 41 |
'-vf', f'select=eq(n\\,{index})', '-frames:v', '1', '-threads', '1',
|
| 42 |
'-f', 'rawvideo', '-pix_fmt', pixel_format, 'pipe:1']
|
| 43 |
result = subprocess.run(command, check=True, capture_output=True)
|