frigate: [Detector Support]: Google Coral USB accelerator not detected on Home Assistant OS 2023.8.2
Describe the problem you are having
My Intel Nuc does not correctly detect the Google Coral usb device.
I have tried both directly attach the coral to the NUC as well as using power usb hub. I have also tried without the conbee stick (conbee works as it should). See output from log.
Everything works when using CPU as detector.
How can i proceed the fault finding?
Version
Home Assistant 2023.8.2 Supervisor 2023.08.1 Operating System 10.4
Frigate config file
detectors:
coral:
type: edgetpu
device: usb
mqtt:
host: 192.168.1.228
user: XXXXX
password: XXXXXX
stats_interval: 60
cameras:
dlink2:
ffmpeg:
inputs:
- path: rtsp://XXXXXXXX@192.168.1.188:554/live1.sdp
roles:
- detect
- record
- snapshots
detect:
width: 960
height: 720
record:
enabled: True
retain_days: 0
events:
retain:
default: 10
snapshots:
enabled: true
objects:
track:
- person
- car
- dog
- cell phone
dlink1:
ffmpeg:
inputs:
- path: rtsp://XXXXXX@192.168.1.174:554/live1.sdp
roles:
- detect
- record
- snapshots
detect:
width: 960
height: 720
record:
enabled: True
retain_days: 0
events:
retain:
default: 10
snapshots:
enabled: true
objects:
track:
- person
- car
- dog
- cell phone
- bicycle
birdseye:
enabled: True
width: 960
height: 720
quality: 8
mode: continuous
motion:
mask:
- 960,0,0,0,0,325,960,329
docker-compose file or Docker CLI command
*
Relevant log output
From the frigate log:
2023-08-12 15:29:24.764003327 [2023-08-12 17:29:24] 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 15:29:24.764842696 [2023-08-12 17:28:59] frigate.app INFO : Camera processor started for dlink1: 309
2023-08-12 15:29:24.765708700 [2023-08-12 17:28:59] frigate.app INFO : Capture process started for dlink2: 311
2023-08-12 15:29:24.766368906 [2023-08-12 17:28:59] frigate.app INFO : Capture process started for dlink1: 312
2023-08-12 15:29:24.768517328 Traceback (most recent call last):
2023-08-12 15:29:24.768602672 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2023-08-12 15:29:24.768618071 delegate = Delegate(library, options)
2023-08-12 15:29:24.769064590 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
2023-08-12 15:29:24.769077026 raise ValueError(capture.message)
2023-08-12 15:29:24.769085961 ValueError
2023-08-12 15:29:24.769092396
2023-08-12 15:29:24.769100368 During handling of the above exception, another exception occurred:
2023-08-12 15:29:24.769106405
2023-08-12 15:29:24.769115666 Traceback (most recent call last):
2023-08-12 15:29:24.769222071 File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2023-08-12 15:29:24.769233274 self.run()
2023-08-12 15:29:24.769243380 File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2023-08-12 15:29:24.769254125 self._target(*self._args, **self._kwargs)
2023-08-12 15:29:24.769262242 File "/opt/frigate/frigate/object_detection.py", line 98, in run_detector
2023-08-12 15:29:24.769377315 object_detector = LocalObjectDetector(detector_config=detector_config)
2023-08-12 15:29:24.769387263 File "/opt/frigate/frigate/object_detection.py", line 52, in __init__
2023-08-12 15:29:24.769395833 self.detect_api = create_detector(detector_config)
2023-08-12 15:29:24.769404256 File "/opt/frigate/frigate/detectors/__init__.py", line 24, in create_detector
2023-08-12 15:29:24.769498011 return api(detector_config)
2023-08-12 15:29:24.769510010 File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 37, in __init__
2023-08-12 15:29:24.769521446 edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2023-08-12 15:29:24.769533118 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2023-08-12 15:29:24.769543631 raise ValueError('Failed to load delegate from {}\n{}'.format(
2023-08-12 15:29:24.769643395 ValueError: Failed to load delegate from libedgetpu.so.1.0
2023-08-12 15:29:24.769651833
2023-08-12 15:29:29.875240006 [2023-08-12 17:29:29] frigate.watchdog INFO : Detection appears to have stopped. Exiting Frigate...
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
s6-rc: info: service go2rtc-healthcheck: stopping
2023-08-12 15:29:29.928790104 [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2023-08-12 15:29:29.960646833 [INFO] Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service nginx-log: stopping
s6-rc: info: service frigate: stopping
Operating system
HassOS
Install method
HassOS Addon
Coral version
USB
Any other information that may be helpful
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20
My solution was to switch from the full access version to the standard frigate.
I found out that i had to disable the protection mode.
Now everything works great.
11 okt. 2023 05:45:42 JakeTheRabbit @.***>:
oh, I found a bit issue about this on the google coral forum/issues/something.
https://github.com/google-coral/edgetpu/issues/536
and basically came up with a variation of this; https://github.com/tnyeanderson/zet/tree/main/20240114030411
1a6e:089ais the ID of the Global Unichip Corp or in other words the ID of the coral when it is not initialized.18d1:9302is the ID of when the coral is correctly initialized