-
Notifications
You must be signed in to change notification settings - Fork 176
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
Incompatible with Keras > 2.0 #3
Comments
Thanks for letting me know. I will fix this when I figure out what's are changes of the API in the new version. |
Why is this marked closed? Otherwise: great ipynb! Learned a lot from this. Very compact and clear. Thanks. |
@im2ex I'll add the comment, thanks for the reminder. |
I had same problem, so I downgraded to keras=1.2.2 then saved entire model with |
This issue is due to the difference in the conv layer weights implementation in Keras 1 and 2. In Keras 2, weights are stored in the same way regardless of the image dimension ordering set ('th' or 'tf') - channels last: i.e. (3,3,3,16) for a conv layer with a 3x3 kernel, 3 input channels and 16 output channels. Whereas in Keras 1, depending on the image dimension ordering set, the conv layer weights take on different dimensions, wrt to above example: (3,3,3,16) for 'tf' and (16,3,3,3) for 'th'. A bit ugly, but code below should work for Keras 2: p.s. Remember to set
|
@marc-chan Thanks for your help! |
Thanks for your solution |
@marc-chan keras.backend.set_image_dim_ordering('th') I'm using Keras 2.2.4 version. Thank you! |
这才是大神 |
@Alteregoxxx Hi, i had the same problem, did you find a solution? |
did you find a solution?? |
Why i use this method but it did't work? |
Hi All, |
The new API of any Keras version bigger than 2.0 seems to lead to unconnected networks. No error of any kind can be seen apart from that the model.summary() will not show any "Connected to" entry and the network will not find any vehicle.
Downgrading to version 1.2.2. resolves the issue.
Thanks for the great work creating this, I would fix the issue myself though I am not yet familiar enough with Keras and do not yet know how.
The text was updated successfully, but these errors were encountered: