libero-conversion
Guides conversion of LIBERO HDF5 task demonstrations into LeRobot datasets and safely evaluates optional simulator-based regeneration, including task discovery, state/action schemas, image resolution, execution controls, and failure recovery.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- libero-conversion
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guides conversion of LIBERO HDF5 task demonstrations into LeRobot datasets and safely evaluates optional simulator-based regeneration, including task discovery, state/action schemas, image resolution, execution controls, and failure recovery.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/data-formats.md5.2 KB
- 参考文档references/troubleshooting.md6.7 KB
- 参考文档references/workflows.md7.2 KB
03 SKILL.md 正文
LIBERO conversion
Use this route when a user has LIBERO task-suite HDF5 files and wants a local
or Hub-backed LeRobot dataset, or asks whether the files must be regenerated
before conversion. This route covers the LIBERO-specific contract only. For
executor lifecycle, temporary aggregation, and shared adapter behavior, load
generic-conversion.
Safety boundary
- Treat conversion as a data-writing operation. First inventory source files, output roots, temporary roots, and any resume log directory.
- Prefer
--executor localand--debugfor a first structural smoke test. Do not start Ray, upload to the Hub, or regenerate through a simulator without explicit approval and a verified environment. - The converter reads HDF5 and writes LeRobot data; it does not create missing camera modalities or resize images safely on its own. Never silently reshape 128x128 frames to the declared 256x256 feature shape.
- Simulator regeneration is reference-only in this skill. It requires external LIBERO, robosuite, task assets, off-screen rendering, and potentially a large HDF5 rewrite; it must not be run as part of planning or validation.
Route checklist
- Confirm the source directories, desired output root, LeRobot format/version, and whether multiple suites/directories should be merged.
- Inspect only direct children matching
*.hdf5; derive the task instruction from each filename and reject or separately review files that do not match the supported naming convention. See workflows. - Validate every selected file's
datagroup and each demo's requiredobsdatasets before scheduling conversion. Check lengths, dtypes, image shapes, and finite numeric values using a read-only structural probe. - Confirm that RGB frames are 256x256x3, or stop and choose the explicit 128x128 handling/regeneration path in data formats.
- Use the conversion flags and merge rules in workflows. Keep local execution as the baseline; use Ray only after its dependencies and cluster ownership are confirmed.
- After conversion, inspect feature metadata, episode/task counts, image dimensions, action range, and state widths before any Hub push.
- When a failure occurs, use troubleshooting and preserve the source and logs. Do not retry by deleting an unrelated output or by changing schemas to make validation pass.
LIBERO-specific data transformation
Each demo is emitted frame-by-frame with its task instruction attached. The
six-dimensional end-effector pose is concatenated with the two-dimensional
LIBERO gripper state to form the eight-dimensional observation.state. The
seven-dimensional action keeps the first six values and transforms the final
command with 1 - clip(value, 0, 1), preserving the repository's gripper
inversion convention. This is a semantic conversion, not a generic numeric
normalization; record it in provenance.
Do not route RLDS/TFDS input, RoboCasa files, or LeRobot version migrations through this sub-skill. Choose the corresponding sibling route at the root. Do not treat a successful file open as proof that the task is convertible: shape, frame alignment, and feature-version checks are required before the writer is started.
For a synthetic smoke case, use a two-frame data/demo_0 fixture with all
required arrays and verify only key presence, widths, image dimensions, and
the final action component. This gives coverage of the difficult schema path
without invoking a converter, codec, Ray, Hub, or simulator.
The standard feature contract is two RGB video streams (agentview_rgb and
eye_in_hand_rgb) at 256x256x3, an 8-wide combined state, separate 6-wide
end-effector, 7-wide joint, and 2-wide gripper state streams, and a 7-wide
action. The canonical defaults are 20 FPS and Franka. Do not infer a different
robot or FPS merely from a directory name.
Handoff
Report selected files, skipped filename mismatches, source shape/dtype checks, transformation choices, executor and safety flags, output metadata checks, and whether regeneration was not run. Preserve unresolved optional-dependency or schema gaps explicitly.
Evidence for this route was distilled from the repository's LIBERO README,
libero_h5.py, and regenerate_libero_dataset.py; those artifacts are
provenance only and are not runtime dependencies.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).