From 97e3cf12a72dd086b65a72630603ddbe18228f38 Mon Sep 17 00:00:00 2001 From: jeremy Date: Mon, 1 Jun 2026 15:07:36 -0500 Subject: [PATCH] frigate: sync config to live state, fix /tmp/cache size, enable VAAPI on house_east/pool_room, throttle shop_west detection - docker-compose.yml: increase /tmp/cache tmpfs from 4G to 8G, add Coral USB device passthrough (/dev/bus/usb), fix memswap_limit to 16G (was equal to mem_limit) - config.yml: replace OpenVINO detector with Coral edgetpu (usb), update model dimensions to 320x320 and pixel format to rgb, enable VAAPI on house_east and pool_room, throttle shop_west to 2fps with stricter person/car filters (min_area + threshold), add offline note for gate_camera, enable semantic_search (large), face_recognition (small), LPR, and bird classification Co-Authored-By: Claude Sonnet 4.6 --- compose/hf-pdocker-01/frigate/config.yml | 46 +++++++++++++++---- .../hf-pdocker-01/frigate/docker-compose.yml | 5 +- 2 files changed, 40 insertions(+), 11 deletions(-) diff --git a/compose/hf-pdocker-01/frigate/config.yml b/compose/hf-pdocker-01/frigate/config.yml index f72b415..5bde6bf 100644 --- a/compose/hf-pdocker-01/frigate/config.yml +++ b/compose/hf-pdocker-01/frigate/config.yml @@ -8,7 +8,7 @@ # back_porch 192.168.44.63 kerberos:kerberos # house_south_corner 192.168.44.61 admin:(blank) # house_south_yard 192.168.44.62 admin:(blank) -# gate_camera 192.168.86.175 admin:(blank) +# gate_camera 192.168.86.175 admin:(blank) <-- OFFLINE: wrong user/pass RTSP error # # Profile cameras (/profile1 + /profile2, H.264): # house_north 192.168.44.51 admin:123456 @@ -166,17 +166,17 @@ ffmpeg: # ============================================================================= model: - path: /openvino-model/ssdlite_mobilenet_v2.xml - width: 300 - height: 300 + width: 320 + height: 320 input_tensor: nhwc - input_pixel_format: bgr + input_pixel_format: rgb labelmap_path: /openvino-model/coco_91cl_bkgr.txt detectors: - ov: - type: openvino - device: GPU + coral: + type: edgetpu + device: usb + detect: enabled: true fps: 3 @@ -229,6 +229,21 @@ birdseye: enabled: true mode: objects +semantic_search: + enabled: true + model_size: large + +face_recognition: + enabled: true + model_size: small + +lpr: + enabled: true + +classification: + bird: + enabled: true + # ============================================================================= # Camera definitions # ============================================================================= @@ -334,8 +349,19 @@ cameras: roles: - record + # shop_west: throttled to 2fps + stricter filters to reduce detection load shop_west: enabled: true + detect: + fps: 2 + objects: + filters: + person: + min_area: 8000 + threshold: 0.8 + car: + min_area: 15000 + threshold: 0.8 ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/shop_west_sub @@ -374,13 +400,12 @@ cameras: - record # --------------------------------------------------------------------------- - # house_east - HEVC, VAAPI disabled (pw: admin) + # house_east - HEVC source, go2rtc provides H.264 sub, VAAPI enabled # --------------------------------------------------------------------------- house_east: enabled: true ffmpeg: - hwaccel_args: [] inputs: - path: rtsp://127.0.0.1:8554/house_east_sub input_args: preset-rtsp-restream @@ -459,6 +484,7 @@ cameras: # --------------------------------------------------------------------------- # ASH43-W cameras (HEVC main, H.264 sub - go2rtc transcodes main to H.264) + # VAAPI enabled - sub stream is H.264 # --------------------------------------------------------------------------- pool_room: diff --git a/compose/hf-pdocker-01/frigate/docker-compose.yml b/compose/hf-pdocker-01/frigate/docker-compose.yml index 5707d01..658447b 100644 --- a/compose/hf-pdocker-01/frigate/docker-compose.yml +++ b/compose/hf-pdocker-01/frigate/docker-compose.yml @@ -13,10 +13,13 @@ services: - /mnt/docker-data/configs/frigate/config:/config - /mnt/frigate-recordings:/media/frigate - /etc/localtime:/etc/localtime:ro + tmpfs: + - /tmp/cache:size=8G devices: - /dev/dri:/dev/dri + - /dev/bus/usb:/dev/bus/usb mem_limit: 12G - memswap_limit: 12G + memswap_limit: 16G healthcheck: test: ["CMD-SHELL", "curl -f http://localhost:5000/api/version || exit 1"] interval: 30s