Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
c0g opened this issue Nov 26, 2024 · 0 comments
Open

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

c0g opened this issue Nov 26, 2024 · 0 comments

Comments

@c0g
Copy link

c0g commented Nov 26, 2024

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?

@c0g c0g changed the title Best way to reset-to-state from original diffusion data? Best way to reset-to-state from original diffusion policy dataset? Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant