yanpanlau / Keras-FlappyBird

Using Keras and Deep Q-Network to Play FlappyBird

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError:__init__() got an unexpected keyword argument 'input_shape'

lxj0276 opened this issue · comments

When I run the code by "python qlearn.py -m "Run"", the terminal shows like the title describes.
and the error occurs at "model.add(Convolution2D(32, 8, 8, subsample=(4,4),init=lambda shape, name: normal(shape, scale=0.01, name=name), border_mode='same',input_shape=(img_channels,img_rows,img_cols)))"

It seems you are running the very old version of keras. Try to upgrade to latest version Keras 1.0 by doing
pip install keras --upgrade