[Detector Support]:yolo9 detector not detecting objects #20217
-
Describe the problem you are havingFrigate can detect motion but not objects. I tried first building yolo7 manually with no luck and then actually read untill the end of documentation and used this script for yolo9 Version0.16.1 Frigate config filefredrick@fredrick-System-Product-Name:/opt$ cat /opt/frigate/config/config.yaml
version: 0.16-0
mqtt:
enabled: false
detectors:
onnx:
type: onnx
model:
model_type: yolo-generic
width: 320
height: 320
input_tensor: nchw
input_dtype: float
path: /opt/models/yolov9-s-320.onnx
labelmap_path: /opt/models/coco-80.txt
# Global objects (used as default)
objects:
track:
- person
filters:
person:
min_area: 5000
max_area: 100000
snapshots:
enabled: true
record:
enabled: true
retain:
days: 3
mode: all
alerts:
retain:
days: 30
mode: motion
detections:
retain:
days: 30
mode: motion
cameras:
front:
enabled: true
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/ch02/0
roles:
- record
# If you want front to also run detection, add the detect input here (example below)
# - path: rtsp://admin:[email protected]:554/ch02/1
# roles:
# - detect
# no `objects:` here because front currently has no detect stream
driveway:
enabled: true
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/ch04/0
roles:
- record
- path: rtsp://admin:[email protected]:554/ch04/1
roles:
- detect
detect:
width: 704
height: 576
fps: 10
objects: # <-- CAMERA-LEVEL objects (sibling of detect)
track:
- person
- car
door:
enabled: true
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/ch01/0
roles:
- record
- path: rtsp://admin:[email protected]:554/ch01/1
roles:
- detect
detect:
width: 704
height: 576
fps: 10
objects:
track:
- person
back:
enabled: true
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/ch03/0
roles:
- record
- path: rtsp://admin:[email protected]:554/ch03/1
roles:
- detect
detect:
width: 704
height: 576
fps: 10
objects:
track:
- person
semantic_search:
enabled: false
model_size: small
face_recognition:
enabled: true
model_size: large
lpr:
enabled: true
classification:
bird:
enabled: false docker-compose file or Docker CLI commandfredrick@fredrick-System-Product-Name:/opt$ cat docker-compose.yaml
version: "3.9"
services:
frigate:
container_name: frigate
image: ghcr.io/blakeblackshear/frigate:stable-tensorrt
restart: unless-stopped
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
shm_size: "512mb"
privileged: true
volumes:
- /etc/localtime:/etc/localtime:ro
- /opt/frigate/config:/config
- /mnt/dataslave/noble/media/Frigate:/media/frigate
- /opt/frigate/config/models:/opt/models:ro
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "8971:8971"
- "5000:5000"
- "8554:8554"
- "8555:8555/tcp"
- "8555:8555/udp"
environment:
- YOLO_MODELS=yolov7-320,yolov7x-640
- USE_FP16=false
fredrick@fredrick-System-Product-Name:/opt$ tree /opt/frigate/
/opt/frigate/
└── config
├── backup_config.yaml
├── backup.db
├── config.yaml
├── frigate.db
├── frigate.db-shm
├── frigate.db-wal
├── model_cache
│ ├── facedet
│ │ ├── arcface.onnx
│ │ ├── facedet.onnx
│ │ └── landmarkdet.yaml
│ ├── paddleocr-onnx
│ │ ├── classification.onnx
│ │ ├── detection-small.onnx
│ │ └── recognition.onnx
│ └── yolov9_license_plate
│ └── yolov9-256-license-plates.onnx
└── models
├── coco-80.txt
└── yolov9-s-320.onnx
7 directories, 15 files Relevant Frigate log outputfredrick@fredrick-System-Product-Name:/opt$ docker compose logs -f frigate | grep -i onnx
WARN[0000] /opt/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
frigate | 2025-09-26 10:28:31.115378023 [2025-09-26 10:28:31] detector.onnx INFO : Starting detection process: 576
frigate | 2025-09-26 10:28:31.117020130 [2025-09-26 10:28:31] frigate.detectors.plugins.onnx INFO : ONNX: loaded onnxruntime module
frigate | 2025-09-26 10:28:31.120307063 [2025-09-26 10:28:31] frigate.detectors.plugins.onnx INFO : ONNX: loading /opt/models/yolov9-s-320.onnx
frigate | 2025-09-26 10:28:31.391269684 [2025-09-26 10:28:31] frigate.detectors.plugins.onnx INFO : ONNX: /opt/models/yolov9-s-320.onnx loaded
frigate | 2025-09-26 10:37:33.943807239 [2025-09-26 10:37:33] detector.onnx INFO : Exited detection process...
fredrick@fredrick-System-Product-Name:/opt$ docker compose up
WARN[0000] /opt/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
Attaching to frigate
frigate | s6-rc: info: service s6rc-fdholder: starting
frigate | s6-rc: info: service s6rc-oneshot-runner: starting
frigate | s6-rc: info: service s6rc-oneshot-runner successfully started
frigate | s6-rc: info: service fix-attrs: starting
frigate | s6-rc: info: service s6rc-fdholder successfully started
frigate | s6-rc: info: service fix-attrs successfully started
frigate | s6-rc: info: service legacy-cont-init: starting
frigate | s6-rc: info: service legacy-cont-init successfully started
frigate | s6-rc: info: service prepare: starting
frigate | s6-rc: info: service log-prepare: starting
frigate | s6-rc: info: service log-prepare successfully started
frigate | s6-rc: info: service nginx-log: starting
frigate | s6-rc: info: service go2rtc-log: starting
frigate | s6-rc: info: service frigate-log: starting
frigate | s6-rc: info: service certsync-log: starting
frigate | s6-rc: info: service nginx-log successfully started
frigate | s6-rc: info: service go2rtc-log successfully started
frigate | s6-rc: info: service frigate-log successfully started
frigate | s6-rc: info: service certsync-log successfully started
frigate | s6-rc: info: service prepare successfully started
frigate | s6-rc: info: service go2rtc: starting
frigate | s6-rc: info: service go2rtc successfully started
frigate | s6-rc: info: service go2rtc-healthcheck: starting
frigate | s6-rc: info: service frigate: starting
frigate | s6-rc: info: service go2rtc-healthcheck successfully started
frigate | s6-rc: info: service frigate successfully started
frigate | s6-rc: info: service nginx: starting
frigate | 2025-09-26 10:59:56.599922913 [INFO] Starting NGINX...
frigate | 2025-09-26 10:59:56.784037578 [INFO] Preparing Frigate...
frigate | 2025-09-26 10:59:57.193993085 [INFO] Starting Frigate...
frigate | 2025-09-26 10:59:57.194012645 [INFO] Preparing new go2rtc config...
frigate | 2025-09-26 10:59:57.737683722 [INFO] Starting go2rtc...
frigate | 2025-09-26 10:59:57.797521584 10:59:57.797 INF go2rtc platform=linux/amd64 revision=fa580c5 version=1.9.9
frigate | 2025-09-26 10:59:57.797524724 10:59:57.797 INF config path=/dev/shm/go2rtc.yaml
frigate | 2025-09-26 10:59:57.797799664 10:59:57.797 INF [rtsp] listen addr=:8554
frigate | 2025-09-26 10:59:57.797892924 10:59:57.797 INF [api] listen addr=:1984
frigate | 2025-09-26 10:59:57.798177683 10:59:57.798 INF [webrtc] listen addr=:8555
frigate | s6-rc: info: service nginx successfully started
frigate | s6-rc: info: service certsync: starting
frigate | s6-rc: info: service certsync successfully started
frigate | s6-rc: info: service legacy-services: starting
frigate | 2025-09-26 10:59:58.206310351 [INFO] Starting certsync...
frigate | s6-rc: info: service legacy-services successfully started
frigate | 2025-09-26 10:59:58.559681624 127.0.0.1 - - [26/Sep/2025:10:59:58 +1000] "" 400 0 "-" "-" "-"
frigate | 2025-09-26 10:59:59.849564504 [2025-09-26 10:59:59] frigate.util.config INFO : Checking if frigate config needs migration...
frigate | 2025-09-26 10:59:59.861173450 [2025-09-26 10:59:59] frigate.util.config INFO : frigate config does not need migration...
frigate | 2025-09-26 11:00:00.645699102 [2025-09-26 11:00:00] frigate.util.services INFO : Automatically detected nvidia hwaccel for video decoding
frigate | 2025-09-26 11:00:01.468740071 2025/09/26 11:00:01 [error] 209#209: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
frigate | 2025-09-26 11:00:01.468762981 2025/09/26 11:00:01 [error] 209#209: *2 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
frigate | 2025-09-26 11:00:01.995143770 [2025-09-26 11:00:01] frigate.app INFO : Starting Frigate (0.16.1-e664cb2)
frigate | 2025-09-26 11:00:02.006349067 [2025-09-26 11:00:02] peewee_migrate.logs INFO : Starting migrations
frigate | 2025-09-26 11:00:02.007211217 [2025-09-26 11:00:02] peewee_migrate.logs INFO : There is nothing to migrate
frigate | 2025-09-26 11:00:02.029689160 [2025-09-26 11:00:02] frigate.app INFO : Recording process started: 537
frigate | 2025-09-26 11:00:02.037622767 [2025-09-26 11:00:02] frigate.app INFO : Review process started: 550
frigate | 2025-09-26 11:00:02.039641077 [2025-09-26 11:00:02] frigate.app INFO : go2rtc process pid: 127
frigate | 2025-09-26 11:00:02.058481871 [2025-09-26 11:00:02] detector.onnx INFO : Starting detection process: 562
frigate | 2025-09-26 11:00:02.059703441 [2025-09-26 11:00:02] frigate.detectors.plugins.onnx INFO : ONNX: loaded onnxruntime module
frigate | 2025-09-26 11:00:02.063240740 [2025-09-26 11:00:02] frigate.detectors.plugins.onnx INFO : ONNX: loading /opt/models/yolov9-s-320.onnx
frigate | 2025-09-26 11:00:02.063693199 [2025-09-26 11:00:02] frigate.app INFO : Embedding process started: 570
frigate | 2025-09-26 11:00:02.078394865 [2025-09-26 11:00:02] frigate.app INFO : Output process started: 591
frigate | 2025-09-26 11:00:02.117757393 [2025-09-26 11:00:02] frigate.app INFO : Camera processor started for front: 651
frigate | 2025-09-26 11:00:02.136546367 [2025-09-26 11:00:02] frigate.app INFO : Camera processor started for driveway: 671
frigate | 2025-09-26 11:00:02.137524487 [2025-09-26 11:00:02] frigate.app INFO : Camera processor started for door: 686
frigate | 2025-09-26 11:00:02.138157827 [2025-09-26 11:00:02] frigate.app INFO : Camera processor started for back: 697
frigate | 2025-09-26 11:00:02.166400528 [2025-09-26 11:00:02] frigate.app INFO : Capture process started for front: 708
frigate | 2025-09-26 11:00:02.179817284 [2025-09-26 11:00:02] frigate.app INFO : Capture process started for driveway: 718
frigate | 2025-09-26 11:00:02.191981170 [2025-09-26 11:00:02] frigate.app INFO : Capture process started for door: 732
frigate | 2025-09-26 11:00:02.217771922 [2025-09-26 11:00:02] frigate.app INFO : Capture process started for back: 749
frigate | 2025-09-26 11:00:02.392061129 loading data from : /config/model_cache/facedet/landmarkdet.yaml
frigate | 2025-09-26 11:00:02.417802931 [2025-09-26 11:00:02] frigate.api.fastapi_app INFO : Starting FastAPI app
frigate | 2025-09-26 11:00:02.608575192 [2025-09-26 11:00:02] frigate.api.fastapi_app INFO : FastAPI started
frigate | 2025-09-26 11:00:02.986099286 [2025-09-26 11:00:02] frigate.detectors.plugins.onnx INFO : ONNX: /opt/models/yolov9-s-320.onnx loaded
frigate | 2025-09-26 11:00:06.599790767 [INFO] Starting go2rtc healthcheck service... Install methodDocker Compose Object DetectorOther Screenshots of the Frigate UI's System metrics pages![]() ![]() Any other information that may be helpfulfredrick@fredrick-System-Product-Name:/opt$ sudo lshw -short
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Your config and logs show the ONNX model is loading, but no detections are occurring. Here are the most likely issues and solutions based on the documentation:
detectors:
onnx:
type: onnx
device: '0' This tells Frigate to use the first GPU(5).
Action Steps:
If you still see no detections, try running Frigate with just one camera and a minimal config to isolate the issue. If the problem persists, double-check the model export process and try a known-good ONNX model from the documentation resources(2)(3)(4). 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
I'd start by removing the person filter |
Beta Was this translation helpful? Give feedback.
-
Wow that was quick. I really appreciate it! mqtt: detectors: model: snapshots: record: cameras: driveway: door: back: semantic_search: face_recognition: lpr: classification: I forgot to add this to the orginal post as well: |
Beta Was this translation helpful? Give feedback.
In Frigate 0.16 and later, detection is disabled by default.
You need to add:
to the global level of your config.
See the breaking changes in the official release notes: https://github.com/blakeblackshear/frigate/releases/tag/v0.16.0