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

Environment window resizing #111

Open
Louise599 opened this issue Mar 12, 2024 · 1 comment
Open

Environment window resizing #111

Louise599 opened this issue Mar 12, 2024 · 1 comment

Comments

@Louise599
Copy link

Louise599 commented Mar 12, 2024

Hi, after I ran

python experiments.py evaluate configs/IntersectionEnv/env.json \
configs/IntersectionEnv/agents/DQNAgent/baseline.json
After --train --episodes=4000 --name-from-config,

I found that the window of IntersectionEnv is very small, may I know where to adjust the parameters of the window?
Looking forward to your reply, thank you very much!

@eleurent
Copy link
Owner

Hi,

When creating a highway-env environment, you can edit the window size with

env = gym.make('intersection-v0', config={"screen_width": 600, "screen_height": 600})

But since you're using the experiments.py script which handles environment creation internally, you should instead edit the env config file, configs/IntersectionEnv/env.json in your case, and add the "screen_width": 600, "screen_height": 600 options there

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