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

See original GitHub issue

Describe the bug Google Coral is not being detected. No EdgeTPU error pccurs when using the following config for my USB coral. My coral is plugged in and my rtsp link works, but the coral is not being recognized.

detectors:
  coral:
    type: edgetpu
    device: usb

Version of frigate 1.13

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

# frigate.yml
detectors:
  coral:
    type: edgetpu
    device: usb
mqtt:
  host: secret
  user: secret
  password: secret
cameras:
  front_door:
    ffmpeg:
      inputs:
        - path: secret
          roles:
            - detect
            - rtmp
    objects:
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - dog
        - cat
    width: 2560
    height: 1920
    fps: 4

Frigate container logs

 * Starting nginx nginx
   ...done.
frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
peewee_migrate                 INFO    : There is nothing to migrate
frigate.mqtt                   INFO    : MQTT connected
frigate.app                    INFO    : Camera processor started for front_door: 40
detector.coral                 INFO    : Starting detection process: 38
frigate.app                    INFO    : Capture process started for front_door: 42
frigate.edgetpu                INFO    : Attempting to load TPU as usb
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.watchdog               INFO    : Detection appears to have stopped. Exiting frigate...
frigate.app                    INFO    : Stopping...
frigate.object_processing      INFO    : Exiting object processor...
frigate.events                 INFO    : Exiting event cleanup...
frigate.record                 INFO    : Exiting recording maintenance...
frigate.events                 INFO    : Exiting event processor...
frigate.watchdog               INFO    : Exiting watchdog...
frigate.stats                  INFO    : Exiting watchdog...
peewee.sqliteq                 INFO    : writer received shutdown request, exiting.
root                           INFO    : Waiting for detection process to exit gracefully...

Frigate stats

I don't know how to do this

FFprobe from your camera

Run the following command and paste output below

the rtsp stream is functional

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

Computer Hardware

  • OS: Home Assistant
  • Install method: Addon
  • Virtualization: None
  • Coral Version: USB
  • Network Setup: Wireless

Camera Info:

  • Manufacturer: Reolink
  • Model: 511W
  • Resolution: 2560x1920
  • FPS: 5

Additional context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
maxi1134commented, Sep 9, 2022

Here is my current file:

  frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    restart: unless-stopped
    shm_size: '4048M'
    image: blakeblackshear/frigate:stable-amd64nvidia
    runtime: nvidia
    network_mode: host
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /home/maxi1134/docker/frigate/config.yml:/config/config.yml:ro
      - /home/maxi1134/docker/frigate/database:/config/database
      - /media/frigate:/media/frigate
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 10000000000
   # ports:
   #   - '5000:5000'
   #   - '1935:1935' # RTMP feeds
    environment:
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=compute,utility,video
0reactions
maxi1134commented, Sep 9, 2022

I’ll do when I have time, I have bigger fishes to fix right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No EdgeTPU was detected. · Discussion #2599 - GitHub
I'm running Frigate as a HassOS addon, running as an ESXi VM on VMWare ESXi 6.7. In ESXi the Coral USB shows up...
Read more >
Frigate - No EdgeTPU was detected - Third party integrations
I'm running Frigate as a HassOS addon, running as an ESXi VM on VMWare ESXi 6.7. In ESXi the Coral USB shows up...
Read more >
Coral Pcie not detected in docker : r/unRAID - Reddit
edgetpu ERROR : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors. Traceback (most...
Read more >
Detectors - Frigate Docs
Frigate supports edgetpu and cpu as detector types. ... Note: There is no support for Nvidia GPUs to perform object detection with tensorflow....
Read more >
edgetpu.detection.engine - Coral.ai
An inference engine that performs object detection. ... If False, resize and reshape the image (without cropping) to match the input tensor's dimensions....
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