WorldModelsExperiments icon indicating copy to clipboard operation
WorldModelsExperiments copied to clipboard

render_mode=False is useless. Fake option not to render

Open whoIsTheGingerBreadMan opened this issue 5 years ago • 4 comments

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

whoIsTheGingerBreadMan avatar Nov 08 '19 00:11 whoIsTheGingerBreadMan

@whoIsTheGingerBreadMan did you ever fix this?

zacwellmer avatar Feb 20 '20 19:02 zacwellmer

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 ?

zacwellmer avatar Feb 20 '20 19:02 zacwellmer

@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...

whoIsTheGingerBreadMan avatar Feb 20 '20 23:02 whoIsTheGingerBreadMan

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.

hardmaru avatar Mar 05 '20 07:03 hardmaru