How to add Coral detector in Frigate? Error in log

Hi, trying to add my Coral (was working before) but is not weorking

In my hardware settings I have this

In Frigate.yaml I put this


detectors:
  coral:
    type: edgetpu
    device: /dev/bus/usb/007/004
    num_threads: 3

But I receive this error in frigate component log … ??? Any hint??


2024-02-08 09:24:00.381206017  [2024-02-08 10:24:00] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as /dev/bus/usb/007/004
2024-02-08 09:24:00.381510014  [2024-02-08 10:24:00] 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-02-08 09:24:00.382000962  Process detector:coral:
2024-02-08 09:24:00.383447596  Traceback (most recent call last):
2024-02-08 09:24:00.386312022    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2024-02-08 09:24:00.386314708      delegate = Delegate(library, options)
2024-02-08 09:24:00.386786492    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
2024-02-08 09:24:00.386788161      raise ValueError(capture.message)
2024-02-08 09:24:00.387093392  ValueError
2024-02-08 09:24:00.387356539  
2024-02-08 09:24:00.387358175  During handling of the above exception, another exception occurred:
2024-02-08 09:24:00.387358975  
2024-02-08 09:24:00.387746707  Traceback (most recent call last):
2024-02-08 09:24:00.387968628    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2024-02-08 09:24:00.387970049      self.run()
2024-02-08 09:24:00.388262112    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2024-02-08 09:24:00.388263572      self._target(*self._args, **self._kwargs)
2024-02-08 09:24:00.388514351    File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
2024-02-08 09:24:00.388515983      object_detector = LocalObjectDetector(detector_config=detector_config)
2024-02-08 09:24:00.388755380    File "/opt/frigate/frigate/object_detection.py", line 53, in __init__
2024-02-08 09:24:00.388756969      self.detect_api = create_detector(detector_config)
2024-02-08 09:24:00.389007463    File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2024-02-08 09:24:00.389008915      return api(detector_config)
2024-02-08 09:24:00.389348956    File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__
2024-02-08 09:24:00.389350638      edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2024-02-08 09:24:00.389581703    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2024-02-08 09:24:00.389583297      raise ValueError('Failed to load delegate from {}\n{}'.format(
2024-02-08 09:24:00.390056895  ValueError: Failed to load delegate from libedgetpu.so.1.0
2024-02-08 09:24:00.390058480  

You need to add it as device in docker to give frigate access as well as in the Frigate config file. The docker container must also have permissions to use it.

mmhhh I use proxmox, it was worling until some time ago. Not sure how to solve this

Isn’t it just device: usb if usb or device:pci have a m.2 version? Do not need num_threads either. Probably causing an issue

https://docs.frigate.video/troubleshooting/edgetpu

1 Like

both of these are wrong. You should follow the frigate docs Object Detectors | Frigate

1 Like