Comments (7)
Try to unwrap the env
env = env.unwrapped
from dqn-tensorflow.
Hi, you can just pip install gym==0.7.0 solve this problem. This is because new gym 0.8.0 released and it is hard to use for this code.
from dqn-tensorflow.
Only Breakout can be applied.
Try the following code.
def init(self, config):
self.step_info = None
def _step(self, action):
self._screen, self.reward, self.terminal, self.step_info = self.env.step(action)
def lives(self):
if self.step_info is None:
return 0
else:
return self.step_info['ale.lives']
from dqn-tensorflow.
@Lan1991Xu Thanky you!
Can I test with this check point? When I use python main.py --is_train=False --display=True,it occur a load failed error.
from dqn-tensorflow.
I'm also running into this problem. How would we use this for the latest version of gym?
from dqn-tensorflow.
How to solve this problem? I try pip install gym==0.7.0, but it failed. In addition, I try the following code in main.py , it also failed.
def init(self, config):
self.step_info = None
def _step(self, action):
self._screen, self.reward, self.terminal, self.step_info = self.env.step(action)
def lives(self):
if self.step_info is None:
return 0
else:
return self.step_info['ale.lives']
from dqn-tensorflow.
I have the same issue; tried to revert gym to 0.7.4 and 0.7.3 (from repo) but then atari games will render as text. I've tried with other gym versions as well. I can only render atari envs using the latest version, but then dqn breaks. Any solution is greatly appreciated.
When using latest gym version, tried to unwrap env as suggested, got into another issue:
in /home/me/work/bitbucket/NeuralNetworks/My/dependencies/gym/gym/wrappers/time_limit.py
error: Cannot call env.step() before calling reset()
from dqn-tensorflow.
Related Issues (20)
- Trouble loading checkpoints HOT 1
- How to run for more epochs HOT 1
- History is not updated with new game screen created after a terminal state is reached HOT 2
- CUDA_ERROR_OUT_OF_MEMOR HOT 1
- KeyError: '__flags' HOT 4
- unsupported operand type(s) for +: 'dict_values' and 'list HOT 3
- error memory HOT 1
- No updates to the learning rate
- clipped error function is not correct
- why the content is not match the readerme?
- How to run on Windows? HOT 2
- what's the difference between simple game and detail game
- about starting a new game and History HOT 1
- terminal in agent.py seem not handle properly HOT 1
- Any one who can share model details? HOT 3
- AssertionError: Cannot call env.step() before calling reset() HOT 1
- load failed HOT 3
- How to play the code?
- why the Breakout-v0's action_size is 4 ,but in the checkpoint is 6 HOT 1
- Ram consumption HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dqn-tensorflow.