flutter_tflite icon indicating copy to clipboard operation
flutter_tflite copied to clipboard

MissingPluginException(No implementation found for method loadModel on channel tflite)

Open mohamed3laily opened this issue 1 year ago • 4 comments

i'm stuck with this error "MissingPluginException(No implementation found for method loadModel on channel tflite) while using tensorflow lite on flutter" , i use the latest version of tflite ^1.1.2 and my model path is correct ... this is my loading code :

void loadModel() async {
  try {
    print("Attempting to load model...");
    String? res = await Tflite.loadModel(
      model: "assets/model.tflite",
      labels: "assets/labels.txt",
    );
    if (res == null || res.isEmpty) {
      throw Exception("Failed to load model");
    }
    print("Result of loadModel: $res");
    setState(() {
      isModelLoaded = true;
    });
  } catch (e) {
    print("Error loading model: $e");
  }
}

mohamed3laily avatar Jun 21 '24 13:06 mohamed3laily

I am also facing the same problem. Have you found any solution for it? @mohamed3laily

vkprogrammer-001 avatar Aug 10 '24 15:08 vkprogrammer-001

No but i found a library called tflite_flutter and it's more stable

On Sat, Aug 10, 2024, 6:32 PM vipin kumar @.***> wrote:

I am also facing the same problem. Have you found any solution for it? @mohamed3laily https://github.com/mohamed3laily

— Reply to this email directly, view it on GitHub https://github.com/shaqian/flutter_tflite/issues/298#issuecomment-2282187376, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHDUGGCTKDGBOPBOYFUBC2LZQYXALAVCNFSM6AAAAABJV55QDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBSGE4DOMZXGY . You are receiving this because you were mentioned.Message ID: @.***>

mohamed3laily avatar Aug 10 '24 17:08 mohamed3laily

I made some updates and created my own version, which I applied to my app.

You can find the updated version here.

sumn2u avatar Sep 12 '24 14:09 sumn2u

Saya membuat beberapa pembaruan dan membuat versi saya sendiri, yang saya terapkan ke aplikasi saya .

Anda dapat menemukan versi terbarunya di sini .

thankyou solved

nizamsetiawan avatar Feb 28 '25 06:02 nizamsetiawan