Examples for flutter_onnxruntime plugin.
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.
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 bechrome
,ios
,android
,macos
,linux
,windows
, etc.