You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I tried to run tflite_example.py on multiple different images.
Some runs smoothly, other crashed with different error code. The images can be found here
scream.jpg
Traceback (most recent call last):
File "tflite_example.py", line 160, in <module>
draw_boxes(boxes, classes, scores, img, class_names, (height, width), True)
File "tflite_example.py", line 106, in draw_boxes
for box, score, cls in zip(boxes, scores, classes):
TypeError: zip argument #1 must support iteration
girl.png
Traceback (most recent call last):
File "tflite_example.py", line 153, in <module>
interpreter.set_tensor(input_details[0]['index'], np.expand_dims(img_resized, 0))
File "/usr/local/lib/python3.6/dist-packages/tensorflow/lite/python/interpreter.py", line 197, in set_tensor
self._interpreter.SetTensor(tensor_index, value)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/lite/python/interpreter_wrapper/tensorflow_wrap_interpreter_wrapper.py", line 136, in SetTensor
return _tensorflow_wrap_interpreter_wrapper.InterpreterWrapper_SetTensor(self, i, value)
ValueError: Cannot set tensor: Dimension mismatch. Got 4 but expected 3 for dimension 3 of input 103.
kite.jpg and person.jpg runs fine
The text was updated successfully, but these errors were encountered:
Hello, I tried to run tflite_example.py on multiple different images.
Some runs smoothly, other crashed with different error code. The images can be found here
scream.jpg
girl.png
kite.jpg and person.jpg runs fine
The text was updated successfully, but these errors were encountered: