question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No EdgeTPU detected - I installed in Google Board and have this error

See original GitHub issue

Describe the bug frigate.edgetpu INFO : No EdgeTPU detected.

Version of frigate 0.9

Config file Include your full config file wrapped in triple back ticks.

mqtt:
  host: broker.mqttdashboard.com
cameras:
  Xuong:
    ffmpeg:
      inputs:
        - path: rtsp://admin:133@192.168.1.36:554/cam/realmonitor?channel=5&subtype=1
          roles:
            - detect
    width: 704
    height: 576
    fps: 15
    snapshots:
      enabled: True
      bounding_box: True

  SX:
    ffmpeg:
      inputs:
        - path: rtsp://admin:123@192.168.1.36:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
    width: 704
    height: 576
    fps: 15
    snapshots:
      enabled: True
      bounding_box: True

detectors:
  coral:
    type: edgetpu

Frigate container logs

frigate.edgetpu                INFO    : No EdgeTPU detected.
Process detector:coral:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 152, in load_delegate
    delegate = Delegate(library, options)
  File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 111, 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.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/frigate/frigate/edgetpu.py", line 124, in run_detector
    object_detector = LocalObjectDetector(tf_device=tf_device, num_threads=num_threads)
  File "/opt/frigate/frigate/edgetpu.py", line 63, in __init__
    edge_tpu_delegate = load_delegate('libedgetpu.so.1.0', device_config)
  File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 154, in load_delegate
    raise ValueError('Failed to load delegate from {}\n{}'.format(
ValueError: Failed to load delegate from libedgetpu.so.1.0

Frigate stats

Output from frigate's /api/stats endpoint

FFprobe from your camera

Run the following command and paste output below

ffprobe <stream_url>

Screenshots If applicable, add screenshots to help explain your problem.

Computer Hardware

  • OS: Mendel
  • Install method: Docker Command
  • Virtualization:
  • Coral Version: Coral Board
  • Network Setup: Wired

Camera Info:

  • Manufacturer: Dahua
  • Model: IPC-HDW5231R-ZE
  • Resolution: 706
  • FPS: 15

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
vienkmtcommented, Sep 6, 2021

Updated It worked by this way https://github.com/blakeblackshear/frigate/issues/1434#issuecomment-886249488 cmd docker run -d --name frigate --restart=unless-stopped --mount type=tmpfs,target=/tmp/cache,tmpfs-size=1000000000 --device /dev/apex_0:/dev/apex_0 -v /home/coral/fr:/frigate:ro -v /home/mendel/fr/config.yml:/config/config.yml:ro -v /etc/localtime:/etc/localtime:ro -p 5000:5000 -p 1935:1935 blakeblackshear/frigate:stable-aarch64

config yml

detectors:
  coral:
    type: edgetpu
    device: ''
0reactions
ozettcommented, Nov 7, 2021

still trying to increase memory on the coral-dev board.
maybe memory limit on the dev-board is causing nginx-error ?? hoping to catch this without the help of others… but as a blind-man in the dark:

root@elusive-calf:/usr/src# ipcs -l

------ Messages Limits --------
max queues system wide = 32000
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 18014398509465599
max total shared memory (kbytes) = 18014398509481980
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 32000
max semaphores per array = 32000
max semaphores system wide = 1024000000
max ops per semop call = 500
semaphore max value = 32767

this works:

root@elusive-calf:/usr/src# docker run  docker.io/nginx:1.15.8
Unable to find image 'nginx:1.15.8' locally
1.15.8: Pulling from library/nginx
42367302fc78: Pull complete
a9cb25c539ce: Pull complete
07dff5c0fced: Pull complete
Digest: sha256:dd2d0ac3fff2f007d99e033b64854be0941e19a2ad51f174d9240dda20d9f534
Status: Downloaded newer image for nginx:1.15.8
Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Coral Edge TPU: RuntimeError - Super User
I have met the first error "RuntimeError: Failed to allocate tensors" when I run the classify_image in coral dev board. The problem I...
Read more >
Coral Dev Board - edgetpu_demo: command not found
The edgetpu_demo command does not work because the Edge TPU API is deprecated. The Get started with the Dev Board guide is out...
Read more >
Google Coral Edge TPU Incompatible with Raspbian Buster
People always get variations of the "No module found" errors. Raspbian Buster comes with 2.7/3.7. So far I can only get the Coral...
Read more >
Run inference on the Edge TPU with Python - Coral.ai
To get started, all you need to do is the following: Install the PyCoral API. On Linux, you can install it with a...
Read more >
install.sh - edgetpu - Git at Google
you may not use this file except in compliance with the License. ... warn "Looks like you're using a Coral Dev Board. ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found