openai / procgen

Procgen Benchmark: Procedurally-Generated Game-Like Gym-Environments
https://openai.com/blog/procgen-benchmark/
MIT License
991 stars 207 forks source link

[Bug] If statement rendermode is wrong #63

Closed HadiSDev closed 2 years ago

HadiSDev commented 3 years ago

in env.py we have:

        if render_mode is None:
            render_human = False
        elif render_mode == "rgb_array":
            render_human = True
        else:
            raise Exception(f"invalid render mode {render_mode}")

Should be the opposite

christopherhesse commented 2 years ago

I believe this is just a confusing name, and that render_human means to render a high resolution version of the scene, which is then used by the render() call with mode rgb_array. If that's not the case please re-open this issue or file a new one.