Reputation: 11
System information
interpreter = tf.lite.Interpreter(model_path="models/saved_model.tflite")
RaspberryPi 3B+
v2.4.0-0-g582c8d2
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 3.7.3
40
classesTraceback (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
Note : If you are suggesting me to upgrade or downgrade the packages, please provide necessary code with it.
Thanks !!
Upvotes: 0
Views: 1190
Reputation: 1106
Kindly upgrade your TFLite version. Your model is using TFLite Resource type which doesn't exist in your TFLite runtime library.
Upvotes: 1