blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
19.46k stars 1.79k forks source link

[Detector Support]: Google Coral USB TPU get stuck #7427

Closed mr-manuel closed 1 year ago

mr-manuel commented 1 year ago

Describe the problem you are having

After 1-2 hours Frigate was running fine with the TPU it get stuck and is not accessible anymore by Frigate and the host OS. The white LED on the Google Coral USB TPU keeps flashing.

I'm using Frigate on a Ubuntu 20.04 VM onVMware vSphere 7.0 U3n (ESXi-7.0U3n) on a Intel NUC10 i7. I know there are some problems with passing the USB device, but if I'm running a stress test it runs fine for several hours (did not test more then 24 hours). I used Google Coral CTS to test with the maximum frequency of the TPU.

Is there a way to run the TPU with Frigate with the normal frequency only to test?

Right now I'm searching for a possibility to test the Google Coral USB TPU in a Docker container to see, if the problem indeed persists only with Frigate.

Version

0.12.1-367d724

Frigate config file

mqtt:
  host: mosquitto
  port: 1883
  stats_interval: 15

detectors:
  coral:
    type: edgetpu
    device: usb

database:
  path: /database/frigate.db

logger:
  default: info
  logs:
    frigate.mqtt: error

birdseye:
  enabled: true
  width: 2250
  height: 1150
  quality: 8
  mode: objects

detect:
  fps: 8
  enabled: true
  max_disappeared: 25
  stationary:
    interval: 0
    threshold: 50
    max_frames:
      default: 3000
      objects:
        person: 1000

objects:
  filters:
    person:
      min_area: 0
      max_area: 24000000
      min_score: 0.5
      threshold: 0.7

motion:
  threshold: 25
  contour_area: 30
  delta_alpha: 0.2
  frame_alpha: 0.2
  frame_height: 50
  improve_contrast: false
  mqtt_off_delay: 30

record:
  enabled: true
  expire_interval: 60
  retain:
    days: 2
    mode: all
  events:
    pre_capture: 5
    post_capture: 5
    retain:
      default: 7
      mode: motion
      objects:
        person: 14

snapshots:
  enabled: true
  timestamp: false
  bounding_box: false
  crop: true
  retain:
    default: 7
    objects:
      person: 14

rtmp:
  enabled: false

live:
  height: 1120
  quality: 8

cameras:

  Driveway:
    enabled: true
    ffmpeg:
      inputs:
        - path: rtsp://192.168.1.80:554/1
          roles:
            - detect
            - record
    detect:
      width: 2560
      height: 1920
    best_image_timeout: 60
    record:
      enabled: true
    mqtt:
      enabled: true
      timestamp: true
      bounding_box: true
      crop: true
      quality: 70
    objects:
      track:
        - person
        - bird
        - cat
        - dog
    ui:
      order: 0
      dashboard: true

  Porch:
    enabled: true
    ffmpeg:
      inputs:
        - path: rtsp://192.168.1.81:554/stream
          roles:
            - detect
            - record
    detect:
      width: 3840
      height: 2144
    best_image_timeout: 60
    record:
      enabled: true
    mqtt:
      enabled: true
      timestamp: true
      bounding_box: true
      crop: true
      quality: 70
    objects:
      track:
        - person
        - bicycle
        - car
        - motorcycle
        - bird
        - cat
        - dog
      filters:
        person:
          mask: 3334,1191,3471,1503,3581,1862,3840,1655,3840,0,0,0,0,2144,889,2144,1046,1579,1408,1410,1584,818,2266,675,2271,433,2794,380,3153,858
    ui:
      order: 1
      dashboard: true

Relevant log output

2023-08-08T19:26:11.398324926Z s6-rc: info: service s6rc-oneshot-runner successfully stopped
2023-08-08T19:26:16.232468811Z s6-rc: info: service s6rc-fdholder: starting
2023-08-08T19:26:16.232556718Z s6-rc: info: service s6rc-oneshot-runner: starting
2023-08-08T19:26:16.234264330Z s6-rc: info: service s6rc-oneshot-runner successfully started
2023-08-08T19:26:16.234336742Z s6-rc: info: service fix-attrs: starting
2023-08-08T19:26:16.235299703Z s6-rc: info: service s6rc-fdholder successfully started
2023-08-08T19:26:16.237166431Z s6-rc: info: service fix-attrs successfully started
2023-08-08T19:26:16.237239336Z s6-rc: info: service legacy-cont-init: starting
2023-08-08T19:26:16.239983559Z s6-rc: info: service legacy-cont-init successfully started
2023-08-08T19:26:16.240042360Z s6-rc: info: service log-prepare: starting
2023-08-08T19:26:16.245096364Z s6-rc: info: service log-prepare successfully started
2023-08-08T19:26:16.245189845Z s6-rc: info: service nginx-log: starting
2023-08-08T19:26:16.245322489Z s6-rc: info: service go2rtc-log: starting
2023-08-08T19:26:16.245412812Z s6-rc: info: service frigate-log: starting
2023-08-08T19:26:16.246739288Z s6-rc: info: service nginx-log successfully started
2023-08-08T19:26:16.246922627Z s6-rc: info: service go2rtc-log successfully started
2023-08-08T19:26:16.247271726Z s6-rc: info: service go2rtc: starting
2023-08-08T19:26:16.247368392Z s6-rc: info: service frigate-log successfully started
2023-08-08T19:26:16.249186123Z s6-rc: info: service go2rtc successfully started
2023-08-08T19:26:16.250161371Z s6-rc: info: service go2rtc-healthcheck: starting
2023-08-08T19:26:16.250530544Z s6-rc: info: service frigate: starting
2023-08-08T19:26:16.252498526Z s6-rc: info: service frigate successfully started
2023-08-08T19:26:16.253206739Z 2023-08-08 21:26:16.253114007  [INFO] Preparing go2rtc config...
2023-08-08T19:26:16.253477300Z s6-rc: info: service nginx: starting
2023-08-08T19:26:16.253612034Z s6-rc: info: service go2rtc-healthcheck successfully started
2023-08-08T19:26:16.254836575Z s6-rc: info: service nginx successfully started
2023-08-08T19:26:16.255620778Z 2023-08-08 21:26:16.255557409  [INFO] Starting Frigate...
2023-08-08T19:26:16.257294502Z 2023-08-08 21:26:16.257231895  [INFO] Starting NGINX...
2023-08-08T19:26:16.266347177Z s6-rc: info: service legacy-services: starting
2023-08-08T19:26:16.273970735Z s6-rc: info: service legacy-services successfully started
2023-08-08T19:26:16.460455602Z 2023-08-08 21:26:16.460366261  [INFO] Starting go2rtc...
2023-08-08T19:26:16.522202898Z 2023-08-08 21:26:16.522117437  21:26:16.521 INF go2rtc version 1.2.0 linux/amd64
2023-08-08T19:26:16.522221210Z 2023-08-08 21:26:16.522121478  21:26:16.521 INF [api] listen addr=:1984
2023-08-08T19:26:16.522223991Z 2023-08-08 21:26:16.522124097  21:26:16.521 INF [rtsp] listen addr=:8554
2023-08-08T19:26:16.522226042Z 2023-08-08 21:26:16.522125849  21:26:16.521 INF [srtp] listen addr=:8443
2023-08-08T19:26:16.522228152Z 2023-08-08 21:26:16.522127676  21:26:16.522 INF [webrtc] listen addr=:8555
2023-08-08T19:26:17.050196387Z 2023-08-08 21:26:17.050116025  [2023-08-08 21:26:17] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-08-08T19:26:17.112626656Z 2023-08-08 21:26:17.112542265  [2023-08-08 21:26:17] peewee_migrate                 INFO    : Starting migrations
2023-08-08T19:26:17.116275437Z 2023-08-08 21:26:17.116190546  [2023-08-08 21:26:17] peewee_migrate                 INFO    : There is nothing to migrate
2023-08-08T19:26:17.133583389Z 2023-08-08 21:26:17.133505705  [2023-08-08 21:26:17] detector.coral                 INFO    : Starting detection process: 290
2023-08-08T19:26:17.134668425Z 2023-08-08 21:26:17.134609797  [2023-08-08 21:26:17] frigate.app                    INFO    : Output process started: 292
2023-08-08T19:26:17.142387938Z 2023-08-08 21:26:17.142301604  [2023-08-08 21:26:17] frigate.app                    INFO    : Camera processor started for Driveway: 298
2023-08-08T19:26:17.146167985Z 2023-08-08 21:26:17.146094720  [2023-08-08 21:26:17] frigate.app                    INFO    : Camera processor started for Porch: 299
2023-08-08T19:26:17.159870343Z 2023-08-08 21:26:17.159792134  [2023-08-08 21:26:17] frigate.app                    INFO    : Capture process started for Driveway: 302
2023-08-08T19:26:17.161953913Z 2023-08-08 21:26:17.161892194  [2023-08-08 21:26:17] frigate.app                    INFO    : Capture process started for Porch: 306
2023-08-08T19:26:19.294283501Z 2023-08-08 21:26:19.294178483  [2023-08-08 21:26:17] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-08-08T19:26:19.297355014Z 2023-08-08 21:26:19.297292646  [2023-08-08 21:26:19] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-08-08T19:26:26.255498539Z 2023-08-08 21:26:26.255400171  [INFO] Starting go2rtc healthcheck service...
2023-08-08T19:46:11.529630349Z 2023-08-08 21:46:11.529548971  [2023-08-08 21:46:11] frigate.watchdog               INFO    : Detection appears to be stuck. Restarting detection process...
2023-08-08T19:46:11.529719932Z 2023-08-08 21:46:11.529673921  [2023-08-08 21:46:11] root                           INFO    : Waiting for detection process to exit gracefully...
2023-08-08T19:46:41.563507594Z 2023-08-08 21:46:41.563407563  [2023-08-08 21:46:41] root                           INFO    : Detection process didnt exit. Force killing...
2023-08-08T19:46:41.571970176Z 2023-08-08 21:46:41.571866970  [2023-08-08 21:46:41] root                           INFO    : Detection process has exited...
2023-08-08T19:46:41.585801744Z 2023-08-08 21:46:41.585702035  [2023-08-08 21:46:41] detector.coral                 INFO    : Starting detection process: 1054
2023-08-08T19:46:43.747632483Z 2023-08-08 21:46:43.747559580  [2023-08-08 21:46:41] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-08-08T19:46:43.750919177Z 2023-08-08 21:46:43.750832016  [2023-08-08 21:46:43] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-08-08T19:50:51.582836754Z 2023-08-08 21:50:51.582694145  [2023-08-08 21:50:51] frigate.watchdog               INFO    : Detection appears to be stuck. Restarting detection process...
2023-08-08T19:50:51.582865836Z 2023-08-08 21:50:51.582771548  [2023-08-08 21:50:51] root                           INFO    : Waiting for detection process to exit gracefully...
2023-08-08T19:51:21.613210206Z 2023-08-08 21:51:21.613135913  [2023-08-08 21:51:21] root                           INFO    : Detection process didnt exit. Force killing...
2023-08-08T19:51:21.642074496Z 2023-08-08 21:51:21.641975674  [2023-08-08 21:51:21] root                           INFO    : Detection process has exited...
2023-08-08T19:51:21.659843582Z 2023-08-08 21:51:21.659757364  [2023-08-08 21:51:21] detector.coral                 INFO    : Starting detection process: 1215
2023-08-08T19:51:23.878322170Z 2023-08-08 21:51:23.878131688  [2023-08-08 21:51:21] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-08-08T19:51:23.881975288Z 2023-08-08 21:51:23.881905049  [2023-08-08 21:51:23] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-08-08T19:51:29.891336117Z 2023-08-08 21:51:29.891249878  F driver/usb/usb_driver.cc:857] transfer on tag 2 failed. Abort. Deadline exceeded: USB transfer error 2 [LibUsbDataOutCallback]
2023-08-08T19:51:29.891361715Z 2023-08-08 21:51:29.891254777  Fatal Python error: Aborted
2023-08-08T19:51:29.891364583Z 2023-08-08 21:51:29.891260116
2023-08-08T19:51:29.891381851Z 2023-08-08 21:51:29.891315453  Thread 0x00007f65d21ec6c0 (most recent call first):
2023-08-08T19:51:29.891385048Z 2023-08-08 21:51:29.891317197    File "/usr/lib/python3.9/threading.py", line 312 in wait
2023-08-08T19:51:29.891387429Z 2023-08-08 21:51:29.891318444    File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
2023-08-08T19:51:29.891389466Z 2023-08-08 21:51:29.891320765    File "/usr/lib/python3.9/threading.py", line 892 in run
2023-08-08T19:51:29.891391554Z 2023-08-08 21:51:29.891322099    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-08-08T19:51:29.891397402Z 2023-08-08 21:51:29.891352705    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-08-08T19:51:29.891399710Z 2023-08-08 21:51:29.891353909
2023-08-08T19:51:29.891401585Z 2023-08-08 21:51:29.891355002  Thread 0x00007f65f6c376c0 (most recent call first):
2023-08-08T19:51:29.891413697Z 2023-08-08 21:51:29.891368054    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 833 in invoke
2023-08-08T19:51:29.891416114Z 2023-08-08 21:51:29.891382904    File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 56 in detect_raw
2023-08-08T19:51:29.891421424Z 2023-08-08 21:51:29.891395125    File "/opt/frigate/frigate/object_detection.py", line 71 in detect_raw
2023-08-08T19:51:29.891446661Z 2023-08-08 21:51:29.891428760    File "/opt/frigate/frigate/object_detection.py", line 121 in run_detector
2023-08-08T19:51:29.891487045Z 2023-08-08 21:51:29.891465593    File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
2023-08-08T19:51:29.891497654Z 2023-08-08 21:51:29.891467045    File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
2023-08-08T19:51:29.891560826Z 2023-08-08 21:51:29.891535117    File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
2023-08-08T19:51:29.891593833Z 2023-08-08 21:51:29.891573803    File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
2023-08-08T19:51:29.891598375Z 2023-08-08 21:51:29.891575331    File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
2023-08-08T19:51:29.891609426Z 2023-08-08 21:51:29.891589151    File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
2023-08-08T19:51:29.891626629Z 2023-08-08 21:51:29.891606672    File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
2023-08-08T19:51:29.891673581Z 2023-08-08 21:51:29.891643722    File "/opt/frigate/frigate/object_detection.py", line 179 in start_or_restart
2023-08-08T19:51:29.891677768Z 2023-08-08 21:51:29.891645734    File "/opt/frigate/frigate/watchdog.py", line 34 in run
2023-08-08T19:51:29.891702309Z 2023-08-08 21:51:29.891669893    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-08-08T19:51:29.891707954Z 2023-08-08 21:51:29.891671348    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-08-08T19:51:31.646717131Z 2023-08-08 21:51:31.646622635  [2023-08-08 21:51:31] frigate.watchdog               INFO    : Detection appears to have stopped. Exiting Frigate...
2023-08-08T19:51:31.649480918Z s6-rc: info: service legacy-services: stopping
2023-08-08T19:51:31.651242551Z s6-rc: info: service legacy-services successfully stopped
2023-08-08T19:51:31.651356613Z s6-rc: info: service nginx: stopping
2023-08-08T19:51:31.651491585Z s6-rc: info: service go2rtc-healthcheck: stopping
2023-08-08T19:51:31.661514298Z 2023-08-08 21:51:31.661438716  [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
2023-08-08T19:51:31.662052839Z s6-rc: info: service go2rtc-healthcheck successfully stopped
2023-08-08T19:51:31.706761210Z 2023-08-08 21:51:31.706681603  [INFO] Service NGINX exited with code 0 (by signal 0)
2023-08-08T19:51:31.707276594Z s6-rc: info: service nginx successfully stopped
2023-08-08T19:51:31.707397568Z s6-rc: info: service nginx-log: stopping
2023-08-08T19:51:31.707508041Z s6-rc: info: service frigate: stopping
2023-08-08T19:51:31.709308001Z 2023-08-08 21:51:31.709271413  [2023-08-08 21:51:31] frigate.app                    INFO    : Stopping...
2023-08-08T19:51:31.709698503Z s6-rc: info: service nginx-log successfully stopped
2023-08-08T19:51:31.709883872Z 2023-08-08 21:51:31.709851483  [2023-08-08 21:51:31] frigate.events                 INFO    : Exiting event cleanup...
2023-08-08T19:51:31.710289914Z 2023-08-08 21:51:31.710257351  [2023-08-08 21:51:31] frigate.stats                  INFO    : Exiting stats emitter...
2023-08-08T19:51:31.710990870Z 2023-08-08 21:51:31.710954694  [2023-08-08 21:51:31] frigate.record                 INFO    : Exiting recording cleanup...
2023-08-08T19:51:31.711165964Z 2023-08-08 21:51:31.711135332  [2023-08-08 21:51:31] frigate.storage                INFO    : Exiting storage maintainer...
2023-08-08T19:51:31.715214733Z 2023-08-08 21:51:31.715153832  [2023-08-08 21:51:31] frigate.watchdog               INFO    : Exiting watchdog...
2023-08-08T19:51:31.734867391Z 2023-08-08 21:51:31.734792612  [2023-08-08 21:51:31] frigate.object_processing      INFO    : Exiting object processor...
2023-08-08T19:51:31.776953013Z 2023-08-08 21:51:31.776868814  [2023-08-08 21:51:31] frigate.record                 INFO    : Exiting recording maintenance...
2023-08-08T19:51:31.885633946Z 2023-08-08 21:51:31.885551511  [2023-08-08 21:51:31] frigate.comms.ws               INFO    : Exiting websocket client...
2023-08-08T19:51:32.325900838Z 2023-08-08 21:51:32.325779768  [2023-08-08 21:51:32] frigate.events                 INFO    : Exiting event processor...
2023-08-08T19:51:32.326797641Z 2023-08-08 21:51:32.326752383  [2023-08-08 21:51:32] peewee.sqliteq                 INFO    : writer received shutdown request, exiting.
2023-08-08T19:51:32.329245574Z 2023-08-08 21:51:32.329209400  [2023-08-08 21:51:32] watchdog.Porch              INFO    : Terminating the existing ffmpeg process...
2023-08-08T19:51:32.329356186Z 2023-08-08 21:51:32.329318470  [2023-08-08 21:51:32] watchdog.Driveway                INFO    : Terminating the existing ffmpeg process...
2023-08-08T19:51:32.329519962Z 2023-08-08 21:51:32.329483539  [2023-08-08 21:51:32] watchdog.Driveway                INFO    : Waiting for ffmpeg to exit gracefully...
2023-08-08T19:51:32.329561306Z 2023-08-08 21:51:32.329529927  [2023-08-08 21:51:32] watchdog.Porch              INFO    : Waiting for ffmpeg to exit gracefully...
2023-08-08T19:51:32.414733774Z 2023-08-08 21:51:32.414665314  [2023-08-08 21:51:32] frigate.video                  INFO    : Driveway: exiting subprocess
2023-08-08T19:51:33.005361518Z 2023-08-08 21:51:33.005267111  [2023-08-08 21:51:33] frigate.output                 INFO    : exiting output process...
2023-08-08T19:51:36.865146216Z 2023-08-08 21:51:36.865071250  /usr/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 23 leaked shared_memory objects to clean up at shutdown
2023-08-08T19:51:36.865166195Z 2023-08-08 21:51:36.865074987    warnings.warn('resource_tracker: There appear to be %d '
2023-08-08T19:51:36.867730139Z 2023-08-08 21:51:36.867433364  [INFO] Service Frigate exited with code 0 (by signal 0)
2023-08-08T19:51:36.868717129Z s6-rc: info: service frigate successfully stopped
2023-08-08T19:51:36.868828592Z s6-rc: info: service go2rtc: stopping
2023-08-08T19:51:36.868942804Z s6-rc: info: service frigate-log: stopping
2023-08-08T19:51:36.869792802Z 2023-08-08 21:51:36.869756603  exit OK
2023-08-08T19:51:36.871624019Z s6-rc: info: service frigate-log successfully stopped
2023-08-08T19:51:36.873195860Z 2023-08-08 21:51:36.873149657  [INFO] The go2rtc service exited with code 0 (by signal 0)
2023-08-08T19:51:36.873654686Z s6-rc: info: service go2rtc successfully stopped
2023-08-08T19:51:36.873726438Z s6-rc: info: service go2rtc-log: stopping
2023-08-08T19:51:36.875158974Z s6-rc: info: service go2rtc-log successfully stopped
2023-08-08T19:51:36.875277102Z s6-rc: info: service log-prepare: stopping
2023-08-08T19:51:36.875435827Z s6-rc: info: service s6rc-fdholder: stopping
2023-08-08T19:51:36.876065973Z s6-rc: info: service log-prepare successfully stopped
2023-08-08T19:51:36.876166708Z s6-rc: info: service legacy-cont-init: stopping
2023-08-08T19:51:36.877155054Z s6-rc: info: service s6rc-fdholder successfully stopped
2023-08-08T19:51:36.880573651Z s6-rc: info: service legacy-cont-init successfully stopped
2023-08-08T19:51:36.880646144Z s6-rc: info: service fix-attrs: stopping
2023-08-08T19:51:36.881461444Z s6-rc: info: service fix-attrs successfully stopped
2023-08-08T19:51:36.881548719Z s6-rc: info: service s6rc-oneshot-runner: stopping
2023-08-08T19:51:36.883071864Z s6-rc: info: service s6rc-oneshot-runner successfully stopped
2023-08-08T19:51:41.672889580Z s6-rc: info: service s6rc-fdholder: starting
2023-08-08T19:51:41.672996682Z s6-rc: info: service s6rc-oneshot-runner: starting
2023-08-08T19:51:41.674442953Z s6-rc: info: service s6rc-oneshot-runner successfully started
2023-08-08T19:51:41.674583259Z s6-rc: info: service fix-attrs: starting
2023-08-08T19:51:41.675584824Z s6-rc: info: service s6rc-fdholder successfully started
2023-08-08T19:51:41.677476084Z s6-rc: info: service fix-attrs successfully started
2023-08-08T19:51:41.677584499Z s6-rc: info: service legacy-cont-init: starting
2023-08-08T19:51:41.681284603Z s6-rc: info: service legacy-cont-init successfully started
2023-08-08T19:51:41.681352874Z s6-rc: info: service log-prepare: starting
2023-08-08T19:51:41.686109629Z s6-rc: info: service log-prepare successfully started
2023-08-08T19:51:41.686221551Z s6-rc: info: service nginx-log: starting
2023-08-08T19:51:41.686295427Z s6-rc: info: service go2rtc-log: starting
2023-08-08T19:51:41.686399654Z s6-rc: info: service frigate-log: starting
2023-08-08T19:51:41.687592340Z s6-rc: info: service go2rtc-log successfully started
2023-08-08T19:51:41.687814460Z s6-rc: info: service go2rtc: starting
2023-08-08T19:51:41.687951901Z s6-rc: info: service nginx-log successfully started
2023-08-08T19:51:41.688132985Z s6-rc: info: service frigate-log successfully started
2023-08-08T19:51:41.689148724Z s6-rc: info: service go2rtc successfully started
2023-08-08T19:51:41.689269413Z s6-rc: info: service go2rtc-healthcheck: starting
2023-08-08T19:51:41.689500499Z s6-rc: info: service frigate: starting
2023-08-08T19:51:41.690676182Z s6-rc: info: service frigate successfully started
2023-08-08T19:51:41.690834857Z s6-rc: info: service nginx: starting
2023-08-08T19:51:41.692224739Z s6-rc: info: service nginx successfully started
2023-08-08T19:51:41.693254873Z s6-rc: info: service go2rtc-healthcheck successfully started
2023-08-08T19:51:41.693677171Z s6-rc: info: service legacy-services: starting
2023-08-08T19:51:41.694297123Z 2023-08-08 21:51:41.694233359  [INFO] Preparing go2rtc config...
2023-08-08T19:51:41.696238723Z 2023-08-08 21:51:41.696178629  [INFO] Starting NGINX...
2023-08-08T19:51:41.696947036Z 2023-08-08 21:51:41.696888131  [INFO] Starting Frigate...
2023-08-08T19:51:41.705911397Z s6-rc: info: service legacy-services successfully started
2023-08-08T19:51:41.935535425Z 2023-08-08 21:51:41.935298543  [INFO] Starting go2rtc...
2023-08-08T19:51:42.013550624Z 2023-08-08 21:51:42.013441769  21:51:42.013 INF go2rtc version 1.2.0 linux/amd64
2023-08-08T19:51:42.013707285Z 2023-08-08 21:51:42.013675315  21:51:42.013 INF [api] listen addr=:1984
2023-08-08T19:51:42.013848571Z 2023-08-08 21:51:42.013823400  21:51:42.013 INF [rtsp] listen addr=:8554
2023-08-08T19:51:42.013996797Z 2023-08-08 21:51:42.013970276  21:51:42.013 INF [srtp] listen addr=:8443
2023-08-08T19:51:42.014287633Z 2023-08-08 21:51:42.014257132  21:51:42.014 INF [webrtc] listen addr=:8555
2023-08-08T19:51:42.607462451Z 2023-08-08 21:51:42.607388145  [2023-08-08 21:51:42] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-08-08T19:51:42.670994380Z 2023-08-08 21:51:42.670911739  [2023-08-08 21:51:42] peewee_migrate                 INFO    : Starting migrations
2023-08-08T19:51:42.675395184Z 2023-08-08 21:51:42.674866125  [2023-08-08 21:51:42] peewee_migrate                 INFO    : There is nothing to migrate
2023-08-08T19:51:42.690443736Z 2023-08-08 21:51:42.690358139  [2023-08-08 21:51:42] detector.coral                 INFO    : Starting detection process: 290
2023-08-08T19:51:42.694330678Z 2023-08-08 21:51:42.694270906  [2023-08-08 21:51:42] frigate.app                    INFO    : Output process started: 292
2023-08-08T19:51:42.703860066Z 2023-08-08 21:51:42.703788185  [2023-08-08 21:51:42] frigate.app                    INFO    : Camera processor started for Driveway: 298
2023-08-08T19:51:42.707726440Z 2023-08-08 21:51:42.707648019  [2023-08-08 21:51:42] frigate.app                    INFO    : Camera processor started for Porch: 299
2023-08-08T19:51:42.720718547Z 2023-08-08 21:51:42.720035582  [2023-08-08 21:51:42] frigate.app                    INFO    : Capture process started for Driveway: 303
2023-08-08T19:51:42.724409940Z 2023-08-08 21:51:42.724351430  [2023-08-08 21:51:42] frigate.app                    INFO    : Capture process started for Porch: 307
2023-08-08T19:51:54.001936278Z 2023-08-08 21:51:53.994074751  [INFO] Starting go2rtc healthcheck service...
2023-08-08T19:51:54.016892564Z 2023-08-08 21:51:54.015824209  [2023-08-08 21:51:42] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-08-08T19:51:54.032405269Z 2023-08-08 21:51:54.032218089  Process detector:coral:
2023-08-08T19:51:54.032909015Z 2023-08-08 21:51:54.032459713  [2023-08-08 21:51:54] frigate.detectors.plugins.edgetpu_tfl ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
2023-08-08T19:51:54.039630016Z 2023-08-08 21:51:54.039429088  Traceback (most recent call last):
2023-08-08T19:51:54.039656037Z 2023-08-08 21:51:54.039432828    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2023-08-08T19:51:54.039659019Z 2023-08-08 21:51:54.039434217      delegate = Delegate(library, options)
2023-08-08T19:51:54.039661121Z 2023-08-08 21:51:54.039435585    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
2023-08-08T19:51:54.039677754Z 2023-08-08 21:51:54.039437526      raise ValueError(capture.message)
2023-08-08T19:51:54.039680571Z 2023-08-08 21:51:54.039463978  ValueError
2023-08-08T19:51:54.039682599Z 2023-08-08 21:51:54.039465177
2023-08-08T19:51:54.039694443Z 2023-08-08 21:51:54.039466480  During handling of the above exception, another exception occurred:
2023-08-08T19:51:54.039696811Z 2023-08-08 21:51:54.039467973
2023-08-08T19:51:54.039698755Z 2023-08-08 21:51:54.039469052  Traceback (most recent call last):
2023-08-08T19:51:54.039700673Z 2023-08-08 21:51:54.039470299    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2023-08-08T19:51:54.039702745Z 2023-08-08 21:51:54.039471342      self.run()
2023-08-08T19:51:54.039704650Z 2023-08-08 21:51:54.039472569    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2023-08-08T19:51:54.039706768Z 2023-08-08 21:51:54.039496796      self._target(*self._args, **self._kwargs)
2023-08-08T19:51:54.039708777Z 2023-08-08 21:51:54.039498314    File "/opt/frigate/frigate/object_detection.py", line 98, in run_detector
2023-08-08T19:51:54.039710891Z 2023-08-08 21:51:54.039500085      object_detector = LocalObjectDetector(detector_config=detector_config)
2023-08-08T19:51:54.039712897Z 2023-08-08 21:51:54.039501237    File "/opt/frigate/frigate/object_detection.py", line 52, in __init__
2023-08-08T19:51:54.039714964Z 2023-08-08 21:51:54.039514896      self.detect_api = create_detector(detector_config)
2023-08-08T19:51:54.039716953Z 2023-08-08 21:51:54.039516196    File "/opt/frigate/frigate/detectors/__init__.py", line 24, in create_detector
2023-08-08T19:51:54.039718984Z 2023-08-08 21:51:54.039517356      return api(detector_config)
2023-08-08T19:51:54.039720871Z 2023-08-08 21:51:54.039518598    File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 37, in __init__
2023-08-08T19:51:54.039722895Z 2023-08-08 21:51:54.039519774      edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2023-08-08T19:51:54.039725014Z 2023-08-08 21:51:54.039531540    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2023-08-08T19:51:54.039728211Z 2023-08-08 21:51:54.039532785      raise ValueError('Failed to load delegate from {}\n{}'.format(
2023-08-08T19:51:54.039730351Z 2023-08-08 21:51:54.039533900  ValueError: Failed to load delegate from libedgetpu.so.1.0
2023-08-08T19:51:54.039732389Z 2023-08-08 21:51:54.039534942
2023-08-08T19:51:55.681705197Z 2023-08-08 21:51:55.681617620  [2023-08-08 21:51:55] frigate.video                  ERROR   : Porch: Unable to read frames from ffmpeg process.
2023-08-08T19:51:55.681775113Z 2023-08-08 21:51:55.681736109  [2023-08-08 21:51:55] frigate.video                  ERROR   : Porch: ffmpeg process is not running. exiting capture thread...
2023-08-08T19:52:04.000764690Z 2023-08-08 21:52:04.000696563  [2023-08-08 21:52:03] watchdog.Porch              ERROR   : Ffmpeg process crashed unexpectedly for Porch.
2023-08-08T19:52:04.000794233Z 2023-08-08 21:52:04.000717578  [2023-08-08 21:52:03] watchdog.Porch              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-08T19:52:04.001314149Z 2023-08-08 21:52:04.001254506  [2023-08-08 21:52:03] ffmpeg.Porch.detect         ERROR   : [segment @ 0x563c7d8e1380] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-08-08T19:52:04.001325828Z 2023-08-08 21:52:04.001258192  [2023-08-08 21:52:03] ffmpeg.Porch.detect         ERROR   : [segment @ 0x563c7d8e1380] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
2023-08-08T19:52:04.001328715Z 2023-08-08 21:52:04.001260199  [2023-08-08 21:52:03] ffmpeg.Porch.detect         ERROR   : [h264 @ 0x563c7d4b1fc0] error while decoding MB 119 103, bytestream -5
2023-08-08T19:52:04.001330852Z 2023-08-08 21:52:04.001261858  [2023-08-08 21:52:03] ffmpeg.Porch.detect         ERROR   : rtsp://192.168.1.81:554/stream0: corrupt decoded frame in stream 0
2023-08-08T19:52:14.338434187Z 2023-08-08 21:52:14.338336692  [2023-08-08 21:52:14] frigate.watchdog               INFO    : Detection appears to have stopped. Exiting Frigate...
2023-08-08T19:52:14.340219055Z s6-rc: info: service legacy-services: stopping
2023-08-08T19:52:14.341706532Z s6-rc: info: service legacy-services successfully stopped
2023-08-08T19:52:14.341772475Z s6-rc: info: service nginx: stopping
2023-08-08T19:52:14.341857736Z s6-rc: info: service go2rtc-healthcheck: stopping
2023-08-08T19:52:14.347537743Z 2023-08-08 21:52:14.347462245  [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
2023-08-08T19:52:14.347967754Z s6-rc: info: service go2rtc-healthcheck successfully stopped
2023-08-08T19:52:14.409116869Z 2023-08-08 21:52:14.409040856  [INFO] Service NGINX exited with code 0 (by signal 0)
2023-08-08T19:52:14.409553451Z s6-rc: info: service nginx successfully stopped
2023-08-08T19:52:14.409646289Z s6-rc: info: service nginx-log: stopping
2023-08-08T19:52:14.409742483Z s6-rc: info: service frigate: stopping
2023-08-08T19:52:14.410920558Z 2023-08-08 21:52:14.410872888  [2023-08-08 21:52:14] frigate.app                    INFO    : Stopping...
2023-08-08T19:52:14.411434097Z 2023-08-08 21:52:14.411393848  [2023-08-08 21:52:14] frigate.events                 INFO    : Exiting event cleanup...
2023-08-08T19:52:14.411722138Z 2023-08-08 21:52:14.411665785  [2023-08-08 21:52:14] frigate.record                 INFO    : Exiting recording cleanup...
2023-08-08T19:52:14.411924283Z s6-rc: info: service nginx-log successfully stopped
2023-08-08T19:52:14.415189254Z 2023-08-08 21:52:14.415100010  [2023-08-08 21:52:14] frigate.record                 INFO    : Exiting recording maintenance...
2023-08-08T19:52:14.415211310Z 2023-08-08 21:52:14.415103787  [2023-08-08 21:52:14] frigate.storage                INFO    : Exiting storage maintainer...
2023-08-08T19:52:14.415223979Z 2023-08-08 21:52:14.415105119  [2023-08-08 21:52:14] frigate.watchdog               INFO    : Exiting watchdog...
2023-08-08T19:52:14.415227446Z 2023-08-08 21:52:14.415106405  [2023-08-08 21:52:14] frigate.stats                  INFO    : Exiting stats emitter...
2023-08-08T19:52:14.415230357Z 2023-08-08 21:52:14.415107597  [2023-08-08 21:52:14] frigate.object_processing      INFO    : Exiting object processor...
2023-08-08T19:52:14.512588765Z 2023-08-08 21:52:14.512509567  [2023-08-08 21:52:14] frigate.comms.ws               INFO    : Exiting websocket client...
2023-08-08T19:52:15.268536388Z 2023-08-08 21:52:15.268454732  [2023-08-08 21:52:15] frigate.events                 INFO    : Exiting event processor...
2023-08-08T19:52:15.269503710Z 2023-08-08 21:52:15.269441258  [2023-08-08 21:52:15] peewee.sqliteq                 INFO    : writer received shutdown request, exiting.
2023-08-08T19:52:15.271264355Z 2023-08-08 21:52:15.271212105  [2023-08-08 21:52:15] watchdog.Porch              INFO    : Terminating the existing ffmpeg process...
2023-08-08T19:52:15.271333217Z 2023-08-08 21:52:15.271306059  [2023-08-08 21:52:15] watchdog.Porch              INFO    : Waiting for ffmpeg to exit gracefully...
2023-08-08T19:52:15.277011771Z 2023-08-08 21:52:15.276950055  [2023-08-08 21:52:15] watchdog.Driveway                INFO    : Terminating the existing ffmpeg process...
2023-08-08T19:52:15.277193172Z 2023-08-08 21:52:15.277157638  [2023-08-08 21:52:15] watchdog.Driveway                INFO    : Waiting for ffmpeg to exit gracefully...
2023-08-08T19:52:16.031767655Z 2023-08-08 21:52:16.031691165  [2023-08-08 21:52:16] frigate.output                 INFO    : exiting output process...
2023-08-08T19:52:19.545673956Z 2023-08-08 21:52:19.545581876  /usr/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 25 leaked shared_memory objects to clean up at shutdown
2023-08-08T19:52:19.545698151Z 2023-08-08 21:52:19.545585186    warnings.warn('resource_tracker: There appear to be %d '
2023-08-08T19:52:19.549241585Z 2023-08-08 21:52:19.549187083  [INFO] Service Frigate exited with code 0 (by signal 0)
2023-08-08T19:52:19.549942960Z s6-rc: info: service frigate successfully stopped
2023-08-08T19:52:19.550033157Z s6-rc: info: service go2rtc: stopping
2023-08-08T19:52:19.550107330Z s6-rc: info: service frigate-log: stopping
2023-08-08T19:52:19.550640833Z 2023-08-08 21:52:19.550570839  exit OK
2023-08-08T19:52:19.551881533Z s6-rc: info: service frigate-log successfully stopped
2023-08-08T19:52:19.553739590Z 2023-08-08 21:52:19.553676422  [INFO] The go2rtc service exited with code 0 (by signal 0)
2023-08-08T19:52:19.554018216Z s6-rc: info: service go2rtc successfully stopped
2023-08-08T19:52:19.554072582Z s6-rc: info: service go2rtc-log: stopping
2023-08-08T19:52:19.555302249Z s6-rc: info: service go2rtc-log successfully stopped
2023-08-08T19:52:19.555386461Z s6-rc: info: service log-prepare: stopping
2023-08-08T19:52:19.555438453Z s6-rc: info: service s6rc-fdholder: stopping
2023-08-08T19:52:19.556222393Z s6-rc: info: service log-prepare successfully stopped
2023-08-08T19:52:19.556344533Z s6-rc: info: service legacy-cont-init: stopping
2023-08-08T19:52:19.556976022Z s6-rc: info: service s6rc-fdholder successfully stopped
2023-08-08T19:52:19.559903298Z s6-rc: info: service legacy-cont-init successfully stopped
2023-08-08T19:52:19.559955952Z s6-rc: info: service fix-attrs: stopping
2023-08-08T19:52:19.560713811Z s6-rc: info: service fix-attrs successfully stopped
2023-08-08T19:52:19.560788491Z s6-rc: info: service s6rc-oneshot-runner: stopping
2023-08-08T19:52:19.562026918Z s6-rc: info: service s6rc-oneshot-runner successfully stopped

FFprobe output from your camera

# Driveway
root@45e16b4ee2f3:/opt/frigate# ffprobe rtsp://192.168.1.80:554/11
ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, rtsp, from 'rtsp://192.168.1.80:554/11':
  Metadata:
    title           : 10
  Duration: N/A, start: 0.160000, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 2560x1920, 12.50 tbr, 90k tbn

# Porch
root@45e16b4ee2f3:/opt/frigate# ffprobe rtsp://192.168.1.81:554/stream0
ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, rtsp, from 'rtsp://192.168.1.81:554/stream0':
  Metadata:
    title           : RTSP/RTP stream from anjvision ipcamera
  Duration: N/A, start: 0.126000, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuv420p(progressive), 3840x2144, 8 fps, 8 tbr, 90k tbn

Frigate stats

{
    "Gitter": {
        "camera_fps": 8.1,
        "capture_pid": 227,
        "detection_enabled": 1,
        "detection_fps": 7.5,
        "ffmpeg_pid": 237,
        "pid": 220,
        "process_fps": 8.1,
        "skipped_fps": 0
    },
    "Haustuer": {
        "camera_fps": 8,
        "capture_pid": 229,
        "detection_enabled": 1,
        "detection_fps": 10.6,
        "ffmpeg_pid": 247,
        "pid": 221,
        "process_fps": 8,
        "skipped_fps": 0
    },
    "X-Gitter-Zoom": {
        "camera_fps": 8.1,
        "capture_pid": 232,
        "detection_enabled": 0,
        "detection_fps": 0,
        "ffmpeg_pid": 245,
        "pid": 222,
        "process_fps": 8.1,
        "skipped_fps": 0
    },
    "X-Haustuer-Zoom": {
        "camera_fps": 8,
        "capture_pid": 235,
        "detection_enabled": 0,
        "detection_fps": 0,
        "ffmpeg_pid": 257,
        "pid": 223,
        "process_fps": 8,
        "skipped_fps": 0
    },
    "cpu_usages": {
        "1": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "14": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "16": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "23": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "24": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "25": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "26": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "27": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "28": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "29": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "30": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "31": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "40": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "41": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "76": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "79": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "83": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "88": {
            "cpu": "0.0",
            "mem": "0.4"
        },
        "102": {
            "cpu": "0.0",
            "mem": "0.1"
        },
        "110": {
            "cpu": "1.3",
            "mem": "4.0"
        },
        "117": {
            "cpu": "0.0",
            "mem": "0.3"
        },
        "124": {
            "cpu": "0.0",
            "mem": "0.1"
        },
        "125": {
            "cpu": "0.0",
            "mem": "0.2"
        },
        "208": {
            "cpu": "0.0",
            "mem": "2.0"
        },
        "214": {
            "cpu": "0.3",
            "mem": "0.3"
        },
        "215": {
            "cpu": "7.7",
            "mem": "3.2"
        },
        "216": {
            "cpu": "1.7",
            "mem": "2.9"
        },
        "220": {
            "cpu": "0.7",
            "mem": "2.9"
        },
        "221": {
            "cpu": "2.7",
            "mem": "3.2"
        },
        "222": {
            "cpu": "0.3",
            "mem": "2.8"
        },
        "223": {
            "cpu": "0.3",
            "mem": "2.8"
        },
        "226": {
            "cpu": "0.0",
            "mem": "0.4"
        },
        "227": {
            "cpu": "4.7",
            "mem": "4.0"
        },
        "229": {
            "cpu": "8.0",
            "mem": "5.0"
        },
        "230": {
            "cpu": "0.0",
            "mem": "0.4"
        },
        "231": {
            "cpu": "0.0",
            "mem": "0.4"
        },
        "232": {
            "cpu": "0.7",
            "mem": "2.6"
        },
        "235": {
            "cpu": "1.0",
            "mem": "2.7"
        },
        "237": {
            "cpu": "12.7",
            "mem": "2.3"
        },
        "238": {
            "cpu": "0.0",
            "mem": "0.4"
        },
        "244": {
            "cpu": "0.0",
            "mem": "0.4"
        },
        "245": {
            "cpu": "3.7",
            "mem": "1.6"
        },
        "247": {
            "cpu": "21.7",
            "mem": "3.5"
        },
        "257": {
            "cpu": "18.0",
            "mem": "2.4"
        },
        "310": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "333": {
            "cpu": "0.0",
            "mem": "0.1"
        },
        "338": {
            "cpu": "0.0",
            "mem": "0.1"
        },
        "%Cpu(s):": {
            "cpu": "id,",
            "mem": "0.0"
        },
        "MiB": {
            "cpu": "2608.2",
            "mem": "avail"
        },
        "PID": {
            "cpu": "%CPU",
            "mem": "%MEM"
        },
        "Tasks:": {
            "cpu": "stopped,",
            "mem": "0"
        },
        "top": {
            "cpu": "average:",
            "mem": "2.61,"
        }
    },
    "detection_fps": 18.1,
    "detectors": {
        "coral": {
            "detection_start": 0,
            "inference_speed": 11.33,
            "pid": 215
        }
    },
    "service": {
        "last_updated": 1691572333,
        "latest_version": "0.12.1",
        "storage": {
            "/dev/shm": {
                "free": 1051.3,
                "mount_type": "tmpfs",
                "total": 1073.7,
                "used": 22.5
            },
            "/media/frigate/clips": {
                "free": 152764,
                "mount_type": "ext4",
                "total": 368765.4,
                "used": 197194.3
            },
            "/media/frigate/recordings": {
                "free": 152764,
                "mount_type": "ext4",
                "total": 368765.4,
                "used": 197194.3
            },
            "/tmp/cache": {
                "free": 2142,
                "mount_type": "tmpfs",
                "total": 2147.5,
                "used": 5.5
            }
        },
        "temperatures": {},
        "uptime": 3154,
        "version": "0.12.1-367d724"
    }
}

Operating system

Debian

Install method

Docker Compose

Coral version

USB

Network connection

Wired

Camera make and model

Aliexpress

Any other information that may be helpful

I checked already this issue: https://github.com/blakeblackshear/frigate/issues/2783

NickM-27 commented 1 year ago

This issue can be caused by a number of things, I'd suggest trying a different cable as the cable that is included with the coral has had problems for a number of users.

KasunThushara commented 1 year ago

I have tried several things. I have used a powered USB hub (Baseus round box USB hub). Then I used it without that. I changed the cables of the coral AI. I used a long cable to avoid interferences which are mentioned in the link https://www.reddit.com/r/homeassistant/comments/y0thjv/ha_yellow_users_any_luck_with_frigate_coral_usb/ here. But doesn't work for me. My device is HA yellow.

mr-manuel commented 1 year ago

I also tried with different cables, but the hardware and connection is working. Now I ordered a Minisforum GK41 to test with. There the TPU works without problems. But as said above, the TPU works great with other tests I made on the same VM, but only with Frigate not.

NickM-27 commented 1 year ago

I also tried with different cables, but the hardware and connection is working. Now I ordered a Minisforum GK41 to test with. There the TPU works without problems. But as said above, the TPU works great with other tests I made on the same VM, but only with Frigate not.

Is there a difference between the other devices OS and the minisoforum OS that is being used? Frigate runs the coral at max speed with many inferences whereas most of the tests either use the standard speed runtime or they only run a few inferences which won't show the power issues.

mr-manuel commented 1 year ago

Therefore I made this question in the first post :-)

Is there a way to run the TPU with Frigate with the normal frequency only to test?

NickM-27 commented 1 year ago

right, the answer is no because that would somewhat defeat the purpose of having a coral in the first place. it would also require a different variation of the frigate container to be created which would be complicated and confusing.

The vast majority of users have no issues running the coral at max speed, when there are issues it can be cable or USB port related; after that it has usually been something with the host. Things like proxmox and esxi cause a lot of issues due to the extra layers of interference that are caused https://github.com/blakeblackshear/frigate/discussions/3604

mr-manuel commented 1 year ago

Ok, thanks for your feedback.

Caddyman68 commented 11 months ago

I hate to reopen this issue but the situation is so similar to my own and I can't seem to find anything current that applies. Did you implement something that finally made it work on your original system (Frigate on a Ubuntu 20.04 VM on VMware vSphere 7.0 U3n (ESXi-7.0U3n) on a Intel NUC10 i7)? I have HA/Frigate addon running in Ubuntu under VMWare Player 17 on Intel i5 9600k. Can I ask how you ran the CTS test - I went to the link you provided but I don't know how to run the "sudo..." commands. I tried in Advanced SSH & web terminal add on. I assume that if it passes these tests at least it eliminates the Coral being defective. Did it consistently work on the mini PC and did you switch it back and forth multiple times? If it did then that would seem to eliminate the cord and/or the mating surfaces of the USB port and connector. I would appreciate your help and indulgence. Thanks.