Can someone help me with enabling nVidia support for Frigate? GT710 Debian #3590
Unanswered
drock1985
asked this question in
Ask A Question
Replies: 1 comment 16 replies
-
|
I'd recommend trying frigate 0.11.0 (currently in release candidate). It is much simpler to enable and use: https://deploy-preview-2829--frigate-docs.netlify.app/configuration/hardware_acceleration#nvidia-gpu |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've been trying for a day or so to enable nVidia driver support to take some of the strain off my CPU that is running 4 HD 1080P cameras currently, as the CPU usage is hovering around 80% most of the time. This is the configuration for docker-compose that I am using:
'
version: "3.9"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: blakeblackshear/frigate:stable-amd64nvidia
runtime: nvidia
shm_size: "256mb" # update for your cameras based on calculation above
devices:
- /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
- /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
- /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
- /dev/vpu_service
- /dev/dri/card0
- /dev/dri/card1
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/frigate/config.yml:/config/config.yml:ro
- /media/frigate:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "1935:1935" # RTMP feeds
environment:
FRIGATE_RTSP_PASSWORD: "rtsp_passowrd_here"
'
This is my config.yml for frigate
'mqtt:
host: 192.168.1.56
user: frigate
password: mqtt_password_here
detectors:
cpu1:
type: cpu
num_threads: 4
cameras:
side_window: # <------ Name the camera
ffmpeg:
input_args:
- -c:v
- h264_cuvid
inputs:
- path: rtsp://192.168.1.62:8554/driveway # <----- Update for your camera
roles:
- detect
- rtmp
'#' - record
- clips
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
objects:
track:
- cat
- person
record:
enabled: True
retain:
days: 0
events:
retain:
default: 10
required_zones:
- awalt_road
snapshots:
enabled: true
timestamp: false
bounding_box: true
retain:
default: 2
objects:
person: 4
bear: 5
zones:
driveway:
coordinates: 240,836,845,878,1361,845,1186,711,363,734
awalt_road:
coordinates: 0,703,484,613,576,639,0,821
porch: # <------ Name the camera
ffmpeg:
input_args:
- -c:v
- h264_cuvid
inputs:
- path: rtsp://192.168.1.62:8554/porch-cam # <----- Update for your camera
roles:
- detect
- rtmp
'#' - record
- clips
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
objects:
track:
- cat
- person
- bear
- bird
- dog
- knife
record:
enabled: True
retain:
days: 0
events:
retain:
default: 10
snapshots:
enabled: true
timestamp: false
bounding_box: true
retain:
default: 2
objects:
person: 4
bear: 5
wyzepan: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://192.168.1.62:8554/wyze-pan # <----- Update for your camera
roles:
- detect
- rtmp
'# ' - record
- clips
input_args:
- -c:v
- h264_cuvid
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
objects:
track:
- cat
- person
record:
enabled: True
retain:
days: 0
events:
retain:
default: 10
snapshots:
enabled: true
timestamp: false
bounding_box: true
retain:
default: 2
objects:
person: 4
bear: 5
wyze: # <------ Name the camera
ffmpeg:
input_args:
- -c:v
- h264_cuvid
inputs:
- path: rtsp://192.168.1.62:8554/back-yard-cam # <----- Update for your camera
roles:
- detect
- rtmp
'#' - record
- clips
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
objects:
track:
- cat
- person
record:
enabled: True
retain:
days: 0
events:
retain:
default: 10
snapshots:
enabled: true
timestamp: false
bounding_box: true
retain:
default: 2
objects:
person: 15
bear: 5
'
And when looking at nvidia-smi is either the docker terminal or just in the OS; it never shows any usage. I do see around 400/1000mb of ram being used on the card though; just no processes. What am I configuring wrong? Is it because it's a GT 710?
-Cheers,
Beta Was this translation helpful? Give feedback.
All reactions