tflite_web 0.0.1 copy "tflite_web: ^0.0.1" to clipboard
tflite_web: ^0.0.1 copied to clipboard

outdated

Run Tensorflow Lite models on Web with TFLite JS

TFLite Web #

Run TFLite models on Dart JS. It is packaged in a WebAssembly binary that runs in a browser

Getting Started #

  • Unpack tflite folder (link) to your web folder. Result structure:
    -- Web
    ├── tflite
    ├── tf-backend-cpu.js
    ├── tf-core.js
    ├── tf-tflite.min.js
    ├── tflite_web_api_cc_simd.js
    ├── tflite_web_api_cc_simd.wasm

  • Initialize dependencies: TFLiteWeb.initialize()

  • Load a model:
    By URL TFLiteWeb.loadModelFromUrl
    By Data TFLiteWeb.loadModelFromMemory

  • Create Tensor: createTensor(data, shape, dataType)

  • Run model: loadedModel.predict(inputs)

Current Version: #

  • TF JS: 4.2.0
  • TFLite: 0.0.1-alpha.9
15
likes
0
points
247
downloads

Publisher

verified publisherappgozar.com

Weekly Downloads

Run Tensorflow Lite models on Web with TFLite JS

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

js

More

Packages that depend on tflite_web