flutter_tflite
flutter_tflite copied to clipboard
A resource failed to call close/destory after loadModel
The following code
String loadSuccess = await Tflite.loadModel( model: "assets/ssd_mobilenet.tflite", labels: "assets/ssd_mobilenet.txt");
causes warning messages
W/System (31431): A resource failed to call close.
W/System (31431): A resource failed to call destroy.
W/System (31431): A resource failed to call destroy.
W/System (31431): A resource failed to call destroy.
In my app there is a startImageStream callback which does loadModel mobilnet Tflite.detectObjectOnFrame loadModel own model Tflite.runModelOnFrame
I works, but I get around 200 warning messages per minute (in debug mode). Is there a way to avoid this?
I wish I could load both models outside the imagestream, but that is not possible the way the plugin is designed, right?
Seeing the same thing. Only seems to be happening on android.
I am running a real time demo and the predictions seem to continue even when the app is in background ?
have you solved this problem? @BoHellgren @philiplindberg @AbdulRashidReshamwala
I am using MediaPipe instead. See https://levelup.gitconnected.com/flutter-camerax-and-mediapipe-13c33ca95f8d
I am using MediaPipe instead. See https://levelup.gitconnected.com/flutter-camerax-and-mediapipe-13c33ca95f8d
waht about ios?