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

render_mode=False is useless. Fake option not to render #32

Open
whoIsTheGingerBreadMan opened this issue Nov 8, 2019 · 4 comments
Open

Comments

@whoIsTheGingerBreadMan
Copy link

whoIsTheGingerBreadMan commented Nov 8, 2019

render_mode = False means there is 'rgb_array' instead of 'human'. Somehow it still renders.

@whoIsTheGingerBreadMan whoIsTheGingerBreadMan changed the title render_mode=False doesn't not render render_mode=False is useless. Fake option not to render Nov 8, 2019
@zacwellmer
Copy link

@whoIsTheGingerBreadMan did you ever fix this?

@zacwellmer
Copy link

True and False only determines the render format (rgb_array vs human). Regardless of your choice the environment will still render. Is there a reason why it's necessary to render the environment @hardmaru ?

@whoIsTheGingerBreadMan
Copy link
Author

@whoIsTheGingerBreadMan did you ever fix this?

I never fixed this. I think I went down the rabbit hole into the open ai gym code at some point and found that there was some weird thing with one of the dependencies that didn't play well with others... It's been a while...

@hardmaru
Copy link
Owner

hardmaru commented Mar 5, 2020

It's been a while since I looked at this, but if I remember correctly, for CarRacing-v0, the environment still "renders" something since it needs to rely on OpenGL to spit out an image that it can resize into a numpy array for the agent's visual inputs. I wished the original env was not based on OpenGL, and rendered directly to numpy, even if it were slower... would have saved me a lot of headaches.

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