Frigate doesn‘t detect my Coral USB TPU?!?

Hello,

a few days ago i installed Home Assistant OS with frigate on a RasPi 4B 4GB. Everything works great but the Coral USB TPU could not be detected. Here is what i‘ve tried:

  • reboot
  • changing the usb-port

There is no other device connected to the raspi, the white led on the TPU is on.

I use the same system in my house allready. Here everything works fine.

Thanks for some help.

mime270

We always recommend using a powered USB hub as the coral is very picky about power.

In any case, which addon are you using? Some users have found that they need to run the full access addon with protection mode disabled for the coral to get picked up.

1 Like

Hi,

I’m jumping in the discussion because I have same problem. I’ve got an USB Coral edgetpu. I used to use it on HA on a NUC, but it went down and I had to replace it.

I now try to reinstall Frigate and coral on a NUC11ATKC2.

I run HA Core 2022.10.5 and OS version 9.2

I tried to load the last backup I made from preceding NUC (frigate and coral were perfectly operationnals). I can’t get Frigate detect Coral on USB.

I tried different USB ports, with or without a powered USB hub, with different USB cables… Nothing works.

I wonder if there would be a hardware failure in the Coral. Do you know how I could sort it out ?

See [Support]: Updated to 11.0 - Now crashes on trying to get TPU · Issue #3890 · blakeblackshear/frigate · GitHub

1 Like

Hi,

thx a lot, my coral is now detected. I still have to understand why my CPU load is over 60%, even with the edgeTPU.

1 Like

Once again : thx !!

how you fix it?

I tried to use Coral USB Accelerator in HA for Frigate (installed in HA as add-on) but it’s not detected by HA/Frigate (see log file bellow). The latest version of HA is installed in Virtualbox 7.0 on Mini PC (Intel Celeron N5100, Ubuntu 23.04). I also added in configration file of Frigate the following:
detectors:
coral:
type: edgetpu
device: usb

Any idea what I’m doing wrong here?

2023-08-12 13:29:30.041231439  Process detector:coral:
2023-08-12 13:29:30.043694778  [2023-08-12 15:29:30] frigate.detectors.plugins.edgetpu_tfl ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
2023-08-12 13:29:30.045000356  [2023-08-12 15:29:30] frigate.app                    INFO    : Camera processor started for camzunaj: 307
2023-08-12 13:29:30.050800853  Traceback (most recent call last):
2023-08-12 13:29:30.050850595    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2023-08-12 13:29:30.050852218      delegate = Delegate(library, options)
2023-08-12 13:29:30.050853671    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
2023-08-12 13:29:30.050859027      raise ValueError(capture.message)
2023-08-12 13:29:30.050860497  ValueError
2023-08-12 13:29:30.050874935  
2023-08-12 13:29:30.050876366  During handling of the above exception, another exception occurred:
2023-08-12 13:29:30.050877273  
2023-08-12 13:29:30.050878358  Traceback (most recent call last):
2023-08-12 13:29:30.050948803    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2023-08-12 13:29:30.050950345      self.run()
2023-08-12 13:29:30.050951662    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2023-08-12 13:29:30.050952817      self._target(*self._args, **self._kwargs)
2023-08-12 13:29:30.050954114    File "/opt/frigate/frigate/object_detection.py", line 98, in run_detector
2023-08-12 13:29:30.050955418      object_detector = LocalObjectDetector(detector_config=detector_config)
2023-08-12 13:29:30.051019488    File "/opt/frigate/frigate/object_detection.py", line 52, in __init__
2023-08-12 13:29:30.051021493      self.detect_api = create_detector(detector_config)
2023-08-12 13:29:30.051022745    File "/opt/frigate/frigate/detectors/__init__.py", line 24, in create_detector
2023-08-12 13:29:30.051023832      return api(detector_config)
2023-08-12 13:29:30.051025132    File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 37, in __init__
2023-08-12 13:29:30.051026445      edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2023-08-12 13:29:30.051040431    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2023-08-12 13:29:30.051041859      raise ValueError('Failed to load delegate from {}\n{}'.format(
2023-08-12 13:29:30.051077776  ValueError: Failed to load delegate from libedgetpu.so.1.0

Disabled Protection mode on the Full access worked for me. Thanks.