futurefantasy commited on
Commit
031421a
·
verified ·
1 Parent(s): 8d2316e

Add docs/vlac2_public_release.md

Browse files
Files changed (1) hide show
  1. docs/vlac2_public_release.md +104 -0
docs/vlac2_public_release.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # VLAC2 Public Release
2
+
3
+ 这是一个最小使用说明,主要说明拿到发布包后怎么放数据、怎么抽帧、以及后续该用哪个 benchmark JSON。
4
+
5
+ ## 发布包包含什么
6
+
7
+ ```text
8
+ vlac2_release/
9
+ ├── benchmark_json/
10
+ ├── vlac2_release_data/
11
+ ├── _extracted_frames/
12
+ ├── scripts/
13
+ └── docs/
14
+ ```
15
+
16
+ - `benchmark_json/`
17
+ - 公开提供的 benchmark 文件。
18
+ - 包含 `train/` 和 4 个 `test_*` bucket。
19
+ - `vlac2_release_data/`
20
+ - 放原始数据集视频和相关原始文件。
21
+ - 发布包只保留目录结构,真实数据需要你自己补进去。
22
+ - `_extracted_frames/`
23
+ - 抽帧后的 JPG 会写到这里。
24
+ - `_GENERATED` 只是一个标记文件,表示这个目录由程序生成。
25
+ - `scripts/extract_vlac2_release_frames.py`
26
+ - 用户拿到包后需要运行的抽帧脚本。
27
+
28
+ ## 基础使用
29
+
30
+ ### 1. 放原始数据
31
+
32
+ 把原始数据按原有相对结构放到:
33
+
34
+ ```text
35
+ <release-root>/vlac2_release_data/
36
+ ```
37
+
38
+ 例如:
39
+
40
+ ```text
41
+ <release-root>/vlac2_release_data/ARX-data/...
42
+ <release-root>/vlac2_release_data/libero/...
43
+ <release-root>/vlac2_release_data/libero_zty50/...
44
+ ```
45
+
46
+ ### 2. 运行抽帧
47
+
48
+ 在 release 根目录下运行:
49
+
50
+ ```bash
51
+ python scripts/extract_vlac2_release_frames.py --release-root /path/to/vlac2_release
52
+ ```
53
+
54
+ 默认行为:
55
+
56
+ - 自动读取 `benchmark_json/` 里的 benchmark 文件
57
+ - 自动找到对应原始视频
58
+ - 把抽出的帧写到 `_extracted_frames/...`
59
+ - 图片命名格式为:
60
+ - `{frame_idx}-{num_frames}.jpg`
61
+
62
+ 如果只想抽 benchmark 主视角,可以运行:
63
+
64
+ ```bash
65
+ python scripts/extract_vlac2_release_frames.py \
66
+ --release-root /path/to/vlac2_release \
67
+ --view-mode main-only
68
+ ```
69
+
70
+ 如果想强制重抽已经存在的帧,可以运行:
71
+
72
+ ```bash
73
+ python scripts/extract_vlac2_release_frames.py \
74
+ --release-root /path/to/vlac2_release \
75
+ --overwrite-existing
76
+ ```
77
+
78
+ ## 后续使用哪个文件
79
+
80
+ 后续测评只使用:
81
+
82
+ - `benchmark_json/.../video_progress_benchmark_file.json`
83
+
84
+ 不需要用户自己重建 benchmark JSON。
85
+
86
+ ## 路径说明
87
+
88
+ `video_progress_benchmark_file.json` 里的图片路径使用占位前缀:
89
+
90
+ - `__VLAC2_RELEASE_ROOT__/_extracted_frames/...`
91
+
92
+ 实际使用时,把它替换成你本地 release 根目录的绝对路径即可。例如:
93
+
94
+ - `__VLAC2_RELEASE_ROOT__/_extracted_frames/...`
95
+ - `/abs/path/to/vlac2_release/_extracted_frames/...`
96
+
97
+ ## 依赖
98
+
99
+ 抽帧脚本至少需要一个解码后端:
100
+
101
+ - `opencv-python`
102
+ - 或 `imageio`
103
+
104
+ 如果两者都没有安装,脚本会直接报错退出。