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

按照yolov8的ncnn推理,在web上部署运行很慢,如何优化 #5656

Open
xla145 opened this issue Aug 28, 2024 · 4 comments
Open

按照yolov8的ncnn推理,在web上部署运行很慢,如何优化 #5656

xla145 opened this issue Aug 28, 2024 · 4 comments

Comments

@xla145
Copy link

xla145 commented Aug 28, 2024

detail | 详细描述 | 詳細な説明

使用了ncnn项目中提供的yolov8推理代码,在web上跑推理很慢
ex.input("in0", in_pad);

std::vector<Object> proposals;

// stride 32
{
    ncnn::Mat out;
    ex.extract("out0", out);

这个转化耗时了800ms,如何进一步优化

@wzyforgit
Copy link
Contributor

你转WASM了?

@xla145
Copy link
Author

xla145 commented Aug 29, 2024

是的,转成wasn’t了

@whyb
Copy link
Contributor

whyb commented Aug 29, 2024

是的,转成wasn’t了

CPU是否有跑满?有编译好的html能否给一个让我们玩一玩?

@xla145
Copy link
Author

xla145 commented Aug 29, 2024

web.zip
拿去吧,但是推理很慢,大佬们优化一下

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