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

Model accuracy after conversion to wasm #2

Open
chuaziheng opened this issue Jun 18, 2021 · 1 comment
Open

Model accuracy after conversion to wasm #2

chuaziheng opened this issue Jun 18, 2021 · 1 comment

Comments

@chuaziheng
Copy link

Hi, wanted to ask if you have experienced a big drop in model accuracy when running inference in browser? The performance dropped quite significantly as compared to running the same NCNN model in CPU. However, I saw your demo and the accuracy still looks good, do you have any tips regarding the model conversion to preserve the accuracy? Thank you :)

@enderminyard
Copy link

@chuaziheng how did you convert the model to WebAssembly?

I have tried to compile the ncnn repo for the last two days, first on my computer, then in Docker.

I tried these tutorials:

waittim.github.io/2020/11/15/build-ncnn-wasm/
github.com/nihui/ncnn-webassembly-nanodet
github.com/Tencent/ncnn/wiki/how-to-build#build-for-webassembly

Through trial and error, I produced this Dockerfile for my compilation process: https://pastebin.com/ASN5p8CA

I was able to compile…something? The terminal would show compilation progress until some 100% score was reached but no JS or WebAssembly files were generated in this process.

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