机器学习 部署 嵌入式_如何在移动和嵌入式设备上部署机器学习模型

机器学习 部署 嵌入式

介绍 (Introduction)

Thanks to libraries such as Pandas, scikit-learn, and Matplotlib, it is relatively easy to start exploring datasets and make some first predictions using simple Machine Learning (ML) algorithms in Python. Although, to make these trained models useful in the real world, it is necessary to make them available to make predictions on either the Web or Portable devices.

多亏了Pandas,scikit-learn和Matplotlib等库,使用Python中的简单机器学习(ML)算法开始探索数据集并做出一些初步预测相对容易。 虽然,为了使这些训练有素的模型在现实世界中有用,有必要使它们可用于在Web或便携式设备上进行预测。

In two of my previous articles, I explained how to create and deploy a simple Machine Learning model using Heroku/Flask and Tensorflow.js. Today, I will instead explain to you how to deploy Machine Learning models on Smartphones and Embedded Devices using TensorFlow Lite.

在前两篇文章中,我解释了如何使用Heroku / FlaskTensorflow.js创建和部署简单的机器学习模型。 今天,我将向您解释如何使用TensorFlow Lite在智能手机和嵌入式设备上部署机器学习模型。

TensorFlow Lite (TensorFlow Lite)

TensorFlow Lite is a platform developed by Google to train Machine Learning models on mobile, IoT (Interned of Things) and embedded devices.

TensorFlow Lite是Google开发的一个平台,用于在移动,IoT(物联网)和嵌入式设备上训练机器学习模型。

Using TensorFlow Lite, all the workflow is executed within the device, which avoids having to send data back and forth from a server. Some of the main advantages of doing this are:

使用TensorFlow Lite,所有工作流程都在设备内执行,从而避免了必须从服务器来回发送数据的情况。 这样做的一些主要优点是:

  • Increased privacy since the data doesn't have to leave the device (this can allow you to apply techniques such as Differential Privacy and Federated Learning).

    由于数据不必离开设备,因此提高了隐私性(这可以使您应用差分隐私和联合学习之类的技术 )。

  • Reduced power consumption, because no internet connection is required.

    降低了功耗,因为不需要互联网连接。
  • Decreased latency, since there is no communication with the server.

    延迟减少,因为与服务器之间没有通信。

TensorFlow Lite offers API support for different languages such as Python, Java, Swift and C++.

  • 2
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值