Skip to content

Missing script to convert LIBERO HDF5 dataset to action.npy format in rel2abs.py pipeline #73

@Noietch

Description

@Noietch

Description

In the LIBERO data preprocessing documentation (preprocess.md), the workflow mentions:

  1. Run regenerate_libero_dataset.py to regenerate the LIBERO dataset
  2. Run rel2abs.py to 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 238

But 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-109

Expected

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

  1. Is there a missing script for this HDF5 → data_jpg conversion step?
  2. Or should rel2abs.py be modified to read directly from the regenerated HDF5 files?
  3. Could you please provide the h5 file converted to abs eef

Thanks for the great work on X-VLA!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions