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

你好,加载模型时遇到了一些问题 #17

Closed
wangwyForNewTime opened this issue Nov 5, 2020 · 2 comments
Closed

你好,加载模型时遇到了一些问题 #17

wangwyForNewTime opened this issue Nov 5, 2020 · 2 comments

Comments

@wangwyForNewTime
Copy link

当我修改config.py的模型路径load_model_path = '/home/user/WWY/CRNN-with-STN-master/weights_with_STN.hdf5'
命令行报错:
ValueError: Layer #10 (named "spatial_transformer_1" in the current model) was found to correspond to layer spatial_transformer_1 in the save file. However the new layer spatial_transformer_1 expects 16 weights, but the saved weights have 8 elements.

如果是load_model_path = '/home/user/WWY/CRNN-with-STN-master/weights_without_STN.hdf5'
命令行报错:
ValueError: axes don't match array

这两个错误在我以前没有遇到过,我不知道如何修改,麻烦作者解答一下困惑,谢谢啦

@wangwyForNewTime
Copy link
Author

我解决了

@Naosekpam
Copy link

@wangwyForNewTime Will you please let me know how the issue was solved? I am also facing the sam issue after downloading the pre-trained model.

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