Multi-task video release: README + ReactVideoDataset loader
Browse files
examples/react_video_dataset.py
CHANGED
|
@@ -34,6 +34,8 @@ import json
|
|
| 34 |
from pathlib import Path
|
| 35 |
|
| 36 |
import numpy as np
|
|
|
|
|
|
|
| 37 |
import pyarrow.parquet as pq
|
| 38 |
|
| 39 |
try:
|
|
@@ -164,7 +166,7 @@ class ReactVideoDataset:
|
|
| 164 |
# load_calibration expects, rather than failing three frames later
|
| 165 |
# with a KeyError on 'gel_left'.
|
| 166 |
from twm.calib_epoch import calib_dir as _epoch_dir
|
| 167 |
-
stage =
|
| 168 |
_sh.copytree(_epoch_dir(self.root.name), stage / "calibration")
|
| 169 |
root = stage
|
| 170 |
cal = load_calibration(root)
|
|
|
|
| 34 |
from pathlib import Path
|
| 35 |
|
| 36 |
import numpy as np
|
| 37 |
+
|
| 38 |
+
from react_toolbox.staging import staging_dir
|
| 39 |
import pyarrow.parquet as pq
|
| 40 |
|
| 41 |
try:
|
|
|
|
| 166 |
# load_calibration expects, rather than failing three frames later
|
| 167 |
# with a KeyError on 'gel_left'.
|
| 168 |
from twm.calib_epoch import calib_dir as _epoch_dir
|
| 169 |
+
stage = staging_dir()
|
| 170 |
_sh.copytree(_epoch_dir(self.root.name), stage / "calibration")
|
| 171 |
root = stage
|
| 172 |
cal = load_calibration(root)
|