See below for information about my setup and the models that I'm trying to run.
Setup:
Hardware: Raspberry Pi 5 16GB, AI HAT+ 2 and Raspberry Pi camera v3
Raspberry Pi OS: System 64-bit, Kernel 6.12 and Debian 13 (trixie)
On a side note, adding "chmod 0700 /run/user/1000/" to "~/.bashrc" seems to have resolved the issue with "StandardPaths: wrong permissions on runtime directory /run/user/1000, 0770 instead of 0700". Doesn't seem like it caused any issues, but I like not seeing the warning message.
So, these are the steps beginning with a new clone from GitHub:
I get the same result by changing into the "./picamera2/examples/hailo/"-directory and running detect.py without the -l argument. coco.txt is used by default there, i.e.:
Setup:
Hardware: Raspberry Pi 5 16GB, AI HAT+ 2 and Raspberry Pi camera v3
Raspberry Pi OS: System 64-bit, Kernel 6.12 and Debian 13 (trixie)
On a side note, adding "chmod 0700 /run/user/1000/" to "~/.bashrc" seems to have resolved the issue with "StandardPaths: wrong permissions on runtime directory /run/user/1000, 0770 instead of 0700". Doesn't seem like it caused any issues, but I like not seeing the warning message.
So, these are the steps beginning with a new clone from GitHub:
Code:
git clone https://github.com/raspberrypi/picamera2.git# Ok (using full paths)python3 ./picamera2/examples/hailo/detect.py -m /usr/share/hailo-models/resnet_v1_50_h10.hef -l ./picamera2/examples/hailo/coco.txtpython3 ./picamera2/examples/hailo/detect.py -m /usr/share/hailo-models/yolov11m_h10.hef -l ./picamera2/examples/hailo/coco.txtpython3 ./picamera2/examples/hailo/detect.py -m /usr/share/hailo-models/yolov8m_h10.hef -l ./picamera2/examples/hailo/coco.txt# Nokpython3 ./picamera2/examples/hailo/detect.py -m /usr/share/hailo-models/yolov5n_seg_h10.hef -l ./picamera2/examples/hailo/coco.txtpython3 ./picamera2/examples/hailo/detect.py -m /usr/share/hailo-models/yolov8s_pose_h10.hef -l ./picamera2/examples/hailo/coco.txtThe QtGlPreview window is displayed and the camera feed is displayed, then after a second or two. The Nok ones throw the same IndexError:Traceback (most recent call last): File "/home/sbm/Development/./picamera2/examples/hailo/detect.py", line 81, in <module> detections = extract_detections(results, video_w, video_h, class_names, args.score_thresh) File "/home/vim05/Development/./picamera2/examples/hailo/detect.py", line 18, in extract_detections score = detection[4] ~~~~~~~~~^^^IndexError: string index out of rangeCode:
python3 detect.py -m /usr/share/hailo-models/yolov5n_seg_h10.hefStatistics: Posted by sbm76 — Wed Jan 21, 2026 10:17 pm