danielegrattarola / deep-q-atari Goto Github PK
View Code? Open in Web Editor NEWKeras and OpenAI Gym implementation of the Deep Q-learning algorithm to play Atari games.
Keras and OpenAI Gym implementation of the Deep Q-learning algorithm to play Atari games.
hi.
im trying to port in python3. I
ve changed all print to print().
and
from keras.models import Sequential
from keras.layers import Conv2D, Flatten, Dense
to
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Conv2D, Flatten, Dense
But got a error -
tensorflow.python.framework.errors_impl.UnimplementedError: The Conv2D op currently only supports the NHWC tensor format on the CPU. The op was given the format: NCHW
[[{{node conv2d/Conv2D}}]]
Quitting...
As i know it should be changed in DQNetwork.py model formation -
from
self.model.add(Conv2D(32, 8, strides=(4, 4),
padding='valid',
activation='relu',
input_shape=input_shape,
data_format='channels_first'))
to
self.model.add(Conv2D(32, 8, strides=(4, 4),
padding='valid',
activation='relu',
input_shape=input_shape,
data_format='channels_last'))
But this time new error appears:
ValueError: Negative dimension size caused by subtracting 8 from 4 for 'conv2d/Conv2D' (op: 'Conv2D') with input shapes: [?,4,110,84], [8,8,84,32].
How to solve it ? Help a bit.
In the documentation, you mentioned ("both files will be saved when the script quits or is killed with ctrl+c")
But ctrl+c does not invoke the exit handler.
Is there any way around it or am I doing something wrong
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.