Skip to content

[Bug Report] gym.wrappers.RecordVideo no longer render videos for Atari environments. #2675

@vwxyzjn

Description

@vwxyzjn

gym.wrappers.RecordVideo no longer render videos for Atari environments. Try running the following script with gym==0.23.0 and gym==0.22.0

import gym

env = gym.make("BreakoutNoFrameskip-v4")
env = gym.wrappers.RecordEpisodeStatistics(env)
env = gym.wrappers.RecordVideo(env, f"videos/{gym.__version__}")

env.reset()
for _ in range(2000):
    _, _, done, _ = env.step(env.action_space.sample())
    if done:
        env.reset()

the videos/0.22.0 contains videos but not the videos/0.23.0:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions