AgiBotWorld conversion
Use this route when a user needs to convert an AgiBotWorld/AgiBot-World raw
release into a LeRobot dataset, select gripper/dexhand/tactile tasks, preserve
AgiBot state and action names, or diagnose an AgiBot conversion failure. This
route is dataset-specific. Load generic-conversion
for shared adapter lifecycle, temporary aggregation, local/Ray executor
semantics, resume logs, cleanup, and Hub publication; do not duplicate that
pipeline here.
Safety and compatibility boundary
- Treat the raw tree and the output root as separate resources. Inventory both
before scheduling work, and never use the source tree as an output root.
- Prefer a read-only structural preflight,
--executor local, and --debug
for the first run. The default executor is Ray, but Ray is optional for a
single-node conversion.
- Do not enable
--push-to-hub until the local dataset opens and its task,
episode, feature, and modality counts have been reviewed. Require an
explicit --repo-id and confirm the destination is not an unintended
existing dataset.
- The AgiBot implementation uses a custom metadata flush and dataset writer.
It is version-sensitive and must be checked against the installed LeRobot
API before conversion. In the verified environment, current LeRobot exposes
LeRobotDataset and LeRobotDatasetMetadata under
lerobot.datasets.lerobot_dataset, while the source import style also
expects exports from lerobot.datasets and lerobot.datasets.dataset_writer.
Treat an import-layout mismatch as a blocking compatibility issue, not as a
reason to edit metadata by guesswork.
- Do not run a conversion, Ray cluster, video decode, download, or Hub push
while only planning or validating this route.
Route checklist
- Confirm the release root contains
task_info/, observations/, and
proprio_stats/; confirm that the requested task IDs and episode IDs are
present in the release rather than inferred from a filename alone.
- Choose exactly one
--eef-type: gripper, dexhand, or tactile. Keep
task families separate. The gripper route means the tasks not reserved for
dexhand or tactile in the built-in mapping; it is not a universal “all
tasks” switch.
- Check the selected task JSON records, HDF5 state/action paths, every required
RGB/tactile video, and depth frame count when
--save-depth is requested.
Use the schemas in data formats.
- Decide task granularity with
--episodes-per-task. Use 1 for load
balancing and isolation, or a larger value when task-start overhead and
memory are acceptable. Chunk names are deterministic but are not semantic
task IDs.
- Select execution and resource flags from workflows,
including
--executor, --cpus-per-task, --tasks-per-job, --workers,
--resume-dir, and --debug. Start locally; only use Ray after cluster
ownership, shared paths, optional dependencies, and worker memory have been
confirmed. Budget roughly 20 GiB per active task and about 3 CPU cores per
task as a starting point, then reduce concurrency if memory is constrained.
- Preserve the frame task label (
task_name | init_scene_text) and the
per-episode action_config. Do not flatten or rename nested state/action
keys without recording an explicit downstream schema change.
- Interpret failures conservatively: missing video is skipped before loading,
corrupt video is skipped when episode saving fails, action longer than state
skips the episode, and depth count mismatch must be investigated rather than
padded silently. See troubleshooting.
- Validate the local result before resume or publication: feature names and
shapes, task labels, action metadata, episode counts, depth presence, video
readability, and absence of unexpected temporary output. Then hand shared
cleanup, aggregation, resume, and Hub behavior to
generic-conversion.
AgiBot-specific transformation
The converter reads state and action arrays from proprio_stats.h5, emits one
frame per state sample, and attaches the natural-language task label to every
frame. Empty action arrays become zero-valued frames of the configured shape.
Short action arrays are reconstructed from the corresponding state stream and
placed at the recorded action indices when those indices exist; an empty
action/.../index may fall back to the joint index. An action stream longer
than the state stream is treated as corrupt and the episode is skipped. This is
alignment policy, not generic padding and must be recorded in provenance.
RGB and tactile streams remain video features; optional head depth is loaded as
float32 image data from depth frames and scaled from millimetres to metres. The
custom writer stores task indices, action configuration, episode statistics,
and video references while writing episode metadata as Parquet. These details
are summarized, with no source-code dependency, in the bundled references.
Difficult synthetic case
For a mixed raw tree containing one gripper task, one dexhand task, and one
short-action episode, first filter by --eef-type and explicit --task-ids,
then verify that the short action is reconstructed only when the index/state
contract is valid. Add a task with a missing depth frame and another with a
missing or corrupt video: the video case should be skipped with a reason; the
depth case should stop or be excluded by preflight rather than silently
inventing frames. This case is suitable for an integration usability test and
requires no real AgiBot data.
Handoff and evidence
Report the source release shape, selected end-effector and tasks, skipped
episodes with reasons, alignment and depth decisions, execution/resource
flags, compatibility checks, output validation, and any unresolved optional
backend gap. Evidence for this route was distilled from the repository README,
the AgiBot conversion README, agibot_h5.py, agibot_utils/agibot_utils.py,
agibot_utils/config.py, and agibot_utils/lerobot_utils.py; these artifact
names are provenance only and are not runtime dependencies.
1---2name: "agibot-conversion"3description: "Routes AgiBotWorld raw-tree conversion requests to LeRobot,4 covering end-effector selection, task filtering, episode alignment, depth and5 video handling, execution controls, and recovery."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/agibot-conversion9 disco-role: operating10license: MIT11---1213# AgiBotWorld conversion1415Use this route when a user needs to convert an AgiBotWorld/AgiBot-World raw16release into a LeRobot dataset, select gripper/dexhand/tactile tasks, preserve17AgiBot state and action names, or diagnose an AgiBot conversion failure. This18route is dataset-specific. Load [`generic-conversion`](../generic-conversion/SKILL.md)19for shared adapter lifecycle, temporary aggregation, local/Ray executor20semantics, resume logs, cleanup, and Hub publication; do not duplicate that21pipeline here.2223## Safety and compatibility boundary2425- Treat the raw tree and the output root as separate resources. Inventory both26 before scheduling work, and never use the source tree as an output root.27- Prefer a read-only structural preflight, `--executor local`, and `--debug`28 for the first run. The default executor is Ray, but Ray is optional for a29 single-node conversion.30- Do not enable `--push-to-hub` until the local dataset opens and its task,31 episode, feature, and modality counts have been reviewed. Require an32 explicit `--repo-id` and confirm the destination is not an unintended33 existing dataset.34- The AgiBot implementation uses a custom metadata flush and dataset writer.35 It is version-sensitive and must be checked against the installed LeRobot36 API before conversion. In the verified environment, current LeRobot exposes37 `LeRobotDataset` and `LeRobotDatasetMetadata` under38 `lerobot.datasets.lerobot_dataset`, while the source import style also39 expects exports from `lerobot.datasets` and `lerobot.datasets.dataset_writer`.40 Treat an import-layout mismatch as a blocking compatibility issue, not as a41 reason to edit metadata by guesswork.42- Do not run a conversion, Ray cluster, video decode, download, or Hub push43 while only planning or validating this route.4445## Route checklist46471. Confirm the release root contains `task_info/`, `observations/`, and48 `proprio_stats/`; confirm that the requested task IDs and episode IDs are49 present in the release rather than inferred from a filename alone.502. Choose exactly one `--eef-type`: `gripper`, `dexhand`, or `tactile`. Keep51 task families separate. The gripper route means the tasks not reserved for52 dexhand or tactile in the built-in mapping; it is not a universal “all53 tasks” switch.543. Check the selected task JSON records, HDF5 state/action paths, every required55 RGB/tactile video, and depth frame count when `--save-depth` is requested.56 Use the schemas in [data formats](references/data-formats.md).574. Decide task granularity with `--episodes-per-task`. Use `1` for load58 balancing and isolation, or a larger value when task-start overhead and59 memory are acceptable. Chunk names are deterministic but are not semantic60 task IDs.615. Select execution and resource flags from [workflows](references/workflows.md),62 including `--executor`, `--cpus-per-task`, `--tasks-per-job`, `--workers`,63 `--resume-dir`, and `--debug`. Start locally; only use Ray after cluster64 ownership, shared paths, optional dependencies, and worker memory have been65 confirmed. Budget roughly 20 GiB per active task and about 3 CPU cores per66 task as a starting point, then reduce concurrency if memory is constrained.676. Preserve the frame task label (`task_name | init_scene_text`) and the68 per-episode `action_config`. Do not flatten or rename nested state/action69 keys without recording an explicit downstream schema change.707. Interpret failures conservatively: missing video is skipped before loading,71 corrupt video is skipped when episode saving fails, action longer than state72 skips the episode, and depth count mismatch must be investigated rather than73 padded silently. See [troubleshooting](references/troubleshooting.md).748. Validate the local result before resume or publication: feature names and75 shapes, task labels, action metadata, episode counts, depth presence, video76 readability, and absence of unexpected temporary output. Then hand shared77 cleanup, aggregation, resume, and Hub behavior to `generic-conversion`.7879## AgiBot-specific transformation8081The converter reads state and action arrays from `proprio_stats.h5`, emits one82frame per state sample, and attaches the natural-language task label to every83frame. Empty action arrays become zero-valued frames of the configured shape.84Short action arrays are reconstructed from the corresponding state stream and85placed at the recorded action indices when those indices exist; an empty86`action/.../index` may fall back to the joint index. An action stream longer87than the state stream is treated as corrupt and the episode is skipped. This is88alignment policy, not generic padding and must be recorded in provenance.8990RGB and tactile streams remain video features; optional head depth is loaded as91float32 image data from depth frames and scaled from millimetres to metres. The92custom writer stores task indices, action configuration, episode statistics,93and video references while writing episode metadata as Parquet. These details94are summarized, with no source-code dependency, in the bundled references.9596## Difficult synthetic case9798For a mixed raw tree containing one gripper task, one dexhand task, and one99short-action episode, first filter by `--eef-type` and explicit `--task-ids`,100then verify that the short action is reconstructed only when the index/state101contract is valid. Add a task with a missing depth frame and another with a102missing or corrupt video: the video case should be skipped with a reason; the103depth case should stop or be excluded by preflight rather than silently104inventing frames. This case is suitable for an integration usability test and105requires no real AgiBot data.106107## Handoff and evidence108109Report the source release shape, selected end-effector and tasks, skipped110episodes with reasons, alignment and depth decisions, execution/resource111flags, compatibility checks, output validation, and any unresolved optional112backend gap. Evidence for this route was distilled from the repository README,113the AgiBot conversion README, `agibot_h5.py`, `agibot_utils/agibot_utils.py`,114`agibot_utils/config.py`, and `agibot_utils/lerobot_utils.py`; these artifact115names are provenance only and are not runtime dependencies.