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

yolov5_fuse 多线程推理结果偶尔结果混乱 #75

Open
hahher opened this issue Dec 13, 2024 · 2 comments
Open

yolov5_fuse 多线程推理结果偶尔结果混乱 #75

hahher opened this issue Dec 13, 2024 · 2 comments

Comments

@hahher
Copy link

hahher commented Dec 13, 2024

硬件:BM1684X

在多线程中每个线程单独加载实例化yolov5模型对象进行图片推理,偶尔会出现A线程的结果出现在B线程上面,请问需要如何调整

@sophon-leevi
Copy link
Collaborator

推理之后是不是没有用bm_thread_sync同步?bmruntime的推理接口是异步的。

@hahher
Copy link
Author

hahher commented Dec 23, 2024

没有,不同线程单独加载模型推理需要bm_thread_sync嘛

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