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

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

Open
mohamed3laily opened this issue Jun 21, 2024 · 3 comments

Comments

@mohamed3laily
Copy link

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");
  }
}
@vkprogrammer-001
Copy link

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

@mohamed3laily
Copy link
Author

mohamed3laily commented Aug 10, 2024 via email

@sumn2u
Copy link

sumn2u commented Sep 12, 2024

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

You can find the updated version here.

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

3 participants