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

cpp_demo中mnn框架部署yolov5-lite导致系统内存一直被占用问题的说明及解决办法 #257

Open
hz1012hz opened this issue Mar 16, 2024 · 4 comments

Comments

@hz1012hz
Copy link

cpp-demo中的mnn文件夹程序在树莓派4B上运行,随着检测图片次数增加,对系统内存占用越来越大,最终导致系统崩溃。请问有人解决这个问题吗??

@hz1012hz
Copy link
Author

hz1012hz commented Mar 17, 2024

问题已经解决,只需要将图片中的圈出来的部分从循环中拿出即可,即该部分只需执行一次即可。
QQ图片20240317161507

@hz1012hz hz1012hz changed the title mnn问题 cpp_demo中mnn框架部署yolov5-lite导致系统内存一直被占用问题的说明及解决办法 Mar 17, 2024
@ppogg
Copy link
Owner

ppogg commented Mar 18, 2024

nice,pretty boy!

@mpj1234
Copy link

mpj1234 commented May 27, 2024

delete一下这个nhwc_Tensor就行了,没必要踢出去,这个就是一个临时,当然你也可以吧这个tensor当做共享使用

@Realjayden
Copy link
Contributor

Realjayden commented Jun 14, 2024

#266 (comment)

delete一下这个nhwc_Tensor就行了,没必要踢出去,这个就是一个临时,当然你也可以吧这个tensor当做共享使用

帮后面来的加好了,现在不会内存泄漏了:D

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

4 participants