rl-agents icon indicating copy to clipboard operation
rl-agents copied to clipboard

display of env 'IntersectionEnv':

Open swb19 opened this issue 1 year ago • 1 comments

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

swb19 avatar Aug 19 '22 16:08 swb19

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?

eleurent avatar Aug 20 '22 10:08 eleurent