block_flipped
Firebase ML is deprecated and will be shut down on June 15, 2027.
Projects that didn't previously use it can no longer start using it, and existing
projects should begin migrating away.
Google 會運用 AI 技術將內容翻譯成你偏好的語言,但可能會出錯。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
自訂模型
plat_ios
plat_android
如果您使用自訂 TensorFlow Lite 模型,Firebase ML 可協助您確保使用者一律使用最佳版本的自訂模型。使用 Firebase 部署模型時,Firebase ML 只會在需要時下載模型,並自動為使用者更新至最新版本。
準備好了嗎?選擇平台:
iOS+
Android
主要功能
| 部署 TensorFlow Lite 模型 |
使用 Firebase 部署模型,縮減應用程式的二進位檔大小,並確保應用程式一律使用最新版本的模型 |
| 裝置端機器學習推論 |
使用 TensorFlow Lite 解譯器和模型,在 Apple 或 Android 應用程式中執行推論。 |
| 自動更新模型 |
設定應用程式自動下載新版模型的條件:使用者裝置處於閒置狀態、正在充電或連上 Wi-Fi 時 |
實作路徑
|
訓練 TensorFlow 模型 |
使用 TensorFlow 建構及訓練自訂模型。或者,重新訓練現有模型,解決與您想達成的目標類似的問題。 |
|
將模型轉換為 TensorFlow Lite |
使用
TensorFlow Lite 轉換工具,將模型從 HDF5 或凍結圖格式轉換為 TensorFlow Lite。 |
|
將 TensorFlow Lite 模型部署至 Firebase |
選用:將 TensorFlow Lite 模型部署至 Firebase,並在應用程式中加入 Firebase ML SDK 後,Firebase ML 會讓使用者隨時取得最新版本的模型。您可以設定在使用者裝置閒置、充電或連上 Wi-Fi 時,自動下載模型更新。 |
|
使用 TensorFlow Lite 模型進行推論 |
在 Apple 或 Android 應用程式中使用 TensorFlow Lite 解譯器,對透過 Firebase 部署的模型執行推論。 |
Codelab
請嘗試一些程式碼研究室,實際瞭解 Firebase 如何協助您更輕鬆有效地使用 TensorFlow Lite 模型。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-10-14 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-10-14 (世界標準時間)。"],[],[]]