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

MNN能否支持导入量化参数 #2587

Closed
zhxsking opened this issue Sep 11, 2023 · 2 comments
Closed

MNN能否支持导入量化参数 #2587

zhxsking opened this issue Sep 11, 2023 · 2 comments

Comments

@zhxsking
Copy link

现在不支持转换已量化的onnx模型,请问能手动导入量化参数吗,或者有这个计划吗?
#2084

@jxt1234
Copy link
Collaborator

jxt1234 commented Sep 17, 2023

可以按 tools/converter/source/compression/MNN_compression.proto 里面的格式生成量化所需文件 compress.bin,然后用 MNNConvert 转换 MNN 模型时加上 --compressionParamsFile compress.bin 。后续会考虑支持 Json 格式的文件,以便用户编辑

Copy link

Marking as stale. No activity in 60 days.

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

2 participants