Hello community,
I’m trying to set up Frigate with the Raspberry Pi 5 and a Hailo 8L AI accelerator. I’m running into a few issues, and I’m hoping someone can offer guidance or share any solutions if they’ve encountered similar problems.
Current Setup
- Hardware: Raspberry Pi 5, Hailo 8L AI accelerator
- Software: Frigate 0.15.0, Docker
- Goal: Use the Hailo 8L for object detection with Frigate.
Problem Summary
Frigate starts successfully, but when initializing the Hailo device for detection, it encounters the following errors and then stops.
Error Log Highlights
Below are the key error messages:
-
VDevice Not Defined: When the Hailo plugin initializes, I see the error: NameError: name ‘VDevice’ is not defined
This suggests an issue with recognizingVDevice
within the Hailo SDK. -
HailoRTException Not Defined: Shortly afterward, Frigate encounters: NameError: name ‘HailoRTException’ is not defined
-
which may indicate an incomplete or improper setup of the Hailo SDK.
-
Detection Stalls: The Frigate watchdog notes “Detection appears to have stopped,” resulting in Frigate restarting.
-
Resource Warnings: Upon shutdown, there’s a message about leaked shared memory objects: resource_tracker: There appear to be 50 leaked shared_memory objects to clean up at shutdown
Steps Taken
- Installed the Hailo SDK in a virtual environment due to the managed environment restriction.
- Bound the virtual environment directory to Docker (if necessary) to make the SDK accessible to Frigate.
- Verified device recognition via
lspci
, confirming the Hailo device is detected.
Questions
- Has anyone successfully run Frigate with the Hailo 8L on a Raspberry Pi setup?
- Is there any specific Docker configuration required to support Hailo SDK dependencies within the container?
- Any insights on handling the
VDevice
andHailoRTException
issues?
Any help or suggestions would be greatly appreciated. Thanks in advance!