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
TRACKING...
FRAME: 0
Traceback (most recent call last):
File "/home/pi/venv/bin/umt", line 8, in
sys.exit(main())
File "/home/pi/venv/lib/python3.7/site-packages/umt/umt_main.py", line 106, in main
class_name = labels[track.class_name]
KeyError: 3
I believe the model file has 4 classes (0-3) but the label text file only has 3 classes. I got around this error by adding 'scooter' as the 4th class in the label file. This labeled all the cars as scooters so labels list maybe should be as below with vehicle as 4th class:
(venv) root@raspberrypi:/home/pi/ped-net/model# umt -video highway_01.mp4 -modelpath pednet_20200517.tflite -labelmap labels.txt
without it:
(venv) root@raspberrypi:/home/pi/ped-net/model# umt -video highway_01.mp4 -modelpath pednet_20200517.tflite -labelmap labels.txt
The text was updated successfully, but these errors were encountered: