Frigate + NVIDIA GPU help needed

MaxBotev

n3wb
May 10, 2021
12
6
Cupertino
Hello all,

Running Frigate in a docker container on ProxMox. NVIDIA drivers are installed and I can run nvtop from Frigate machine. Need help with config files (config.yml and container init file). It runs fine in CPU mode, but obviously I want to use GPU. Frigate manual is bit confusing.
Here are my configs (it doesn't work now)

version: "3.9"
services:
frigate:
container_name: frigate-sun
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable-tensorrt
shm_size: "512mb" # 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 Get started with the M.2 or Mini PCIe Accelerator | Coral
# - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /opt/frigate:/config
# - /opt/frigate/config.yml:/config/config.yml
- /opt/frigate/storage:/media/frigate
# - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
# target: /tmp/cache
# tmpfs:
# ize: 1000000000
ports:
# - "8971:8971"
- "5000:5000"
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
FRIGATE_RTSP_PASSWORD: "pwd"

Also I have this entry in config.yml

detectors:
tensorrt:
type: tensorrt
device: 0 #This is the default, select the first GPU