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

初学者在mac上运行zhihu.py时遇到了一些问题,求大神帮帮忙 #7

Open
RayShark opened this issue May 5, 2017 · 0 comments

Comments

@RayShark
Copy link

RayShark commented May 5, 2017

Traceback (most recent call last):
File "/Users/druw_shark/PycharmProjects/keras-zhihu-master-ForEasyDeepLeaning/zhihu.py", line 179, in
cropModel = load_model(crop_model)
File "/Library/Python/2.7/site-packages/keras/models.py", line 280, in load_model
model.optimizer.set_weights(optimizer_weight_values)
File "/Library/Python/2.7/site-packages/keras/optimizers.py", line 79, in set_weights
'provided weight shape ' + str(w.shape))
ValueError: Optimizer weight shape (4,) not compatible with provided weight shape (3, 3, 1, 4)

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

1 participant