Skip to content

Unexpected first frame in converting Lerobot dataset #339

@mingxueg-nv

Description

@mingxueg-nv

During the conversion of HDF5 files into the Lerobot dataset, the last frame from the previous environment reset is always saved as the first frame of the current episode.

  • As shown in image 1, the first frame of the video is actually not the initial scene in my environments.
Image
  • Figure 2 shows the true first frame that should have been saved for this episode.
Image

You can find the mismatch frame in this video if you scrub the video's progress bar to the first frame.

episode_000025.mp4

Simply changing frames[:-1] to frames[1:] will resolve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions