frigate: [EdgeTPU Support]: Frigate doesn't see Coral eTPU
Describe the problem you are having
The edgeTPU is only sometimes seen by Frigate even though HA sees it.

Version
Frigate (Full Access) Beta (0.11.1)
Frigate config file
mqtt:
host: 192.168.178.82
user: USERID
password: PASSWORD
cameras:
Dining: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://frigate:spyb0t@192.168.178.59:554/play1.sdp # <----- Update for your camera
roles:
- detect
- rtmp
rtmp:
enabled: True # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1280 # <---- update for your camera's resolution
height: 720 # <---- update for your camera's resolution
fps: 10
Garage: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://frigate:spyb0t@192.168.178.36:554/play1.sdp # <----- Update for your camera
roles:
- detect
- rtmp
rtmp:
enabled: True # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1280 # <---- update for your camera's resolution
height: 720 # <---- update for your camera's resolution
fps: 10
Front-door: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://frigate:spyb0t@192.168.178.28:554/play1.sdp # <----- Update for your camera
roles:
- detect
- rtmp
rtmp:
enabled: True # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1280 # <---- update for your camera's resolution
height: 720 # <---- update for your camera's resolution
fps: 10
Garten-house: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://frigate:spyb0t@192.168.178.46:554/play1.sdp # <----- Update for your camera
roles:
- detect
- rtmp
rtmp:
enabled: True # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1280 # <---- update for your camera's resolution
height: 720 # <---- update for your camera's resolution
fps: 5
Drive-way: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://frigate:spyb0t22!@192.168.178.55:554/h264 # <----- Update for your camera
roles:
- detect
- rtmp
rtmp:
enabled: True # <-- RTMP should be disabled if your stream is not H264
detect:
width: 2560 # <---- update for your camera's resolution
height: 1440 # <---- update for your camera's resolution
fps: 5
Patio: # <------ Name the camera.
ffmpeg:
inputs:
- path: rtsp://frigate:spyb0t22!@192.168.178.74:554/h264 # <----- Update for your camera
roles:
- detect
- rtmp
rtmp:
enabled: True # <-- RTMP should be disabled if your stream is not H264
detect:
width: 2560 # <---- update for your camera's resolution
height: 1440 # <---- update for your camera's resolution
fps: 5
detectors:
coral:
type: edgetpu
device: usb
num_threads: 3
docker-compose file or Docker CLI command
Not sure what this is?
Relevant log output
[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.
[2022-11-02 10:17:46] frigate.app INFO : Starting Frigate (0.11.1-2eada21)
[2022-11-02 10:17:47] frigate.app INFO : Creating directory: /tmp/cache
Starting migrations
[2022-11-02 10:17:47] peewee_migrate INFO : Starting migrations
There is nothing to migrate
[2022-11-02 10:17:47] peewee_migrate INFO : There is nothing to migrate
[2022-11-02 10:17:47] frigate.mqtt INFO : Turning off detection for Dining via mqtt
[2022-11-02 10:17:47] frigate.app INFO : Output process started: 212
[2022-11-02 10:17:47] detector.coral INFO : Starting detection process: 211
[2022-11-02 10:17:47] frigate.app INFO : Camera processor started for Dining: 215
[2022-11-02 10:17:47] frigate.app INFO : Camera processor started for Garage: 219
[2022-11-02 10:17:47] ws4py INFO : Using epoll
[2022-11-02 10:17:47] frigate.app INFO : Camera processor started for Front-door: 222
[2022-11-02 10:17:47] frigate.app INFO : Camera processor started for Garten-house: 224
[2022-11-02 10:17:47] frigate.app INFO : Camera processor started for Drive-way: 225
[2022-11-02 10:17:47] frigate.app INFO : Camera processor started for Patio: 226
[2022-11-02 10:17:47] frigate.app INFO : Capture process started for Dining: 228
[2022-11-02 10:17:47] frigate.app INFO : Capture process started for Garage: 229
[2022-11-02 10:17:47] frigate.app INFO : Capture process started for Front-door: 233
[2022-11-02 10:17:47] frigate.app INFO : Capture process started for Garten-house: 236
[2022-11-02 10:17:47] frigate.app INFO : Capture process started for Drive-way: 238
[2022-11-02 10:17:47] frigate.app INFO : Capture process started for Patio: 241
[2022-11-02 10:17:47] ws4py INFO : Using epoll
[2022-11-02 10:17:47] frigate.edgetpu INFO : Attempting to load TPU as usb
Process detector:coral:
[2022-11-02 10:17:49] 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.9/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/opt/frigate/frigate/edgetpu.py", line 135, in run_detector
object_detector = LocalObjectDetector(
File "/opt/frigate/frigate/edgetpu.py", line 43, 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
[2022-11-02 10:17:50] frigate.video ERROR : Garten-house: Unable to read frames from ffmpeg process.
[2022-11-02 10:17:50] frigate.video ERROR : Garten-house: ffmpeg process is not running. exiting capture thread...
Operating system
HassOS
Install method
HassOS Addon
Coral version
USB
Any other information that may be helpful
protection mode on or off, doesn’t matter. I move the eTPU to a different port as well. No difference.
I was detected once.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 31
Okay, Nick, I’ve redone everything with the lower “detect” streams and everything seems much better and stable. I also added the Coral back in and it’s working too. I think as long as I don’t have to reboot my HA, everything should be fine.