mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 02:05:21 +03:00
Update NVIDIA section
Fix NVIDIA section so it works in the current build of Frigate
This commit is contained in:
parent
da1b7c2e28
commit
f2654a6f9b
@ -58,14 +58,9 @@ services:
|
|||||||
frigate:
|
frigate:
|
||||||
...
|
...
|
||||||
image: blakeblackshear/frigate:stable
|
image: blakeblackshear/frigate:stable
|
||||||
deploy: # <------------- Add this section
|
environment:
|
||||||
resources:
|
NVIDIA_VISIBLE_DEVICES: all # add this variable as well (or adjust it as needed when you have multiple GPUs)
|
||||||
reservations:
|
NVIDIA_DRIVER_CAPABILITIES: compute,utility,video # probably not needed
|
||||||
devices:
|
|
||||||
- driver: nvidia
|
|
||||||
device_ids: ['0'] # this is only needed when using multiple GPUs
|
|
||||||
count: 1 # number of GPUs
|
|
||||||
capabilities: [gpu]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The decoder you need to pass in the `hwaccel_args` will depend on the input video.
|
The decoder you need to pass in the `hwaccel_args` will depend on the input video.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user