blakeblackshear / frigate

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

[Support]: TensorRT object detection not working except "person" #5514

Closed reidprichard closed 1 year ago

reidprichard commented 1 year ago

Describe the problem you are having

This is the darnedest thing - I am 99.9% certain everything was working earlier today, and I don't think I've changed anything that should affect this. Using a TensorRT detector, I am unable to detect anything but "person". If I comment out the model info and replace the tensorrt detector with a pair of cpu detectors, I am able to detect other objects (namely, my dogs). Really scratching my head as to what could have changed today.

I might just roll the VM back to a snapshot earlier today when everything is working, but I thought I'd try to get to the bottom of it if possible.

Version

0.12.0-1715e2e

Frigate config file

# yaml-language-server: $schema=http://sanitised:5000/api/config/schema.json

mqtt:
  host: sanitised
  user: sanitised
  password: sanitised

database:
  path: /database/frigate.db

model:
  path: /trt-models/yolov7-tiny-416.trt
  input_tensor: nchw
  input_pixel_format: rgb
  width: 416
  height: 416

detectors:
  tensorrt:
    type: tensorrt
    device: 0
  # cpu1:
  #   type: cpu
  # cpu2:
  #   type: cpu

objects:
  track:
    - person
    - dog
    - car

record:
  enabled: True
  retain:
    days: 14

ffmpeg:
  hwaccel_args: -c:v h264_cuvid

detect:
  width: 1920
  height: 1280
  fps: 10

cameras:
  office_cam:
    ffmpeg:
      inputs:
        - path: rtsp://sanitised
          roles:
            - record
            - detect
  bedroom_cam:
    ffmpeg:
      inputs:
        - path: rtsp://sanitised
          roles:
            - record
            - detect
  living_room_cam:
    ffmpeg:
      inputs:
        - path: rtsp://sanitised
          roles:
            - record
            - detect
  front_cam:
    ffmpeg:
      inputs:
        - path: rtsp://sanitised
          roles:
            - record
            - detect
    zones:
      driveway: 
        coordinates: 1496,615,1920,594,1920,681

Relevant log output

2023-02-15 20:31:21.090314422  [2023-02-15 20:31:21] frigate.app                    INFO    : Starting Frigate (0.12.0-1715e2e)
2023-02-15 20:31:21.147390675  [2023-02-15 20:31:21] peewee_migrate                 INFO    : Starting migrations
2023-02-15 20:31:21.171782745  [2023-02-15 20:31:21] peewee_migrate                 INFO    : There is nothing to migrate
2023-02-15 20:31:21.303199169  [2023-02-15 20:31:21] frigate.app                    INFO    : Output process started: 250
2023-02-15 20:31:21.303221634  [2023-02-15 20:31:21] frigate.app                    INFO    : Camera processor started for office_cam: 253
2023-02-15 20:31:21.306126511  [2023-02-15 20:31:21] frigate.app                    INFO    : Camera processor started for bedroom_cam: 254
2023-02-15 20:31:21.337510182  [2023-02-15 20:31:21] frigate.app                    INFO    : Camera processor started for living_room_cam: 256
2023-02-15 20:31:21.351356643  [2023-02-15 20:31:21] frigate.app                    INFO    : Camera processor started for front_cam: 257
2023-02-15 20:31:21.451912804  [2023-02-15 20:31:21] frigate.app                    INFO    : Capture process started for office_cam: 259
2023-02-15 20:31:21.461583960  [2023-02-15 20:31:21] detector.tensorrt              INFO    : Starting detection process: 248
2023-02-15 20:31:21.541476151  [2023-02-15 20:31:21] frigate.app                    INFO    : Capture process started for bedroom_cam: 264
2023-02-15 20:31:21.598394387  [2023-02-15 20:31:21] frigate.app                    INFO    : Capture process started for living_room_cam: 271
2023-02-15 20:31:21.640525874  [2023-02-15 20:31:21] frigate.app                    INFO    : Capture process started for front_cam: 274
2023-02-15 20:31:24.092718795  [2023-02-15 20:31:23] frigate.detectors.plugins.tensorrt INFO    : [MemUsageChange] Init CUDA: CPU +188, GPU +0, now: CPU 247, GPU 568 (MiB)
2023-02-15 20:31:24.213335225  [2023-02-15 20:31:24] frigate.detectors.plugins.tensorrt INFO    : Loaded engine size: 25 MiB
2023-02-15 20:31:29.500478797  [2023-02-15 20:31:29] frigate.detectors.plugins.tensorrt INFO    : [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +181, GPU +69, now: CPU 482, GPU 664 (MiB)
2023-02-15 20:31:33.264142463  [2023-02-15 20:31:33] frigate.detectors.plugins.tensorrt INFO    : [MemUsageChange] Init cuDNN: CPU +111, GPU +46, now: CPU 593, GPU 710 (MiB)
2023-02-15 20:31:33.474202504  [2023-02-15 20:31:33] frigate.detectors.plugins.tensorrt INFO    : [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +25, now: CPU 0, GPU 25 (MiB)
2023-02-15 20:31:33.890150030  [2023-02-15 20:31:33] frigate.detectors.plugins.tensorrt INFO    : [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 567, GPU 702 (MiB)
2023-02-15 20:31:33.890173795  [2023-02-15 20:31:33] frigate.detectors.plugins.tensorrt INFO    : [MemUsageChange] Init cuDNN: CPU +0, GPU +8, now: CPU 567, GPU 710 (MiB)
2023-02-15 20:31:34.030841297  [2023-02-15 20:31:33] frigate.detectors.plugins.tensorrt INFO    : [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +13, now: CPU 0, GPU 38 (MiB)
2023-02-15 20:32:01.861378657  [2023-02-15 20:32:01] watchdog.office_cam            INFO    : No frames received from office_cam in 20 seconds. Exiting ffmpeg...
2023-02-15 20:32:01.871081510  [2023-02-15 20:32:01] watchdog.office_cam            INFO    : Waiting for ffmpeg to exit gracefully...
2023-02-15 20:32:02.658970275  [2023-02-15 20:32:02] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:02.658993181  [2023-02-15 20:32:02] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:02.659012648  [2023-02-15 20:32:02] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:02.659051242  [2023-02-15 20:32:02] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:02.659068619  [2023-02-15 20:32:02] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:02.659084837  [2023-02-15 20:32:02] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:02.666817979  [2023-02-15 20:32:02] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:02.666841275  [2023-02-15 20:32:02] frigate.video                  ERROR   : office_cam: ffmpeg process is not running. exiting capture thread...
2023-02-15 20:32:12.666177151  [2023-02-15 20:32:12] watchdog.office_cam            ERROR   : Ffmpeg process crashed unexpectedly for office_cam.
2023-02-15 20:32:12.666230453  [2023-02-15 20:32:12] watchdog.office_cam            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-02-15 20:32:12.666251410  [2023-02-15 20:32:12] ffmpeg.office_cam.detect       ERROR   : [rtsp @ 0x5557b6f05f40] CSeq 6 expected, 0 received.
2023-02-15 20:32:12.667136446  [2023-02-15 20:32:12] ffmpeg.office_cam.detect       ERROR   :     Last message repeated 113 times
2023-02-15 20:32:21.885868715  [2023-02-15 20:32:21] watchdog.living_room_cam       INFO    : No frames received from living_room_cam in 20 seconds. Exiting ffmpeg...
2023-02-15 20:32:21.885882113  [2023-02-15 20:32:21] watchdog.living_room_cam       INFO    : Waiting for ffmpeg to exit gracefully...
2023-02-15 20:32:22.474290017  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.475557458  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.484916168  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.486373442  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.486396789  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.486419386  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.501795827  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.501818213  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.503230954  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.504413167  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.506091051  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.507635933  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.509477223  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.511246153  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.512126399  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.513598192  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.516732829  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.528786149  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:32:22.530173253  [2023-02-15 20:32:22] frigate.video                  ERROR   : living_room_cam: ffmpeg process is not running. exiting capture thread...
2023-02-15 20:32:32.546089337  [2023-02-15 20:32:32] watchdog.living_room_cam       ERROR   : Ffmpeg process crashed unexpectedly for living_room_cam.
2023-02-15 20:32:32.546112284  [2023-02-15 20:32:32] watchdog.living_room_cam       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-02-15 20:32:32.547959840  [2023-02-15 20:32:32] ffmpeg.living_room_cam.detect  ERROR   : [segment @ 0x55e1094e2040] 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-02-15 20:32:32.547978048  [2023-02-15 20:32:32] ffmpeg.living_room_cam.detect  ERROR   : [rtsp @ 0x55e1094c3f40] CSeq 7 expected, 0 received.
2023-02-15 20:32:32.547993895  [2023-02-15 20:32:32] ffmpeg.living_room_cam.detect  ERROR   :     Last message repeated 226 times
2023-02-15 20:37:22.738465265  [2023-02-15 20:37:22] watchdog.office_cam            INFO    : No frames received from office_cam in 20 seconds. Exiting ffmpeg...
2023-02-15 20:37:22.738499174  [2023-02-15 20:37:22] watchdog.office_cam            INFO    : Waiting for ffmpeg to exit gracefully...
2023-02-15 20:37:22.998687939  [2023-02-15 20:37:22] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:37:22.998705179  [2023-02-15 20:37:22] frigate.video                  ERROR   : office_cam: ffmpeg process is not running. exiting capture thread...
2023-02-15 20:37:33.011539929  [2023-02-15 20:37:33] watchdog.office_cam            ERROR   : Ffmpeg process crashed unexpectedly for office_cam.
2023-02-15 20:37:33.011559718  [2023-02-15 20:37:33] watchdog.office_cam            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-02-15 20:37:33.011577048  [2023-02-15 20:37:33] ffmpeg.office_cam.detect       ERROR   : [rtsp @ 0x55dd428e7f40] CSeq 14 expected, 0 received.
2023-02-15 20:37:33.011592657  [2023-02-15 20:37:33] ffmpeg.office_cam.detect       ERROR   :     Last message repeated 3 times
2023-02-15 20:38:13.228525204  [2023-02-15 20:38:13] watchdog.office_cam            INFO    : No frames received from office_cam in 20 seconds. Exiting ffmpeg...
2023-02-15 20:38:13.228849635  [2023-02-15 20:38:13] watchdog.office_cam            INFO    : Waiting for ffmpeg to exit gracefully...
2023-02-15 20:38:26.812982983  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813005322  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813022951  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813046281  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813065180  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813186967  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813208926  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813243685  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813299684  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813334503  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813357192  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813384061  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813404971  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813432960  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:38:26.813483998  [2023-02-15 20:38:26] frigate.video                  ERROR   : office_cam: ffmpeg process is not running. exiting capture thread...
2023-02-15 20:38:36.817751898  [2023-02-15 20:38:36] watchdog.office_cam            ERROR   : Ffmpeg process crashed unexpectedly for office_cam.
2023-02-15 20:38:36.817772538  [2023-02-15 20:38:36] watchdog.office_cam            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-02-15 20:38:36.817788177  [2023-02-15 20:38:36] ffmpeg.office_cam.detect       ERROR   : [rtsp @ 0x55c0227a7f40] CSeq 6 expected, 0 received.
2023-02-15 20:38:36.817804487  [2023-02-15 20:38:36] ffmpeg.office_cam.detect       ERROR   :     Last message repeated 182 times
2023-02-15 20:39:06.834345991  [2023-02-15 20:39:06] watchdog.office_cam            INFO    : office_cam exceeded fps limit. Exiting ffmpeg...
2023-02-15 20:39:06.834866507  [2023-02-15 20:39:06] watchdog.office_cam            INFO    : Waiting for ffmpeg to exit gracefully...
2023-02-15 20:39:36.867476409  [2023-02-15 20:39:36] watchdog.office_cam            INFO    : FFmpeg did not exit. Force killing...
2023-02-15 20:39:36.999064280  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:36.999084349  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:36.999100899  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:36.999116598  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:36.999132378  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:36.999148587  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:36.999164297  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.003154235  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.003170195  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.003184004  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.003197494  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.003210914  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.003224483  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.003237983  [2023-02-15 20:39:36] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.003251333  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.003264692  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.003278012  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.003291382  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.003304711  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.005281281  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.006467631  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.007813026  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.010445969  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.012303922  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.013805954  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.015522270  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.017117119  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.033577380  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.043001169  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.043936335  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.044950690  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.045772089  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.046475391  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.047766258  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.049039275  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.050803530  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.053109902  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.058932593  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.061109048  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.065130775  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.069429375  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.070246145  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.071038914  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.071999840  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.092939916  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.094120466  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.097457981  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.098703459  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.099804821  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.101021630  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.102515902  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.103498557  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.104671687  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.109690419  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.110825740  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.111811485  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.113433114  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.114244133  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.115855252  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.119366702  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.125637592  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.129757457  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.132059339  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.133793944  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.136376389  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.160903543  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:37.160923433  [2023-02-15 20:39:37] frigate.video                  ERROR   : office_cam: ffmpeg process is not running. exiting capture thread...
2023-02-15 20:39:38.196075767  [2023-02-15 20:39:38] frigate.video                  ERROR   : bedroom_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:39:38.196172134  [2023-02-15 20:39:38] frigate.video                  ERROR   : bedroom_cam: ffmpeg process is not running. exiting capture thread...
2023-02-15 20:39:39.932373460  [2023-02-15 20:39:39] frigate.record                 WARNING : Unable to keep up with recording segments in cache for bedroom_cam. Keeping the 5 most recent segments out of 13 and discarding the rest...
2023-02-15 20:39:39.952722252  [2023-02-15 20:39:39] frigate.record                 WARNING : Unable to keep up with recording segments in cache for front_cam. Keeping the 5 most recent segments out of 12 and discarding the rest...
2023-02-15 20:39:39.957590119  [2023-02-15 20:39:39] frigate.record                 WARNING : Unable to keep up with recording segments in cache for living_room_cam. Keeping the 5 most recent segments out of 12 and discarding the rest...
2023-02-15 20:39:42.015864309  [2023-02-15 20:39:42] watchdog.bedroom_cam           ERROR   : Ffmpeg process crashed unexpectedly for bedroom_cam.
2023-02-15 20:39:42.016455714  [2023-02-15 20:39:42] watchdog.bedroom_cam           ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-02-15 20:39:46.944699398  [2023-02-15 20:39:46] frigate.record                 WARNING : Failed to probe corrupt segment {'cache_path': '/tmp/cache/living_room_cam-20230215203833.mp4', 'start_time': datetime.datetime(2023, 2, 15, 20, 38, 33)}: 0 - b'[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55de7fccf6c0] moov atom not found\n/tmp/cache/office_cam-20230215203849.mp4: Invalid data found when processing input\n'
2023-02-15 20:39:46.944727868  [2023-02-15 20:39:46] frigate.record                 WARNING : Discarding a corrupt recording segment: {'cache_path': '/tmp/cache/living_room_cam-20230215203833.mp4', 'start_time': datetime.datetime(2023, 2, 15, 20, 38, 33)}
2023-02-15 20:39:47.157429666  [2023-02-15 20:39:47] watchdog.office_cam            ERROR   : Ffmpeg process crashed unexpectedly for office_cam.
2023-02-15 20:39:47.162546557  [2023-02-15 20:39:47] watchdog.office_cam            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-02-15 20:39:47.162581416  [2023-02-15 20:39:47] ffmpeg.office_cam.detect       ERROR   : [rtsp @ 0x559bcbb60f40] CSeq 6 expected, 0 received.
2023-02-15 20:40:02.674021652  [2023-02-15 20:40:02] watchdog.living_room_cam       INFO    : No frames received from living_room_cam in 20 seconds. Exiting ffmpeg...
2023-02-15 20:40:02.674054181  [2023-02-15 20:40:02] watchdog.living_room_cam       INFO    : Waiting for ffmpeg to exit gracefully...
2023-02-15 20:40:07.999138546  [2023-02-15 20:40:07] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:40:07.999160095  [2023-02-15 20:40:07] frigate.video                  ERROR   : living_room_cam: ffmpeg process is not running. exiting capture thread...
2023-02-15 20:40:18.017902769  [2023-02-15 20:40:18] watchdog.living_room_cam       ERROR   : Ffmpeg process crashed unexpectedly for living_room_cam.
2023-02-15 20:40:18.017928488  [2023-02-15 20:40:18] watchdog.living_room_cam       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-02-15 20:40:18.017950518  [2023-02-15 20:40:18] ffmpeg.living_room_cam.detect  ERROR   : rtsp://*:*@172.20.100.52/video1_unicast: Connection timed out
2023-02-15 20:40:18.017971357  [2023-02-15 20:40:18] ffmpeg.living_room_cam.detect  ERROR   :     Last message repeated 3 times
2023-02-15 20:40:20.797498061  [2023-02-15 20:40:20] frigate.video                  ERROR   : front_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:40:20.797968829  [2023-02-15 20:40:20] frigate.video                  ERROR   : front_cam: ffmpeg process is not running. exiting capture thread...
2023-02-15 20:40:22.509362851  [2023-02-15 20:40:22] watchdog.front_cam             ERROR   : Ffmpeg process crashed unexpectedly for front_cam.
2023-02-15 20:40:22.509953867  [2023-02-15 20:40:22] watchdog.front_cam             ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-02-15 20:40:22.509971006  [2023-02-15 20:40:22] ffmpeg.front_cam.detect        ERROR   : [segment @ 0x55ebc4d08280] 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-02-15 20:40:22.509987216  [2023-02-15 20:40:22] ffmpeg.front_cam.detect        ERROR   : rtsp://*:*@172.20.100.53/video1_unicast: Connection timed out
2023-02-15 20:40:22.510002505  [2023-02-15 20:40:22] ffmpeg.front_cam.detect        ERROR   :     Last message repeated 6 times
2023-02-15 20:41:22.543871587  [2023-02-15 20:41:22] watchdog.front_cam             INFO    : No frames received from front_cam in 20 seconds. Exiting ffmpeg...
2023-02-15 20:41:22.543891216  [2023-02-15 20:41:22] watchdog.front_cam             INFO    : Waiting for ffmpeg to exit gracefully...
2023-02-15 20:41:22.825637366  [2023-02-15 20:41:22] frigate.video                  ERROR   : front_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:22.825654206  [2023-02-15 20:41:22] frigate.video                  ERROR   : front_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:22.828075659  [2023-02-15 20:41:22] frigate.video                  ERROR   : front_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:22.828091539  [2023-02-15 20:41:22] frigate.video                  ERROR   : front_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:22.828105249  [2023-02-15 20:41:22] frigate.video                  ERROR   : front_cam: ffmpeg process is not running. exiting capture thread...
2023-02-15 20:41:28.060391964  [2023-02-15 20:41:28] watchdog.living_room_cam       INFO    : No frames received from living_room_cam in 20 seconds. Exiting ffmpeg...
2023-02-15 20:41:28.060412453  [2023-02-15 20:41:28] watchdog.living_room_cam       INFO    : Waiting for ffmpeg to exit gracefully...
2023-02-15 20:41:28.215995413  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.216018543  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.216035522  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.216057762  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.216073801  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.216089391  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.216105091  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.216120700  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.216137140  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.216154709  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.216172539  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.219168840  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.221888746  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.222782776  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: Unable to read frames from ffmpeg process.
2023-02-15 20:41:28.223701924  [2023-02-15 20:41:28] frigate.video                  ERROR   : living_room_cam: ffmpeg process is not running. exiting capture thread...
2023-02-15 20:41:32.839169713  [2023-02-15 20:41:32] watchdog.front_cam             ERROR   : Ffmpeg process crashed unexpectedly for front_cam.
2023-02-15 20:41:32.839536355  [2023-02-15 20:41:32] watchdog.front_cam             ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-02-15 20:41:32.839554264  [2023-02-15 20:41:32] ffmpeg.front_cam.detect        ERROR   : [rtsp @ 0x55b08edd7f40] CSeq 7 expected, 0 received.
2023-02-15 20:41:32.839812208  [2023-02-15 20:41:32] ffmpeg.front_cam.detect        ERROR   :     Last message repeated 163 times
2023-02-15 20:41:38.237186651  [2023-02-15 20:41:38] watchdog.living_room_cam       ERROR   : Ffmpeg process crashed unexpectedly for living_room_cam.
2023-02-15 20:41:38.237225081  [2023-02-15 20:41:38] watchdog.living_room_cam       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-02-15 20:41:38.237258340  [2023-02-15 20:41:38] ffmpeg.living_room_cam.detect  ERROR   : [segment @ 0x5611821275c0] 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-02-15 20:41:38.237276299  [2023-02-15 20:41:38] ffmpeg.living_room_cam.detect  ERROR   : [rtsp @ 0x561182111f40] CSeq 7 expected, 0 received.
2023-02-15 20:41:38.237293089  [2023-02-15 20:41:38] ffmpeg.living_room_cam.detect  ERROR   :     Last message repeated 167 times

FFprobe output from your camera

n/a

Frigate stats

No response

Operating system

Other Linux

Install method

Docker Compose

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

Wyze v3

Any other information that may be helpful

Running on Ubuntu 22.04. I deleted the trt-models folder and regenerated yolov7-tiny-416.trt, but no luck.

NickM-27 commented 1 year ago

Seeing a lot of errors on the cameras which could be contributing. I don't see any reason why that would randomly happen unless the scores are just different for this model and aren't working with the default threshold set.

reidprichard commented 1 year ago

Yeah, I've noticed those errors. What's going on there? If I tune into the stream via VLC or WebRTC it is flawless.

Looking back through my event logs, it seems my recollection of it working perfectly today may have been inaccurate. While there are lots of "car" events throughout the day, there's only one "dog" event today. Perhaps yolov7-tiny is just bad at detecting dogs? I'll try again with yolov4, which I am certain worked in the past.

reidprichard commented 1 year ago

Okay, I tried yolov4-tiny-416 (which I've used on a prior TensorRT fork of Frigate with great success) and no luck. I also tried using the camera's 640x360 substream (with detect resolution adjusted to match), and that didn't work either. It will label my dog as "person" but doesn't flash "dog" on the screen for a second.

I'm not quite sure how/where the labelmap is encoded, but is it possible that got messed up somehow?

NickM-27 commented 1 year ago

The labelmap is the same as the default one that is used. You may want to try lowering the threshold for dog and see if that helps.

reidprichard commented 1 year ago

Thanks. Even if it's not over threshold, shouldn't a detection box with low confidence show up in the debug view?

reidprichard commented 1 year ago

I just tried using the yolov4-tiny-416.trt that I had previous used with good success. As with yolov7, it continues to ignore my dogs or show "person" with low confidence for them.

NickM-27 commented 1 year ago

You'll want to lower the min_score, that's a good point.

It's been tested and working as expected, the fact that it showed some detections for these other labels means it's working as expected (it's not like it's ignoring the object label) and most likely the model just isn't performing well in the current conditions. You could try downloading a previous event video where it worked and sending a camera with it to see how it goes

reidprichard commented 1 year ago

Okay, dropped min_area to 1000, min_score to 0.1, and threshold to 0.1. I tried with both the high-res (1920x1280) and low-res (640x360) streams - neither even briefly picked up either of my two dogs in a well-lit room. It just seems bizarre that the YOLO models would be performing so terribly in comparison to the CPU model.

I don't suppose it's possible to use different detectors for different object types? Or even both detectors in parallel indiscriminately? It'd be kind of nice to at least be able to pick up the dogs with a CPU detector on the low-res stream, then pick up finer details with the GPU on the high-res stream.

Edit: Switched back to CPU detectors with default settings, and it's picking up my dogs every time they walk by with 70-80% confidence.

NickM-27 commented 1 year ago

I don't suppose it's possible to use different detectors for different object types? Or even both detectors in parallel indiscriminately? It'd be kind of nice to at least be able to pick up the dogs with a CPU detector on the low-res stream, then pick up finer details with the GPU on the high-res stream.

No that is not currently supported. It's more complicated than it may seem.

The device doing the detection has nothing to do with it, the results are due to the model that is being run. The coral and CPU run the same model with the same results. As far as TensorRT I can't say, I tested the yolov4-tiny briefly and it did see my dog but I haven't used it. May need to see if others have had similar experiences or if perhaps there's a model that works better for dogs. You may also try the non tiny model

reidprichard commented 1 year ago

I figured as much. I suppose if I really wanted to I could just have two different Frigate containers.

I didn't expect the device type was playing a role, but I assumed there were technical limitations preventing the CPU model from being run on a GPU.

I built the full list of available models last night, and today I'll see how they work. I didn't see a non-tiny v7 on the list, so I assume you're talking about one of the earlier models.

Edit: Going to make a list of my attempts and continue to update results here:

I notice "car" showing up in my event log a few times since I've been testing, so that apparently works for at least some of these models.

It seems really suspect that four different models with two different input streams haven't detected my dogs even once when the CPU detection model nails it every time. I don't want to post any images, but these are not exactly difficult scenarios for detection - we're talking my dog standing in side profile, taking up ~20% of the frame's height, with a relatively uncomplicated backdrop. Is there no chance at all Frigate isn't somehow neglecting to look for the "dog" object?

On the v7-tiny-416 and the 1080p stream, I enabled detection for "hat", "eye glasses", and "cup". I couldn't get a single detection box for a pair of glasses, baseball cap, or coffee mug (not sure if this counts as a "cup").

While I know that the model dimensions must be updated to match the TRT file, do I need to be messing with the input_tensor and input_pixel_format settings?

How does Frigate handle a model with dimensions greater than the stream? I.e., yolov4x-mish-640 on a 640x360 feed.

NickM-27 commented 1 year ago

Looks like the docs need may need to be updated but this should not make a difference, you can try adding this as your labelmap to the model config: labelmap_path: /trt-models/coco_91cl.txt

reidprichard commented 1 year ago

Hmm, I don't seem to have that file in my trt-models directory. Should it have been generated by tensorrt_models.sh? Edit: Found that file on the OpenVINO Github and put it in the trt-models directory. I assume it's not an issue that OpenVINO is the Intel toolkit and I'm using TensorRT. That didn't seem to do it. Haven't tested on the dogs yet, but I'm getting nothing for eyeglasses or cup.

If it's any help, this is the image that I previously ran that had flawless detection with GPU. Per this discussion, it was running yolov4-tiny-416. I also don't see a labelmap .txt file in that model's directory either.

NickM-27 commented 1 year ago

I don't think it is necessary, I checked them both and they are the same file contents. The models are also pulled from a repo owned by the author of that discussion so I don't see why it would be any different

reidprichard commented 1 year ago

I'm doing my best to recreate the setup with yeahme49's image. Unfortunately, those YAML files have been lost to time, and most of my cameras have changed (from running Wyze's RTSP firmware to using wz_mini_hacks). I'm still not having any luck detecting anything other than person - it's hard to say whether a difference in my config or a difference in the hardware could be the issue. Although it's been long enough that now I'm not as confident in my memory that it was correctly detecting dogs on yeahme49's image.

Am I the only one having this issue? I'd think there would be a pretty good sized crowed running this on a GPU with detection other than just person.

NickM-27 commented 1 year ago

I was able to test the yolo7-tiny-416 and it saw my dog as a cat. Disabling cat it did not see my dog at all.

That being said, it saw many other objects correctly (car, cat, mouse, etc)

reidprichard commented 1 year ago

Interesting - I'll give it a shot with cat enabled. Unfortunately, I don't have any mice handy :)

I'm pretty much a cretin when it comes to AI topics. Would this be the place to discuss yolo7's accuracy?

NickM-27 commented 1 year ago

Interesting - I'll give it a shot with cat enabled. Unfortunately, I don't have any mice handy :)

To be clear, the mouse label in COCO dataset refers to a computer mouse, not the animal

I'm pretty much a cretin when it comes to AI topics. Would [this] be the place to discuss yolo7's accuracy?

I don't think you linked anything?

reidprichard commented 1 year ago

Ohh, that makes so much more sense. I though it funny that you had living mice handy for testing!

Oops, edited to add the link.

NickM-27 commented 1 year ago

I don't think that would be the place, it would be where the models came from. But again we probably want others to confirm they see the same. I only tested on one camera

reidprichard commented 1 year ago

I enabled cat and mouse, and it is indeed occasionally picking up my dogs as cats. However, mouse is not working. I get the bounding box around it, but it thinks it is a person. Maybe that's just from my hand?

I also just updated to the latest image (9621b4b-tensorrt).

jtronicus commented 1 year ago

I am seeing the same thing. Dogs are detected as "person". I am not sure when the issue started, but it has been since at least 2/21/2023. image

I know it worked a few months ago when I was using a coral device, but I dont know if it has ever worked correctly using yolov7-tiny-416.trt

reidprichard commented 1 year ago

Okay, mine finally detected one of my dogs as "dog". In the last several days, it has detected my dogs as "cat" probably 40 times, "person" maybe 5 times, and "dog" just once.

Is it possible the "cat" and "dog" labels are swapped? I would be curious for someone with a cat to report whether their cat is detected as "cat", "dog", or something else.

NickM-27 commented 1 year ago

Is it possible the "cat" and "dog" labels are swapped? I would be curious for someone with a cat to report whether their cat is detected as "cat", "dog", or something else.

They have the same labelmaps which are pretty standard so that is really unlikely.

I also ran a test on a video of a cat and it only ever got detected as person or cat (pretty typical for models trained on COCO dataset). The scores are also pretty low so you may just need to adjust the min_score and threshold

Screen Shot 2023-03-01 at 11 11 31 AM

jtronicus commented 1 year ago

does frigate add the labels to the image, or is it added by the coral/tensor device?

reidprichard commented 1 year ago

@NickM-27, I'll let it run with lowered thresholds for "dog" and see what happens. I suppose at this point there's not much more to discuss here if the issue lies with the models themselves.

@jtronicus, I believe the device (coral, CPU, tensor) is just executing code provided by Frigate. Frigate is responsible for supplying the model and the labelmap, which associates a model output with a word like "dog", "cat", etc.

NickM-27 commented 1 year ago

@NickM-27, I'll let it run with lowered thresholds for "dog" and see what happens. I suppose at this point there's not much more to discuss here if the issue lies with the models themselves.

Yes, seems to be the case.

@jtronicus, I believe the device (coral, CPU, tensor) is just executing code provided by Frigate. Frigate is responsible for supplying the model and the labelmap, which associates a model output with a word like "dog", "cat", etc.

correct

reidprichard commented 1 year ago

I've been doing a bit more digging here. Using the YOLO7 authors' Python code from their repository, I ran YOLO7 on a capture from one of my cameras (which I manually scaled to 640p to match the model). The result was absolutely incredible - it picked out my couch, potted plants, computer monitors, books on a bookshelf, etc. Importantly, though, it caught my dog with 73% certainty.

I am an absolute noob when it comes to AI, but it seems like an important difference could be the weights used. I notice the install script uses weights (*.weights files) from the darknet repo, which I presume are different from the weights published by the YOLO7 authors (*.pt files).

I tried using the darknet weights in the YOLO7 Python script for comparison, but it seems the file types are incompatible. I suppose this makes sense, as the models in Frigate have to be generated for my specific hardware while the original YOLO7 model ran on my GPU without needing any such preparation.

I'm happy to continue investigating this but am a bit stumped (and out of time at the moment). Does any have any suggestions for next steps?

monoimoi commented 1 year ago

I am experiencing a similar issue with cuda toolkit 11.7, nvidia 515 drivers on 2 Teslas V100. Impossible to recognize anything but a person. I used both yolo 4 and 7 mini 416 with no change in the outcome. Switching to CPU detector has no such issues, it's performance is excellent.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

cliffburdick commented 1 year ago

Please keep this one open

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.