I am trying to solve the W4 optional exercise, TFLite for Raspberry Pi.
- Week 4.
- Link: Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
- Description:
I am running it on an old Raspberry Pi 3, therefore, 32 bit ARM. Also, 1 GB RAM.
I worked on my solution, and I got an error, so, I tried the model solution, but I am getting exactly the same error:
path=./mobilenet_v1_1.0_224_quant.tflite
Traceback (most recent call last):
File “/home/pi/test/C2_W4_Assignment_Solution.py”, line 56, in
interpreter.set_tensor(input_details[0][‘index’], input_data)
File “/home/pi/.local/lib/python3.9/site-packages/tflite_runtime/interpreter.py”, line 720, in set_tensor
self._interpreter.SetTensor(tensor_index, value)
ValueError: Cannot set tensor: Got value of type FLOAT32 but expected type UINT8 for input 88, name: input
As no link on the assignment page, I Googled for a tflite model, and I found this one: Image classification | TensorFlow Lite
Have I downloaded a wrong model, not compatible with the Raspberry Pi interpreter?