You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
Without the metal delegate:
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.
The text was updated successfully, but these errors were encountered: