TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi
TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi copied to clipboard
TypeError: object of type 'numpy.float32' has no len()
Line 177 has a type error. The example in your 19 year video ran smoothly, but I trained a new one to encounter this error.
pi@raspberrypi:~ $ cd tflite1/
pi@raspberrypi:~/tflite1 $ source tflite1-env/bin/activate
(tflite1-env) pi@raspberrypi:~/tflite1 $ python3 TFLite_detection_webcam.py --modeldir=custom_model_lite
Traceback (most recent call last):
File "TFLite_detection_webcam.py", line 177, in
Which model are you using? I've seen that error before when trying to train a different model than ssd-mobilenet-v2.
Which model are you using? I've seen that error before when trying to train a different model than ssd-mobilenet-v2.
It is indeed a version issue, and I have solved the problem using your code from last year's version of TF. Thank you very much!
Hello everyone. I used the ssd-mobilnet-v2 version, teaching her on this collab notebook https://colab.research.google.com/github/EdjeElectronics/TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi/blob/master/Train_TFLite2_Object_Detction_Model.ipynb?authuser=2#scrollTo=6t8CMarqBqP9 and I got the same error as you. Can you tell me how to fix it?