技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
rlds-export【数据与研究】This skill exports LeRobot datasets to RLDS/TFDS with feature mapping, image and depth normalization, episode boundaries, metadata, and optional Apache Beam controls.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this route when a user needs a local LeRobot dataset represented as an RLDS/TFDS dataset for an RLDS consumer such as an offline-RL, imitation-learning, or VLA pipeline. It covers the exporter contract and safe planning; it does not ship or execute a full data-conversion wrapper.
train split and
TFRecord storage, plus the requested dataset metadata.Read the linked references before choosing flags:
LeRobotDataset and LeRobotDatasetMetadata from
lerobot.datasets.lerobot_dataset; other LeRobot versions may expose these
symbols elsewhere. Resolve this import before any conversion attempt.--task-name) and semantic version
(--version, x.y.z). Record the encoding and all descriptive metadata.If any preflight item is unknown, produce a validation plan rather than starting an export. Do not use a successful import as evidence that a real dataset maps correctly.
Use these arguments with the project’s equivalent exporter entry point; this sub-skill intentionally does not provide a wrapper that performs large writes:
--src-dir PATH: local LeRobot dataset root; required.--output-dir PATH: TFDS output directory; required and should be new.--task-name NAME: RLDS/TFDS dataset or builder name; required.--version X.Y.Z: dataset version; default 0.1.0 in the evidence workflow.--encoding-format {jpeg,png}: image encoding; default jpeg.--citation TEXT, --homepage TEXT: optional provenance metadata.--overall-description TEXT, --description TEXT: optional dataset
descriptions; keep the distinction if downstream catalog tooling uses both.--enable-beam: opt into Beam; absent means direct generation.--beam-run-mode {multi_threading,multi_processing}: Beam DirectRunner mode;
evidence default is multi_processing.--beam-num-workers N: Beam DirectRunner worker count; evidence default is 5.Validate paths, version syntax, encoding choice, and positive worker count before
invoking the exporter. --task-name is metadata, not a filter for source task
strings; use a distinct name when the output is a differently scoped dataset.
data-formats.md. Reject unhandled
feature kinds instead of silently dropping them.uint8 HWC from LeRobot
CHW values in [0, 1]; squeeze only a documented singleton depth channel;
preserve state/action numeric dtype and shape; map task text to
language_instruction.is_first on the first frame, and set both is_last and is_terminal on
the final frame only. is_terminal here means “episode ended at the last
available frame,” not a separately observed environment termination signal.multi_processing or multi_threading and a bounded worker count. Use only
after a successful direct smoke test and when throughput justifies it.multi_threading has an
additional sharding/saving warning; prefer multi_processing when Beam is
approved.Before a real export, perform only safe checks:
--help; confirm all listed
flags and defaults without opening a dataset or creating output.[0,1]→uint8, singleton depth behavior, state/action key mapping, task to
language_instruction, and exactly one first/last/terminal marker per episode.Source basis: the Any4LeRobot LeRobot-to-RLDS README and its exporter module. The source module is adapted into this contract and references only; no source file, checkout path, or source script is a runtime dependency.