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

display of env 'IntersectionEnv': #87

Open
swb19 opened this issue Aug 19, 2022 · 1 comment
Open

display of env 'IntersectionEnv': #87

swb19 opened this issue Aug 19, 2022 · 1 comment

Comments

@swb19
Copy link

swb19 commented Aug 19, 2022

When I run the following code, I find that although I can train normally, the visualization part always fails to work (black screen is displayed). It seems to be the problem of self.env.unwrapped.viewer.set_agent_display in evaluation.py?
Have you encountered similar problems?

python experiments.py evaluate configs/IntersectionEnv/env_multi_agent.json \
                               configs/IntersectionEnv/agents/DQNAgent/ego_attention_2h.json \
                               --train --episodes=3000

image

@eleurent
Copy link
Owner

Hi,
No that is strange, it seems to be working fine for me:
image

Could you try to run a separate script where you instantiate and render highway-env manually, to see if that works?

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