Comments (9)
Just wondering when that update will be ready for. I had a go but i wasn't able to achieve it.
from flutter_tflite.
Thanks a lot, sorry it took a while to get back to you.
from flutter_tflite.
Hi MATTYGILO,
Sorry for the delayed response. Unfortuantely it's not supported to input an array at the moment.
The array data is generated from image file at the following line in iOS and Android respectively.
https://github.com/shaqian/flutter_tflite/blob/master/ios/Classes/TflitePlugin.mm#L166
https://github.com/shaqian/flutter_tflite/blob/master/android/src/main/java/sq/flutter/tflite/TflitePlugin.java#L156
You can try to create a new method call that accepts array directly. I will add this in future version.
Thanks,
Qian
from flutter_tflite.
Thank you allot. I will go about trying what you suggested. Cant wait for the future update it will allow for more differentiation for machine learning on flutter apps.
from flutter_tflite.
Probably will be at the end of this month.
from flutter_tflite.
Just wondering how the update is coming on.
from flutter_tflite.
Sorry I'm behind schedule. I will find time this weekend.
from flutter_tflite.
I added a runModelOnBinary
method in 0.0.5.
Refer to the sample code on how to use it. Note the image package I use is quite slow on iOS when decoding image.
https://github.com/shaqian/flutter_tflite/blob/master/example/lib/main.dart#L79-L92
from flutter_tflite.
Archiving the issue for now. Feel free to reopen if you have other questions.
from flutter_tflite.
Related Issues (20)
- app crashed while deploying tflite loaded model and Android V2 Embedding error HOT 1
- Do not support version greater than 3
- Can I build desktop app by this package?
- E/AndroidRuntime( 4563): Caused by: java.lang.IllegalArgumentException: Cannot copy from a TensorFlowLite tensor (StatefulPartitionedCall:0) with shape [1, 10647, 6] to a Java object with shape [1, 13, 13, 30]. HOT 1
- runModelOnImage returns null HOT 1
- I have a issue in runSegmentationOnImage
- The plugin `tflite` uses a deprecated version of the Android embedding. HOT 1
- The plugin `tflite` uses a deprecated version of the Android embedding. HOT 1
- got this error when running flutter project HOT 3
- Unhandled Exception: PlatformException(Failed to run model, Interpreter busy, java.lang.RuntimeException: Interpreter busy HOT 3
- Can anyone help giving this code in Flutter HOT 2
- help me please
- Failed to transform guice-5.1.0.jar (com.google.inject:guice:5.1.0) to match attributes HOT 1
- Please Update this package HOT 1
- crash when useGpuDelegate is true in v2 HOT 1
- E/AndroidRuntime(10989): Caused by: java.lang.IllegalArgumentException: Cannot copy to a TensorFlowLite tensor (serving_default_conv2d_3_input:0) with 90000 bytes from a Java Buffer with 67500 bytes.
- URGENT!!!!! Please HELP!!! Unhandled Exception: PlatformException(Failed to run model, Attempt to invoke virtual method 'org.tensorflow.lite.Tensor org.tensorflow.lite.Interpreter.getInputTensor(int)' on a null object reference, java.lang.NullPointerException: Attempt to invoke virtual method 'org.tensorflow.lite.Tensor org.tensorflow.lite.Interpreter.getInputTensor(int)' on a null object reference
- URGENT!!!!! Please HELP!!! Unhandled Exception: PlatformException(Failed to run model, Attempt to invoke virtual method 'org.tensorflow.lite.Tensor org.tensorflow.lite.Interpreter.getInputTensor(int)' on a null object reference, java.lang.NullPointerException: Attempt to invoke virtual method 'org.tensorflow.lite.Tensor org.tensorflow.lite.Interpreter.getInputTensor(int)' on a null object reference
- Missing Plugin Exeption
- MissingPluginException(No implementation found for method loadModel on channel tflite) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_tflite.