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

如何利用代码达到,让一个模型支持多个视频流? #24

Open
ijiami-01 opened this issue Mar 5, 2024 · 1 comment
Open

Comments

@ijiami-01
Copy link

ijiami-01 commented Mar 5, 2024

image

你好,以上是我的思维图,目前我的代码是参考了sophon-demo中的yolov5例程,但是有个问题,就是每次新增一个任务(视频流),就需要新建一个yoloV5实例,这样对我的性能有影响,我希望看到的是,如果新增的任务用的是已经在使用的模型,那么就不要再实例化一个新的yolov5,而是继续利用之前已存在的yolov5实例去做检测,要达到这样的效果,我该注意些什么?

PS: 我注意到YoloV5实例实际上是在基于一个BMNNContext m_bmContext的基础上做文章,那么是不是理论上 BMNNContext 的实例越少?对性能提升越大?

@gfwsbsbsb
Copy link

sophon-demo新增了application模块,可以看看

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