Skip to content

AssertionError: Model weights not found (see "weights_path" variable in script) #5

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

Open
yuyifan1991 opened this issue Jul 24, 2018 · 3 comments

Comments

@yuyifan1991
Copy link

yuyifan1991 commented Jul 24, 2018

when I run thepython3 classifier_using_pretrained.py:

AssertionError: Model weights not found (see "weights_path" variable in script)

@yuyifan1991
Copy link
Author

能告诉我什么原因吗?

@qiaoguan
Copy link
Owner

路径有问题,你看下代码

@yuyifan1991
Copy link
Author

你好,感谢,那个问题已经解决,目前的问题是:KeyError: "Can't open attribute (can't locate attribute: 'nb_layers')"
这个问题我一直找不到解决方法。还有top_model_weights_path = 'bottleneck_fc_model.h5'此行代码中,bottleneck_fc_model.h5文件我并没有啊。这个.h文件怎样得到?

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

2 participants