harrywang01 commited on
Commit
46824ce
Β·
verified Β·
1 Parent(s): be80ca5

README: official RMBench dataset, usage matching the CAMP repository

Browse files
Files changed (1) hide show
  1. README.md +21 -13
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
  &nbsp;
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 50 demonstrations RMBench releases per task and evaluated with RMBench's own protocol.
 
 
45
  The files contain inference weights only.
46
 
47
  ## πŸ“Š Results
@@ -211,26 +215,30 @@ bookkeeping.
211
 
212
  ## πŸš€ Usage
213
 
214
- The evaluation code is in [`scripts/rmbench/eval`](https://github.com/KuanchengWang/CAMP) of the CAMP repository.
215
- It includes a Docker launcher for RMBench and the `policy_CAMP` adapter, which implements RMBench's
216
- `get_model / eval / reset_model` interface.
217
 
218
  ```bash
219
- # 1. download the checkpoints
220
- huggingface-cli download harrywang01/CAMP-RMBench-Checkpoints --local-dir camp_rmbench
 
221
 
222
- # 2. arrange one task in the layout the evaluator expects
223
  T=swap_T
224
  mkdir -p ckpts/stage2/$T/checkpoints ckpts/stage1/$T
225
- cp camp_rmbench/$T/policy.ckpt ckpts/stage2/$T/checkpoints/policy.ckpt
226
- cp camp_rmbench/$T/memory/* ckpts/stage1/$T/
227
 
228
- # 3. evaluate on 100 RMBench test seeds (run from the CAMP repository)
229
- STAGE1=$PWD/ckpts/stage1 STAGE2=$PWD/ckpts/stage2 \
230
- scripts/rmbench/eval/docker_rmbench.sh python /workspace/scripts/rmbench/eval/rmbench_eval.py \
231
- eval --task $T --ckpt policy --episodes 100
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
  &nbsp;
27
  <a href="https://github.com/RoboTwin-Platform/RMBench"><img alt="RMBench" src="https://img.shields.io/badge/Benchmark-RMBench-6a3fb5"></a>
28
+ &nbsp;
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: