Fix frame extraction view deduplication
Browse files
scripts/extract_vlac2_release_frames.py
CHANGED
|
@@ -125,7 +125,10 @@ def collect_episode_specs(benchmark_paths: list[Path]) -> tuple[list[EpisodeSpec
|
|
| 125 |
stats["rows_missing_main_path"] += 1
|
| 126 |
continue
|
| 127 |
normalized = normalize_main_path(inferred_main_path)
|
| 128 |
-
|
|
|
|
|
|
|
|
|
|
| 129 |
if key not in grouped:
|
| 130 |
grouped[key] = (normalized, {str(benchmark_path)})
|
| 131 |
else:
|
|
|
|
| 125 |
stats["rows_missing_main_path"] += 1
|
| 126 |
continue
|
| 127 |
normalized = normalize_main_path(inferred_main_path)
|
| 128 |
+
# Keep different camera views for the same episode separate. The
|
| 129 |
+
# benchmark's main_path can target wrist/head/bird/etc. views, and
|
| 130 |
+
# merging by episode drops required frame directories.
|
| 131 |
+
key = str(normalized)
|
| 132 |
if key not in grouped:
|
| 133 |
grouped[key] = (normalized, {str(benchmark_path)})
|
| 134 |
else:
|