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

How are actions in the dataset defined? #16

Open
hutchinsonian opened this issue Jun 14, 2024 · 0 comments
Open

How are actions in the dataset defined? #16

hutchinsonian opened this issue Jun 14, 2024 · 0 comments

Comments

@hutchinsonian
Copy link

To be more specific, in the ms-pacman environment, I use env = gym.make('ms-pacman-medium-v0') to create the env, and I run

observation = env.reset() # observation.shape == (84, 84)
observation, reward, terminal, info, _ = env.step(2)

I found that the action definition here is the same as https://gymnasium.farama.org/environments/atari/ms_pacman/ , action 2 controls the character to move to the right.
But in data = env.get_dataset(), I found that there seems to be some difference.

data['actions'][:10]
array([2, 2, 2, 2, 6, 2, 2, 7, 7, 7], dtype=int32)

I saved the first few frames of observation:
image
image
image
image

Why is the character moving upwards? Am I missing something?
@takuseno @takuyamagata

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