-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Memory leak of facemesh javascript solution with iris detection #3678
Comments
Hi @shirlyyang-tcc, Have you looked at this similar closed issue #1937 and #1937(comment). Please try the suggestion and revert back if further queries. Thank you! |
Yes I did read this issue and tryed the suggestions in the issue. I did check the code and reassured the face mesh was not initialize multiple times. An I tested the versions decribed in this response:#1937 (comment). |
Hello @shirlyyang-tcc, You can continue to use those legacy solutions in your applications if you choose. Though, we would request you to check new MediaPipe solutions which can help you more easily build and customize ML solutions for your applications. These new solutions will provide a superset of capabilities available in the legacy solutions. |
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you. |
This issue was closed due to lack of activity after being marked stale for past 7 days. |
System information (Please provide as much relevant information as possible)
I am developing a AR application on Web and recently we discovered that facemesh has the problem of memory leaking in version 0.4.1629159166 and 0.4.1633559619. And I tested version 0.4.1628005669 it does not have the same problem. But my application do need iris data while version 0.4.1628005669 does not support.
I checked the code that initialize() is called only once and image is sent after last onResult() was triggered.
I alse tested in offical demo (https://codepen.io/mediapipe/details/KKgVaPJ) and it causes memory leaks too. The image is the heapshot of facemesh in offical demo in which snapshot2 is taken 2 minutes after snapshot1.
As can be seen the main increase comes from HEAP32 arraybuffer.
Is there any way to solve this problem in the iris versions or is it possible? Really urgent and looking forward to responses.
The text was updated successfully, but these errors were encountered: