Keras-FlappyBird icon indicating copy to clipboard operation
Keras-FlappyBird copied to clipboard

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

Open tangyudi opened this issue 7 years ago • 12 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?

tangyudi avatar Mar 17 '17 08:03 tangyudi

Are you using theano or tensorflow?

On Fri, Mar 17, 2017 at 4:28 PM, TangYudi [email protected] wrote:

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?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yanpanlau/Keras-FlappyBird/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/AO1sY4xRqakFw_wzHpbMuKsDrB40Rhcyks5rmkQngaJpZM4MgTX8 .

yanpanlau avatar Mar 17 '17 09:03 yanpanlau

@yanpanlau I use tensorflow. Thanks for help me!

tangyudi avatar Mar 17 '17 09:03 tangyudi

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 avatar Mar 17 '17 11:03 yanpanlau

@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!

tangyudi avatar Mar 18 '17 09:03 tangyudi

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

elhanarinc avatar Mar 23 '17 11:03 elhanarinc

same problem for me

gitricko avatar Mar 29 '17 01:03 gitricko

Can you please let me know what version of tensorflow and keras using so i can replicate the problem? Thanks

2017年3月28日 21:52 於 "gitricko" [email protected] 寫道:

same problem for me

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yanpanlau/Keras-FlappyBird/issues/11#issuecomment-289958101, or mute the thread https://github.com/notifications/unsubscribe-auth/AO1sY4xiBySmKrcJ3z4Tgz3Ba8DIqigVks5rqbljgaJpZM4MgTX8 .

yanpanlau avatar Mar 29 '17 11:03 yanpanlau

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!

juchiast avatar Jun 06 '17 10:06 juchiast

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

alaa-megahed avatar Jul 04 '17 19:07 alaa-megahed

The code at commit 25daf5fc1adfb9dc95854e355eafefc76da72331 works fine for me.

tienduccao avatar Feb 20 '18 16:02 tienduccao

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

wmonges avatar Mar 29 '18 02:03 wmonges

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

yanpanlau avatar Apr 04 '18 08:04 yanpanlau