TensorFlow Lite 與 Mobile 對比

1. TensorFlow Mobile 簡介

????????TensorFlow Mobile是為Android和iOS等移動平臺設(shè)計的深度學習解決方案。

Github項目地址

文檔地址

2. TensorFlow Lite 與 Mobile 對比

  • TensorFlow Lite是TensorFlow Mobile的進化版。在大多數(shù)情況下,TensorFlow Lite擁有跟小的二進制大小,更少的依賴以及更好的性能。

  • TensorFlow Lite尚在開發(fā)階段,可能存在一些功能尚未補齊。不過官方承諾正在加大力度開發(fā)。

  • TensorFlow Lite支持的OP比較有限,相比之下TensorFlow Mobile更加全面(例如風格遷移的一些OP)。

  • TensorFlow Mobile使用.pb格式的模型,而TensorFlow Lite使用.tflite格式。

  • Google的對比視頻

3. 已被Google拋棄

Warning: We expect to deprecate TensorFlow Mobile in early 2019

TensorFlow Lite is our main mobile and embedded offering. We are working hard to close the feature gap between TensorFlow Mobile and TensorFlow Lite. We expect to deprecate TensorFlow Mobile in early 2019. We will give ample notice to our users when we get to that point and will provide help and support to ensure easy migrations.

In the meantime, please use TensorFlow Lite. If you have a feature request, such as a missing op, please post to our GitHub.

4. 選用的原因

  • 支持任意尺寸的輸入圖像
  • TensorFlow Mobile的OP比Lite全面,無需自定義OP
  • 有風格遷移的代碼可以參考:地址

5. 使用指南

????????在Android Studio中添加依賴:

dependencies {
    compile 'org.tensorflow:tensorflow-android:+'
}
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

友情鏈接更多精彩內(nèi)容