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
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
for i in range(len(scores)):
TypeError: object of type 'numpy.float32' has no len()
^CException ignored in: <module 'threading' from '/usr/lib/python3.7/threading.py'>
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 1281, in _shutdown
t.join()
File "/usr/lib/python3.7/threading.py", line 1032, in join
self._wait_for_tstate_lock()
File "/usr/lib/python3.7/threading.py", line 1048, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
KeyboardInterrupt
May I ask if there is a problem with my training set or with the version? Please help
The text was updated successfully, but these errors were encountered:
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 $ python3 TFLite_detection_webcam.py --modeldir=custom_model_lite(tflite1-env) pi@raspberrypi:
Traceback (most recent call last):
File "TFLite_detection_webcam.py", line 177, in
for i in range(len(scores)):
TypeError: object of type 'numpy.float32' has no len()
^CException ignored in: <module 'threading' from '/usr/lib/python3.7/threading.py'>
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 1281, in _shutdown
t.join()
File "/usr/lib/python3.7/threading.py", line 1032, in join
self._wait_for_tstate_lock()
File "/usr/lib/python3.7/threading.py", line 1048, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
KeyboardInterrupt
May I ask if there is a problem with my training set or with the version? Please help
The text was updated successfully, but these errors were encountered: