Stream ALOHA HDF5 conversion frame-by-frame to cut RAM use#1004
Open
Abhishek21g wants to merge 1 commit into
Open
Stream ALOHA HDF5 conversion frame-by-frame to cut RAM use#1004Abhishek21g wants to merge 1 commit into
Abhishek21g wants to merge 1 commit into
Conversation
Load one camera frame at a time instead of materializing every image tensor per episode, and align the converter with HF_LEROBOT_HOME like the Libero/DROID scripts. Adds synthetic conversion tests. Fixes Physical-Intelligence#565 and the memory half of Physical-Intelligence#986. LeRobot v3 output remains blocked on the pinned lerobot revision (openpi#706).
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.
Summary
Addresses #986 and #565 — the ALOHA→LeRobot converter no longer loads every camera frame for an entire episode into RAM before writing frames.
Changes
load_image_frame()populate_episode()instead of materializingimgs_per_camtensorsHF_LEROBOT_HOMElike the Libero/DROID scriptsexamples/aloha_real/convert_aloha_test.pyNote on LeRobot v3
openpi training is still pinned to the v2.1 lerobot revision (#706 / #972). This PR fixes the OOM failure mode on large ALOHA exports while keeping the supported dataset format. A separate lerobot bump is needed for true v3 output.
Verification