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?