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

load_param是否将支持传读取param文件后的字符串 #544

Closed
onexuan opened this issue Aug 28, 2018 · 5 comments
Closed

load_param是否将支持传读取param文件后的字符串 #544

onexuan opened this issue Aug 28, 2018 · 5 comments

Comments

@onexuan
Copy link

onexuan commented Aug 28, 2018

想加密param文件,然后读取解密后传给load_param,是否将支持传字符串

@nihui
Copy link
Member

nihui commented Aug 28, 2018

@onexuan
Copy link
Author

onexuan commented Aug 28, 2018

这个知道,但用ncnn2mem生成后,模型从4M变到20M,所以不合要求

@nihui
Copy link
Member

nihui commented Aug 28, 2018

可以 XXX.param.bin + XXX.bin + XXX.id.h 配合使用,用 load_param_bin + load_model 文件加载

@onexuan
Copy link
Author

onexuan commented Aug 28, 2018

OK,谢谢了

@onexuan onexuan closed this as completed Aug 28, 2018
@SophieChang66
Copy link

@nihui 想模型加密,因为有自定义层,使用ncnn2mem后调用失败;试过将自定义层加入layer下,增加ncnn_add_layer(),ncnn library编译通过了,但新编译的库,无论load有自定义层的模型还是无自定义层的其他模型,遇到参数层就load失败,请问将自定义层内嵌入ncnn library,需要怎么修改

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

3 participants