Rename benchmark release layout to benchmark_splits and data
Browse files- .gitattributes +5 -0
- README.md +10 -9
- {benchmark_data → benchmark_splits}/test_expert_seen/video_progress_benchmark_file.json +0 -0
- {benchmark_data → benchmark_splits}/test_expert_unseen/video_progress_benchmark_file.json +0 -0
- {benchmark_data → benchmark_splits}/test_nonexpert_seen/video_progress_benchmark_file.json +0 -0
- {benchmark_data → benchmark_splits}/test_nonexpert_unseen/video_progress_benchmark_file.json +0 -0
- {benchmark_data → benchmark_splits}/train/video_progress_benchmark_file.json +0 -0
- video_archives/vlac2_benchmark_test_main_path_videos.tar → data/test_videos.tar +0 -0
- video_archives/vlac2_benchmark_train_main_path_videos.tar → data/train_videos.tar +0 -0
- scripts/extract_vlac2_release_frames.py +2 -2
- scripts/extract_vlac2_release_raw_archives.sh +22 -14
- scripts/vlac2_release_common.py +1 -1
.gitattributes
CHANGED
|
@@ -68,3 +68,8 @@ benchmark_data/test_expert_unseen/video_progress_benchmark_file.json filter=lfs
|
|
| 68 |
benchmark_data/test_nonexpert_seen/video_progress_benchmark_file.json filter=lfs diff=lfs merge=lfs -text
|
| 69 |
benchmark_data/test_nonexpert_unseen/video_progress_benchmark_file.json filter=lfs diff=lfs merge=lfs -text
|
| 70 |
benchmark_data/train/video_progress_benchmark_file.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
benchmark_data/test_nonexpert_seen/video_progress_benchmark_file.json filter=lfs diff=lfs merge=lfs -text
|
| 69 |
benchmark_data/test_nonexpert_unseen/video_progress_benchmark_file.json filter=lfs diff=lfs merge=lfs -text
|
| 70 |
benchmark_data/train/video_progress_benchmark_file.json filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
benchmark_splits/train/video_progress_benchmark_file.json filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
benchmark_splits/test_expert_seen/video_progress_benchmark_file.json filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
benchmark_splits/test_expert_unseen/video_progress_benchmark_file.json filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
benchmark_splits/test_nonexpert_seen/video_progress_benchmark_file.json filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
benchmark_splits/test_nonexpert_unseen/video_progress_benchmark_file.json filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -14,16 +14,16 @@ VLAC2 is a video-progress benchmark for long-horizon robot manipulation. This re
|
|
| 14 |
|
| 15 |
## Contents
|
| 16 |
|
| 17 |
-
- `
|
| 18 |
-
- `
|
| 19 |
-
- `
|
| 20 |
-
- `
|
| 21 |
-
- `
|
| 22 |
- `scripts/extract_vlac2_release_raw_archives.sh`
|
| 23 |
- `scripts/extract_vlac2_release_frames.py`
|
| 24 |
- `scripts/vlac2_release_common.py`
|
| 25 |
-
- `
|
| 26 |
-
- `
|
| 27 |
|
| 28 |
## Usage
|
| 29 |
|
|
@@ -31,11 +31,12 @@ VLAC2 is a video-progress benchmark for long-horizon robot manipulation. This re
|
|
| 31 |
|
| 32 |
```bash
|
| 33 |
bash scripts/extract_vlac2_release_raw_archives.sh \
|
| 34 |
-
/path/to/vlac2_release/
|
| 35 |
/path/to/vlac2_release/vlac2_release_data
|
| 36 |
```
|
| 37 |
|
| 38 |
-
If both arguments are omitted, the script defaults to `
|
|
|
|
| 39 |
|
| 40 |
2. Extract benchmark frames from the unpacked raw videos.
|
| 41 |
|
|
|
|
| 14 |
|
| 15 |
## Contents
|
| 16 |
|
| 17 |
+
- `benchmark_splits/train/video_progress_benchmark_file.json`
|
| 18 |
+
- `benchmark_splits/test_expert_seen/video_progress_benchmark_file.json`
|
| 19 |
+
- `benchmark_splits/test_expert_unseen/video_progress_benchmark_file.json`
|
| 20 |
+
- `benchmark_splits/test_nonexpert_seen/video_progress_benchmark_file.json`
|
| 21 |
+
- `benchmark_splits/test_nonexpert_unseen/video_progress_benchmark_file.json`
|
| 22 |
- `scripts/extract_vlac2_release_raw_archives.sh`
|
| 23 |
- `scripts/extract_vlac2_release_frames.py`
|
| 24 |
- `scripts/vlac2_release_common.py`
|
| 25 |
+
- `data/train_videos.tar`
|
| 26 |
+
- `data/test_videos.tar`
|
| 27 |
|
| 28 |
## Usage
|
| 29 |
|
|
|
|
| 31 |
|
| 32 |
```bash
|
| 33 |
bash scripts/extract_vlac2_release_raw_archives.sh \
|
| 34 |
+
/path/to/vlac2_release/data \
|
| 35 |
/path/to/vlac2_release/vlac2_release_data
|
| 36 |
```
|
| 37 |
|
| 38 |
+
If both arguments are omitted, the script defaults to `data/` and extracts into `vlac2_release_data/` under the release root.
|
| 39 |
+
The script expects exactly the released benchmark archives: `test_videos.tar` and `train_videos.tar` (or their `.tar.zst` variants).
|
| 40 |
|
| 41 |
2. Extract benchmark frames from the unpacked raw videos.
|
| 42 |
|
{benchmark_data → benchmark_splits}/test_expert_seen/video_progress_benchmark_file.json
RENAMED
|
File without changes
|
{benchmark_data → benchmark_splits}/test_expert_unseen/video_progress_benchmark_file.json
RENAMED
|
File without changes
|
{benchmark_data → benchmark_splits}/test_nonexpert_seen/video_progress_benchmark_file.json
RENAMED
|
File without changes
|
{benchmark_data → benchmark_splits}/test_nonexpert_unseen/video_progress_benchmark_file.json
RENAMED
|
File without changes
|
{benchmark_data → benchmark_splits}/train/video_progress_benchmark_file.json
RENAMED
|
File without changes
|
video_archives/vlac2_benchmark_test_main_path_videos.tar → data/test_videos.tar
RENAMED
|
File without changes
|
video_archives/vlac2_benchmark_train_main_path_videos.tar → data/train_videos.tar
RENAMED
|
File without changes
|
scripts/extract_vlac2_release_frames.py
CHANGED
|
@@ -53,7 +53,7 @@ def parse_args() -> argparse.Namespace:
|
|
| 53 |
"--release-root",
|
| 54 |
type=Path,
|
| 55 |
required=True,
|
| 56 |
-
help="Release root containing
|
| 57 |
)
|
| 58 |
parser.add_argument(
|
| 59 |
"--raw-root",
|
|
@@ -71,7 +71,7 @@ def parse_args() -> argparse.Namespace:
|
|
| 71 |
"--benchmark-json",
|
| 72 |
action="append",
|
| 73 |
default=None,
|
| 74 |
-
help="Optional specific benchmark JSON(s). Defaults to discovering
|
| 75 |
)
|
| 76 |
parser.add_argument(
|
| 77 |
"--view-mode",
|
|
|
|
| 53 |
"--release-root",
|
| 54 |
type=Path,
|
| 55 |
required=True,
|
| 56 |
+
help="Release root containing benchmark_splits/ 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_splits/**/*.json inside the release root.",
|
| 75 |
)
|
| 76 |
parser.add_argument(
|
| 77 |
"--view-mode",
|
scripts/extract_vlac2_release_raw_archives.sh
CHANGED
|
@@ -2,27 +2,35 @@
|
|
| 2 |
set -euo pipefail
|
| 3 |
|
| 4 |
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
| 5 |
-
ARCHIVE_DIR="${1:-${ROOT_DIR}/
|
| 6 |
RAW_DIR="${2:-${ROOT_DIR}/vlac2_release_data}"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
mkdir -p "${RAW_DIR}"
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
fi
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
echo "missing archive: ${archive}" >&2
|
| 24 |
exit 1
|
| 25 |
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
done
|
| 27 |
|
| 28 |
for archive in "${archives[@]}"; do
|
|
|
|
| 2 |
set -euo pipefail
|
| 3 |
|
| 4 |
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
| 5 |
+
ARCHIVE_DIR="${1:-${ROOT_DIR}/data}"
|
| 6 |
RAW_DIR="${2:-${ROOT_DIR}/vlac2_release_data}"
|
| 7 |
+
EXPECTED_BASES=(
|
| 8 |
+
"test_videos"
|
| 9 |
+
"train_videos"
|
| 10 |
+
)
|
| 11 |
|
| 12 |
mkdir -p "${RAW_DIR}"
|
| 13 |
|
| 14 |
+
archives=()
|
| 15 |
+
for base in "${EXPECTED_BASES[@]}"; do
|
| 16 |
+
matches=()
|
| 17 |
+
for suffix in ".tar" ".tar.zst"; do
|
| 18 |
+
candidate="${ARCHIVE_DIR}/${base}${suffix}"
|
| 19 |
+
if [[ -f "${candidate}" ]]; then
|
| 20 |
+
matches+=("${candidate}")
|
| 21 |
+
fi
|
| 22 |
+
done
|
|
|
|
| 23 |
|
| 24 |
+
if [[ "${#matches[@]}" -eq 0 ]]; then
|
| 25 |
+
echo "missing expected archive under ${ARCHIVE_DIR}: ${base}.tar or ${base}.tar.zst" >&2
|
|
|
|
| 26 |
exit 1
|
| 27 |
fi
|
| 28 |
+
if [[ "${#matches[@]}" -gt 1 ]]; then
|
| 29 |
+
echo "found multiple archive variants for ${base} under ${ARCHIVE_DIR}; keep only one of .tar or .tar.zst" >&2
|
| 30 |
+
exit 1
|
| 31 |
+
fi
|
| 32 |
+
|
| 33 |
+
archives+=("${matches[0]}")
|
| 34 |
done
|
| 35 |
|
| 36 |
for archive in "${archives[@]}"; do
|
scripts/vlac2_release_common.py
CHANGED
|
@@ -24,7 +24,7 @@ GENERATED_MARKER_FILENAME = "_GENERATED"
|
|
| 24 |
PUBLIC_BENCHMARK_JSON_NAME = "video_progress_benchmark_file.json"
|
| 25 |
PUBLIC_RELEASE_ROOT_PLACEHOLDER = "__VLAC2_RELEASE_ROOT__"
|
| 26 |
PUBLIC_FRAMES_ROOT_PLACEHOLDER = "__VLAC2_FRAMES_ROOT__"
|
| 27 |
-
PUBLIC_BENCHMARK_DIRNAME = "
|
| 28 |
LEGACY_BENCHMARK_DIRNAME = "benchmark_json"
|
| 29 |
|
| 30 |
|
|
|
|
| 24 |
PUBLIC_BENCHMARK_JSON_NAME = "video_progress_benchmark_file.json"
|
| 25 |
PUBLIC_RELEASE_ROOT_PLACEHOLDER = "__VLAC2_RELEASE_ROOT__"
|
| 26 |
PUBLIC_FRAMES_ROOT_PLACEHOLDER = "__VLAC2_FRAMES_ROOT__"
|
| 27 |
+
PUBLIC_BENCHMARK_DIRNAME = "benchmark_splits"
|
| 28 |
LEGACY_BENCHMARK_DIRNAME = "benchmark_json"
|
| 29 |
|
| 30 |
|