Code Monkey home page Code Monkey logo

deep-q-atari's People

Contributors

carloderamo avatar danielegrattarola avatar teopir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

deep-q-atari's Issues

port to python3 and keras in tensorflow

hi.
im trying to port in python3. Ive 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.

atexit not called

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.