Agibot conversion

From VectorSpaceLab/AREX-Skill · View interactive version

Agibot conversion is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Routes AgiBotWorld raw-tree conversion requests to LeRobot, covering end-effector selection, task filtering, episode alignment, depth and video handling, execution controls, and recovery.

How to use this skill

Skill file

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 CODE0

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

before scheduling work, and never use the source tree as an output root.

for the first run. The default executor is Ray, but Ray is optional for a

single-node conversion.

episode, feature, and modality counts have been reviewed. Require an

explicit --repo-id and confirm the destination is not an unintended

existing dataset.

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.

while only planning or validating this route.

Route checklist

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.