mirror of
https://github.com/wassname/ray.git
synced 2026-07-07 14:24:44 +08:00
[RLlib] Issue 12831: AttributeError: 'NoneType' object has no attribute 'id' when using custom Atari env. (#12832)
This commit is contained in:
Vendored
+1
-1
@@ -278,7 +278,7 @@ def wrap_deepmind(env, dim=84, framestack=True):
|
||||
"""
|
||||
env = MonitorEnv(env)
|
||||
env = NoopResetEnv(env, noop_max=30)
|
||||
if "NoFrameskip" in env.spec.id:
|
||||
if env.spec is not None and "NoFrameskip" in env.spec.id:
|
||||
env = MaxAndSkipEnv(env, skip=4)
|
||||
env = EpisodicLifeEnv(env)
|
||||
if "FIRE" in env.unwrapped.get_action_meanings():
|
||||
|
||||
Reference in New Issue
Block a user