Skip to content

Commit

Permalink
[home] added prepare model 416 to frigate
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberdev committed Feb 13, 2024
1 parent 063b172 commit 8eb5dea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
24 changes: 6 additions & 18 deletions apps/home/frigate/base/cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,24 @@ data:
- detect
mqtt:
enabled: False
snapshots:
enabled: True
retain:
default: 30
model:
path: /trt-models/yolov7-tiny-416.trt
path: /config/model_cache/tensorrt/yolov7-tiny-416.trt
input_tensor: nchw
input_pixel_format: rgb
width: 416
height: 416
ffmpeg:
global_args: -hide_banner
hwaccel_args: preset-nvidia-h264 #preset-vaapi
input_args: preset-rtsp-restream
input_args: preset-rtsp-generic
output_args:
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
detect: -f rawvideo -pix_fmt yuv420p
detectors:
detector_name:
type: tensorrt
tensorrt:
type: tensorrt
database:
Expand All @@ -47,20 +49,6 @@ data:
mode: motion
export:
timelapse_args: "-vf setpts=0.04*PTS -r 30"
detect:
width: 1280
height: 720
fps: 3
enabled: True
min_initialized: 2
max_disappeared: 25
stationary:
interval: 50
threshold: 50
max_frames:
default: 3000
objects:
person: 1000
motion:
threshold: 30
lightning_threshold: 0.8
Expand Down
2 changes: 2 additions & 0 deletions apps/home/frigate/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ spec:
value: "all"
- name: NVIDIA_DRIVER_CAPABILITIES
value: "all"
- name: "YOLO_MODELS"
value: yolov7-tiny-416
envFrom:
- secretRef:
name: frigate-vars
Expand Down

0 comments on commit 8eb5dea

Please sign in to comment.