Direkt zum Hauptinhalt

Coral AI-Beschleuniger einbinden

Beschreibung:

Das Auswerten der Bildervia CPU bringt die CPU an 99% Limit
Damit ruckelt die Vorschau oder ist gar nicht verfügbar.
Dafür setzten wir einen USB Dongle ein.

Auswahl_397.png

Config abändern:

Alt:

....
# Optional: Detectors configuration. Defaults to a single CPU detector
detectors:
  # Required: name of the detector
  detector_name:
    # Required: type of the detector
    # Frigate provided types include 'cpu', 'edgetpu', and 'openvino' (default: shown below)
    # Additional detector types can also be plugged in.
    # Detectors may require additional configuration.
    # Refer to the Detectors configuration page for more information.
    type: cpu
    
....

Neu

...
# Optional: Detectors configuration. Defaults to a single CPU detector
detectors:
  # Required: name of the detector
  detector_name:
    # Required: type of the detector
    # Frigate provided types include 'cpu', 'edgetpu', and 'openvino' (default: shown below)
    # Additional detector types can also be plugged in.
    # Detectors may require additional configuration.
    # Refer to the Detectors configuration page for more information.
    #Hier kommt anstatt cpu edgetpu rein
    type: edgetpu
    device: usb
...

Fehlerbehebung:

Fehler: Unable to keep up with recording segments in cache:

Dieser Fehler kann auftauchen, wenn Frigate in einer KVM Maschine läuft und Google Coral per USB durchgeschliffen wird.

Sollten die Aufnahmen irgendwann stoppen und im Log diese Fehler auftauchen, liegt es daran das der Coral Stick in der VM nicht hinterher kommt. Wenn die Latenz höher als 10ms ist

Auswahl_128.png

2024-09-22 08:15:55.658352487  [2024-09-22 10:15:55] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for Innenhof_CAM. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-09-22 08:16:00.661791046  [2024-09-22 10:16:00] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for Innenhof_CAM_Mobil. Keeping the 6 most recent segments out of 7 and discarding the rest...

Abhilfe:

Dann Frigate in einen LCX Container stecken. Zweiter Vorteil wir können da auch die Video encoder Beschleunigung nutzen ;-)
Siehe Artikel : Installation als LXC Container und Einbindung in Home Assistant