u/Delicious-Owl

Frigate is not detecting person or cat

Hi,

I'm running Frigate in a VM on a Proxmox host. The GPU is passthrough to the VM.

I'm trying to detect persons and my cat, but right now it only detects sounds and I don't understand why.

I also want to detect faces but it's not working right now, I guess because it's not detecting any person.

Here is my conf file :

mqtt:
  enabled: false

go2rtc:
  streams:
    imou-cam-salon:
      - rtsp://user:passwd@X.X.X.X/cam/realmonitor?channel=1&subtype=0
      # pas de #audio=aac car déjà envoyé comme aac par la caméra
      - ffmpeg:imou-cam-salon#video=h264#audio=copy
    imou-cam-salon-lowdef:
      - rtsp://user:passwd@X.X.X.X/cam/realmonitor?channel=1&subtype=1
    imou-cam-chambre:
      - rtsp://user:passwd@X.X.X.X/cam/realmonitor?channel=1&subtype=0
      # pas de #audio=aac car déjà envoyé comme aac par la caméra
      - ffmpeg:imou-cam-chambre#video=h264#audio=copy
    imou-cam-chambre-lowdef:
      - rtsp://user:passwd@X.X.X.X/cam/realmonitor?channel=1&subtype=1
  webrtc:
    candidates:
      - X.X.X.X:8555

cameras:
  imou-cam-salon:
    enabled: true
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/imou-cam-salon
          roles:
            - record
            - detect
            - audio
    onvif:
      host: X.X.X.X
      port: 80
      user: user
      password: passwd
    detect:
      annotation_offset: 0
  imou-cam-chambre:
    enabled: true
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/imou-cam-chambre
          roles:
            - record
            - detect
            - audio
      output_args:
        record: preset-record-generic-audio-aac
    onvif:
      host: X.X.X.X
      port: 80
      user: user
      password: passwd

ffmpeg:
  retry_interval: 20
  hwaccel_args: preset-vaapi

detect:
  enabled: true
  width: 1280
  height: 720
  fps: 5

# On indique quels objets on souhaite détecter
objects:
  track:
    - cat
    - person

review:
  detections:
    labels:
      - cat
      - person
  alerts:
    labels:
      - person
      - speech

# On enregistre toutes les vidéos sur une durée de 7 jours
record:
  enabled: true
  continuous:
    days: 7
  motion:
    days: 7
audio:
  enabled: true
  listen:
    - speech   # Pour la parole
    #- scream
    #- yell
    - cat
    - purr
    - meow
    - hiss
    - doorbell
    - fire_alarm

snapshots:
  enabled: true
  timestamp: true

detectors:
  openvino:
    type: openvino
    device: GPU

model:
  # On pointe vers le fichier XML dans le sous-dossier créé par Ultralytics
  path: /config/models/yolov8n_openvino_model/yolov8n.xml
  labelmap_path: /config/models/coco_80.txt
  width: 640
  height: 640
  input_tensor: nchw  # Crucial pour YOLO
  input_pixel_format: bgr
  model_type: yolo-generic

version: 0.17-0

logger:
  default: warning
  logs:
    frigate.event: debug
    frigate.app: debug
    frigate.recognizers: debug
semantic_search:
  enabled: true
  model_size: small
face_recognition:
  enabled: true
  model_size: small
  detection_threshold: 0.1
  min_area: 200
lpr:
  enabled: false
classification:
  bird:
    enabled: false
  custom:
    Luna:
      enabled: true
      name: Luna
      threshold: 0.8
      object_config:
        objects:
          - cat
        classification_type: sub_label

Thanks a lot for your help

reddit.com
u/Delicious-Owl — 5 days ago