- Machine Learning Projects for Mobile Applications
- Karthikeyan NG
- 100字
- 2021-06-10 19:41:39
Converting SavedModel into TensorFlow Lite format
Converting your ML model into a TensorFlow Lite model can be done in just one line of code by calling the conversion method. Here is the simple Python snippet that converts your existing model into TensorFlow Lite format. You can feed in the existing model and convert that into .tflite format:
import sys
from tf.contrib.lite import convert_savedmodel
convert_savedmodel.convert(
saved_model_directory="/tmp/your_model",
output_tflite_file="/tmp/my_model.tflite")
The code here converts the existing model created in other frameworks into TensorFlow Lite format using FlatBuffers. There are a few conversion strategies that need to be followed.
推薦閱讀
- 深入理解Spring Cloud與實戰
- ATmega16單片機項目驅動教程
- Augmented Reality with Kinect
- 電腦常見問題與故障排除
- 電腦組裝、維護、維修全能一本通(全彩版)
- OUYA Game Development by Example
- Visual Media Processing Using Matlab Beginner's Guide
- Rapid BeagleBoard Prototyping with MATLAB and Simulink
- Spring Cloud微服務架構實戰
- Managing Data and Media in Microsoft Silverlight 4:A mashup of chapters from Packt's bestselling Silverlight books
- 電腦橫機使用與維修
- Spring Security 3.x Cookbook
- Hands-On One-shot Learning with Python
- 微服務架構實戰:基于Spring Boot、Spring Cloud、Docker
- FPGA進階開發與實踐