I was able to run a sample Google TFLite model on the RPI4, but the custom one I made from Roboflow is not working.
This guide uses Roboflow to train a darknet model which is then converted to TFLite. When I run this model on the RPI4, I get this:
2021-01-30 21:42:03.351149: E tensorflow/core/platform/hadoop/hadoop_file_system.cc:132] HadoopFileSystem load error: libhdfs.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File “TFLite_detection_webcam.py”, line 138, in <module>
interpreter = Interpreter(model_path=PATH_TO_CKPT)
File “/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/lite/python/interpreter.py”, line 207, in __init__
ValueError: Didn’t find op for builtin opcode ‘RESIZE_BILINEAR’ version ‘3’
Does anyone know how to fix this? If not, does anyone know a better way to run a custom model on the RPI4?