[Detector Support]: No EdgeTPU was detected Google coral #15021
-
Describe the problem you are havingI see a lot of issues and have tried for a few days to resolve following other peoples issues. This is my setup: I couldn't for the life of me get the Coral to initialize but after alot of work I managed to consistantly get it to initialize using this magical DockerFile: https://github.com/tnyeanderson/zet/tree/main/20240114030411 I have passthrough for the whole USB port in proxmox, meaning I have to attach the USB to the docker image to initialize coral, the detach, and reattach to home assistant VM lsusb inside home assistant now displays initialized device: Unfortunately Frigate always comes back with Version0.14.1-f4f3cfa Frigate config filemqtt:
host: 192.168.1.234
port: 1883
topic_prefix: frigate
client_id: frigate
user: REDACTED
password: REDACTED
cameras:
garage:
ffmpeg:
inputs:
- path: rtsp://192.168.1.171:8554/garage
roles:
- detect
- record
- restream
detectors:
coral:
type: edgetpu
device: usb:/dev/bus/usb/003/006
version: 0.14 docker-compose file or Docker CLI commandhome assistant add-on Relevant Frigate log output2024-11-16 15:14:02.357141932 [2024-11-16 16:14:02] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb:/dev/bus/usb/003/006
2024-11-16 15:14:02.362528090 [2024-11-16 16:14:02] 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-11-16 15:14:02.365379001 Process detector:coral:
2024-11-16 15:14:02.369884719 Traceback (most recent call last):
2024-11-16 15:14:02.370893537 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2024-11-16 15:14:02.370899675 delegate = Delegate(library, options)
2024-11-16 15:14:02.372064355 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
2024-11-16 15:14:02.372070536 raise ValueError(capture.message)
2024-11-16 15:14:02.373209402 ValueError
2024-11-16 15:14:02.374144813
2024-11-16 15:14:02.374150813 During handling of the above exception, another exception occurred:
2024-11-16 15:14:02.374154131
2024-11-16 15:14:02.375680919 Traceback (most recent call last):
2024-11-16 15:14:02.376626166 File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2024-11-16 15:14:02.376631908 self.run()
2024-11-16 15:14:02.381724626 File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2024-11-16 15:14:02.381732264 self._target(*self._args, **self._kwargs)
2024-11-16 15:14:02.381790361 File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
2024-11-16 15:14:02.381794867 object_detector = LocalObjectDetector(detector_config=detector_config)
2024-11-16 15:14:02.381798334 File "/opt/frigate/frigate/object_detection.py", line 53, in __init__
2024-11-16 15:14:02.381860857 self.detect_api = create_detector(detector_config)
2024-11-16 15:14:02.381867035 File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2024-11-16 15:14:02.381872144 return api(detector_config)
2024-11-16 15:14:02.381876058 File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__
2024-11-16 15:14:02.381880496 edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2024-11-16 15:14:02.381884566 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2024-11-16 15:14:02.381957121 raise ValueError('Failed to load delegate from {}\n{}'.format(
2024-11-16 15:14:02.381962137 ValueError: Failed to load delegate from libedgetpu.so.1.0
2024-11-16 15:14:02.382026684
2024-11-16 15:14:02.433067714 [2024-11-16 16:14:02] frigate.app INFO : Camera processor started for garage: 412
2024-11-16 15:14:02.470513958 [2024-11-16 16:14:02] frigate.app INFO : Capture process started for garage: 414
2024-11-16 15:14:04.835307581 [INFO] Starting go2rtc healthcheck service...
2024-11-16 15:14:22.809256686 [2024-11-16 16:14:22] frigate.watchdog INFO : Detection appears to have stopped. Exiting Frigate. Install methodHassOS Addon Object DetectorCoral Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulTried different USB ports |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
There are many layers of virtualzation happening here - you may have better luck using the tteck script and installing Frigate in a Proxmox LXC. Users have reported success that way, and there's lots of support available on the tteck github. |
Beta Was this translation helpful? Give feedback.
-
Your https://docs.frigate.video/configuration/object_detectors/#single-usb-coral |
Beta Was this translation helpful? Give feedback.
Your
device
line in your frigate config is incorrect. It needs to just bedevice: usb
. See the documentation:https://docs.frigate.video/configuration/object_detectors/#single-usb-coral