官术网_书友最值得收藏!

TensorFlow Lite on Android Studio

You can download and build TensorFlow Lite directly from Android Studio by following these steps:

  1. Download and install the latest version of Android Studio.
  2. In your studio settings, make sure that the NDK version is greater than 14 and the SDK version is greater than 26. We are using 27 in this book and on further applications. We will look in detail at how to configure this in further projects. 
  3. You can download the application from the link in the following information box.
  4. As Android Studio instructs, you need to install all the Gradle dependencies.

We need a model in order to use it in the application. We can either use an existing model or train our own model. Let's use an existing model in this application. 

You can download models at the link given next, in the information box. You can also download the zipped model file from the link given:

  • You can download an Inception-v3 floating point model or the latest MobileNet model. Copy the appropriate .tflite to the Android app's assets directory. You can then change the classifier in the Camera2BasicFragment.java file, tensorflow/contrib/lite/java/demo/app/src/main/assets/.

Now, you can build and run the demo app.

主站蜘蛛池模板: 盐亭县| 柞水县| 达孜县| 谢通门县| 新闻| 炉霍县| 无极县| 珠海市| 富源县| 娱乐| 甘肃省| 罗定市| 克山县| 铜山县| 德江县| 怀集县| 汶上县| 历史| 玉环县| 海阳市| 淳安县| 临颍县| 盘锦市| 玉环县| 利津县| 宝鸡市| 巧家县| 油尖旺区| 根河市| 鄄城县| 宝山区| 大埔县| 吉木萨尔县| 孝感市| 德庆县| 措美县| 松江区| 个旧市| 张家界市| 诏安县| 大悟县|