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

Why flutter-tflite doesn't support flutter web #207

Open
simon-zhangmuye opened this issue Apr 1, 2024 · 4 comments
Open

Why flutter-tflite doesn't support flutter web #207

simon-zhangmuye opened this issue Apr 1, 2024 · 4 comments

Comments

@simon-zhangmuye
Copy link

Hello, I am trying to develop a Flutter Web application with the goal of integrating AI technology to provide real-time guidance for users on how to properly face the camera—for example, ensuring that their head position is neither too high nor too low. However, I've encountered a challenge: the machine learning libraries available for Flutter Web seem to be quite limited. I'm wondering whether it's possible to achieve this functionality? If so, how should I go about it?

@PaulTR
Copy link
Collaborator

PaulTR commented Apr 1, 2024

Hey. It's kind of a legacy problem. Basically TensorFlow Lite is using a set of C++ libraries for the ML portion, which is really different from what TFLite for JS does, so it didn't get added in when Flutter started supporting web. I don't actually think we have anything right now that supports Flutter Web ML without using a Cloud backend, but I'll definitely record this issue to add another datapoint for why we need it (because, honestly, I think Google does need a web-ODML solution for Flutter :))

@simon-zhangmuye
Copy link
Author

@PaulTR Thanks for your reply. I thought it might because of the model size issue. The model may be too large for web applications. Do you have any idea to make TF model work in flutter web using tensorflow.js?

@PaulTR
Copy link
Collaborator

PaulTR commented Apr 5, 2024

I think there's a community run plugin for web TFLite, but I honestly haven't tried it to know how good it is. Sorry! :(

@CaptainDario
Copy link
Contributor

Related to #163

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