You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mimic Isaaclab2lerobotdatasetV3 ValueError: The feature 'action' of shape '(8,)' does not have the expected shape '(6,)'. #142
isaaclab2lerobot exports wrong action dimension for Mimic datasets
Bug description
When converting an IsaacLab HDF5 dataset to LeRobot format, the conversion path currently reads actions from episode_data._data["obs"]["actions"].
This is problematic for Mimic-generated / Mimic-postprocessed datasets.
In those datasets:
top-level actions may already be converted back to joint-space actions, for example shape (T, 6)
but obs/actions may still keep the intermediate Mimic action representation, for example shape (T, 8)
As a result, isaaclab2lerobot.py / isaaclab2lerobotv3.py can export the wrong action representation and produce 8D actions in the final LeRobot dataset, even though the final top-level actions are already 6D.
The converter should prioritize the final top-level actions field when it exists:
episode_data._data["actions"]
and only fall back to:
episode_data._data["obs"]["actions"]
when top-level actions does not exist.
If both exist and have different shapes, it would be helpful to print a warning.
Actual behavior
The converter reads obs/actions, so the exported LeRobot dataset uses the 8D Mimic action representation instead of the final 6D joint action representation.
Why this matters
For Mimic workflows, the final dataset may intentionally contain:
top-level actions: final replay / joint-space actions
obs/actions: intermediate action representation used during generation
Using obs/actions silently changes the semantics of the exported action field.
Activity