Skip to content

Best way to reset-to-state from original diffusion policy dataset? #16

@c0g

Description

@c0g

If I call env.reset(options={'reset_to_state': state) using a state from pusht_cchi_v7_replay.zarr, the replayed data looks wrong. If I do:

    env.reset()
    env.unwrapped.agent.position = list(state[0, :2])
    env.unwrapped.block.angle = state[0, 4]
    env.unwrapped.block.position = list(state[0, 2:4])
    env.unwrapped.space.step(env.unwrapped.dt)

it looks right. This is similar to a change and I think is flagged in the docs. Is there a blessed/better way to handle resetting to a known starting state?

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