You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TensorFlow Lite Flutter plugin provides a flexible and fast solution for accessing TensorFlow Lite interpreter and performing inference. The API is similar to the TFLite Java and Swift APIs. It directly binds to TFLite C API making it efficient (low-latency). Offers acceleration support using NNAPI, GPU delegates on Android, Metal and CoreML delegates on iOS, and XNNPack delegate on Desktop platforms.
42
41
43
-
44
42
## Key Features
45
43
46
-
* Multi-platform Support for Android and iOS
47
-
* Flexibility to use any TFLite Model.
48
-
* Acceleration using multi-threading.
49
-
* Similar structure as TensorFlow Lite Java API.
50
-
* Inference speeds close to native Android Apps built using the Java API.
51
-
* Run inference in different isolates to prevent jank in UI thread.
52
-
44
+
- Multi-platform Support for Android and iOS
45
+
- Flexibility to use any TFLite Model.
46
+
- Acceleration using multi-threading.
47
+
- Similar structure as TensorFlow Lite Java API.
48
+
- Inference speeds close to native Android Apps built using the Java API.
49
+
- Run inference in different isolates to prevent jank in UI thread.
53
50
54
51
## (Important) Initial setup : Add dynamic libraries to your app
55
52
@@ -133,7 +130,7 @@ install(
133
130
134
131
## TFLite Flutter Helper Library
135
132
136
-
The helper library has been deprecated. New development underway for a replacement at https://github.com/google/flutter-mediapipe. Current timeline is to have wide support by the end of August, 2023.
133
+
The helper library has been deprecated. New development underway for a replacement at <https://github.com/google/flutter-mediapipe>. Current timeline is to have wide support by the end of August, 2023.
By using `IsolateInterpreter`, the inference runs in a separate isolate. This ensures that the main isolate, responsible for UI tasks, remains unblocked and responsive.
227
+
228
+
## Contribute to this package
229
+
230
+
This package is managed using [melos](https://pub.dev/packages/melos). Before starting to work on the project, make sure to run the bootstrap command.
231
+
232
+
```sh
233
+
dart pub global activate melos # Install or activate melos globally
234
+
melos bootstrap # Initialize the workspace and bootstrap the package
235
+
```
236
+
237
+
### Generated code
238
+
239
+
This package uses [ffigen](https://pub.dev/packages/ffigen) to generate FFI bindings. To run code generation, you can use the following melos command:
0 commit comments