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

Anyone implemented "Movnet lightning/thunder" with Metal Delegate (Experiencing memory issues) #222

Open
JunHeyy opened this issue Feb 14, 2023 · 1 comment

Comments

@JunHeyy
Copy link

JunHeyy commented Feb 14, 2023

I attempted to use the Movnet model with tflite_flutter. The code is mostly based on the example code on ttps://github.com/am15h/object_detection_flutter, with a few minor changes.

It seems like there is a memory leak if i run the interpreter with metal delegate, the inference time is pretty good but the memory increase linearly and eventually the app crashes.

I created the interpreter outside of the isolate and also used Interpreter.fromFile instead of interpreter.fromAsset as i thought it was the issue but apparently it was not.

Here are some screenshots:

With the metal delegate:
image

Without the metal delegate:
image

The code can be seen on my public repository (https://github.com/JunHeyy/TFlite_Flutter_MovNet.git)

Any help would be appreciated :) Thank you for reading.

@yaizudamashii
Copy link

I don't think I can help but.. definitely an interesting attempt! I wonder how much better movnet models would be. Did you see any differences?

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