[Detector Support]: Coral M2 is not detected in Frigate #10806
Unanswered
oleg-78
asked this question in
Detector Support
Replies: 3 comments 2 replies
-
this is wrong, it should either be |
Beta Was this translation helpful? Give feedback.
2 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
I found the reason. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem you are having
I installed Coral ЕЗГ m2
I installed Corel TPU M2 on Intel Nuke
My Debian system recognizes my accelerator.
But Frigate doesn't recognize.
lspci -nn | grep 089a
3b:00.0 System peripheral [0880]: Global Unichip Corp. Coral Edge TPU [1ac1:089a]
I can run
python3 /home/oleg/coral/pycoral/examples/classify_image.py \
Until Home Assistant is not launched, everything works.
----INFERENCE TIME----
Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU memory.
12.5ms
3.2ms
3.3ms
3.2ms
3.0ms
-------RESULTS--------
Ara macao (Scarlet Macaw): 0.75781
But as soon as Home Assistant is launched, my example gives an error.
F port/default/port_from_tf/statusor.cc:38] Attempting to fetch value instead of handling error Failed precondition: Could not map pages : 5 (Device or resource busy)
Also when I launch Frigate with these settings.
detectors:
coral_pci:
type: edgetpu
device: pci0
I read the logs in Frigate and it says there.
2024-04-03 10:35:38.032182782 [2024-04-03 15:35:38] detector.coral_pci INFO : Starting detection process: 322
2024-04-03 10:35:38.043254051 [2024-04-03 15:35:38] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as pci
2024-04-03 10:35:38.044320491 [2024-04-03 15:35:38] frigate.app INFO : Output process started: 324
2024-04-03 10:35:38.048444852 [2024-04-03 15:35:38] frigate.app INFO : Camera processor started for Gate_frigate: 329
2024-04-03 10:35:38.053673277 Process detector:coral_pci:
2024-04-03 10:35:38.054141311 [2024-04-03 15:35:38] 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-04-03 10:35:38.054145389 [2024-04-03 15:35:38] frigate.app INFO : Capture process started for Gate_frigate: 333
2024-04-03 10:35:38.055363905 Traceback (most recent call last):
2024-04-03 10:35:38.055686062 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2024-04-03 10:35:38.055689319 delegate = Delegate(library, options)
2024-04-03 10:35:38.055691891 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in init
2024-04-03 10:35:38.055693960 raise ValueError(capture.message)
2024-04-03 10:35:38.055696335 ValueError
2024-04-03 10:35:38.055697916
2024-04-03 10:35:38.055701874 During handling of the above exception, another exception occurred:
2024-04-03 10:35:38.055703603
2024-04-03 10:35:38.055705431 Traceback (most recent call last):
2024-04-03 10:35:38.055718867 File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2024-04-03 10:35:38.055720635 self.run()
2024-04-03 10:35:38.055722480 File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2024-04-03 10:35:38.055748531 self._target(*self._args, **self._kwargs)
2024-04-03 10:35:38.055750919 File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
2024-04-03 10:35:38.055752990 object_detector = LocalObjectDetector(detector_config=detector_config)
2024-04-03 10:35:38.055754908 File "/opt/frigate/frigate/object_detection.py", line 53, in init
2024-04-03 10:35:38.055765302 self.detect_api = create_detector(detector_config)
2024-04-03 10:35:38.055766712 File "/opt/frigate/frigate/detectors/init.py", line 18, in create_detector
2024-04-03 10:35:38.055768016 return api(detector_config)
2024-04-03 10:35:38.055769680 File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in init
2024-04-03 10:35:38.055771320 edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2024-04-03 10:35:38.055782845 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2024-04-03 10:35:38.055784410 raise ValueError('Failed to load delegate from {}\n{}'.format(
2024-04-03 10:35:38.055785851 ValueError: Failed to load delegate from libedgetpu.so.1.0
2024-04-03 10:35:38.055787105
2024-04-03 10:35:45.043588204 [INFO] Starting go2rtc healthcheck service...
2024-04-03 10:35:58.473806774 [2024-04-03 15:35:58] frigate.watchdog INFO : Detection appears to have stopped. Exiting Frigate...
Tell me, please, what is the problem? I've already tried everything.
Version
2024.3.3 Core
Frigate config file
docker-compose file or Docker CLI command
Relevant log output
Operating system
HassOS
Install method
HassOS Addon
Coral version
M.2
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions