Tensorflow 1.14 训练模型 .pb 文件转换成 Tensorflowlite的 .tflite 文件

本文详细介绍了如何将TensorFlow1.14训练的SSDMobilenet模型从.pb格式转换为TensorFlowLite的.tflite格式,包括生成.pb文件、配置bazel和使用pb_to_tflite.py脚本的具体步骤。

Tensorflow 1.14 训练模型 .pb 文件转换成 Tensorflowlite的 .tflite 文件

1 tensorflow ssd_mobilenet 模型训练

tensorflow ssd_mobilenet 模型训练参考:https://blog.csdn.net/bibo1984/article/details/107397009

2 生成 .pb 文件

python3 /home/pi/xxxxxx/models/research/object_detection/export_tflite_ssd_graph.py --input_type image_tensor --pipeline_co
nfig_path /home/pi/xxxxxx/maidong/ssd_mobilenet_v2_coco_maidong.config --trained_checkpoint_prefix /home/pi/xxxxxx/maidong/train_logs/model.ckpt-XXXX --output_directory /home/pi/xxxxxx/maidong/outputmodels

3 配置 bazel

# 下载 bazel 安装脚本
wget -c https://github.com/bazelbuild/bazel/releases/download/3.1.0/bazel-3.1.0-installer-linu
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值