Open xihangalpha opened 7 years ago
I have a similar problem.
I'm using this command to start docker:
docker run -it -p 8888:8888 -p 6006:6006 --name ai -e PASSWORD=ai -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY --device /dev/dri --device /dev/snd stefanutti/ai:1.0 bash
I'm using:
It is probably due to some dependent libraries of openai universe.
I had same problem and managed it with making new virtualenv without universe. I tried uninstalling universe from current env but it didn't work, so I assume it's not universe itself but its dependent library causing the problem.
I also created an issue on gym github repo but there's no answer yet. https://github.com/openai/gym/issues/596
Ran into exactly the same problem on Mac.
By using an older version of atari-py (0.0.21 for my case), the problem seemed to be solved. Not only works for breakout, also other Atari games.
It is the version problem of gym. By using pip install gym==0.10(my case) and modify environment.py : modify: self.env = gym.make(config.env_name) to: self.env = gym.make(config.env_name).unwrapped It is for all games in gym
When I set is_train=False and display=True in the code, the screen outputs the image flows with rather low quality and without color. Why? Could someone help me?