fix(egohos): finalize review fixes and shared LFS rules
Browse filesUse the same additive LFS rules as main to resolve the shared-file conflict; preserve raw/data content and pending human review. Regression-tested fixes and truthful evidence provenance.
- .gitattributes +0 -0
- EgoHOS/shared-v1.1/doc/REVIEW_FIXES.md +32 -0
- EgoHOS/shared-v1.1/doc/RUNBOOK.md +18 -123
- EgoHOS/shared-v1.1/doc/build.json +25 -2
- EgoHOS/shared-v1.1/doc/validation/report.json +36 -12
- EgoHOS/shared-v1.1/script/OakInk-v1_DATA_MAPPING.md +2 -0
- EgoHOS/shared-v1.1/script/README.md +18 -123
- EgoHOS/shared-v1.1/script/preprocess.py +7 -2
- EgoHOS/shared-v1.1/script/resample_validation.py +2 -0
- EgoHOS/shared-v1.1/script/test_self.py +23 -59
- EgoHOS/shared-v1.1/script/validate.py +2 -0
.gitattributes
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
EgoHOS/shared-v1.1/doc/REVIEW_FIXES.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PR #7 review fixes — 2026-10-17
|
| 2 |
+
|
| 3 |
+
Reviewed parent: `671194f1c18121fe9f415f813665ab0c99c58e4a` in `ParityLab/Hand-Datasets-Raw`.
|
| 4 |
+
This maintenance change updates tools, tests, documentation and evidence bookkeeping only.
|
| 5 |
+
The `data/` subtree and raw data are unchanged from that immutable parent.
|
| 6 |
+
The merge replaces the old release paths atomically and preserves other datasets.
|
| 7 |
+
|
| 8 |
+
## Evidence scope
|
| 9 |
+
|
| 10 |
+
No full real-media decode, full numerical comparison or human visual acceptance was rerun
|
| 11 |
+
for this maintenance change. Historical validation results remain historical, not new
|
| 12 |
+
sign-off. Human review is still pending; this document does not grant approval.
|
| 13 |
+
Git tree/blob identities establish unchanged tracked content, not annotation correctness.
|
| 14 |
+
The maintenance audit records exact before/after Git trees and path changes outside the
|
| 15 |
+
release; Git blob SHA1 identities must not be confused with file-content SHA256 hashes.
|
| 16 |
+
|
| 17 |
+
## Fix and tests
|
| 18 |
+
|
| 19 |
+
The v1.1 build/upload entries and both validators now reject non-EgoHOS data before
|
| 20 |
+
processing it. Legacy OakInk helpers are retained only as historical code, not a supported
|
| 21 |
+
v1.1 numeric converter. README/runbook and synthetic tests match this restriction.
|
| 22 |
+
|
| 23 |
+
`python -B script/test_self.py` passes synthetic JPEG-copy, FFV1/x264 pixel equality,
|
| 24 |
+
mask labels, provenance, directory/version, human-review gates, unsupported build/view/upload,
|
| 25 |
+
and inventory/path/SE3 rejection tests. This is not a real-data acceptance run.
|
| 26 |
+
|
| 27 |
+
`doc/build.json` and `doc/validation/report.json` record the current shipped recipe.
|
| 28 |
+
Their maintenance metadata preserves the previous recipe and identifies the inherited
|
| 29 |
+
full-data evidence. The report's file_hashes are refreshed for modified/new files and
|
| 30 |
+
retain previously independently verified SHA256 values only for unchanged Git blobs.
|
| 31 |
+
The inventory excludes the report itself and human_review.json, as the validator requires.
|
| 32 |
+
No stale human approval is restored.
|
EgoHOS/shared-v1.1/doc/RUNBOOK.md
CHANGED
|
@@ -1,147 +1,42 @@
|
|
| 1 |
-
# EgoHOS
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
|
| 5 |
-
##
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|---|---|---|
|
| 9 |
-
| EgoHOS | RGB + 9 类语义分割;四个官方 split;真实源样本可直接 Range 下载试点 | raw 包没有独立 contact 图,无标定/几何 |
|
| 10 |
-
| OakInk-v1 / OakInk-Image | RGB-only 明确选项;可在服务器处理图像分卷 | 当前 HF raw 不含 anno_v2_1.zip;几何分支须补齐后真实试点 |
|
| 11 |
-
| OakInk 几何可选分支 | K、外参、相机系右手 xyz/派生 uv、物体位姿、居中 OBJ 与依赖 | 无真实标注验收前,仅视为待验证适配器;MANO 未实现,不伪造参数 |
|
| 12 |
-
|
| 13 |
-
OakInk-Shape/OakBase 不作为图像帧转换;具体排除原因见 DATA_MAPPING 文档。FreiHAND 参考链接本次匿名访问返回 401,未以未读内容作实现依据;目录和字段按用户提供的两个约定文件实现。
|
| 14 |
-
|
| 15 |
-
## 环境
|
| 16 |
-
|
| 17 |
-
Python 3.10+、FFmpeg(须有 ffv1 与 libx264rgb)、OakInk 分卷解压需要 7z/7zz。CPU 即可。
|
| 18 |
|
| 19 |
```bash
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
python -m pip install -r requirements.txt
|
| 23 |
-
python test_self.py
|
| 24 |
```
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
## 1. EgoHOS 真实小试点(不下载 4.5 GB 全包)
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
```bash
|
| 33 |
python acquire.py pilot-egohos --out /storage/work/egohos-pilot --per-split 4
|
| 34 |
-
python preprocess.py build --dataset EgoHOS \
|
| 35 |
-
--
|
| 36 |
```
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
```bash
|
| 41 |
-
python preprocess.py approve --release /storage/pilot/EgoHOS/shared-v1.1 --reviewer '审核者姓名'
|
| 42 |
-
```
|
| 43 |
-
|
| 44 |
-
approve 是人工声明记录,不会自行判断人工是否看过。程序不会自动调用 approve。
|
| 45 |
-
|
| 46 |
-
## 2. 原始包下载与工作区解压
|
| 47 |
|
| 48 |
```bash
|
|
|
|
| 49 |
python acquire.py download --dataset EgoHOS --raw /storage/EgoHOS/raw
|
| 50 |
python acquire.py extract --dataset EgoHOS --raw /storage/EgoHOS/raw --out /storage/work/egohos-full
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
python acquire.py extract --dataset OakInk-v1 --raw /storage/OakInk-v1/raw --out /storage/work/oakink-full
|
| 54 |
-
```
|
| 55 |
-
|
| 56 |
-
固定 HF commit,并校验来源文档给出的每包大小/SHA256;原始包保持不变。OakInk `.z01`–`.z10` 与最终 `.zip` 是分卷 ZIP,由 7z 从最终 .zip 读取,不用 `cat` 伪拼接。下载约 124 GB,还需解压、编码候选与输出空间;预先准备数百 GB 空间,命令做磁盘预检但不保证压缩率估计准确。提取失败的目录不自动覆盖,诊断后选新目录重跑。
|
| 57 |
-
|
| 58 |
-
## 3. OakInk 试点
|
| 59 |
-
|
| 60 |
-
无需先下载全部 124 GB,也可做有限范围 RGB 小试点(只从首个分卷的前 128 个 PNG 条目中按相机抽样,不代表全数据集随机覆盖):
|
| 61 |
-
|
| 62 |
-
```bash
|
| 63 |
-
python acquire.py pilot-oakink-rgb --out /storage/work/oakink-pilot --per-split 2
|
| 64 |
-
python acquire.py fetch-oakink-objects --out /storage/work/oakink-pilot
|
| 65 |
-
python preprocess.py build --dataset OakInk-v1 --input /storage/work/oakink-pilot \
|
| 66 |
-
--out /storage/pilot/OakInk-v1/shared-v1.1 --allow-rgb-only
|
| 67 |
-
```
|
| 68 |
-
|
| 69 |
-
完整工作区已解压时,当前 HF 没有 anno,若本次范围只接受现有 RGB:
|
| 70 |
-
|
| 71 |
-
```bash
|
| 72 |
-
python preprocess.py build --dataset OakInk-v1 \
|
| 73 |
-
--input /storage/work/oakink-full --out /storage/pilot/OakInk-v1/shared-v1.1 \
|
| 74 |
-
--allow-rgb-only --per-stratum 4
|
| 75 |
-
```
|
| 76 |
-
|
| 77 |
-
按 camera×split 固定种子抽样,unknown split 明确保留,不随意划分训练集。该结果没有手关键点或手/物逐帧位姿;如果工作区已有 image/obj,会保留静态网格和规范坐标系预览,仍不能作为完整几何交付。
|
| 78 |
-
|
| 79 |
-
若已获可信官方 `anno_v2_1.zip`,先用以下命令校验每成员 CRC、记录文件和原包 SHA256,再解压到同一工作区 `image/anno`:
|
| 80 |
-
|
| 81 |
-
```bash
|
| 82 |
-
python acquire.py extract-annotations --archive /storage/OakInk-v1/raw/data/image/anno_v2_1.zip \
|
| 83 |
-
--out /storage/work/oakink-full
|
| 84 |
```
|
| 85 |
|
| 86 |
-
|
| 87 |
|
| 88 |
```bash
|
| 89 |
-
python preprocess.py build --dataset OakInk-v1 \
|
| 90 |
-
--input /storage/work/oakink-full --out /storage/pilot/OakInk-v1/shared-v1.1 \
|
| 91 |
-
--annotations /storage/work/oakink-full/image/anno --trust-pickle --split-scheme split0
|
| 92 |
-
```
|
| 93 |
-
|
| 94 |
-
`--trust-pickle` 仅用于可信官方标注,因为 pickle 可执行代码。每条来源记录格式(路径相对 --input;SHA256 填真实结果):
|
| 95 |
-
|
| 96 |
-
```json
|
| 97 |
-
{"path":"image/anno/seq_all.json","sha256":"实际文件SHA256","source_locator":{"file":"OakInk-v1/raw/data/image/anno_v2_1.zip","archive_sha256":"实际包SHA256","member":"anno/seq_all.json"}}
|
| 98 |
-
```
|
| 99 |
-
|
| 100 |
-
几何路径不会强行把 sbj_flag 0/1 映射成左右手;两人的右手分别在 person0/person1 序列。检查 canonical 网格、相机系关键点/物体点云以及 2D 叠加。模型来源、量纲或关键点定义无法确认时不要 approve。MANO 需要另做模型配置与顶点重建对照,当前不导出。
|
| 101 |
-
|
| 102 |
-
## 4. 试点批准后全量
|
| 103 |
-
|
| 104 |
-
```bash
|
| 105 |
-
python preprocess.py build --dataset EgoHOS --phase full \
|
| 106 |
-
--input /storage/work/egohos-full --out /storage/EgoHOS/shared-v1.1 \
|
| 107 |
-
--pilot /storage/pilot/EgoHOS/shared-v1.1
|
| 108 |
-
|
| 109 |
-
python preprocess.py approve --release /storage/pilot/OakInk-v1/shared-v1.1 --reviewer '审核者姓名'
|
| 110 |
-
python preprocess.py build --dataset OakInk-v1 --phase full \
|
| 111 |
-
--input /storage/work/oakink-full --out /storage/OakInk-v1/shared-v1.1 \
|
| 112 |
-
--pilot /storage/pilot/OakInk-v1/shared-v1.1 --allow-rgb-only
|
| 113 |
-
```
|
| 114 |
-
|
| 115 |
-
OakInk 若试点启用标注,全量也用相同 --annotations、--trust-pickle、--split-scheme,去掉 --allow-rgb-only。chunk、seed、代码、模态范围须与试点一致;变更后须重做试点。输出目录必须不存在。EgoHOS full 强制核对四组完整数量,防止把试点数据当全量。
|
| 116 |
-
|
| 117 |
-
所有视图均逐帧校验视频/数组;全量 HTML 按 split×camera 随机抽取视图并显示所选视图的每一帧,绝不将人工抽检称为全量人工审核。若要浏览所有帧的所有要素(会生成大量 PNG/HTML):
|
| 118 |
-
|
| 119 |
-
```bash
|
| 120 |
-
python validate.py /storage/EgoHOS/shared-v1.1 --all --source-root /storage/work/egohos-full
|
| 121 |
-
```
|
| 122 |
-
|
| 123 |
-
重新 validate 会使旧人工审核失效。输入、输出、每帧 provenance 与文件 SHA256 均可检查。自动检查只验证实现支持的字段,并不能自动证明数据集原生语义和真实几何正确。
|
| 124 |
-
|
| 125 |
-
## 5. 最终抽检与上传
|
| 126 |
-
|
| 127 |
-
打开全量结果的 doc/validation/index.html,再次人工抽检后:
|
| 128 |
-
|
| 129 |
-
```bash
|
| 130 |
-
python preprocess.py approve --release /storage/EgoHOS/shared-v1.1 --reviewer '审核者姓名'
|
| 131 |
python preprocess.py upload --release /storage/EgoHOS/shared-v1.1
|
| 132 |
-
|
| 133 |
-
python preprocess.py approve --release /storage/OakInk-v1/shared-v1.1 --reviewer '审核者姓名'
|
| 134 |
-
python preprocess.py upload --release /storage/OakInk-v1/shared-v1.1
|
| 135 |
```
|
| 136 |
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
## 输出文件
|
| 140 |
-
|
| 141 |
-
- `doc/DATA_MAPPING.md` 与兼容约定文件名 `doc/RAW_TO_SHARED.md`:raw 映射、未纳入内容和原因。
|
| 142 |
-
- `doc/validation/index.html`、预览 PNG、`report.json`:视觉与自动检查。
|
| 143 |
-
- `doc/build.json`:完整命令、源 inventory 摘要、选择策略、处理数。
|
| 144 |
-
- `script/`:本次处理脚��和全部必需支持文件;不包含 venv、token 或 MANO 权重。
|
| 145 |
-
- `data/<sequence>/<camera>/`:metainfo、frames、MKV、CPU tensor、已选物体资产。
|
| 146 |
-
|
| 147 |
-
测试状态与真实试点范围见随包 `TEST_RESULTS.md`。没有真实标注包时,对几何分支的检查只能算合成端到端检查。
|
|
|
|
| 1 |
+
# EgoHOS v1.1 工具
|
| 2 |
|
| 3 |
+
本发布的转换、校验和上传入口只支持 **EgoHOS**(RGB、语义分割及各自独立 bool valid)。
|
| 4 |
+
保留的 OakInk 辅助代码/来源文档是历史材料;数值 bundle 未在此实现,入口明确拒绝 OakInk,不能用它生成或上传“v1.1”几何数据。
|
| 5 |
+
版本与目录名取自 `script/schema.json`。媒体与 JSONL 不参与数值合并。
|
| 6 |
|
| 7 |
+
## 环境与回归
|
| 8 |
|
| 9 |
+
Python 3.10+、FFmpeg,以及 requirements.txt 中的依赖。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
```bash
|
| 12 |
+
export PYTHONDONTWRITEBYTECODE=1
|
| 13 |
+
python -B test_self.py
|
|
|
|
|
|
|
| 14 |
```
|
| 15 |
|
| 16 |
+
测试只使用合成图片/标签,检查无损媒体、版本、拒绝旧目录名、人工复核门禁及未适配分支;不替代真实人工验收。
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
## 试点与全量
|
| 19 |
|
| 20 |
```bash
|
| 21 |
python acquire.py pilot-egohos --out /storage/work/egohos-pilot --per-split 4
|
| 22 |
+
python preprocess.py build --dataset EgoHOS --input /storage/work/egohos-pilot \
|
| 23 |
+
--out /storage/pilot/EgoHOS/shared-v1.1
|
| 24 |
```
|
| 25 |
|
| 26 |
+
人工查看试点 `doc/validation/index.html`,确认后才执行:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
```bash
|
| 29 |
+
python preprocess.py approve --release /storage/pilot/EgoHOS/shared-v1.1 --reviewer '真实审核者姓名'
|
| 30 |
python acquire.py download --dataset EgoHOS --raw /storage/EgoHOS/raw
|
| 31 |
python acquire.py extract --dataset EgoHOS --raw /storage/EgoHOS/raw --out /storage/work/egohos-full
|
| 32 |
+
python preprocess.py build --dataset EgoHOS --phase full --input /storage/work/egohos-full \
|
| 33 |
+
--out /storage/EgoHOS/shared-v1.1 --pilot /storage/pilot/EgoHOS/shared-v1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
```
|
| 35 |
|
| 36 |
+
全量运行后再次人工查看,再 approve。上传需另行授权;上传命令拒绝已存在的远端发布树,不能用于自动覆盖既有发布:
|
| 37 |
|
| 38 |
```bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
python preprocess.py upload --release /storage/EgoHOS/shared-v1.1
|
|
|
|
|
|
|
|
|
|
| 40 |
```
|
| 41 |
|
| 42 |
+
`validate.py` 与 `resample_validation.py` 均校验版本、视图集合与工具摘要;现有验收记录的历史范围和本次工具修复见发布 `doc/REVIEW_FIXES.md`。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EgoHOS/shared-v1.1/doc/build.json
CHANGED
|
@@ -8,9 +8,9 @@
|
|
| 8 |
"annotations": false,
|
| 9 |
"split_scheme": "split0",
|
| 10 |
"code_sha256": {
|
| 11 |
-
"preprocess.py": "
|
| 12 |
"media.py": "ace183f298d1073ee9d453f13464d58e0be685fe09a3ddd99a78c67b4c7337ec",
|
| 13 |
-
"validate.py": "
|
| 14 |
"acquire.py": "1f010b87f6cc13d41058ba5b6b4ac89b4becc9ef4b5a15f887f00842dfdc6993",
|
| 15 |
"schema.json": "9f3769f950b36f75f3d571c77b5a661ca8e72afae20c9f1ddd1deef140e6cca8",
|
| 16 |
"CONTRACT.md": "4a61d6efb6daccdb3ff14841586953f776c7e3059521e42a423abcf1b67db7b9"
|
|
@@ -202,5 +202,28 @@
|
|
| 202 |
],
|
| 203 |
"validation": "见 doc/validation/report.json(本地全量:106 个视图、11743 帧)",
|
| 204 |
"registration": "发布树外登记与发布清单见 tmp/egohos-tools/MIGRATION_REGISTRATION.json、PUBLISH_MANIFEST.json"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
}
|
| 206 |
}
|
|
|
|
| 8 |
"annotations": false,
|
| 9 |
"split_scheme": "split0",
|
| 10 |
"code_sha256": {
|
| 11 |
+
"preprocess.py": "dd31d901599b5841f1305197a546e548695afad368737ffd5b63192c671e600f",
|
| 12 |
"media.py": "ace183f298d1073ee9d453f13464d58e0be685fe09a3ddd99a78c67b4c7337ec",
|
| 13 |
+
"validate.py": "dafe3082b4d1f328e53267aafcfb3d056317daf42024493ec8a982000b3e7341",
|
| 14 |
"acquire.py": "1f010b87f6cc13d41058ba5b6b4ac89b4becc9ef4b5a15f887f00842dfdc6993",
|
| 15 |
"schema.json": "9f3769f950b36f75f3d571c77b5a661ca8e72afae20c9f1ddd1deef140e6cca8",
|
| 16 |
"CONTRACT.md": "4a61d6efb6daccdb3ff14841586953f776c7e3059521e42a423abcf1b67db7b9"
|
|
|
|
| 202 |
],
|
| 203 |
"validation": "见 doc/validation/report.json(本地全量:106 个视图、11743 帧)",
|
| 204 |
"registration": "发布树外登记与发布清单见 tmp/egohos-tools/MIGRATION_REGISTRATION.json、PUBLISH_MANIFEST.json"
|
| 205 |
+
},
|
| 206 |
+
"maintenance": {
|
| 207 |
+
"date": "2026-10-17",
|
| 208 |
+
"reviewed_parent": "671194f1c18121fe9f415f813665ab0c99c58e4a",
|
| 209 |
+
"scope": "unsupported-entry guards, docs and synthetic regression; no data modification",
|
| 210 |
+
"previous_recipe": {
|
| 211 |
+
"dataset": "EgoHOS",
|
| 212 |
+
"chunk": 128,
|
| 213 |
+
"seed": 20260928,
|
| 214 |
+
"annotations": false,
|
| 215 |
+
"split_scheme": "split0",
|
| 216 |
+
"code_sha256": {
|
| 217 |
+
"preprocess.py": "c278753f8ff5f141bfa19ffbac1b8073db2fc8c7035efa74b8af495bdc7b1bc3",
|
| 218 |
+
"media.py": "ace183f298d1073ee9d453f13464d58e0be685fe09a3ddd99a78c67b4c7337ec",
|
| 219 |
+
"validate.py": "14d650390dc2011c5d645a620b63250a22cb109f2e6bb78d8c19854461a7065d",
|
| 220 |
+
"acquire.py": "1f010b87f6cc13d41058ba5b6b4ac89b4becc9ef4b5a15f887f00842dfdc6993",
|
| 221 |
+
"schema.json": "9f3769f950b36f75f3d571c77b5a661ca8e72afae20c9f1ddd1deef140e6cca8",
|
| 222 |
+
"CONTRACT.md": "4a61d6efb6daccdb3ff14841586953f776c7e3059521e42a423abcf1b67db7b9"
|
| 223 |
+
}
|
| 224 |
+
},
|
| 225 |
+
"full_real_data_validation": "inherited from reviewed parent; not rerun with current recipe",
|
| 226 |
+
"evidence": "doc/REVIEW_FIXES.md",
|
| 227 |
+
"human_review": "pending"
|
| 228 |
}
|
| 229 |
}
|
EgoHOS/shared-v1.1/doc/validation/report.json
CHANGED
|
@@ -8,9 +8,9 @@
|
|
| 8 |
"annotations": false,
|
| 9 |
"split_scheme": "split0",
|
| 10 |
"code_sha256": {
|
| 11 |
-
"preprocess.py": "
|
| 12 |
"media.py": "ace183f298d1073ee9d453f13464d58e0be685fe09a3ddd99a78c67b4c7337ec",
|
| 13 |
-
"validate.py": "
|
| 14 |
"acquire.py": "1f010b87f6cc13d41058ba5b6b4ac89b4becc9ef4b5a15f887f00842dfdc6993",
|
| 15 |
"schema.json": "9f3769f950b36f75f3d571c77b5a661ca8e72afae20c9f1ddd1deef140e6cca8",
|
| 16 |
"CONTRACT.md": "4a61d6efb6daccdb3ff14841586953f776c7e3059521e42a423abcf1b67db7b9"
|
|
@@ -433,25 +433,25 @@
|
|
| 433 |
"file_hashes": {
|
| 434 |
"doc/RAW_TO_SHARED.md": "cfaa0f3befc619c88931642fde9cbf34236dacd2cfe73210aed8de4caab2ecb1",
|
| 435 |
"doc/schema.json": "9f3769f950b36f75f3d571c77b5a661ca8e72afae20c9f1ddd1deef140e6cca8",
|
| 436 |
-
"doc/RUNBOOK.md": "
|
| 437 |
"doc/DATA_MAPPING.md": "cfaa0f3befc619c88931642fde9cbf34236dacd2cfe73210aed8de4caab2ecb1",
|
| 438 |
"doc/CONTRACT.md": "4a61d6efb6daccdb3ff14841586953f776c7e3059521e42a423abcf1b67db7b9",
|
| 439 |
"doc/MIGRATION.md": "773f5146d49f5060bfc13ef92c143c59b683a6dc633cad44897414d5299088a0",
|
| 440 |
-
"doc/build.json": "
|
| 441 |
"doc/V1_0_SEMANTICS.md": "c34cdf6645f91233cc28d86f8abc82f019f78767d863e225f75722984d9adb19",
|
| 442 |
"doc/pilot_human_review.json": "1baa24dc868f248f6f2dae9fa34cee1374c72d4cf949e8d80d14b1fd4afd7b07",
|
| 443 |
-
"script/test_self.py": "
|
| 444 |
"script/schema.json": "9f3769f950b36f75f3d571c77b5a661ca8e72afae20c9f1ddd1deef140e6cca8",
|
| 445 |
-
"script/README.md": "
|
| 446 |
-
"script/validate.py": "
|
| 447 |
"script/acquire.py": "1f010b87f6cc13d41058ba5b6b4ac89b4becc9ef4b5a15f887f00842dfdc6993",
|
| 448 |
"script/CONTRACT.md": "4a61d6efb6daccdb3ff14841586953f776c7e3059521e42a423abcf1b67db7b9",
|
| 449 |
"script/requirements.txt": "b2ac75f2c8739e2bc1c18cca6d6df04c829b3cedb0897c178ab4a3da4f639ffc",
|
| 450 |
"script/media.py": "ace183f298d1073ee9d453f13464d58e0be685fe09a3ddd99a78c67b4c7337ec",
|
| 451 |
"script/EgoHOS_DATA_MAPPING.md": "cfaa0f3befc619c88931642fde9cbf34236dacd2cfe73210aed8de4caab2ecb1",
|
| 452 |
-
"script/OakInk-v1_DATA_MAPPING.md": "
|
| 453 |
-
"script/preprocess.py": "
|
| 454 |
-
"script/resample_validation.py": "
|
| 455 |
"data/train_1440x1080_000020/ego/metainfo.json": "67ee3587ae318d2d8c9ea69fe3f2eb40c420cd3f212215bb1a8f7eb159748cce",
|
| 456 |
"data/train_1440x1080_000020/ego/encoding_validation.json": "510d2a00a62fe94ca007893111e005cba391df9319e6943dc4c5c0890eed18cc",
|
| 457 |
"data/train_1440x1080_000020/ego/observation/rgb_valid.pt": "aa7fff018778d52c47e0824b1887b4cbff83ea2cb8242afd95a4ea76ee36bca0",
|
|
@@ -2000,11 +2000,35 @@
|
|
| 2000 |
"script/source_evidence/OakInk-v1-archive_checksums.json": "fbf23d0a9169596002cdc2a1a8810b95c651419de0e615c9b0624580a12c3b3f",
|
| 2001 |
"script/source_evidence/EgoHOS-README.md": "6e9d4c1a70e60a916057b00fa4c9b4a3c3aa1a434a8f70b1e69b5c975c2770fb",
|
| 2002 |
"script/source_evidence/EgoHOS-archive_checksums.json": "7f8e0f76461a08823fd8651e2261865eac177f84d15792eb29b1e08c916b31ef",
|
| 2003 |
-
"script/source_evidence/OakInk-v1-README.md": "a0ed267db7e0870ce5edd56dc477f49ac3815641f491ef5ed74d1362a93e2afb"
|
|
|
|
| 2004 |
},
|
| 2005 |
"limitations": [
|
| 2006 |
"OakInk MANO conversion not implemented until model-profile and translation parity verified",
|
| 2007 |
"OakInk-Shape/OakBase excluded: object-space grasp/knowledge assets are not synchronized camera observations",
|
| 2008 |
"No source visibility/contact guessed from geometry or masks"
|
| 2009 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2010 |
}
|
|
|
|
| 8 |
"annotations": false,
|
| 9 |
"split_scheme": "split0",
|
| 10 |
"code_sha256": {
|
| 11 |
+
"preprocess.py": "dd31d901599b5841f1305197a546e548695afad368737ffd5b63192c671e600f",
|
| 12 |
"media.py": "ace183f298d1073ee9d453f13464d58e0be685fe09a3ddd99a78c67b4c7337ec",
|
| 13 |
+
"validate.py": "dafe3082b4d1f328e53267aafcfb3d056317daf42024493ec8a982000b3e7341",
|
| 14 |
"acquire.py": "1f010b87f6cc13d41058ba5b6b4ac89b4becc9ef4b5a15f887f00842dfdc6993",
|
| 15 |
"schema.json": "9f3769f950b36f75f3d571c77b5a661ca8e72afae20c9f1ddd1deef140e6cca8",
|
| 16 |
"CONTRACT.md": "4a61d6efb6daccdb3ff14841586953f776c7e3059521e42a423abcf1b67db7b9"
|
|
|
|
| 433 |
"file_hashes": {
|
| 434 |
"doc/RAW_TO_SHARED.md": "cfaa0f3befc619c88931642fde9cbf34236dacd2cfe73210aed8de4caab2ecb1",
|
| 435 |
"doc/schema.json": "9f3769f950b36f75f3d571c77b5a661ca8e72afae20c9f1ddd1deef140e6cca8",
|
| 436 |
+
"doc/RUNBOOK.md": "ed72227f294ffe5e6735e1f4e59ea45553f6fc91a6325f9d50f0c8505c6bd863",
|
| 437 |
"doc/DATA_MAPPING.md": "cfaa0f3befc619c88931642fde9cbf34236dacd2cfe73210aed8de4caab2ecb1",
|
| 438 |
"doc/CONTRACT.md": "4a61d6efb6daccdb3ff14841586953f776c7e3059521e42a423abcf1b67db7b9",
|
| 439 |
"doc/MIGRATION.md": "773f5146d49f5060bfc13ef92c143c59b683a6dc633cad44897414d5299088a0",
|
| 440 |
+
"doc/build.json": "82d0fbbcaafdd94b92d113891976ba667569ae5973d55e0b7b41d86b3db4abd8",
|
| 441 |
"doc/V1_0_SEMANTICS.md": "c34cdf6645f91233cc28d86f8abc82f019f78767d863e225f75722984d9adb19",
|
| 442 |
"doc/pilot_human_review.json": "1baa24dc868f248f6f2dae9fa34cee1374c72d4cf949e8d80d14b1fd4afd7b07",
|
| 443 |
+
"script/test_self.py": "5cb8813f9686110aeb978e8f7d864782d2c27d03f31750b2af95aab4591292ca",
|
| 444 |
"script/schema.json": "9f3769f950b36f75f3d571c77b5a661ca8e72afae20c9f1ddd1deef140e6cca8",
|
| 445 |
+
"script/README.md": "ed72227f294ffe5e6735e1f4e59ea45553f6fc91a6325f9d50f0c8505c6bd863",
|
| 446 |
+
"script/validate.py": "dafe3082b4d1f328e53267aafcfb3d056317daf42024493ec8a982000b3e7341",
|
| 447 |
"script/acquire.py": "1f010b87f6cc13d41058ba5b6b4ac89b4becc9ef4b5a15f887f00842dfdc6993",
|
| 448 |
"script/CONTRACT.md": "4a61d6efb6daccdb3ff14841586953f776c7e3059521e42a423abcf1b67db7b9",
|
| 449 |
"script/requirements.txt": "b2ac75f2c8739e2bc1c18cca6d6df04c829b3cedb0897c178ab4a3da4f639ffc",
|
| 450 |
"script/media.py": "ace183f298d1073ee9d453f13464d58e0be685fe09a3ddd99a78c67b4c7337ec",
|
| 451 |
"script/EgoHOS_DATA_MAPPING.md": "cfaa0f3befc619c88931642fde9cbf34236dacd2cfe73210aed8de4caab2ecb1",
|
| 452 |
+
"script/OakInk-v1_DATA_MAPPING.md": "f06dbb1fbf474122b1e200130b768321716140c5b745d7e614a38e55c931198a",
|
| 453 |
+
"script/preprocess.py": "dd31d901599b5841f1305197a546e548695afad368737ffd5b63192c671e600f",
|
| 454 |
+
"script/resample_validation.py": "9d8e1a00bc16d09c445eb35b0b433558475f7815eb459666d06558e7b28d471d",
|
| 455 |
"data/train_1440x1080_000020/ego/metainfo.json": "67ee3587ae318d2d8c9ea69fe3f2eb40c420cd3f212215bb1a8f7eb159748cce",
|
| 456 |
"data/train_1440x1080_000020/ego/encoding_validation.json": "510d2a00a62fe94ca007893111e005cba391df9319e6943dc4c5c0890eed18cc",
|
| 457 |
"data/train_1440x1080_000020/ego/observation/rgb_valid.pt": "aa7fff018778d52c47e0824b1887b4cbff83ea2cb8242afd95a4ea76ee36bca0",
|
|
|
|
| 2000 |
"script/source_evidence/OakInk-v1-archive_checksums.json": "fbf23d0a9169596002cdc2a1a8810b95c651419de0e615c9b0624580a12c3b3f",
|
| 2001 |
"script/source_evidence/EgoHOS-README.md": "6e9d4c1a70e60a916057b00fa4c9b4a3c3aa1a434a8f70b1e69b5c975c2770fb",
|
| 2002 |
"script/source_evidence/EgoHOS-archive_checksums.json": "7f8e0f76461a08823fd8651e2261865eac177f84d15792eb29b1e08c916b31ef",
|
| 2003 |
+
"script/source_evidence/OakInk-v1-README.md": "a0ed267db7e0870ce5edd56dc477f49ac3815641f491ef5ed74d1362a93e2afb",
|
| 2004 |
+
"doc/REVIEW_FIXES.md": "085d3bcba24d669ab4251d81726992a740d10f6a84f6e0a996c33ab46cfe5d21"
|
| 2005 |
},
|
| 2006 |
"limitations": [
|
| 2007 |
"OakInk MANO conversion not implemented until model-profile and translation parity verified",
|
| 2008 |
"OakInk-Shape/OakBase excluded: object-space grasp/knowledge assets are not synchronized camera observations",
|
| 2009 |
"No source visibility/contact guessed from geometry or masks"
|
| 2010 |
+
],
|
| 2011 |
+
"maintenance": {
|
| 2012 |
+
"date": "2026-10-17",
|
| 2013 |
+
"reviewed_parent": "671194f1c18121fe9f415f813665ab0c99c58e4a",
|
| 2014 |
+
"scope": "unsupported-entry guards, docs and synthetic regression; no data modification",
|
| 2015 |
+
"previous_recipe": {
|
| 2016 |
+
"dataset": "EgoHOS",
|
| 2017 |
+
"chunk": 128,
|
| 2018 |
+
"seed": 20260928,
|
| 2019 |
+
"annotations": false,
|
| 2020 |
+
"split_scheme": "split0",
|
| 2021 |
+
"code_sha256": {
|
| 2022 |
+
"preprocess.py": "c278753f8ff5f141bfa19ffbac1b8073db2fc8c7035efa74b8af495bdc7b1bc3",
|
| 2023 |
+
"media.py": "ace183f298d1073ee9d453f13464d58e0be685fe09a3ddd99a78c67b4c7337ec",
|
| 2024 |
+
"validate.py": "14d650390dc2011c5d645a620b63250a22cb109f2e6bb78d8c19854461a7065d",
|
| 2025 |
+
"acquire.py": "1f010b87f6cc13d41058ba5b6b4ac89b4becc9ef4b5a15f887f00842dfdc6993",
|
| 2026 |
+
"schema.json": "9f3769f950b36f75f3d571c77b5a661ca8e72afae20c9f1ddd1deef140e6cca8",
|
| 2027 |
+
"CONTRACT.md": "4a61d6efb6daccdb3ff14841586953f776c7e3059521e42a423abcf1b67db7b9"
|
| 2028 |
+
}
|
| 2029 |
+
},
|
| 2030 |
+
"full_real_data_validation": "inherited from reviewed parent; not rerun with current recipe",
|
| 2031 |
+
"evidence": "doc/REVIEW_FIXES.md",
|
| 2032 |
+
"human_review": "pending"
|
| 2033 |
+
}
|
| 2034 |
}
|
EgoHOS/shared-v1.1/script/OakInk-v1_DATA_MAPPING.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
# OakInk-v1 raw → shared-v1.1
|
| 2 |
|
| 3 |
本脚本的图像范围是 **OakInk-Image**。仓库名称 OakInk-v1 下包含 OakInk-Image v2 图像包,不应误当成 OakInk2。
|
|
|
|
| 1 |
+
> 历史材料:本 EgoHOS v1.1 工具不再支持 OakInk 转换或上传,以下说明不是当前入口承诺。
|
| 2 |
+
|
| 3 |
# OakInk-v1 raw → shared-v1.1
|
| 4 |
|
| 5 |
本脚本的图像范围是 **OakInk-Image**。仓库名称 OakInk-v1 下包含 OakInk-Image v2 图像包,不应误当成 OakInk2。
|
EgoHOS/shared-v1.1/script/README.md
CHANGED
|
@@ -1,147 +1,42 @@
|
|
| 1 |
-
# EgoHOS
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
|
| 5 |
-
##
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|---|---|---|
|
| 9 |
-
| EgoHOS | RGB + 9 类语义分割;四个官方 split;真实源样本可直接 Range 下载试点 | raw 包没有独立 contact 图,无标定/几何 |
|
| 10 |
-
| OakInk-v1 / OakInk-Image | RGB-only 明确选项;可在服务器处理图像分卷 | 当前 HF raw 不含 anno_v2_1.zip;几何分支须补齐后真实试点 |
|
| 11 |
-
| OakInk 几何可选分支 | K、外参、相机系右手 xyz/派生 uv、物体位姿、居中 OBJ 与依赖 | 无真实标注验收前,仅视为待验证适配器;MANO 未实现,不伪造参数 |
|
| 12 |
-
|
| 13 |
-
OakInk-Shape/OakBase 不作为图像帧转换;具体排除原因见 DATA_MAPPING 文档。FreiHAND 参考链接本次匿名访问返回 401,未以未读内容作实现依据;目录和字段按用户提供的两个约定文件实现。
|
| 14 |
-
|
| 15 |
-
## 环境
|
| 16 |
-
|
| 17 |
-
Python 3.10+、FFmpeg(须有 ffv1 与 libx264rgb)、OakInk 分卷解压需要 7z/7zz。CPU 即可。
|
| 18 |
|
| 19 |
```bash
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
python -m pip install -r requirements.txt
|
| 23 |
-
python test_self.py
|
| 24 |
```
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
## 1. EgoHOS 真实小试点(不下载 4.5 GB 全包)
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
```bash
|
| 33 |
python acquire.py pilot-egohos --out /storage/work/egohos-pilot --per-split 4
|
| 34 |
-
python preprocess.py build --dataset EgoHOS \
|
| 35 |
-
--
|
| 36 |
```
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
```bash
|
| 41 |
-
python preprocess.py approve --release /storage/pilot/EgoHOS/shared-v1.1 --reviewer '审核者姓名'
|
| 42 |
-
```
|
| 43 |
-
|
| 44 |
-
approve 是人工声明记录,不会自行判断人工是否看过。程序不会自动调用 approve。
|
| 45 |
-
|
| 46 |
-
## 2. 原始包下载与工作区解压
|
| 47 |
|
| 48 |
```bash
|
|
|
|
| 49 |
python acquire.py download --dataset EgoHOS --raw /storage/EgoHOS/raw
|
| 50 |
python acquire.py extract --dataset EgoHOS --raw /storage/EgoHOS/raw --out /storage/work/egohos-full
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
python acquire.py extract --dataset OakInk-v1 --raw /storage/OakInk-v1/raw --out /storage/work/oakink-full
|
| 54 |
-
```
|
| 55 |
-
|
| 56 |
-
固定 HF commit,并校验来源文档给出的每包大小/SHA256;原始包保持不变。OakInk `.z01`–`.z10` 与最终 `.zip` 是分卷 ZIP,由 7z 从最终 .zip 读取,不用 `cat` 伪拼接。下载约 124 GB,还需解压、编码候选与输出空间;预先准备数百 GB 空间,命令做磁盘预检但不保证压缩率估计准确。提取失败的目录不自动覆盖,诊断后选新目录重跑。
|
| 57 |
-
|
| 58 |
-
## 3. OakInk 试点
|
| 59 |
-
|
| 60 |
-
无需先下载全部 124 GB,也可做有限范围 RGB 小试点(只从首个分卷的前 128 个 PNG 条目中按相机抽样,不代表全数据集随机覆盖):
|
| 61 |
-
|
| 62 |
-
```bash
|
| 63 |
-
python acquire.py pilot-oakink-rgb --out /storage/work/oakink-pilot --per-split 2
|
| 64 |
-
python acquire.py fetch-oakink-objects --out /storage/work/oakink-pilot
|
| 65 |
-
python preprocess.py build --dataset OakInk-v1 --input /storage/work/oakink-pilot \
|
| 66 |
-
--out /storage/pilot/OakInk-v1/shared-v1.1 --allow-rgb-only
|
| 67 |
-
```
|
| 68 |
-
|
| 69 |
-
完整工作区已解压时,当前 HF 没有 anno,若本次范围只接受现有 RGB:
|
| 70 |
-
|
| 71 |
-
```bash
|
| 72 |
-
python preprocess.py build --dataset OakInk-v1 \
|
| 73 |
-
--input /storage/work/oakink-full --out /storage/pilot/OakInk-v1/shared-v1.1 \
|
| 74 |
-
--allow-rgb-only --per-stratum 4
|
| 75 |
-
```
|
| 76 |
-
|
| 77 |
-
按 camera×split 固定种子抽样,unknown split 明确保留,不随意划分训练集。该结果没有手关键点或手/物逐帧位姿;如果工作区已有 image/obj,会保留静态网格和规范坐标系预览,仍不能作为完整几何交付。
|
| 78 |
-
|
| 79 |
-
若已获可信官方 `anno_v2_1.zip`,先用以下命令校验每成员 CRC、记录文件和原包 SHA256,再解压到同一工作区 `image/anno`:
|
| 80 |
-
|
| 81 |
-
```bash
|
| 82 |
-
python acquire.py extract-annotations --archive /storage/OakInk-v1/raw/data/image/anno_v2_1.zip \
|
| 83 |
-
--out /storage/work/oakink-full
|
| 84 |
```
|
| 85 |
|
| 86 |
-
|
| 87 |
|
| 88 |
```bash
|
| 89 |
-
python preprocess.py build --dataset OakInk-v1 \
|
| 90 |
-
--input /storage/work/oakink-full --out /storage/pilot/OakInk-v1/shared-v1.1 \
|
| 91 |
-
--annotations /storage/work/oakink-full/image/anno --trust-pickle --split-scheme split0
|
| 92 |
-
```
|
| 93 |
-
|
| 94 |
-
`--trust-pickle` 仅用于可信官方标注,因为 pickle 可执行代码。每条来源记录格式(路径相对 --input;SHA256 填真实结果):
|
| 95 |
-
|
| 96 |
-
```json
|
| 97 |
-
{"path":"image/anno/seq_all.json","sha256":"实际文件SHA256","source_locator":{"file":"OakInk-v1/raw/data/image/anno_v2_1.zip","archive_sha256":"实际包SHA256","member":"anno/seq_all.json"}}
|
| 98 |
-
```
|
| 99 |
-
|
| 100 |
-
几何路径不会强行把 sbj_flag 0/1 映射成左右手;两人的右手分别在 person0/person1 序列。检查 canonical 网格、相机系关键点/物体点云以及 2D 叠加。模型来源、量纲或关键点定义无法确认时不要 approve。MANO 需要另做模型配置与顶点重建对照,当前不导出。
|
| 101 |
-
|
| 102 |
-
## 4. 试点批准后全量
|
| 103 |
-
|
| 104 |
-
```bash
|
| 105 |
-
python preprocess.py build --dataset EgoHOS --phase full \
|
| 106 |
-
--input /storage/work/egohos-full --out /storage/EgoHOS/shared-v1.1 \
|
| 107 |
-
--pilot /storage/pilot/EgoHOS/shared-v1.1
|
| 108 |
-
|
| 109 |
-
python preprocess.py approve --release /storage/pilot/OakInk-v1/shared-v1.1 --reviewer '审核者姓名'
|
| 110 |
-
python preprocess.py build --dataset OakInk-v1 --phase full \
|
| 111 |
-
--input /storage/work/oakink-full --out /storage/OakInk-v1/shared-v1.1 \
|
| 112 |
-
--pilot /storage/pilot/OakInk-v1/shared-v1.1 --allow-rgb-only
|
| 113 |
-
```
|
| 114 |
-
|
| 115 |
-
OakInk 若试点启用标注,全量也用相同 --annotations、--trust-pickle、--split-scheme,去掉 --allow-rgb-only。chunk、seed、代码、模态范围须与试点一致;变更后须重做试点。输出目录必须不存在。EgoHOS full 强制核对四组完整数量,防止把试点数据当全量。
|
| 116 |
-
|
| 117 |
-
所有视图均逐帧校验视频/数组;全量 HTML 按 split×camera 随机抽取视图并显示所选视图的每一帧,绝不将人工抽检称为全量人工审核。若要浏览所有帧的所有要素(会生成大量 PNG/HTML):
|
| 118 |
-
|
| 119 |
-
```bash
|
| 120 |
-
python validate.py /storage/EgoHOS/shared-v1.1 --all --source-root /storage/work/egohos-full
|
| 121 |
-
```
|
| 122 |
-
|
| 123 |
-
重新 validate 会使旧人工审核失效。输入、输出、每帧 provenance 与文件 SHA256 均可检查。自动检查只验证实现支持的字段,并不能自动证明数据集原生语义和真实几何正确。
|
| 124 |
-
|
| 125 |
-
## 5. 最终抽检与上传
|
| 126 |
-
|
| 127 |
-
打开全量结果的 doc/validation/index.html,再次人工抽检后:
|
| 128 |
-
|
| 129 |
-
```bash
|
| 130 |
-
python preprocess.py approve --release /storage/EgoHOS/shared-v1.1 --reviewer '审核者姓名'
|
| 131 |
python preprocess.py upload --release /storage/EgoHOS/shared-v1.1
|
| 132 |
-
|
| 133 |
-
python preprocess.py approve --release /storage/OakInk-v1/shared-v1.1 --reviewer '审核者姓名'
|
| 134 |
-
python preprocess.py upload --release /storage/OakInk-v1/shared-v1.1
|
| 135 |
```
|
| 136 |
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
## 输出文件
|
| 140 |
-
|
| 141 |
-
- `doc/DATA_MAPPING.md` 与兼容约定文件名 `doc/RAW_TO_SHARED.md`:raw 映射、未纳入内容和原因。
|
| 142 |
-
- `doc/validation/index.html`、预览 PNG、`report.json`:视觉与自动检查。
|
| 143 |
-
- `doc/build.json`:完整命令、源 inventory 摘要、选择策略、处理数。
|
| 144 |
-
- `script/`:本次处理脚��和全部必需支持文件;不包含 venv、token 或 MANO 权重。
|
| 145 |
-
- `data/<sequence>/<camera>/`:metainfo、frames、MKV、CPU tensor、已选物体资产。
|
| 146 |
-
|
| 147 |
-
测试状态与真实试点范围见随包 `TEST_RESULTS.md`。没有真实标注包时,对几何分支的检查只能算合成端到端检查。
|
|
|
|
| 1 |
+
# EgoHOS v1.1 工具
|
| 2 |
|
| 3 |
+
本发布的转换、校验和上传入口只支持 **EgoHOS**(RGB、语义分割及各自独立 bool valid)。
|
| 4 |
+
保留的 OakInk 辅助代码/来源文档是历史材料;数值 bundle 未在此实现,入口明确拒绝 OakInk,不能用它生成或上传“v1.1”几何数据。
|
| 5 |
+
版本与目录名取自 `script/schema.json`。媒体与 JSONL 不参与数值合并。
|
| 6 |
|
| 7 |
+
## 环境与回归
|
| 8 |
|
| 9 |
+
Python 3.10+、FFmpeg,以及 requirements.txt 中的依赖。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
```bash
|
| 12 |
+
export PYTHONDONTWRITEBYTECODE=1
|
| 13 |
+
python -B test_self.py
|
|
|
|
|
|
|
| 14 |
```
|
| 15 |
|
| 16 |
+
测试只使用合成图片/标签,检查无损媒体、版本、拒绝旧目录名、人工复核门禁及未适配分支;不替代真实人工验收。
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
## 试点与全量
|
| 19 |
|
| 20 |
```bash
|
| 21 |
python acquire.py pilot-egohos --out /storage/work/egohos-pilot --per-split 4
|
| 22 |
+
python preprocess.py build --dataset EgoHOS --input /storage/work/egohos-pilot \
|
| 23 |
+
--out /storage/pilot/EgoHOS/shared-v1.1
|
| 24 |
```
|
| 25 |
|
| 26 |
+
人工查看试点 `doc/validation/index.html`,确认后才执行:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
```bash
|
| 29 |
+
python preprocess.py approve --release /storage/pilot/EgoHOS/shared-v1.1 --reviewer '真实审核者姓名'
|
| 30 |
python acquire.py download --dataset EgoHOS --raw /storage/EgoHOS/raw
|
| 31 |
python acquire.py extract --dataset EgoHOS --raw /storage/EgoHOS/raw --out /storage/work/egohos-full
|
| 32 |
+
python preprocess.py build --dataset EgoHOS --phase full --input /storage/work/egohos-full \
|
| 33 |
+
--out /storage/EgoHOS/shared-v1.1 --pilot /storage/pilot/EgoHOS/shared-v1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
```
|
| 35 |
|
| 36 |
+
全量运行后再次人工查看,再 approve。上传需另行授权;上传命令拒绝已存在的远端发布树,不能用于自动覆盖既有发布:
|
| 37 |
|
| 38 |
```bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
python preprocess.py upload --release /storage/EgoHOS/shared-v1.1
|
|
|
|
|
|
|
|
|
|
| 40 |
```
|
| 41 |
|
| 42 |
+
`validate.py` 与 `resample_validation.py` 均校验版本、视图集合与工具摘要;现有验收记录的历史范围和本次工具修复见发布 `doc/REVIEW_FIXES.md`。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EgoHOS/shared-v1.1/script/preprocess.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
-
"""EgoHOS
|
| 3 |
-
|
| 4 |
import argparse
|
| 5 |
from collections import defaultdict
|
| 6 |
from functools import lru_cache
|
|
@@ -441,6 +441,8 @@ def require_review(root):
|
|
| 441 |
|
| 442 |
|
| 443 |
def run(args):
|
|
|
|
|
|
|
| 444 |
if args.dataset == 'OakInk-v1' and not args.annotations and not args.allow_rgb_only:
|
| 445 |
raise ValueError('OakInk annotations absent. Supply --annotations + --trust-pickle, or explicitly select --allow-rgb-only (limited scope).')
|
| 446 |
if args.annotations and (not args.trust_pickle or not args.annotations.resolve().is_relative_to(args.input.resolve())):
|
|
@@ -553,6 +555,9 @@ def main():
|
|
| 553 |
approve(args.release, args.reviewer)
|
| 554 |
else:
|
| 555 |
from validate import check_inventory
|
|
|
|
|
|
|
|
|
|
| 556 |
d = require_review(args.release)
|
| 557 |
if d['phase'] != 'full':
|
| 558 |
raise ValueError(f'Pilot releases cannot be uploaded as {RELEASE_ID}')
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
+
"""EgoHOS -> the hand-warehouse layout declared by schema.json.
|
| 3 |
+
Legacy OakInk helpers are not a supported v1.1 conversion path."""
|
| 4 |
import argparse
|
| 5 |
from collections import defaultdict
|
| 6 |
from functools import lru_cache
|
|
|
|
| 441 |
|
| 442 |
|
| 443 |
def run(args):
|
| 444 |
+
if args.dataset != "EgoHOS":
|
| 445 |
+
raise ValueError("This v1.1 builder supports EgoHOS only; OakInk numeric bundles are not adapted here")
|
| 446 |
if args.dataset == 'OakInk-v1' and not args.annotations and not args.allow_rgb_only:
|
| 447 |
raise ValueError('OakInk annotations absent. Supply --annotations + --trust-pickle, or explicitly select --allow-rgb-only (limited scope).')
|
| 448 |
if args.annotations and (not args.trust_pickle or not args.annotations.resolve().is_relative_to(args.input.resolve())):
|
|
|
|
| 555 |
approve(args.release, args.reviewer)
|
| 556 |
else:
|
| 557 |
from validate import check_inventory
|
| 558 |
+
d = load(args.release / 'doc/validation/report.json')
|
| 559 |
+
if d['dataset'] != 'EgoHOS':
|
| 560 |
+
raise ValueError('This v1.1 uploader supports EgoHOS only')
|
| 561 |
d = require_review(args.release)
|
| 562 |
if d['phase'] != 'full':
|
| 563 |
raise ValueError(f'Pilot releases cannot be uploaded as {RELEASE_ID}')
|
EgoHOS/shared-v1.1/script/resample_validation.py
CHANGED
|
@@ -51,6 +51,8 @@ def check_inventory(root, expected):
|
|
| 51 |
|
| 52 |
def validate_view(view, registry):
|
| 53 |
m = read_json(view / 'metainfo.json')
|
|
|
|
|
|
|
| 54 |
frames = read_jsonl(view / 'camera/frames.jsonl')
|
| 55 |
t = m['num_frames']
|
| 56 |
if t < 1 or m['hand_slots'] != ['left', 'right'] or len(frames) != t:
|
|
|
|
| 51 |
|
| 52 |
def validate_view(view, registry):
|
| 53 |
m = read_json(view / 'metainfo.json')
|
| 54 |
+
if m.get('dataset_id') != 'EgoHOS':
|
| 55 |
+
raise ValueError('This v1.1 validator supports EgoHOS only')
|
| 56 |
frames = read_jsonl(view / 'camera/frames.jsonl')
|
| 57 |
t = m['num_frames']
|
| 58 |
if t < 1 or m['hand_slots'] != ['left', 'right'] or len(frames) != t:
|
EgoHOS/shared-v1.1/script/test_self.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""One small runnable end-to-end check; fixtures are synthetic, not real validation."""
|
| 3 |
import json
|
| 4 |
-
import pickle
|
| 5 |
import subprocess
|
| 6 |
import sys
|
| 7 |
import tempfile
|
|
@@ -13,7 +12,8 @@ from PIL import Image
|
|
| 13 |
from acquire import sha, safe_path
|
| 14 |
from media import mask, decode
|
| 15 |
from preprocess import se3
|
| 16 |
-
from validate import pt, check_inventory
|
|
|
|
| 17 |
|
| 18 |
HERE = Path(__file__).resolve().parent
|
| 19 |
|
|
@@ -39,12 +39,6 @@ def provenance(root):
|
|
| 39 |
(root / 'sources.jsonl').write_text(''.join(json.dumps(r) + '\n' for r in entries))
|
| 40 |
|
| 41 |
|
| 42 |
-
def save_pickle(path, value):
|
| 43 |
-
path.parent.mkdir(parents=True, exist_ok=True)
|
| 44 |
-
with path.open('wb') as f:
|
| 45 |
-
pickle.dump(value, f)
|
| 46 |
-
|
| 47 |
-
|
| 48 |
def main():
|
| 49 |
rng = np.random.default_rng(17)
|
| 50 |
with tempfile.TemporaryDirectory() as directory:
|
|
@@ -93,56 +87,26 @@ def main():
|
|
| 93 |
else:
|
| 94 |
raise AssertionError('Mutation accepted')
|
| 95 |
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
for folder, value in [('cam_intr', k), ('hand_j', xyz), ('obj_transf', pose), ('general_info', {'cam_extr': np.eye(4, dtype=np.float32)})]:
|
| 117 |
-
save_pickle(anno / folder / key, value)
|
| 118 |
-
obj = oak / 'image/obj/A00001.obj'
|
| 119 |
-
obj.parent.mkdir()
|
| 120 |
-
obj.write_text('mtllib absent.mtl\nv 0 0 0\nv .2 0 0\nv 0 .2 0\nusemtl default\nf 1 2 3\n')
|
| 121 |
-
(oak / 'acquisition.json').write_text(json.dumps({'command': 'extract', 'dataset': 'OakInk-v1', 'note': 'SYNTHETIC TEST ONLY'}))
|
| 122 |
-
provenance(oak)
|
| 123 |
-
command('build', '--dataset', 'OakInk-v1', '--input', oak, '--out', release_dir(temp, 'oak-blocked'), succeeds=False)
|
| 124 |
-
command('build', '--dataset', 'OakInk-v1', '--input', oak, '--out', release_dir(temp, 'oak-rgb'), '--allow-rgb-only')
|
| 125 |
-
out = release_dir(temp, 'oak-geo')
|
| 126 |
-
command('build', '--dataset', 'OakInk-v1', '--input', oak, '--out', out,
|
| 127 |
-
'--annotations', anno, '--trust-pickle')
|
| 128 |
-
views = list((out / 'data').glob('*/*/metainfo.json'))
|
| 129 |
-
assert len(views) == 2 and any('person0' in str(p) for p in views) and any('person1' in str(p) for p in views)
|
| 130 |
-
for m in views:
|
| 131 |
-
v = m.parent
|
| 132 |
-
points = pt(v / 'annotation/keypoints/xyz.pt')
|
| 133 |
-
assert np.isnan(points[:, 0]).all() and np.array_equal(points[0, 1], xyz)
|
| 134 |
-
uv = pt(v / 'annotation/keypoints/uv.pt')
|
| 135 |
-
assert np.allclose(uv[0, 1, 0], [14, 12])
|
| 136 |
-
text = (v / 'annotation/object/A00001/assets/A00001.obj').read_text()
|
| 137 |
-
assert 'v -0.1 -0.1 0' in text
|
| 138 |
-
assert 'mtllib ' not in text and 'usemtl ' not in text
|
| 139 |
-
metadata = json.loads(m.read_text())
|
| 140 |
-
assert metadata['components']['object_mesh']['provenance']['source_missing_materials'] == ['absent.mtl']
|
| 141 |
-
# Test review records apply only to these temporary synthetic fixtures.
|
| 142 |
-
command('approve', '--release', out, '--reviewer', 'SYNTHETIC_TEST_ONLY')
|
| 143 |
-
command('upload', '--release', out, succeeds=False) # Reviewed pilot still cannot publish.
|
| 144 |
-
command('build', '--dataset', 'OakInk-v1', '--input', oak, '--out', release_dir(temp, 'oak-full'),
|
| 145 |
-
'--annotations', anno, '--trust-pickle', '--phase', 'full', '--pilot', out)
|
| 146 |
for bad in ('../escape', '/absolute', 'a/../../escape'):
|
| 147 |
try:
|
| 148 |
safe_path(temp, bad)
|
|
@@ -158,7 +122,7 @@ def main():
|
|
| 158 |
pass
|
| 159 |
else:
|
| 160 |
raise AssertionError('Invalid SE3 accepted')
|
| 161 |
-
print('PASS: JPEG copy, FFV1/x264 RGB, labels, provenance, review gates,
|
| 162 |
|
| 163 |
|
| 164 |
if __name__ == '__main__':
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""One small runnable end-to-end check; fixtures are synthetic, not real validation."""
|
| 3 |
import json
|
|
|
|
| 4 |
import subprocess
|
| 5 |
import sys
|
| 6 |
import tempfile
|
|
|
|
| 12 |
from acquire import sha, safe_path
|
| 13 |
from media import mask, decode
|
| 14 |
from preprocess import se3
|
| 15 |
+
from validate import pt, check_inventory, validate_view
|
| 16 |
+
from resample_validation import validate_view as resample_view
|
| 17 |
|
| 18 |
HERE = Path(__file__).resolve().parent
|
| 19 |
|
|
|
|
| 39 |
(root / 'sources.jsonl').write_text(''.join(json.dumps(r) + '\n' for r in entries))
|
| 40 |
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
def main():
|
| 43 |
rng = np.random.default_rng(17)
|
| 44 |
with tempfile.TemporaryDirectory() as directory:
|
|
|
|
| 87 |
else:
|
| 88 |
raise AssertionError('Mutation accepted')
|
| 89 |
|
| 90 |
+
# Reject the unadapted numeric branch before it reads inputs or creates output.
|
| 91 |
+
blocked = release_dir(temp, 'oak-blocked')
|
| 92 |
+
command('build', '--dataset', 'OakInk-v1', '--input', temp / 'absent-input',
|
| 93 |
+
'--out', blocked, '--allow-rgb-only', succeeds=False)
|
| 94 |
+
assert not blocked.exists()
|
| 95 |
+
unsupported = temp / 'unsupported-view'
|
| 96 |
+
unsupported.mkdir()
|
| 97 |
+
(unsupported / 'metainfo.json').write_text(json.dumps({'dataset_id': 'OakInk-v1'}))
|
| 98 |
+
for validator in (validate_view, resample_view):
|
| 99 |
+
try:
|
| 100 |
+
validator(unsupported, registry)
|
| 101 |
+
except ValueError as error:
|
| 102 |
+
assert 'EgoHOS only' in str(error)
|
| 103 |
+
else:
|
| 104 |
+
raise AssertionError('Unsupported numeric view accepted')
|
| 105 |
+
unsupported_release = temp / 'unsupported-release'
|
| 106 |
+
(unsupported_release / 'doc/validation').mkdir(parents=True)
|
| 107 |
+
(unsupported_release / 'doc/validation/report.json').write_text(json.dumps({'dataset': 'OakInk-v1'}))
|
| 108 |
+
result = command('upload', '--release', unsupported_release, succeeds=False)
|
| 109 |
+
assert 'EgoHOS only' in result.stderr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
for bad in ('../escape', '/absolute', 'a/../../escape'):
|
| 111 |
try:
|
| 112 |
safe_path(temp, bad)
|
|
|
|
| 122 |
pass
|
| 123 |
else:
|
| 124 |
raise AssertionError('Invalid SE3 accepted')
|
| 125 |
+
print('PASS: JPEG copy, FFV1/x264 RGB, labels, provenance, review gates, unsupported OakInk rejection, mutation/path/SE3 rejection, registry version and release-directory name')
|
| 126 |
|
| 127 |
|
| 128 |
if __name__ == '__main__':
|
EgoHOS/shared-v1.1/script/validate.py
CHANGED
|
@@ -51,6 +51,8 @@ def check_inventory(root, expected):
|
|
| 51 |
|
| 52 |
def validate_view(view, registry):
|
| 53 |
m = read_json(view / 'metainfo.json')
|
|
|
|
|
|
|
| 54 |
frames = read_jsonl(view / 'camera/frames.jsonl')
|
| 55 |
t = m['num_frames']
|
| 56 |
if t < 1 or m['hand_slots'] != ['left', 'right'] or len(frames) != t:
|
|
|
|
| 51 |
|
| 52 |
def validate_view(view, registry):
|
| 53 |
m = read_json(view / 'metainfo.json')
|
| 54 |
+
if m.get('dataset_id') != 'EgoHOS':
|
| 55 |
+
raise ValueError('This v1.1 validator supports EgoHOS only')
|
| 56 |
frames = read_jsonl(view / 'camera/frames.jsonl')
|
| 57 |
t = m['num_frames']
|
| 58 |
if t < 1 or m['hand_slots'] != ['left', 'right'] or len(frames) != t:
|