Skip to content

masicai/flutter-onnxruntime-examples

Repository files navigation

flutter_onnxruntime_examples

Examples for flutter_onnxruntime plugin.

Examples

Image Classification Example

This example demonstrates how to use the ONNX Runtime Flutter plugin for image classification tasks. It includes loading a pre-trained model, preparing input data, and running inference.

Image classification model metadata Image classification inference results Image classification inference results on web

To run this example, follow these steps:

  • Download the Resnet18 model from ONNX Model Zoo: Resnet18
  • Place the model file in the assets/models directory.
  • Run the app:
    flutter run -d <device_id>
    device-id could be chrome, ios, android, macos, linux, windows, etc.

About

Examples for flutter_onnxruntime plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published