Comments (1)
I'm almost there to solve the problem, still some issues.
If you modify atari_wrappers.py, class 'WarpFrame' to this version:
class WarpFrame(gym.ObservationWrapper):
def __init__(self, env, show_warped=False):
"""Warp frames to 84x84 as done in the Nature paper and later work."""
gym.ObservationWrapper.__init__(self, env)
if 'SpaceInvaders' in str(env):
self.res1, self.res2 = 210, 160
else:
self.res1, self.res2 = 84, 84
self.observation_space = spaces.Box(low=0, high=255, shape=(self.res1, self.res2, 1))
self.viewer = None
self.show_warped = show_warped
And add this to the first part of the function 'wrap_deepmind':
def wrap_deepmind(env, episode_life=False, skip=4, stack_frames=4, noop_max=30, noops=None, show_warped=False):
"""Configure environment for DeepMind-style Atari.
Note: this does not include frame stacking!"""
if 'SpaceInvaders' in str(env):
stack_frames = 3
Once this part is done, if you run the viz.py it works, but it doesn't play as better as 'standard' Atari games like Frtosbite: please note that this happens despite the snapshot indicates a higher score than what is then shown by viz.py.
If I modify the first line after the declaration of the function '_observation(self, obs)', that stores a 'stubbed' numpy array of magical floats, the behavior of the net and the scores change dramatically, so I'd like to ask what this array is meant to store.
The Github version is the following:
def _observation(self, obs):
frame = np.dot(obs.astype('float32'), np.array([0.299, 0.587, 0.114], 'float32')) # real black magic?
from deep-neuroevolution.
Related Issues (20)
- proposed fix for nan error in vine HOT 1
- how to run locally
- AttributeError: 'list' object has no attribute 'ndim' HOT 1
- Elitism
- how to run gpu_implementation on GPU HOT 3
- [Local ES Frostbite] Value Error, Dimension Mismatch HOT 1
- "No ROM File specified or the ROM file was not found" HOT 1
- [es_distributed/ga.py] eval_rews, eval_length = policy.rollout(env) ValueError: too many values to unpack (expected 2)
- [es_distributed/rs.py] eval_rews, eval_length = policy.rollout(env) ValueError: too many values to unpack (expected 2)
- [es_distributed/tf_util.py] ValueError: Dimension 0 in both shapes must be equal, but are 4608 and 18. Shapes are [4608] and [18]. From merging shape 12 with other shapes. for 'concat/concat_dim' (op: 'Pack') with input shapes: [4096], [16], [16], [16], [8192], [32], [32], [32], [991232], [ 256], [256], [256], [4608], [18]. HOT 1
- no file or directory '/tmp/es_redis_master.sock.' HOT 1
- tmux command not found HOT 5
- 'es:exp not set'
- Final output after running the code
- Minor issues in GA experiment
- module 'gym' has no attribute 'undo_logger_setup'
- error while running ga experiment
- Speed comparisons and Muzero?
- Dockerfile for gpu implementation?
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 deep-neuroevolution.