[HW Accel Support]: System not using GPU? #16383
Replies: 6 comments 3 replies
-
What is your docker compose? Additional configuration is required to use your GPU. https://docs.frigate.video/configuration/hardware_acceleration#configuring-nvidia-gpus-in-docker |
Beta Was this translation helpful? Give feedback.
-
It being run in Unraid, I think this is what you are looking for... /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker create --name='frigate' --net='bridge' --pids-limit 2048 --privileged=true -e TZ="Europe/London" -e HOST_OS="Unraid" -e HOST_HOSTNAME="Thunderbird" -e HOST_CONTAINERNAME="frigate" -e 'FRIGATE_RTSP_PASSWORD'='' -e 'PLUS_API_KEY'='**********' -e 'NVIDIA_VISIBLE_DEVICES'='GPU-fa8c1309-5bbc-54f3-3664-ba3acc034178' -e 'NVIDIA_DRIVER_CAPABILITIES'='compute,utility,video' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='http://[IP]:[PORT:5000]' -l net.unraid.docker.icon='https://raw.githubusercontent.com/yayitazale/unraid-templates/main/frigate.png' -p '5050:5000/tcp' -p '8554:8554/tcp' -p '8555:8555/tcp' -p '8555:8555/udp' -p '1984:1984/tcp' -v '/mnt/cache/appdata/frigate':'/config':'rw' -v '/mnt/disks/CCTV/':'/media/frigate':'rw' -v '/etc/localtime':'/etc/localtime':'rw' --device='/dev/bus/usb/' --shm-size=256mb --mount type=tmpfs,target=/tmp/cache,tmpfs-size=1000000000 --restart unless-stopped --runtime=nvidia 'ghcr.io/blakeblackshear/frigate:stable' |
Beta Was this translation helpful? Give feedback.
-
also... ffmpeg -decoders | grep cuvidffmpeg version n5.1-2-g915ef932a3-20220731 Copyright (c) 2000-2022 the FFmpeg developers and SMI... nvidia-smiSat Feb 8 12:03:25 2025 +-----------------------------------------------------------------------------------------+ |
Beta Was this translation helpful? Give feedback.
-
added --gpus=all Now I get ffmpeg errors...
|
Beta Was this translation helpful? Give feedback.
-
ok, can you let me know how to get the logs needed? Do I just copy from the Frigate client? |
Beta Was this translation helpful? Give feedback.
-
After upgrading to 0.15 I can see the GPU is being used. |
Beta Was this translation helpful? Give feedback.
-
Describe the problem you are having
After a free upgrade from a 1050 to a 1660 Super the system appears to not be using the GPU at all and most of the CPU usage seems to be from recording. Does this config look ok? Should the GPU be detected and used with the Coral? I'm uning UNRAID.
Version
0.14.1
Frigate config file
docker-compose file or Docker CLI command
Not sure how to get this from Unraid?
Relevant Frigate log output
Relevant go2rtc log output
FFprobe output from your camera
**
Install method
Docker Compose
Object Detector
Coral
Network connection
Wired
Camera make and model
Reolink
Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions