Skip to main content

Firebase ML Model Downloader

Notice

This page is archived and might not reflect the latest version of the FlutterFire plugins. You can find the latest information on firebase.google.com:

https://firebase.google.com/docs/ml/flutter/use-custom-models

Preview Status

FlutterFire ML Model Downloader is a preview plugin; APIs may change in a future release.

What does it do?#

If you use custom TensorFlow Lite models, Firebase ML can help you ensure your users are always using the best-available version of your custom model. When you deploy your model with Firebase, Firebase ML only downloads the model when it's needed and automatically updates your users with the latest version.

Once downloaded, you can use packages such as tflite_flutter to interpret your model.

Installation#

1. Make sure to initialize Firebase#

Follow this guide to install firebase_core and initialize Firebase if you haven't already.

2. Add dependency#

On the root of your Flutter project, run the following command to install the plugin:

flutter pub add firebase_ml_model_downloader

3. Rebuild your app#

Once complete, rebuild your Flutter application:

flutter run

Next Steps#

Once installed, you're ready to start using ML Model Downloader in your Flutter Project.

View the Usage documentation to get started.