scripts: paths from the environment, not one disk
Browse files
scripts/build_probe_clips.py
CHANGED
|
@@ -22,12 +22,14 @@ from pathlib import Path
|
|
| 22 |
|
| 23 |
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
| 24 |
|
|
|
|
|
|
|
| 25 |
import cv2 # noqa: E402
|
| 26 |
import numpy as np # noqa: E402
|
| 27 |
|
| 28 |
from react_toolbox.calibration import load_calibration # noqa: E402
|
| 29 |
|
| 30 |
-
SRC =
|
| 31 |
FPS = 30.0
|
| 32 |
|
| 33 |
|
|
@@ -129,7 +131,7 @@ def render(frame_rgb, poses, cal, cam, out_mp4, hud, held_pose, held_gel,
|
|
| 129 |
|
| 130 |
def main() -> int:
|
| 131 |
ap = argparse.ArgumentParser()
|
| 132 |
-
ap.add_argument("--out", default="
|
| 133 |
args = ap.parse_args()
|
| 134 |
out = Path(args.out)
|
| 135 |
if out.exists():
|
|
|
|
| 22 |
|
| 23 |
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
| 24 |
|
| 25 |
+
from react_paths import out_root, testset_root # noqa: E402
|
| 26 |
+
|
| 27 |
import cv2 # noqa: E402
|
| 28 |
import numpy as np # noqa: E402
|
| 29 |
|
| 30 |
from react_toolbox.calibration import load_calibration # noqa: E402
|
| 31 |
|
| 32 |
+
SRC = testset_root()
|
| 33 |
FPS = 30.0
|
| 34 |
|
| 35 |
|
|
|
|
| 131 |
|
| 132 |
def main() -> int:
|
| 133 |
ap = argparse.ArgumentParser()
|
| 134 |
+
ap.add_argument("--out", default=str(out_root("probe_clips")))
|
| 135 |
args = ap.parse_args()
|
| 136 |
out = Path(args.out)
|
| 137 |
if out.exists():
|