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

[Question] About Atari Env at version=0.26.0 #3144

Closed
Aidilele opened this issue Nov 3, 2022 · 3 comments
Closed

[Question] About Atari Env at version=0.26.0 #3144

Aidilele opened this issue Nov 3, 2022 · 3 comments

Comments

@Aidilele
Copy link

Aidilele commented Nov 3, 2022

For the Atari env env=gym.make('PongNoFrameskip-v4'),the attrenv.spec.max_episode_steps get its value equal None,but at gym version=0.18.0,this value equals 400000. Whether this value is canceled due to version update?,if not,How can I get it at version=0.26.0

@pseudo-rnd-thoughts
Copy link
Contributor

I don't understand why, but ale-py doesn't seem to use the time limit wrapper and instead pass the max number of steps per episode as a kwarg

>>> >>> gym.spec("PongNoFrameskip-v4")
EnvSpec(id='PongNoFrameskip-v4', entry_point='ale_py.env.gym:AtariEnv', reward_threshold=None, nondeterministic=False, max_episode_steps=None, order_enforce=True, autoreset=False, disable_env_checker=False, apply_api_compatibility=False, kwargs={'game': 'pong', 'obs_type': 'rgb', 'repeat_action_probability': 0.0, 'full_action_space': False, 'max_num_frames_per_episode': 108000, 'frameskip': 1}, namespace=None, name='PongNoFrameskip', version=4)

As you can see in the kwargs there is the parameter of "max_num_frames_per_episode"

@rfali
Copy link

rfali commented May 17, 2023

@Aidilele , @pseudo-rnd-thoughts Maybe this could help clarify things (see the commit mentioned)
Farama-Foundation/Arcade-Learning-Environment#464 (comment)

@Aidilele
Copy link
Author

Wonderful!

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

3 participants