[Detector Support]: No objects being detected at all #15837
-
Describe the problem you are havingI can see within the debug view the motion boxes (and only the red motion boxes, no green areas of interest), but no actual detections are being performed at all and no events made Version0.14.1-f4f3cfa Frigate config filemqtt:
enabled: true
host: 192.168.1.121
user: dan
password: myPass
port: 1883
topic_prefix: frigate
client_id: frigate
stats_interval: 60
#detectors:
# deepstack:
# api_url: http://192.168.1.121:8040/predict
# type: deepstack
# api_timeout: 0.1
detectors:
tensorrt:
type: tensorrt
model:
width: 640
height: 640
input_tensor: nhwc
input_pixel_format: bgr
path: /config/model_cache/tensorrt/yolov7x-640.trt
record:
enabled: true
retain:
mode: all
events:
pre_capture: 5
retain:
default: 30
mode: all
snapshots:
enabled: true
clean_copy: true
timestamp: false
crop: true
retain:
default: 20
objects:
person: 30
ffmpeg:
hwaccel_args: preset-nvidia-h264
output_args:
record: preset-record-generic-audio-aac
detect:
fps: 5
objects:
track:
- person
go2rtc:
streams:
Gate1:
- rtsp://admin:[email protected]:554/stream1 # Main stream
GateSub:
- rtsp://admin:[email protected]:554/stream2 # Substream
cameras:
Gate1:
ffmpeg:
inputs:
- path: rtsp://192.168.1.121:8554/Gate1
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://192.168.1.121:8554/GateSub
input_args: preset-rtsp-restream
roles:
- detect
zones:
neighbour:
coordinates:
0.549,0.321,0.555,0.215,0.537,0.179,0.539,0.145,0.666,0.19,0.659,0.344,0.707,0.355,0.678,0.728,0.45,0.645
inertia: 2
loitering_time: 0
objects: person
gate:
coordinates: 0.505,0.67,0.41,1,0.673,1,0.679,0.734
inertia: 2
loitering_time: 0
objects: person
SoiTemp:
coordinates: 0,1,0.317,1,0.534,0.309,0.48,0,0,0.409
loitering_time: 0
objects: person
inertia: 3
motion:
mask:
- 0,0,0,0.388,0.372,0.084,0.372,0
- 0.674,0,0.674,0.054,0.857,0.061,1,0.264,1,0
threshold: 30
contour_area: 10
improve_contrast: 'true'
review:
alerts:
required_zones:
- neighbour
- gate
- SoiTemp
detections:
required_zones:
- SoiTemp
- neighbour
- gate
auth:
enabled: true
reset_admin_password: false
version: 0.14
camera_groups:
Gate_1:
order: 1
icon: LuAlignJustify
cameras:
- Gate1 docker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate
environment:
- YOLO_MODELS=yolov7x-640
privileged: true
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable-tensorrt
shm_size: 500mb
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities:
- gpu
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config:/config
- ./storage:/media/frigate
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- 8971:8971
- 8554:8554 # RTSP feeds
- 8555:8555/tcp # WebRTC over tcp
- 8555:8555/udp # WebRTC over udp
network_mode: host Relevant Frigate log output2025-01-06 14:51:39.626998370 [INFO] Preparing Frigate...
2025-01-06 14:51:39.637084742 [INFO] Starting Frigate...
2025-01-06 14:51:40.979871069 [2025-01-06 14:51:40] frigate.app INFO : Starting Frigate (0.14.1-f4f3cfa)
2025-01-06 14:51:40.979980557 [2025-01-06 14:51:40] frigate.util.config INFO : Checking if frigate config needs migration...
2025-01-06 14:51:41.001576218 [2025-01-06 14:51:41] frigate.util.config INFO : frigate config does not need migration...
2025-01-06 14:51:47.008819287 [2025-01-06 14:51:47] peewee_migrate.logs INFO : Starting migrations
2025-01-06 14:51:47.009076687 [2025-01-06 14:51:47] peewee_migrate.logs INFO : There is nothing to migrate
2025-01-06 14:51:47.017408908 [2025-01-06 14:51:47] frigate.app INFO : Recording process started: 392
2025-01-06 14:51:47.025987974 [2025-01-06 14:51:47] frigate.app INFO : Recording process started: 401
2025-01-06 14:51:47.028464281 [2025-01-06 14:51:47] frigate.app INFO : go2rtc process pid: 104
2025-01-06 14:51:47.065260557 [2025-01-06 14:51:47] frigate.app INFO : Output process started: 424
2025-01-06 14:51:47.094249648 [2025-01-06 14:51:47] frigate.app INFO : Camera processor started for Gate1: 438
2025-01-06 14:51:47.099388042 [2025-01-06 14:51:47] frigate.app INFO : Capture process started for Gate1: 445
2025-01-06 14:51:47.187585607 [2025-01-06 14:51:47] detector.tensorrt INFO : Starting detection process: 421
2025-01-06 14:51:47.433513691 [2025-01-06 14:51:47] frigate.detectors.plugins.tensorrt INFO : Loaded engine size: 137 MiB
2025-01-06 14:51:47.586816496 [2025-01-06 14:51:47] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +6, GPU +8, now: CPU 276, GPU 240 (MiB)
2025-01-06 14:51:47.593897179 [2025-01-06 14:51:47] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] Init cuDNN: CPU +2, GPU +10, now: CPU 278, GPU 250 (MiB)
2025-01-06 14:51:47.607599449 [2025-01-06 14:51:47] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +140, now: CPU 0, GPU 140 (MiB)
2025-01-06 14:51:47.620537846 [2025-01-06 14:51:47] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 141, GPU 248 (MiB)
2025-01-06 14:51:47.621440845 [2025-01-06 14:51:47] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] Init cuDNN: CPU +0, GPU +8, now: CPU 141, GPU 256 (MiB)
2025-01-06 14:51:47.621452420 [2025-01-06 14:51:47] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +74, now: CPU 0, GPU 214 (MiB) Install methodDocker Compose Object DetectorTensorRT Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulI have tried this with the 320 model as well and same behaviour applies. You'll note from my config I also tested YoloStack, this worked OK in detecting objects. I've done a complete "reinstall" and this has not fixed it. Also, the behaviour is the same regardless on whether I use go2rtc or not, though I'm not sure if that even matters. The behaviour is the same whether I just use the main stream or not, and I've tried both rgb and bgr Running latest (L)Ubuntu |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Camera stream configs in case that helps at all: |
Beta Was this translation helpful? Give feedback.
-
I'm so sorry, I just found #11142 (reply in thread) and made the exact change myself and it instantly started working. Apologies. |
Beta Was this translation helpful? Give feedback.
I'm so sorry, I just found #11142 (reply in thread) and made the exact change myself and it instantly started working. Apologies.