update readme files
Browse files- holoboxing/README.md +14 -3
- holoboxing/README.zh-CN.md +112 -0
holoboxing/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
# HoloBoxing resources
|
| 2 |
|
|
|
|
|
|
|
| 3 |
This directory contains the robot, arena and replay assets used by HoloBoxing.
|
| 4 |
Keep the complete directory and its relative layout when distributing it.
|
| 5 |
The frozen HoloMotion controller and competitor policies are separate model files.
|
|
@@ -44,8 +46,8 @@ The expected commands from the public HoloMotion checkout are:
|
|
| 44 |
|
| 45 |
```bash
|
| 46 |
python -m holoboxing assets --assets /path/to/huggingface-resources
|
| 47 |
-
python -m holoboxing validate
|
| 48 |
-
python -m holoboxing match
|
| 49 |
python -m holoboxing view results/replay.hdf5 --assets /path/to/huggingface-resources
|
| 50 |
```
|
| 51 |
|
|
@@ -72,7 +74,7 @@ The example below uses a local image tag; load or build that image first.
|
|
| 72 |
docker run --rm --gpus '"device=0"' \
|
| 73 |
-v /absolute/policies:/policies:ro \
|
| 74 |
-v /absolute/results:/results \
|
| 75 |
-
holoboxing-eval:local-v8 match /policies/
|
| 76 |
--output-dir /results
|
| 77 |
```
|
| 78 |
|
|
@@ -94,3 +96,12 @@ Record the actual Hugging Face repository revision after uploading.
|
|
| 94 |
|
| 95 |
Images may also be transferred using `docker save` and `docker load`.
|
| 96 |
Keep the image digest, public code commit and resource/model revisions together.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# HoloBoxing resources
|
| 2 |
|
| 3 |
+
English | [简体中文](README.zh-CN.md)
|
| 4 |
+
|
| 5 |
This directory contains the robot, arena and replay assets used by HoloBoxing.
|
| 6 |
Keep the complete directory and its relative layout when distributing it.
|
| 7 |
The frozen HoloMotion controller and competitor policies are separate model files.
|
|
|
|
| 46 |
|
| 47 |
```bash
|
| 48 |
python -m holoboxing assets --assets /path/to/huggingface-resources
|
| 49 |
+
python -m holoboxing validate my_policy.onnx --assets /path/to/huggingface-resources --lower /path/to/v2-bundle --output validation.json
|
| 50 |
+
python -m holoboxing match my_policy.onnx opponent_policy.onnx --assets /path/to/huggingface-resources --lower /path/to/v2-bundle --output-dir results
|
| 51 |
python -m holoboxing view results/replay.hdf5 --assets /path/to/huggingface-resources
|
| 52 |
```
|
| 53 |
|
|
|
|
| 74 |
docker run --rm --gpus '"device=0"' \
|
| 75 |
-v /absolute/policies:/policies:ro \
|
| 76 |
-v /absolute/results:/results \
|
| 77 |
+
holoboxing-eval:local-v8 match /policies/my_policy.onnx /policies/opponent_policy.onnx \
|
| 78 |
--output-dir /results
|
| 79 |
```
|
| 80 |
|
|
|
|
| 96 |
|
| 97 |
Images may also be transferred using `docker save` and `docker load`.
|
| 98 |
Keep the image digest, public code commit and resource/model revisions together.
|
| 99 |
+
|
| 100 |
+
## Research and asset attribution
|
| 101 |
+
|
| 102 |
+
Luo et al., [SMPLOlympics: Sports Environments for Physically Simulated Humanoids](https://arxiv.org/abs/2407.00187), 2024,
|
| 103 |
+
is the source project for the boxing-ring mesh. This adaptation removes the
|
| 104 |
+
stools, derives corner collisions, and changes the replay appearance.
|
| 105 |
+
The competition uses its own G1 scene and scoring rules; using the ring does
|
| 106 |
+
not reproduce SMPLOlympics' characters, policies, or benchmark results.
|
| 107 |
+
Exact asset provenance and changes are recorded in [SOURCE.md](smpl-ring-v2/SOURCE.md).
|
holoboxing/README.zh-CN.md
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# HoloBoxing 资源
|
| 2 |
+
|
| 3 |
+
[English](README.md) | 简体中文
|
| 4 |
+
|
| 5 |
+
本目录包含 HoloBoxing 使用的机器人、擂台和回放资源。
|
| 6 |
+
分发时须保留完整目录及其相对路径。
|
| 7 |
+
冻结的 HoloMotion 控制器和参赛策略均为独立模型文件。
|
| 8 |
+
|
| 9 |
+
## 目录内容与用途
|
| 10 |
+
|
| 11 |
+
| 文件或目录 | 用途 | 来源与许可 |
|
| 12 |
+
| --- | --- | --- |
|
| 13 |
+
| `29dof/` | 红蓝双方的机器人描述:URDF 用于训练中的运动学计算,XML 用于回放 | 基于现有 G1 拳击版本;宇树原始许可声明见 `UNITREE_LICENSE`,修改部分仍需核实授权 |
|
| 14 |
+
| `meshes/` | 机器人依赖的完整网格模型,保留仿真器使用的文件名 | 现有 G1 资源;文件内容的校验值记录在 `resources.json` 中 |
|
| 15 |
+
| `mode15_boxing_meshes/` | 拳套及碰撞网格的变体 | 现有拳击修改资源;尚未确认再分发授权 |
|
| 16 |
+
| `arena/g1_dual_29dof.xml` | 双机器人共用的物理场景 | 沿用现有拳击场景,刚体、关节和碰撞几何体保持不变 |
|
| 17 |
+
| `smpl-ring-v2/` | 改编自 SMPLOlympics 的擂台、角柱碰撞描述、来源说明及上游许可 | 见[来源与署名](smpl-ring-v2/SOURCE.md) |
|
| 18 |
+
| `dark-arena/` | 当前地面纹理,含 Horizon Robotics 和 HoloMotion 标识 | 现有纹理;授权仍需核实 |
|
| 19 |
+
| `initial-state.json` | 拳击场景的初始姿态和具名关节顺序,不是用于回放的参考动作 | 仅保留初始帧 |
|
| 20 |
+
| `resources.json` | 资源版本清单、字节数、SHA256 校验值和入口路径 | 本地完整性校验的依据 |
|
| 21 |
+
| `manifest.json` | 现有回放播放器使用的机器人和文件条目 | 从同一资源目录生成 |
|
| 22 |
+
|
| 23 |
+
当前资源版本为 `boxing-v5-resources`。
|
| 24 |
+
`resources.json` 记录了每个资源文件的实际字节数和 SHA256 校验值。
|
| 25 |
+
机器人 URDF/XML 和物理场景中的相对引用均须位于本目录内。
|
| 26 |
+
物理场景入口仍为 `arena/g1_dual_29dof.xml`。
|
| 27 |
+
|
| 28 |
+
旧版 `smpl-ring/` 已删除。
|
| 29 |
+
旧文件 `arena/arena.xml`、`arena/scene.json` 和 `arena/canvas_texture.png` 也已删除。
|
| 30 |
+
未带红蓝标记的旧文件 `29dof/g1_29dof_mode_15_boxing_gloves.urdf` 已移除。
|
| 31 |
+
红蓝机器人描述及其 XML 显示入口仍保留。
|
| 32 |
+
资源包不再包含旧路径。
|
| 33 |
+
|
| 34 |
+
本目录支持当前的 `smplolympics-boxing-ring-v2` 回放场景。
|
| 35 |
+
当前源码构建的独立评测播放器会拒绝旧版场景。
|
| 36 |
+
历史演示录像和预览脚本可能仍需原版资源。
|
| 37 |
+
|
| 38 |
+
擂台网格来自 SMPLOlympics。
|
| 39 |
+
改编版本在 `smpl-ring-v2/` 中保留了上游署名和许可文本。
|
| 40 |
+
原始网格作者及该资产的专门许可尚未确认,详见来源说明。
|
| 41 |
+
完整性校验通过不代表已获得再分发权。
|
| 42 |
+
宇树许可声明也不能覆盖所有修改、擂台和纹理。
|
| 43 |
+
|
| 44 |
+
## 本地使用
|
| 45 |
+
|
| 46 |
+
通过 `--assets /path/to/huggingface-resources` 显式指定本目录。
|
| 47 |
+
评测工具和播放器不应从相邻仓库自动查找资源。
|
| 48 |
+
在包含评测功能的公开 HoloMotion 仓库中执行:
|
| 49 |
+
|
| 50 |
+
```bash
|
| 51 |
+
python -m holoboxing assets --assets /path/to/huggingface-resources
|
| 52 |
+
python -m holoboxing validate my_policy.onnx --assets /path/to/huggingface-resources --lower /path/to/v2-bundle --output validation.json
|
| 53 |
+
python -m holoboxing match my_policy.onnx opponent_policy.onnx --assets /path/to/huggingface-resources --lower /path/to/v2-bundle --output-dir results
|
| 54 |
+
python -m holoboxing view results/replay.hdf5 --assets /path/to/huggingface-resources
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
所用 HoloMotion 版本须包含 `holoboxing` 包和上述命令行入口。
|
| 58 |
+
每次评测须同时记录代码版本和资源版本。
|
| 59 |
+
冻结的 V2 模型权重单独存放,评测期间保持只读。
|
| 60 |
+
从源码回放时,先构建一次浏览器播放器:
|
| 61 |
+
|
| 62 |
+
```bash
|
| 63 |
+
cd holoboxing/evaluation/viewer
|
| 64 |
+
npm ci
|
| 65 |
+
node build.mjs
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
先前构建的 v8 镜像内置 `boxing-v4-resources` 和冻结的 V2 控制器。
|
| 69 |
+
当前本地目录已更新为 `boxing-v5-resources`。
|
| 70 |
+
删除本地文件不会改变已有镜像。
|
| 71 |
+
保留的物理场景和几何文件与 v4 逐字节一致。
|
| 72 |
+
本次整理只删除旧资源,并补充来源署名。
|
| 73 |
+
|
| 74 |
+
默认只需挂载参赛策略和输出目录。
|
| 75 |
+
资源和控制器挂载用于替换镜像内置内容,均须保持只读。
|
| 76 |
+
下例使用本地镜像标签,请先导入或构建该镜像。
|
| 77 |
+
|
| 78 |
+
```bash
|
| 79 |
+
docker run --rm --gpus '"device=0"' \
|
| 80 |
+
-v /absolute/policies:/policies:ro \
|
| 81 |
+
-v /absolute/results:/results \
|
| 82 |
+
holoboxing-eval:local-v8 match /policies/my_policy.onnx /policies/opponent_policy.onnx \
|
| 83 |
+
--output-dir /results
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
如需替换资源,将本目录以只读方式挂载到 `/assets`,并传入 `--assets /assets`。
|
| 87 |
+
如需挂载其他已验证控制器,使用 `--lower /lower`。
|
| 88 |
+
|
| 89 |
+
浏览器读取已保存的状态和事件,不重新运行物理仿真或策略推理。
|
| 90 |
+
播放器保留播放、跳转、比分、事件标记和 MP4 导出功能。
|
| 91 |
+
能否导出 MP4,取决于浏览器的 MediaRecorder 编解码支持。
|
| 92 |
+
|
| 93 |
+
## 分发与来源记录
|
| 94 |
+
|
| 95 |
+
资源文件保存在本地,普通 Git 默认忽略这些文件。
|
| 96 |
+
元数据、许可声明和来源署名由 Git 管理。
|
| 97 |
+
手动上传到 Hugging Face 时,须保留相同的相对目录结构。
|
| 98 |
+
同时上传本 README 和两份资源清单。
|
| 99 |
+
以资源目录中的内容作为上传仓库根目录。
|
| 100 |
+
这样可在仓库根目录直接访问 `resources.json`。
|
| 101 |
+
上传后记录实际的 Hugging Face 仓库版本。
|
| 102 |
+
|
| 103 |
+
镜像也可通过 `docker save` 和 `docker load` 转移。
|
| 104 |
+
请一并保留镜像摘要、公开代码提交和资源及模型版本。
|
| 105 |
+
|
| 106 |
+
## 研究与资源来源
|
| 107 |
+
|
| 108 |
+
擂台网格来自 Luo 等的 [SMPLOlympics: Sports Environments for Physically Simulated Humanoids](https://arxiv.org/abs/2407.00187),2024。
|
| 109 |
+
本适配移除了凳子,提取角柱碰撞几何,并调整回放外观。
|
| 110 |
+
比赛使用自己的 G1 场景和计分规则。
|
| 111 |
+
复用擂台不代表复现了该项目的角色、策略或基准结果。
|
| 112 |
+
精确来源和修改记录见 [SOURCE.md](smpl-ring-v2/SOURCE.md)。
|