NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Update hailo driver to 4.18 (#13991)
Nicolas Mowen20fd1db0f4c8
diff --git a/docker/hailo8l/Dockerfile b/docker/hailo8l/Dockerfileindex 391f6f5414..479ef9b27a 100644--- a/docker/hailo8l/Dockerfile+++ b/docker/hailo8l/Dockerfile@@ -50,7 +50,7 @@ RUN PYTHON_VERSION=$(python3 --version 2>&1 | awk '{print $2}' | cut -d. -f1,2)RUN . /etc/environment && \git clone https://github.com/hailo-ai/hailort.git /opt/hailort && \cd /opt/hailort && \- git checkout v4.17.0 && \+ git checkout v4.18.0 && \cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -DHAILO_BUILD_PYBIND=1 -DPYBIND11_PYTHON_VERSION=${PYTHON_VERSION} && \cmake --build build --config release --target libhailort && \cmake --build build --config release --target _pyhailort && \@@ -91,7 +91,7 @@ RUN pip3 install -U /deps/hailo-wheels/*.whlRUN . /etc/environment && \mv /usr/local/lib/python${PYTHON_VERSION}/dist-packages/hailo_platform/pyhailort/libhailort.so /usr/lib/${CC} && \cd /usr/lib/${CC}/ && \- ln -s libhailort.so libhailort.so.4.17.0+ ln -s libhailort.so libhailort.so.4.18.0# Copy base files from the rootfs stageCOPY --from=rootfs / /diff --git a/docker/hailo8l/user_installation.sh b/docker/hailo8l/user_installation.shindex 2daf1e4cfe..3c1f263b8b 100644--- a/docker/hailo8l/user_installation.sh+++ b/docker/hailo8l/user_installation.sh@@ -13,7 +13,7 @@ elsefi# Clone the HailoRT driver repository-git clone --depth 1 --branch v4.17.0 https://github.com/hailo-ai/hailort-drivers.git+git clone --depth 1 --branch v4.18.0 https://github.com/hailo-ai/hailort-drivers.git# Build and install the HailoRT drivercd hailort-drivers/linux/pcie@@ -23,10 +23,17 @@ sudo make install# Load the Hailo PCI driversudo modprobe hailo_pci+if [ $? -ne 0 ]; then+ echo "Unable to load hailo_pci module, common reasons for this are:"+ echo "- Key was rejected by service: Secure Boot is enabling disallowing install."+ echo "- Permissions are not setup correctly."+ exit 1+fi+# Download and install the firmwarecd ../.././download_firmware.sh-sudo mv hailo8_fw.4.17.0.bin /lib/firmware/hailo/hailo8_fw.bin+sudo mv hailo8_fw.4.18.0.bin /lib/firmware/hailo/hailo8_fw.bin# Install udev rulessudo cp ./linux/pcie/51-hailo-udev.rules /etc/udev/rules.d/