README: official RMBench dataset, usage matching the CAMP repository
Browse files
README.md
CHANGED
|
@@ -25,6 +25,8 @@ tags:
|
|
| 25 |
<a href="https://robo-camp.github.io/"><img alt="Project page" src="https://img.shields.io/badge/Project-Page-2f6fe4?logo=googlechrome&logoColor=white"></a>
|
| 26 |
|
| 27 |
<a href="https://github.com/RoboTwin-Platform/RMBench"><img alt="RMBench" src="https://img.shields.io/badge/Benchmark-RMBench-6a3fb5"></a>
|
|
|
|
|
|
|
| 28 |
</p>
|
| 29 |
|
| 30 |
<p align="center">
|
|
@@ -41,7 +43,9 @@ current image does not determine the next action.
|
|
| 41 |
|
| 42 |
This repository holds the CAMP policies for all nine tasks of **[RMBench](https://github.com/RoboTwin-Platform/RMBench)**,
|
| 43 |
a memory-dependent bimanual manipulation benchmark built on RoboTwin 2.0 (Aloha-AgileX dual-arm robot). Every
|
| 44 |
-
policy is trained from the
|
|
|
|
|
|
|
| 45 |
The files contain inference weights only.
|
| 46 |
|
| 47 |
## π Results
|
|
@@ -211,26 +215,30 @@ bookkeeping.
|
|
| 211 |
|
| 212 |
## π Usage
|
| 213 |
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
|
| 218 |
```bash
|
| 219 |
-
|
| 220 |
-
|
|
|
|
| 221 |
|
| 222 |
-
|
| 223 |
T=swap_T
|
| 224 |
mkdir -p ckpts/stage2/$T/checkpoints ckpts/stage1/$T
|
| 225 |
-
cp
|
| 226 |
-
cp
|
| 227 |
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
```
|
| 233 |
|
|
|
|
|
|
|
|
|
|
| 234 |
## π Citation
|
| 235 |
|
| 236 |
If you find CAMP useful, please cite:
|
|
|
|
| 25 |
<a href="https://robo-camp.github.io/"><img alt="Project page" src="https://img.shields.io/badge/Project-Page-2f6fe4?logo=googlechrome&logoColor=white"></a>
|
| 26 |
|
| 27 |
<a href="https://github.com/RoboTwin-Platform/RMBench"><img alt="RMBench" src="https://img.shields.io/badge/Benchmark-RMBench-6a3fb5"></a>
|
| 28 |
+
|
| 29 |
+
<a href="https://huggingface.co/datasets/TianxingChen/RMBench"><img alt="RMBench dataset" src="https://img.shields.io/badge/%F0%9F%A4%97%20Dataset-TianxingChen%2FRMBench-ffbf00"></a>
|
| 30 |
</p>
|
| 31 |
|
| 32 |
<p align="center">
|
|
|
|
| 43 |
|
| 44 |
This repository holds the CAMP policies for all nine tasks of **[RMBench](https://github.com/RoboTwin-Platform/RMBench)**,
|
| 45 |
a memory-dependent bimanual manipulation benchmark built on RoboTwin 2.0 (Aloha-AgileX dual-arm robot). Every
|
| 46 |
+
policy is trained from the official RMBench demonstrations
|
| 47 |
+
([`TianxingChen/RMBench`](https://huggingface.co/datasets/TianxingChen/RMBench), `demo_clean`, 50 per task)
|
| 48 |
+
and evaluated with RMBench's own protocol.
|
| 49 |
The files contain inference weights only.
|
| 50 |
|
| 51 |
## π Results
|
|
|
|
| 215 |
|
| 216 |
## π Usage
|
| 217 |
|
| 218 |
+
Evaluation code, training launcher and full instructions are in the
|
| 219 |
+
[RMBench section of the CAMP repository](https://github.com/KuanchengWang/CAMP#-rmbench). To evaluate
|
| 220 |
+
one task on the 100 standard test seeds:
|
| 221 |
|
| 222 |
```bash
|
| 223 |
+
git clone --recurse-submodules https://github.com/KuanchengWang/CAMP.git && cd CAMP
|
| 224 |
+
./docker_run.sh build && docker build -f docker/Dockerfile.rmbench -t camp-rmbench:latest .
|
| 225 |
+
git clone https://github.com/RoboTwin-Platform/RMBench ~/rmbench && (cd ~/rmbench && bash script/_download_assets.sh)
|
| 226 |
|
| 227 |
+
huggingface-cli download harrywang01/CAMP-RMBench-Checkpoints --local-dir ckpts/hf
|
| 228 |
T=swap_T
|
| 229 |
mkdir -p ckpts/stage2/$T/checkpoints ckpts/stage1/$T
|
| 230 |
+
cp ckpts/hf/$T/policy.ckpt ckpts/stage2/$T/checkpoints/policy.ckpt
|
| 231 |
+
cp ckpts/hf/$T/memory/* ckpts/stage1/$T/
|
| 232 |
|
| 233 |
+
export RMBENCH=~/rmbench STAGE1=$PWD/ckpts/stage1 STAGE2=$PWD/ckpts/stage2 EVAL_OUT=$PWD/data/rmbench_eval
|
| 234 |
+
E=scripts/rmbench/eval
|
| 235 |
+
$E/docker_rmbench.sh python /workspace/$E/rmbench_eval.py seeds --task $T # the 100 expert-solvable test seeds
|
| 236 |
+
$E/docker_rmbench.sh python /workspace/$E/rmbench_eval.py eval --task $T --ckpt policy # -> data/rmbench_eval/results/$T/policy/results.json
|
| 237 |
```
|
| 238 |
|
| 239 |
+
To retrain a task from the official demonstrations with the same settings, run
|
| 240 |
+
`bash scripts/rmbench/train_rmbench.sh <task>` inside the `camp` container.
|
| 241 |
+
|
| 242 |
## π Citation
|
| 243 |
|
| 244 |
If you find CAMP useful, please cite:
|