Thanks in advance, I've been reading and trying to get the coral to work for days.
I'm really new as well and trying to get the M.2 coral working.
I am running unraid 6.9.2 with the unraid Coral accelerator module drivers, Home assistant 6.6 as a VM and frigate NVR 2.3
settings page for Coral accelerator module drivers
Status: ALIVE
Temperature: 38.05 °C
Operating Frequency: 500 MHz
Driver Version: 1.1
Framework Version: 1.1.2
Set Temperatur Limits:
Interrupt Temperature: 99.80 °C
Status: DISABLED
Shutdown Temperature: 104.80 °C
Status: ENABLED
Trottle Temperatures:
84.80 °C - 89.80 °C - 94.80 °C
My coral shows up under unraid system devices as
IOMMU group 28:[1ac1:089a] 04:00.0 System peripheral: Global Unichip Corp. Coral Edge TPU (tried both on and off "Bind selected to VFIO at Boot")
The modules are loaded in unraid
lsmod
apex 16384 0
gasket 90112 1 apex
Tried many variants of
detectors:
coral:
type: edgetpu
device: pci:0
detectors:
coral_pci:
type: edgetpu
device: pci:
Frigate log with no detectors
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-11-02 11:24:09] frigate.app INFO : Starting Frigate (0.9.4-26ae608)
[2021-11-02 11:24:09] frigate.app INFO : Creating directory: /tmp/cache
Starting migrations
[2021-11-02 11:24:09] peewee_migrate INFO : Starting migrations
There is nothing to migrate
[2021-11-02 11:24:09] peewee_migrate INFO : There is nothing to migrate
[2021-11-02 11:24:09] frigate.mqtt INFO : MQTT connected
[2021-11-02 11:24:09] frigate.app INFO : Output process started: 242
[2021-11-02 11:24:09] detector.cpu INFO : Starting detection process: 241
[2021-11-02 11:24:09] ws4py INFO : Using epoll
[2021-11-02 11:24:09] frigate.edgetpu WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
[2021-11-02 11:24:09] frigate.app INFO : Camera processor started for Front: 247
[2021-11-02 11:24:09] frigate.app INFO : Camera processor started for Back: 249
[2021-11-02 11:24:09] frigate.app INFO : Camera processor started for living room: 250
[2021-11-02 11:24:09] frigate.app INFO : Capture process started for Front: 252
[2021-11-02 11:24:09] frigate.app INFO : Capture process started for Back: 255
[2021-11-02 11:24:09] frigate.app INFO : Capture process started for living room: 261
[2021-11-02 11:24:09] ws4py INFO : Using epoll
frigate log with detectors
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-11-02 11:28:56] frigate.app INFO : Starting Frigate (0.9.4-26ae608)
[2021-11-02 11:28:57] frigate.app INFO : Creating directory: /tmp/cache
Starting migrations
[2021-11-02 11:28:57] peewee_migrate INFO : Starting migrations
There is nothing to migrate
[2021-11-02 11:28:57] peewee_migrate INFO : There is nothing to migrate
[2021-11-02 11:28:57] detector.coral_pci INFO : Starting detection process: 241
[2021-11-02 11:28:57] frigate.mqtt INFO : MQTT connected
[2021-11-02 11:28:57] ws4py INFO : Using epoll
Process detector:coral_pci:
[2021-11-02 11:28:57] frigate.edgetpu INFO : Attempting to load TPU as pci
[2021-11-02 11:28:57] frigate.edgetpu ERROR : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
delegate = Delegate(library, options)
File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
raise ValueError(capture.message)
ValueError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/opt/frigate/frigate/edgetpu.py", line 156, in run_detector
object_detector = LocalObjectDetector(
File "/opt/frigate/frigate/edgetpu.py", line 64, in __init__
edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
raise ValueError('Failed to load delegate from {}\n{}'.format(
ValueError: Failed to load delegate from libedgetpu.so.1.0
[2021-11-02 11:28:57] frigate.app INFO : Output process started: 243
[2021-11-02 11:28:57] frigate.app INFO : Camera processor started for Front: 249
[2021-11-02 11:28:57] frigate.app INFO : Camera processor started for Back: 251
[2021-11-02 11:28:57] frigate.app INFO : Camera processor started for living room: 253
[2021-11-02 11:28:57] frigate.app INFO : Capture process started for Front: 255
[2021-11-02 11:28:57] frigate.app INFO : Capture process started for Back: 256
[2021-11-02 11:28:57] frigate.app INFO : Capture process started for living room: 266
[2021-11-02 11:28:57] ws4py INFO : Using epoll
[2021-11-02 11:29:17] frigate.watchdog INFO : Detection appears to have stopped. Exiting frigate...
[2021-11-02 11:29:17] frigate.app INFO : Stopping...
[2021-11-02 11:29:17] ws4py INFO : Closing all websockets with [1001] 'Server is shutting down'
[2021-11-02 11:29:17] frigate.stats INFO : Exiting watchdog...
[2021-11-02 11:29:17] frigate.events INFO : Exiting event cleanup...
[2021-11-02 11:29:17] frigate.record INFO : Exiting recording maintenance...
[2021-11-02 11:29:17] frigate.watchdog INFO : Exiting watchdog...
[2021-11-02 11:29:17] frigate.record INFO : Exiting recording cleanup...
[2021-11-02 11:29:17] frigate.events INFO : Exiting event processor...
[2021-11-02 11:29:17] frigate.object_processing INFO : Exiting object processor...
[2021-11-02 11:29:17] peewee.sqliteq INFO : writer received shutdown request, exiting.
[2021-11-02 11:29:17] root INFO : Waiting for detection process to exit gracefully...
[cmd] python3 exited 0
/usr/lib/python3.8/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 9 leaked shared_memory objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal