The dataset viewer is not available for this split.
Error code: RowsPostProcessingError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
DiTaR 真机测试权重(2026-11-13 更新)
先测这一版:每个任务只用一种做法的数据训练,小网络。 11-13 现场 bottle 用这一版成功了,三个任务都先测这一版。zip 和同名文件夹的内容一样,下哪个都行。
| 任务 | 包 | 只学了这一种做法 | 先测这两个 |
|---|---|---|---|
| bottle:把水瓶放到盘子上 | deploy_package_bottle_middle |
瓶子放到中间的红色垫子上 | ours.pt 和 bc_noreward.pt |
| basket:把桌上的东西放进篮子 | deploy_package_basket_red_black_blue |
按 红 → 黑 → 蓝 的顺序放进篮子 | ours.pt 和 bc_noreward.pt(一定要加 --max-steps 450) |
| knife:把刀放到手套上 | deploy_package_knife_right |
刀放到手套上时刀刃朝右上(成功只看刀在不在手套上,朝哪边都算) | ours.pt 和 bc_noreward.pt |
| basket(另一种顺序) | deploy_package_basket_black_blue_red |
按 黑 → 蓝 → 红 的顺序放进篮子(先抓黑色小盒) | ours.pt 和 bc_noreward.pt(一定要加 --max-steps 450) |
- basket 有两个包,只差学的抓取顺序:红 → 黑 → 蓝,或者黑 → 蓝 → 红。两个都可以测。
- 这一版的网络和部署代码都和 v2 包一样:6 月或 v2 已经接好的
deploy.py、run_robot.py直接能用,只换--ckpt。 - 成功标准和场景怎么摆,看每个包里的 README。bottle 只有瓶子立在中间的红色垫子上才算成功;basket 三样都进篮子算成功,另外记下实际的抓取顺序。
之前的版本(留作对照,不用先测):
- v2,几种做法混在一起训:
deploy_package_knife_v2(要测的话测ours.pt和bc_noreward_aug2.pt)、deploy_package_bottle_v2、deploy_package_basket_v2。 - 大网络单走法版(r18:ResNet-18 编码器、128×128 输入):
deploy_package_bottle_middle_r18、deploy_package_basket_red_black_blue_r18。要用包里新的deploy.py和agent/,还要多装 torchvision。
测试时要存什么(每次都要,调试全靠它)
开测前,每次重启机器人或控制服务器后做一遍,输出存成文字或截图:
- 控制服务器启动时终端打印的内容。重点看有没有
Gripper unavailable:有的话说明夹爪没连上,策略一定会一开始就走偏,先修好再测。 - 运行
python debug_step0.py --ckpt checkpoints/ours.pt(仓库根目录的debug_step0.py,放到run_robot.py同一层),存下它的输出和它生成的debug_step0.png。夹爪读数应该在 0.06–0.08。 - 运行
python align_camera.py --home把相机调好,存下最后打印的那一行。
每个回合都用 record_run.py 代替 run_robot.py 跑。 仓库根目录的 record_run.py 放到 run_robot.py 同一层,参数和原来完全一样,不改变机器人的任何动作:
python record_run.py --ckpt checkpoints/ours.pt # knife、bottle
python record_run.py --ckpt checkpoints/ours.pt --max-steps 450 # basket
原来的 mp4 照常存,另外它会给每个回合在 rollouts/ 里多存两个文件 ..._log.npz 和 ..._log.json,内容是:
- 每一步喂给策略的画面(256×256)、state(7 个关节角加夹爪读数)、策略输出的 action、实际发给机器人的关节目标、夹爪开合指令,以及每一步的耗时;
- 回合开始时复位后的 state:离起始姿态差多少、夹爪读数多少。读数不对时会当场打印警告;
- 用的是哪个权重(文件名和校验和),以及代码版本;
- 成功与否和一句备注。回答完
success?后会再问一句备注,失败的话写原因,比如「一开始就往左偏」「抓空了」「放偏了」。
不要加 --no-video,因为记录和视频存在同一个文件夹里。能用手机从侧面再录一段最好,失败的回合尤其要录。
测完以后,把 rollouts/ 文件夹、开测前那三项的输出、手机视频一起打包发给我们。拿到这些,我们能把每一步原样重放,查出是哪一步、哪个输入出了问题。
下载
hf download EndeavourDD/ditar_re deploy_package_bottle_middle.zip --repo-type dataset --local-dir .
unzip deploy_package_bottle_middle.zip
其他包把文件名换成上表里的包名就行。也可以在网页上直接下载 zip。仓库是公开的,不需要 token。
怎么用(每个包都一样)
cd deploy_package_bottle_middle
pip install -r requirements.txt # 6 月装过就跳过
python deploy.py --ckpt checkpoints/ours.pt --mode smoke # 不接机器人,检查能跑
python deploy.py --ckpt checkpoints/ours.pt --mode robot --episodes 1 # 上机器人跑 1 个回合
- 第一次跑之前,务必按包里 README 的「接口」一节核对:图像是 RGB 顺序;state 是 7 个关节角(弧度)加夹爪宽度(米);action 是绝对关节目标,不要加到当前关节角上。机械臂在起始姿态时,第一步动作应该和当前关节几乎一样。如果一开始就往别处偏,多半是这几条没对上。
deploy.py里机器人那部分是空壳。6 月已经接好机器人的,继续用你们自己那份deploy.py,只把--ckpt指向新权重;第一次接线看包里的README_v1_english.md。- 场景怎么摆、相机怎么对、怎样算成功,看每个包里的
README.md和scene_reference/里的图。 - 测试:先测上表的两个权重,各 10 次左右,两个交替着跑。每次记成功还是失败,最好录视频。
English
Test this version first: each task trained on a single way of doing it, small network. On 11-13 the bottle task succeeded on the robot with this version, so test this version first for every task. The zip and the folder with the same name have identical contents.
| Task | Package | The single way it learned | Test these two first |
|---|---|---|---|
| bottle: put the water bottle on the plate | deploy_package_bottle_middle |
bottle on the middle red mat | ours.pt and bc_noreward.pt |
| basket: put the objects on the table into the plastic basket | deploy_package_basket_red_black_blue |
order red -> black -> blue | ours.pt and bc_noreward.pt (always pass --max-steps 450) |
| knife: put the knife on the glove | deploy_package_knife_right |
blade pointing up-right on the glove (success only requires the knife on the glove, either direction) | ours.pt and bc_noreward.pt |
| basket (other order) | deploy_package_basket_black_blue_red |
order black -> blue -> red (black box first) | ours.pt and bc_noreward.pt (always pass --max-steps 450) |
- The two basket packages differ only in the pick order they learned (red -> black -> blue, or black -> blue -> red). Both can be tested.
- Same network and code as the v2 packages: the June or v2
deploy.py/run_robot.pyyou already wired up works as is; just point--ckptat the new files. - Success criteria and scene setup are in each package's README. For bottle, only the bottle standing on the middle red mat counts; for basket, all three objects in the basket count (also note the actual pick order).
Earlier versions (kept for reference; not needed first):
- v2, all ways mixed:
deploy_package_knife_v2(if tested, useours.ptandbc_noreward_aug2.pt),deploy_package_bottle_v2,deploy_package_basket_v2. - Bigger-network single-mode (r18: ResNet-18 encoder, 128x128 input):
deploy_package_bottle_middle_r18,deploy_package_basket_red_black_blue_r18. These need the newdeploy.pyandagent/from the package, plus torchvision.
What to record (every time; we debug from this).
Before testing, each time the robot or the control server is restarted, save the output as text or a screenshot:
- The control server's startup output. Look for
Gripper unavailable: it means the gripper is not connected, and the policy will veer off from the start. Fix it before testing. - The output of
python debug_step0.py --ckpt checkpoints/ours.pt(debug_step0.pyfrom the repository root, placed next torun_robot.py) and thedebug_step0.pngit writes. The gripper reading should be between 0.06 and 0.08. - The last line printed by
python align_camera.py --homeafter the camera is aligned.
Run every episode with record_run.py instead of run_robot.py. Put record_run.py from the repository root next to run_robot.py; it takes exactly the same arguments and does not change any robot motion:
python record_run.py --ckpt checkpoints/ours.pt # knife, bottle
python record_run.py --ckpt checkpoints/ours.pt --max-steps 450 # basket
The usual mp4 is still saved. For every episode it also writes ..._log.npz and ..._log.json into rollouts/, containing:
- for every step: the image fed to the policy (256x256), the state (7 joint angles plus the gripper reading), the policy's action, the joint target actually sent to the robot, the gripper open/close command, and timing;
- the state after the reset (distance from the start pose, gripper reading), with a warning printed on the spot if it is wrong;
- which checkpoint was used (file name and checksum) and the code version;
- success or failure and a one-line note. After you answer
success?it asks for a note; for failures, write the reason (e.g. "veered left from the start", "missed the grasp", "placed off target").
Do not pass --no-video; the logs are saved next to the videos. A phone video from the side also helps, especially for failures.
After testing, send us the rollouts/ folder, the outputs of the three pre-test checks, and any phone videos. With these we can replay every step exactly and find which step and which input went wrong.
Download (public repository, no token needed):
hf download EndeavourDD/ditar_re deploy_package_bottle_middle.zip --repo-type dataset --local-dir .
unzip deploy_package_bottle_middle.zip
For the other packages, use the package names from the table.
Run (same for every package):
cd deploy_package_bottle_middle
pip install -r requirements.txt # skip if installed in June
python deploy.py --ckpt checkpoints/ours.pt --mode smoke # check without the robot
python deploy.py --ckpt checkpoints/ours.pt --mode robot --episodes 1 # one robot episode
- Before the first run, check the "Interface" section of the package README. The image must be in RGB order. The state is 7 joint angles in radians plus the gripper width in meters. The action is an absolute joint target, not something to add to the current angles. At the start pose, the first action should be almost equal to the current joint angles; if the arm veers off right from the start, one of these is usually wrong.
- The robot section of
deploy.pyis a stub. If your robot is already wired into the Junedeploy.py, keep using your copy and just point--ckptat the new checkpoints. For first-time wiring, seeREADME_v1_english.mdin each package. - Scene layout, camera alignment, and the success criterion are in each package's
README.mdand the pictures inscene_reference/. - Test the two checkpoints in the table first, about 10 episodes each, alternating between them. Record success or failure for every episode, ideally with video.
- Downloads last month
- 808