Repository navigation
[python] Export LeRobot v2 and v3 datasets from Paimon - #11299
Draft
XiaoHongbo-Hope wants to merge 2 commits into
Draft
XiaoHongbo-Hope wants to merge 2 commits into
XiaoHongbo-Hope wants to merge 2 commits into
Conversation
XiaoHongbo-Hope
marked this pull request as draft
November 20, 2026 08:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A LeRobot table group can be imported into Paimon but cannot be exported as a standalone LeRobot dataset. Add
conn.export_to_lerobot(...)for LeRobot v2.0, v2.1, and v3.0, targeting either a local directory oross://bucket/prefix. Multi-source groups select one source by_datasets.id; tagged groups can export a fixed snapshot.V3 preserves source-local indices and copies each shared encoded MP4 once. V2 writes one Parquet and one H.264 MP4 per Episode and camera, with the v2.0 global-statistics and v2.1 per-Episode-statistics metadata layouts. The exporter supports imported groups and
PaimonLeRobotWritergroups. A small sidecar preserves the Paimon Dataset ID, name, and extra text fields outside the LeRobot schema. OSS output can use the table's FileIO or separateoutput_options; it stages files in local temporary storage and uploadsmeta/info.jsonlast. Failed uploads leave their prefix for inspection/retry under a new prefix.Validation: related LeRobot tests 410 passed, 9 skipped; flake8 and
git diff --checkpassed. A real 224-frame, two-camera sample exported to v3 with sourceinfo.json, Episode Parquet, and frame Parquet values unchanged, and encoded MP4 bytes preserved. The same output was uploaded to OSS, read back with matching MP4 SHA-256, and reimported from OSS into a fresh Paimon warehouse with 224 frames and two videos. OSS test objects were removed. Official LeRobot v0.4.4 read valid v3 frames; v0.3.3 read all tested v2.0/v2.1 frames, including video. The source's final frame has a nullsubtask_index, which the older official v3 reader also rejects in the original dataset; export preserves it.