Frigate with Raspberry Pi 5 AI Kit and Hailo 8L - Troubleshooting Help Needed

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:

  1. VDevice Not Defined: When the Hailo plugin initializes, I see the error: NameError: name ‘VDevice’ is not defined
    This suggests an issue with recognizing VDevice within the Hailo SDK.

  2. HailoRTException Not Defined: Shortly afterward, Frigate encounters: NameError: name ‘HailoRTException’ is not defined

  3. which may indicate an incomplete or improper setup of the Hailo SDK.

  4. Detection Stalls: The Frigate watchdog notes “Detection appears to have stopped,” resulting in Frigate restarting.

  5. 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 and HailoRTException issues?

Any help or suggestions would be greatly appreciated. Thanks in advance!

1 Like

Hey @bostan_89,

Welcome to the Hailo Community!

I’ve run Frigate with RPi5 and Hailo8L before. Can you confirm which Docker image you’re using? Make sure it ends with ‘h8l’ - this indicates it includes HailoRT.

Could you also share the specific error message you’re encountering? This would help me better assist you with troubleshooting.

Best regards,
Omri

Now I’m using image: ghcr.io/blakeblackshear/frigate:0.15.0-beta2-h8l

Input tag ‘hailo8l’ found using ‘type’ does not match any of the expected tags: ‘cpu’, ‘deepstack’, ‘edgetpu’, ‘onnx’, ‘openvino’, ‘rknn’, ‘rocm’, 'tens
2024-11-21 16:29:48.194503158 *************************************************************
2024-11-21 16:29:48.194507213 *** End Config Validation Errors

So I had beta 1 running well but had the same issue I tried to upgrade to beta 2, apparently it’s because beta requires RT 4.19 but that isn’t out yet for the pi 5, that’s what I found on the beta 2 thread in GitHub.