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

Screenshot from 2023-08-12 17-54-10

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20

Most upvoted comments

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 @.***>:

I have this exact same problem.

Running Home Assistant OS exclusively on a HP EliteDesk 800 G1 Desktop Mini PC. The Skyconnect dongle works plugged into USB. The Coral plugged into the USB 3.0 ports lights up (and heats up). It won’t show up in home assistant or be recognised by Frigate.

This is my basic config. I have tried many different options. This config works if I use the CPU as a detector but as soon as I switch to Coral it won’t work. Tried with and without the hwaccel_args, tried a different usb-c cable, million different things and can’t get the coral to show up on the NUC.

*mqtt: host: 192.168.50.196 port: 1883 #topic_prefix: frigate #client_id: frigate user: mqtt password: ttqm

detectors: coral: type: edgetpu device: usb ffmpeg: hwaccel_args: - “-c:v” - h264_vaapi

cameras: reolink: ffmpeg: inputs: - path: @.***:554/h264Preview_01_main roles: - detect

detect:
  width: 2560
  height: 1440
  fps: 5
objects:
  track:
    - person
    - car
    - dog

This config works if I use the CPU rather than the coral. The coral is plugged into the NUC, tried all the USB 3 ports, it lights up, done full reboot etc.

*2023-10-11 03:34:03.773517333 16:34:03.773 INF [rtsp] listen addr=:8554 2023-10-11 03:34:03.773803957 16:34:03.773 INF [srtp] listen addr=:8443 2023-10-11 03:34:03.774024168 16:34:03.773 INF [webrtc] listen addr=:8555 2023-10-11 03:34:04.543969763 [2023-10-11 16:34:04] frigate.app INFO : Starting Frigate (0.12.1-367d724) 2023-10-11 03:34:04.555186291 [2023-10-11 16:34:04] frigate.app INFO : Creating directory: /tmp/cache 2023-10-11 03:34:04.557319719 [2023-10-11 16:34:04] peewee_migrate INFO : Starting migrations 2023-10-11 03:34:04.561742776 [2023-10-11 16:34:04] peewee_migrate INFO : There is nothing to migrate 2023-10-11 03:34:04.575007251 [2023-10-11 16:34:04] frigate.app INFO : Output process started: 301 2023-10-11 03:34:04.584940773 [2023-10-11 16:34:04] frigate.app INFO : Camera processor started for reolink: 307 2023-10-11 03:34:04.589104325 [2023-10-11 16:34:04] frigate.app INFO : Capture process started for reolink: 309 2023-10-11 03:34:04.613736864 [2023-10-11 16:34:04] frigate.video ERROR : reolink: Unable to read frames from ffmpeg process. 2023-10-11 03:34:04.613933928 [2023-10-11 16:34:04] frigate.video ERROR : reolink: ffmpeg process is not running. exiting capture thread… 2023-10-11 03:34:13.300763453 [INFO] Starting go2rtc healthcheck service… 2023-10-11 03:34:24.612034542 [2023-10-11 16:34:24] watchdog.reolink ERROR : Ffmpeg process crashed unexpectedly for reolink. 2023-10-11 03:34:24.612324091 [2023-10-11 16:34:24] watchdog.reolink ERROR : The following ffmpeg logs include the last 100 lines prior to exit. 2023-10-11 03:34:24.612327770 [2023-10-11 16:34:24] ffmpeg.reolink.detect ERROR : Unknown decoder ‘h264_vaapi’ 2023-10-11 03:34:24.623130398 [2023-10-11 16:34:24] frigate.video ERROR : reolink: Unable to read frames from ffmpeg process. 2023-10-11 03:34:24.623238617 [2023-10-11 16:34:24] frigate.video ERROR : reolink: ffmpeg process is not running. exiting capture thread… 2023-10-11 03:34:29.631972018 [2023-10-11 16:34:04] detector.coral INFO : Starting detection process: 299 2023-10-11 03:34:29.632108254 [2023-10-11 16:34:04] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb 2023-10-11 03:34:29.632371819 Process detector:coral: 2023-10-11 03:34:29.632765514 [2023-10-11 16:34:29] 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-10-11 03:34:29.633402832 Traceback (most recent call last): 2023-10-11 03:34:29.633425084 File “/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py”, line 160, in load_delegate 2023-10-11 03:34:29.633427137 delegate = Delegate(library, options) 2023-10-11 03:34:29.633429458 File “/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py”, line 119, in init 2023-10-11 03:34:29.633431308 raise ValueError(capture.message) 2023-10-11 03:34:29.633440175 ValueError 2023-10-11 03:34:29.633447251 2023-10-11 03:34:29.633449324 During handling of the above exception, another exception occurred: 2023-10-11 03:34:29.633450846 2023-10-11 03:34:29.633457984 Traceback (most recent call last): 2023-10-11 03:34:29.633476152 File “/usr/lib/python3.9/multiprocessing/process.py”, line 315, in _bootstrap 2023-10-11 03:34:29.633477898 self.run() 2023-10-11 03:34:29.633479983 File “/usr/lib/python3.9/multiprocessing/process.py”, line 108, in run 2023-10-11 03:34:29.633481932 self._target(*self._args, *self._kwargs) 2023-10-11 03:34:29.633492548 File “/opt/frigate/frigate/object_detection.py”, line 98, in run_detector 2023-10-11 03:34:29.633494683 object_detector = LocalObjectDetector(detector_config=detector_config) 2023-10-11 03:34:29.633496688 File “/opt/frigate/frigate/object_detection.py”, line 52, in init 2023-10-11 03:34:29.633498550 self.detect_api = create_detector(detector_config) 2023-10-11 03:34:29.633500647 File “/opt/frigate/frigate/detectors/init.py”, line 24, in create_detector 2023-10-11 03:34:29.633504153 return api(detector_config) 2023-10-11 03:34:29.633506344 File “/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py”, line 37, in init 2023-10-11 03:34:29.633530276 edge_tpu_delegate = load_delegate(“libedgetpu.so.1.0”, device_config) 2023-10-11 03:34:29.633532834 File “/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py”, line 162, in load_delegate 2023-10-11 03:34:29.633560931 raise ValueError(‘Failed to load delegate from {}\n{}’.format( 2023-10-11 03:34:29.633576096 ValueError: Failed to load delegate from libedgetpu.so.1.0 2023-10-11 03:34:29.633577666 2023-10-11 03:34:34.620489437 [2023-10-11 16:34:34] watchdog.reolink ERROR : Ffmpeg process crashed unexpectedly for reolink. 2023-10-11 03:34:34.621040545 [2023-10-11 16:34:34] watchdog.reolink ERROR : The following ffmpeg logs include the last 100 lines prior to exit. 2023-10-11 03:34:34.621051381 [2023-10-11 16:34:34] ffmpeg.reolink.detect ERROR : Unknown decoder ‘h264_vaapi’ 2023-10-11 03:34:34.636487303 [2023-10-11 16:34:34] frigate.video ERROR : reolink: Unable to read frames from ffmpeg process. 2023-10-11 03:34:34.636557099 [2023-10-11 16:34:34] frigate.video ERROR : reolink: ffmpeg process is not running. exiting capture thread… 2023-10-11 03:34:34.768528261 [2023-10-11 16:34:34] 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-10-11 03:34:34.780385200 [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15) s6-rc: info: service go2rtc-healthcheck successfully stopped 2023-10-11 03:34:34.804931618 [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 2023-10-11 03:34:34.807221684 [2023-10-11 16:34:34] frigate.app INFO : Stopping… 2023-10-11 03:34:34.808010417 [2023-10-11 16:34:34] frigate.stats INFO : Exiting stats emitter… 2023-10-11 03:34:34.808014671 [2023-10-11 16:34:34] frigate.storage INFO : Exiting storage maintainer… s6-rc: info: service nginx-log successfully stopped 2023-10-11 03:34:34.808631497 [2023-10-11 16:34:34] frigate.record INFO : Exiting recording cleanup… 2023-10-11 03:34:34.808952485 [2023-10-11 16:34:34] frigate.record INFO : Exiting recording maintenance… 2023-10-11 03:34:34.808955845 [2023-10-11 16:34:34] frigate.events INFO : Exiting event cleanup… 2023-10-11 03:34:34.808957936 [2023-10-11 16:34:34] frigate.watchdog INFO : Exiting watchdog… 2023-10-11 03:34:35.101388039 [2023-10-11 16:34:35] frigate.comms.ws INFO : Exiting websocket client… 2023-10-11 03:34:35.618276731 [2023-10-11 16:34:35] frigate.object_processing INFO : Exiting object processor… 2023-10-11 03:34:35.794830422 [2023-10-11 16:34:35] frigate.events INFO : Exiting event processor… 2023-10-11 03:34:35.795421423 [2023-10-11 16:34:35] peewee.sqliteq INFO : writer received shutdown request, exiting. 2023-10-11 03:34:35.797778585 [2023-10-11 16:34:35] watchdog.reolink INFO : Terminating the existing ffmpeg process… 2023-10-11 03:34:35.797874365 [2023-10-11 16:34:35] watchdog.reolink INFO : Waiting for ffmpeg to exit gracefully… 2023-10-11 03:34:36.636978044 [2023-10-11 16:34:36] frigate.video INFO : reolink: exiting subprocess 2023-10-11 03:34:37.139489768 [2023-10-11 16:34:37] frigate.output INFO : exiting output process… 2023-10-11 03:34:38.364474485 [INFO] Service Frigate exited with code 0 (by signal 0) s6-rc: info: service frigate successfully stopped s6-rc: info: service go2rtc: stopping s6-rc: info: service frigate-log: stopping 2023-10-11 03:34:38.366408800 exit OK s6-rc: info: service frigate-log successfully stopped 2023-10-11 03:34:38.370683561 [INFO] The go2rtc service exited with code 0 (by signal 0) s6-rc: info: service go2rtc successfully stopped s6-rc: info: service go2rtc-log: stopping s6-rc: info: service go2rtc-log successfully stopped s6-rc: info: service log-prepare: stopping s6-rc: info: service s6rc-fdholder: stopping s6-rc: info: service log-prepare successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service s6rc-fdholder successfully stopped s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

— Reply to this email directly, view it on GitHub[https://github.com/blakeblackshear/frigate/issues/7459#issuecomment-1756719838], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AGWVAMUSSVG2GD4VMTUNZT3X6YI6HAVCNFSM6AAAAAA3OAQ5LOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJWG4YTSOBTHA]. You are receiving this because you modified the open/close state. [Spårningsbild][https://github.com/notifications/beacon/AGWVAMXWTZQJLPURUATYAD3X6YI6HA5CNFSM6AAAAAA3OAQ5LOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTIWVVN4.gif]

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:089a is the ID of the Global Unichip Corp or in other words the ID of the coral when it is not initialized. 18d1:9302 is the ID of when the coral is correctly initialized