【问题标题】:Custom object detection with tflite使用 tflite 进行自定义对象检测
【发布时间】:2021-10-18 06:02:21
【问题描述】:

我做了一个基于树莓派的项目来检测客户对象。我从 Google Cloud 获得的 .tflite 文件。我大约两个月前制作的第一个模型,一切正常。昨天我训练了我更新的数据集并遇到了一些麻烦。当我尝试运行脚本时,出现下一个错误:

Loading model...Traceback (most recent call last):
  File "TFLite-PiCamera-od.py", line 84, in <module>
    interpreter = tflite.Interpreter(model_path=PATH_TO_MODEL_DIR)
  File "/home/pi/tensorflow/lib/python3.7/site-packages/tflite_runtime/interpreter.py", line 207, in __init__
    custom_op_registerers_by_func))
ValueError: Op builtin_code out of range: 130. Are you using old TFLite binary with newer model?Registration failed.

有人知道怎么解决吗?

【问题讨论】:

    标签: opencv raspberry-pi object-detection tensorflow-lite


    【解决方案1】:

    貌似TF版本,用于推理的比TF版本低。请考虑在树莓派中升级 TensorFlow 版本。请考虑使用完整的 TensorFlow 版本,而不是使用 tflite_runtime。

    【讨论】:

    • 谢谢 Jae,您的回复,但我有最新的 tflite_runtime 包(它是 tensorflow 的扩展,用于边缘设备)
    • 请查看基于 TF 版本的 tflite_runtime。可以是低版本。
    猜你喜欢
    • 1970-01-01
    • 2018-07-03
    • 1970-01-01
    • 2022-08-19
    • 2019-01-09
    • 1970-01-01
    • 2022-11-20
    • 2022-08-23
    • 2020-10-05
    相关资源
    最近更新 更多