Frigate not being able to see Google Coral

I recently bought a google coral to use with frigate, but I have not been able to get it working.

I have HA running in a VM. I believe I have the USB pass through settings correct. Originally it showed up as Global Unichip Corp, then changed to Google Inc. I have filters to pass either one to the HA VM.

On HA, I have the Frigate full access add-on installed with protection mode disabled.

Here is my config:

mqtt:
  host: core-mosquitto
  user: ********
  password: ********

detectors:
  coral:
    type: edgetpu
    device: usb

cameras:
  Front_Door_Cam: 
    detect:
      width: 2560
      height: 1920
      fps: 20
    enabled: true
    ffmpeg:
      inputs:
        - path: rtsp://Frigate:[email protected]:554/h264Preview_01_main
          roles:
            - detect

Here is the log I get:

2024-07-26 01:00:35.426086048  [INFO] Preparing Frigate...
2024-07-26 01:00:35.448021528  [INFO] Starting Frigate...
2024-07-26 01:00:36.790411638  [2024-07-25 21:00:36] frigate.app                    INFO    : Starting Frigate (0.13.2-6476f8a)
2024-07-26 01:00:36.790745530  [2024-07-25 21:00:36] frigate.app                    INFO    : Creating directory: /tmp/cache
2024-07-26 01:00:36.811887270  [2024-07-25 21:00:36] peewee_migrate.logs            INFO    : Starting migrations
2024-07-26 01:00:36.816237959  [2024-07-25 21:00:36] peewee_migrate.logs            INFO    : There is nothing to migrate
2024-07-26 01:00:36.822810188  [2024-07-25 21:00:36] frigate.app                    INFO    : Recording process started: 232
2024-07-26 01:00:36.823496554  [2024-07-25 21:00:36] frigate.app                    INFO    : go2rtc process pid: 90
2024-07-26 01:00:36.852314913  [2024-07-25 21:00:36] detector.coral                 INFO    : Starting detection process: 242
2024-07-26 01:00:36.857171236  [2024-07-25 21:00:36] frigate.app                    INFO    : Output process started: 244
2024-07-26 01:00:36.869487327  [2024-07-25 21:00:36] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2024-07-26 01:00:36.869494158  [2024-07-25 21:00:36] frigate.detectors.plugins.edgetpu_tfl ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
2024-07-26 01:00:36.869924244  Process detector:coral:
2024-07-26 01:00:36.870847623  Traceback (most recent call last):
2024-07-26 01:00:36.871028846    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2024-07-26 01:00:36.871030766      delegate = Delegate(library, options)
2024-07-26 01:00:36.871481292    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
2024-07-26 01:00:36.871483110      raise ValueError(capture.message)
2024-07-26 01:00:36.871789716  ValueError
2024-07-26 01:00:36.871911309  
2024-07-26 01:00:36.871913048  During handling of the above exception, another exception occurred:
2024-07-26 01:00:36.871913847  
2024-07-26 01:00:36.872186641  Traceback (most recent call last):
2024-07-26 01:00:36.872344874    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2024-07-26 01:00:36.872346430      self.run()
2024-07-26 01:00:36.872550236    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2024-07-26 01:00:36.872551839      self._target(*self._args, **self._kwargs)
2024-07-26 01:00:36.872810681    File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
2024-07-26 01:00:36.872812324      object_detector = LocalObjectDetector(detector_config=detector_config)
2024-07-26 01:00:36.872912110    File "/opt/frigate/frigate/object_detection.py", line 53, in __init__
2024-07-26 01:00:36.872913752      self.detect_api = create_detector(detector_config)
2024-07-26 01:00:36.873234440    File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2024-07-26 01:00:36.873236101      return api(detector_config)
2024-07-26 01:00:36.873824613    File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__
2024-07-26 01:00:36.873826658      edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2024-07-26 01:00:36.874024880    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2024-07-26 01:00:36.874026855      raise ValueError('Failed to load delegate from {}\n{}'.format(
2024-07-26 01:00:36.874317612  ValueError: Failed to load delegate from libedgetpu.so.1.0
2024-07-26 01:00:36.874319375  
2024-07-26 01:00:36.896721375  [2024-07-25 21:00:36] frigate.app                    INFO    : Camera processor started for Front_Door_Cam: 250
2024-07-26 01:00:36.896993644  [2024-07-25 21:00:36] frigate.app                    INFO    : Capture process started for Front_Door_Cam: 252

Any suggestions on where to start troubleshooting?

1 Like

Hi,
do you see coral in VM in lsusb output?

1 Like

Where can I check that? I’m assuming in the HA command line, but I’m not sure.

Edit:

So I poked around inside HA and found where I can see the hardware:

These two USB devices are my Zigbee/Z-Wave dongle. I’m assuming I should be seeing the Coral here as well?

And that would mean the issue is not inside HA?

Yes, I think thats the reason.
Try passthrough usb port instead usb device.

1 Like

What sort of VM?

1 Like

I am running VirtualBox 7.0 on Ubuntu 22.04.

I did that as well, and still not detected.

Not something I have played with. More of a PROXMOX man.

1 Like

Sorry, I’m also running HA and Frigate on ProxMox.
In the beginning, I had problems with Coral too.
I did some basic python examples and I noticed that device change vendor id when first initialized. So, I created small, ‘bare bones’ python program to initialize device on startup, an after that passtrough port to Frigate VM (privileged CT to be exact), and Frigate starts recognized it.

1 Like

Thank you Nick and Igor for your input.
I finally got it working by setting up a USB pass through filter that passes everything to HA. Don’t want to leave it like that, but it at least pin points the problem.

3 Likes