Update libyolo_layer.so for HA compatibility

Frigate HA add-on map  /usr/share/hassio/homeassistant  to /config in the container
By compying trt-models folder into homeassistant folder, libyolo_layer.so can be accessed by the plugin "out of the box" throught /config/trt-models

Better for homeassistant compatibility.
This commit is contained in:
Bertrand d'Hérouville 2023-04-30 16:48:59 +02:00 committed by GitHub
parent ca7790ff65
commit 33674faaa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ class TensorRtDetector(DetectionApi):
try:
trt.init_libnvinfer_plugins(self.trt_logger, "")
ctypes.cdll.LoadLibrary("/trt-models/libyolo_layer.so")
ctypes.cdll.LoadLibrary("/config/trt-models/libyolo_layer.so")
except OSError as e:
logger.error(
"ERROR: failed to load libraries. %s",