yanpanlau / Keras-FlappyBird

Using Keras and Deep Q-Network to Play FlappyBird

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Layer weight shape (32, 80, 8, 8) not compatible with provided weight shape (8, 8, 4, 32)

tangyudi opened this issue · comments

I run your code but it occurs a error,Layer weight shape (32, 80, 8, 8) not compatible with provided weight shape (8, 8, 4, 32)
Can you help me to solve this problem?

@yanpanlau I use tensorflow.
Thanks for help me!

Can you try to download everything from beginning?

Delete the original folder

git clone https://github.com/yanpanlau/Keras-FlappyBird.git

and then type

python qlearn.py -m "Run"

@yanpanlau I clone it again.But it still occurs the error,Layer weight shape (32, 80, 8, 8) not compatible with provided weight shape (8, 8, 4, 32).
Can you help me to solve it? Thank you!

I have the same error, i am using tensorflow with keras 1.0.7 version. Did you guys find any solution to this ?

same problem for me

Hi, I use keras 1.0.0, tensorflow 1.1.0 and has the same issue as above. In addition, I have another error:

  File "qlearn.py", line 210, in <module>
    K.set_session(sess)
AttributeError: 'module' object has no attribute 'set_session'

The code runs fine without set_session line. I don't know what that line means and how to fix it. Can you help me?! Thanks for supporting!

I have the same problem. I'm using tensorflow and keras 1.0.0. Any solution was found?
UPDATE: it works fine with keras version 2.0.5

The code at commit 25daf5fc1adfb9dc95854e355eafefc76da72331 works fine for me.

I am trying to run it but I got the same error.
My tensorflow version is 1.6.0-cp27
Keras version is 2.1.5
python 2.7

I just update the code and re-test it. Can you try again?