am15h / tflite_flutter_plugin

TensorFlow Lite Flutter Plugin
https://pub.dev/packages/tflite_flutter
Apache License 2.0
509 stars 353 forks source link

Add support for Web builds #69

Open CaptainDario opened 3 years ago

CaptainDario commented 3 years ago

It would be really nice if this plugin could somehow be used for exporting to web. Maybe tfjs could be used for that. Are there any plans for supporting web builds?

CaptainDario commented 3 years ago

Now with the release of flutter 2 and web builds being production ready, will this plugin support web? Maybe with tf.js?

no-1ne commented 3 years ago

Other possible options are while reusing tflite model https://github.com/intel/webml-polyfill

https://google.github.io/mediapipe/getting_started/javascript.html

am15h commented 3 years ago

Sure, the addition of web support will be great with flutter 2. Please comment in this thread if anyone from the community would be interested in contributing to this feature.

CaptainDario commented 3 years ago

I would be interested in implementing this. However I am not sure if I am able to do it as I have close to zero experience developing for web and also with flutter/dart packages. However using tf.js in flutter web seems to be quite possible.

@am15h Therefore I am interested if somebody is already working on this?

no-1ne commented 3 years ago

Now tf.js supports running tflite models https://github.com/tensorflow/tfjs/issues/991#issuecomment-860012440

On Wed, Jun 16, 2021, 9:50 PM CaptainDario @.***> wrote:

I would be interested in implementing this. However I am not sure if I am able to do it as I have close to zero experience developing for web and also with flutter/dart packages.

However using tf.js in flutter web @.***/flutter-web-with-tensorflow-js-f269d7c70dca> seems to be quite possible. Therefore I am interested if somebody is already working on this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/am15h/tflite_flutter_plugin/issues/69#issuecomment-862519505, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUEFOOORARDDNNMKKVKA7DTTDFNPANCNFSM4WYZIA6Q .

CaptainDario commented 3 years ago

@am15h any news on supporting web?

louis030195 commented 3 years ago

Interested too

louis030195 commented 3 years ago

Or we should do a flutter onnx which should make cross-platform simpler? https://github.com/microsoft/onnxruntime Also hugging face seems pro-onnx rather than tf format