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

报错:param is too old, please regenerate #428

Closed
lyp0413 opened this issue Jun 8, 2018 · 5 comments
Closed

报错:param is too old, please regenerate #428

lyp0413 opened this issue Jun 8, 2018 · 5 comments

Comments

@lyp0413
Copy link

lyp0413 commented Jun 8, 2018

tensorflow2ncnn转出的模型,运行时遇到这个问题,希望有大神解答

@nihui
Copy link
Member

nihui commented Jun 10, 2018

generally, it is hard to convert tensorflow model to others. you'd better try caffe pytorch or mxnet ...
see #5

@nihui nihui closed this as completed Jun 10, 2018
@suzaku
Copy link

suzaku commented Aug 28, 2018

I came across the same issue when loading files generated by caffe2ncnn.

The prototxt and caffemodel files were already upgraded using upgrade_net_proto_text and upgrade_net_proto_binary, but still ncnn complained that the param is too old.

@lyp0413
Copy link
Author

lyp0413 commented Aug 28, 2018

@suzaku How did you load your model data to your code?

@suzaku
Copy link

suzaku commented Aug 28, 2018

@lyp0413

As documented in the wiki:

ncnn::Net net;
net.load_param("alexnet.param");
net.load_model("alexnet.bin");

With the parameters replaced with my own files.

@lyp0413
Copy link
Author

lyp0413 commented Aug 28, 2018

@suzaku
check the first line in your .param.
Your model was not converted well,if it is not 7767517.

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

No branches or pull requests

3 participants