-
Notifications
You must be signed in to change notification settings - Fork 50
Missing script to convert LIBERO HDF5 dataset to action.npy format in rel2abs.py pipeline #73
Copy link
Copy link
Open
Description
Description
In the LIBERO data preprocessing documentation (preprocess.md), the workflow mentions:
- Run
regenerate_libero_dataset.pyto regenerate the LIBERO dataset - Run
rel2abs.pyto convert relative actions to absolute actions
However, there is a missing intermediate step between these two scripts.
The Problem
regenerate_libero_dataset.py outputs HDF5 files with actions stored as:
ep_data_grp.create_dataset("actions", data=actions) # Line 238But rel2abs.py expects to read action.npy from a data_jpg directory structure:
data_root = '/data/libero/data_jpg'
action_path = os.path.join(data_root, task_suite_name, f"{task_name}_demo", f"demo_{i}", "action.npy")
action = np.load(action_path) # Line 108-109Expected
There should be a script (or documentation) that converts the HDF5 output from regenerate_libero_dataset.py into the data_jpg directory structure containing:
- action.npy
- Images (jpg files)
- Other necessary files
Questions
- Is there a missing script for this HDF5 → data_jpg conversion step?
- Or should rel2abs.py be modified to read directly from the regenerated HDF5 files?
- Could you please provide the h5 file converted to abs eef
Thanks for the great work on X-VLA!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels