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

env.monitor.start('') doesn't display the CarRacing environment in full #492

Closed
Instassa opened this issue Feb 5, 2017 · 3 comments
Closed

Comments

@Instassa
Copy link

Instassa commented Feb 5, 2017

After I call:
env = gym.make('CarRacing-v0')
env.render()
env.monitor.start('results/carrace-1')
and also do some 500 random steps the CarRacing environment gets displayed only partially on my computer (like on the screenshot).

How could I fix this so I can at least see the car?

screen shot 2017-02-05 at 23 36 59

@olegklimov
Copy link
Contributor

screenshot from 2017-02-06 02-55-15

It's there, you need a bigger monitor. Just kidding, I'll fix it.

@olegklimov
Copy link
Contributor

No there's nothing to fix. Please add env.render("human") to your code. Without this command the window you see is only used as a canvas to draw the scene.

Additionally, to fix large window you can change display DPI on your Mac, or change

WINDOW_W = 1200
WINDOW_H = 1000

in gym/envs/box2d/car_racing.py to smaller values.

@Instassa
Copy link
Author

Thank you, Oleg, it worked! :)

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

2 participants