tflite_flutter_plugin icon indicating copy to clipboard operation
tflite_flutter_plugin copied to clipboard

Add support for Web builds

Open CaptainDario opened this issue 4 years ago • 8 comments

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 avatar Jan 29 '21 12:01 CaptainDario

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

CaptainDario avatar Mar 05 '21 08:03 CaptainDario

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

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

no-1ne avatar Mar 13 '21 04:03 no-1ne

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.

am15h avatar Mar 13 '21 21:03 am15h

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?

CaptainDario avatar Jun 16 '21 16:06 CaptainDario

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 .

no-1ne avatar Jun 16 '21 23:06 no-1ne

@am15h any news on supporting web?

CaptainDario avatar Jul 26 '21 09:07 CaptainDario

Interested too

louis030195 avatar Oct 13 '21 11:10 louis030195

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

louis030195 avatar Oct 14 '21 13:10 louis030195