I want to try using NVDEC (Nvidia) with Frigate as CPU load looks a bit higher than expected. I am using Frigate thru Home Assistant Integration and it installs Docker Container without Nvidia support. Is there any easy way to swap it to Nvidia-decoder capable container without reinstalling everything anew?
What is the best resolution for inference? HD, FHD, UHD? Cameras are capable of all of the above.
Hello, did you connect coral to DS920+ and installed everything in VMM? So HA and frigate as add-on? Or is frigate installed as a separate docker container?
What config files do you use?
I’m running at 4k with coral using the config I posted ages ago. Check the res with 1 input at a time and work from there. I’d assume it’s a setup issue, worst case use cpu first then get a single channel working then move to coral. Then extend to adding more channels. It does work
Thanks, I got it running on my DS918+ with DSM 7, getting FPS of about 50 with 2K camera.
Did you set up some hwaccel?
Passed coral as USB 3 device to VMM on my Synology…
detector.coral INFO : Starting detection process: 39
frigate.edgetpu INFO : Attempting to load TPU as usb
frigate.app INFO : Capture process started for office2: 45
frigate.edgetpu INFO : No EdgeTPU detected.
Process detector:coral:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 152, in load_delegate
delegate = Delegate(library, options)
File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 111, in __init__
raise ValueError(capture.message)
ValueError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/opt/frigate/frigate/edgetpu.py", line 124, in run_detector
object_detector = LocalObjectDetector(tf_device=tf_device, num_threads=num_threads)
File "/opt/frigate/frigate/edgetpu.py", line 63, in __init__
edge_tpu_delegate = load_delegate('libedgetpu.so.1.0', device_config)
File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 154, in load_delegate
raise ValueError('Failed to load delegate from {}\n{}'.format(
ValueError: Failed to load delegate from libedgetpu.so.1.0
This is my config
detectors:
coral:
type: edgetpu
device: usb
num_threads: 3
I did install a Google Coral USB, on my USB port (proxmox) I have this 1a6e:089a
root@xxx:~# lsusb
Bus 002 Device 003: ID 18d1:9302 Google Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen5 (ZW090) - UZB
Bus 001 Device 003: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 002: ID 8087:0aaa Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@xxx:~#
EDIT: SOLVED in proxmox use passthrough instead of vendor id and now Corsl is recogfnized
version: "3.6"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: blakeblackshear/frigate:0.9.0-rc2-amd64
devices:
- /dev/bus/usb:/dev/bus/usb
- /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /config/frigate.yml:/config/config.yml:ro
- /media/TV/Cams:/media/frigate
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "1935:1935"
environment:
FRIGATE_RTSP_PASSWORD: *****
frigate | [fix-attrs.d] applying ownership & permissions fixes...
frigate | [fix-attrs.d] done.
frigate | [cont-init.d] executing container initialization scripts...
frigate | [cont-init.d] done.
frigate | [services.d] starting services
frigate | [services.d] done.
frigate | Starting migrations
frigate | [2021-09-04 13:59:34] peewee_migrate INFO : Starting migrations
frigate | There is nothing to migrate
frigate | [2021-09-04 13:59:34] peewee_migrate INFO : There is nothing to migrate
frigate | [Errno 99] Cannot assign requested address
frigate | [cmd] python3 exited 1
frigate | [cont-finish.d] executing container finish scripts...
frigate | [cont-finish.d] done.
frigate | [s6-finish] waiting for services.
frigate | [s6-finish] sending all processes the TERM signal.
frigate | [s6-finish] sending all processes the KILL signal and exiting.
frigate | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
frigate | [s6-init] ensuring user provided files have correct perms...exited 0.
frigate | [fix-attrs.d] applying ownership & permissions fixes...
frigate | [fix-attrs.d] done.
frigate | [cont-init.d] executing container initialization scripts...
frigate | [cont-init.d] done.
frigate | [services.d] starting services
frigate | [services.d] done.
frigate | Starting migrations
frigate | [2021-09-04 14:00:38] peewee_migrate INFO : Starting migrations
frigate | There is nothing to migrate
frigate | [2021-09-04 14:00:38] peewee_migrate INFO : There is nothing to migrate
frigate | [Errno 99] Cannot assign requested address
frigate | [cmd] python3 exited 1
frigate | [cont-finish.d] executing container finish scripts...
frigate | [cont-finish.d] done.
frigate | [s6-finish] waiting for services.
frigate | [s6-finish] sending all processes the TERM signal.
frigate | [s6-finish] sending all processes the KILL signal and exiting.
Thanks!
EDIT:
So it seems the issue is connection with the MQTT server. I did confirm the username and password work when I use the mosquitto_sub command to listen to the frigate topic and publish some stuff from the HA plugin. So, not sure why frigate can’t connect.