-
-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* env-wrapper * examples fix * minigrid update * random frame skip support * convolution net update * atari env support * configs update
- Loading branch information
Showing
38 changed files
with
259 additions
and
462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# flake8: noqa | ||
|
||
from .gym import GymWrapper | ||
from .environment import EnvironmentWrapper | ||
from .gym import GymEnvWrapper | ||
from .atari import AtariEnvWrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env python | ||
|
||
from .environment import EnvironmentWrapper | ||
|
||
from .env_wrappers import make_atari_env | ||
|
||
|
||
class AtariEnvWrapper(EnvironmentWrapper): | ||
def __init__( | ||
self, | ||
env_id, | ||
max_episode_steps=None, | ||
episode_life=True, | ||
clip_rewards=False, | ||
width=84, | ||
height=84, | ||
grayscale=True, | ||
**params | ||
): | ||
env = make_atari_env( | ||
env_id=env_id, | ||
max_episode_steps=max_episode_steps, | ||
episode_life=episode_life, | ||
clip_rewards=clip_rewards, | ||
width=width, | ||
height=height, | ||
grayscale=grayscale, | ||
) | ||
super().__init__(env=env, **params) | ||
|
||
|
||
__all__ = ["AtariEnvWrapper"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.