Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tangyudi opened this issue Mar 17, 2017 · 12 comments

Comments

@tangyudi
Copy link

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
Copy link
Owner

yanpanlau commented Mar 17, 2017 via email

@tangyudi
Copy link
Author

@yanpanlau I use tensorflow.
Thanks for help me!

@yanpanlau
Copy link
Owner

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"

@tangyudi
Copy link
Author

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

@elhanarinc
Copy link

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

@gitricko
Copy link

same problem for me

@yanpanlau
Copy link
Owner

yanpanlau commented Mar 29, 2017 via email

@juchiast
Copy link

juchiast commented Jun 6, 2017

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!

@alaa-megahed
Copy link

alaa-megahed commented Jul 4, 2017

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

@tienduccao
Copy link

The code at commit 25daf5fc1adfb9dc95854e355eafefc76da72331 works fine for me.

@wmonges
Copy link

wmonges commented Mar 29, 2018

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

@yanpanlau
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants