am15h / tflite_flutter_plugin

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

ffi version is not up-to-date #212

Open nameaisy opened 1 year ago

nameaisy commented 1 year ago

log that showing ffi version of tflite_flutter is not up-to-date to the latest version:

Because file_picker >=5.0.0 depends on ffi ^2.0.1 and tflite_flutter 0.9.0 depends on ffi ^1.0.0, file_picker >=5.0.0 is incompatible with tflite_flutter 0.9.0.

Miko2x commented 1 year ago

@nameaisy The author hasn't appeared in a long time, it's been more than a year without an update. The current solution is to rely on people's forks or keep changing the forks yourself. Later in the pubspec.yaml, just give the git repository url.

   tflite_flutter:
     git:
       url: https://github.com/[URL to your fork with the framework uploaded]
       ref: master

I've tried fork from the updated person's repository, this is my repo if you want to use https://github.com/Miko2x/tflite_flutter_plugin. I've tried running on android and ios (Metal Delegate) without any problems.