Update scripts/extract_vlac2_release_frames.py
Browse files
scripts/extract_vlac2_release_frames.py
CHANGED
|
@@ -24,6 +24,7 @@ from vlac2_release_common import (
|
|
| 24 |
infer_main_path_from_row,
|
| 25 |
load_json,
|
| 26 |
normalize_main_path,
|
|
|
|
| 27 |
)
|
| 28 |
|
| 29 |
try:
|
|
@@ -52,7 +53,7 @@ def parse_args() -> argparse.Namespace:
|
|
| 52 |
"--release-root",
|
| 53 |
type=Path,
|
| 54 |
required=True,
|
| 55 |
-
help="Release root containing
|
| 56 |
)
|
| 57 |
parser.add_argument(
|
| 58 |
"--raw-root",
|
|
@@ -70,7 +71,7 @@ def parse_args() -> argparse.Namespace:
|
|
| 70 |
"--benchmark-json",
|
| 71 |
action="append",
|
| 72 |
default=None,
|
| 73 |
-
help="Optional specific benchmark JSON(s). Defaults to discovering
|
| 74 |
)
|
| 75 |
parser.add_argument(
|
| 76 |
"--view-mode",
|
|
@@ -97,7 +98,7 @@ def require_decoder() -> None:
|
|
| 97 |
def benchmark_files_from_args(release_root: Path, raw_paths: list[str] | None) -> list[Path]:
|
| 98 |
if raw_paths:
|
| 99 |
return [Path(path).resolve() for path in raw_paths]
|
| 100 |
-
benchmark_root = release_root
|
| 101 |
files = discover_benchmark_jsons(benchmark_root)
|
| 102 |
if not files:
|
| 103 |
raise SystemExit(f"No benchmark json found under {benchmark_root}")
|
|
|
|
| 24 |
infer_main_path_from_row,
|
| 25 |
load_json,
|
| 26 |
normalize_main_path,
|
| 27 |
+
resolve_benchmark_root,
|
| 28 |
)
|
| 29 |
|
| 30 |
try:
|
|
|
|
| 53 |
"--release-root",
|
| 54 |
type=Path,
|
| 55 |
required=True,
|
| 56 |
+
help="Release root containing benchmark_data/ and vlac2_release_data/.",
|
| 57 |
)
|
| 58 |
parser.add_argument(
|
| 59 |
"--raw-root",
|
|
|
|
| 71 |
"--benchmark-json",
|
| 72 |
action="append",
|
| 73 |
default=None,
|
| 74 |
+
help="Optional specific benchmark JSON(s). Defaults to discovering benchmark_data/**/*.json inside the release root.",
|
| 75 |
)
|
| 76 |
parser.add_argument(
|
| 77 |
"--view-mode",
|
|
|
|
| 98 |
def benchmark_files_from_args(release_root: Path, raw_paths: list[str] | None) -> list[Path]:
|
| 99 |
if raw_paths:
|
| 100 |
return [Path(path).resolve() for path in raw_paths]
|
| 101 |
+
benchmark_root = resolve_benchmark_root(release_root)
|
| 102 |
files = discover_benchmark_jsons(benchmark_root)
|
| 103 |
if not files:
|
| 104 |
raise SystemExit(f"No benchmark json found under {benchmark_root}")
|