ValueError:张量中不支持的数据类型14



系统信息

  • 我是否编写了自定义代码:interpreter = tf.lite.Interpreter(model_path="models/saved_model.tflite")
  • 操作系统平台和分发:RaspberryPi 3B+
  • TensorFlow Git版本:v2.4.0-0-g582c8d2
  • TensorFlow版本:2.4.0
  • 安装来源:https://github.com/bitsy-ai/tensorflow-arm-bin/releases/download/v2.4.0/tensorflow-2.4.0-cp37-none-linux_armv7l.whl
  • Python版本:Python 3.7.3
  • 有关tflite模型的更多信息:在40类上自定义训练的高效Det-B0

错误:

Traceback (most recent call last):
File "detect.py", line 8, in <module>
interpreter = tf.lite.Interpreter(model_path="models/saved_model.tflite")
File "/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/lite/python/interpreter.py", line 209, in __init__
model_path, self._custom_op_registerers))
ValueError: Unsupported data type 14 in tensor
Unsupported data type 14 in tensor
Unsupported data type 14 in tensor
Unsupported data type 14 in tensor
Unsupported data type 14 in tensor
Unsupported data type 14 in tensor

注意:如果你建议我升级或降级软件包,请提供必要的代码。

谢谢!!

请升级您的TFLite版本。您的模型使用的是TFLite运行库中不存在的TFLite资源类型。

相关内容

最新更新