NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix jetson build (#20808)
Nicolas Mowen043bd9e6ee2e
diff --git a/docker/main/build_pysqlite3.sh b/docker/main/build_pysqlite3.shindex c84c6fcf71..14d0cde44c 100755--- a/docker/main/build_pysqlite3.sh+++ b/docker/main/build_pysqlite3.sh@@ -5,21 +5,27 @@ set -euxo pipefailSQLITE3_VERSION="3.46.1"PYSQLITE3_VERSION="0.5.3"+# Install libsqlite3-dev if not present (needed for some base images like NVIDIA TensorRT)+if ! dpkg -l | grep -q libsqlite3-dev; then+ echo "Installing libsqlite3-dev for compilation..."+ apt-get update && apt-get install -y libsqlite3-dev && rm -rf /var/lib/apt/lists/*+fi+# Fetch the pre-built sqlite amalgamation instead of building from sourceif [[ ! -d "sqlite" ]]; thenmkdir sqlitecd sqlite-+# Download the pre-built amalgamation from sqlite.org# For SQLite 3.46.1, the amalgamation version is 3460100SQLITE_AMALGAMATION_VERSION="3460100"-+wget https://www.sqlite.org/2024/sqlite-amalgamation-${SQLITE_AMALGAMATION_VERSION}.zip -O sqlite-amalgamation.zipunzip sqlite-amalgamation.zipmv sqlite-amalgamation-${SQLITE_AMALGAMATION_VERSION}/* .rmdir sqlite-amalgamation-${SQLITE_AMALGAMATION_VERSION}rm sqlite-amalgamation.zip-+cd ../fidiff --git a/docker/tensorrt/Dockerfile.arm64 b/docker/tensorrt/Dockerfile.arm64index 0ae9c38e9c..dd3c5de5e3 100644--- a/docker/tensorrt/Dockerfile.arm64+++ b/docker/tensorrt/Dockerfile.arm64@@ -112,7 +112,7 @@ RUN apt-get update \&& apt-get install -y protobuf-compiler libprotobuf-dev \&& rm -rf /var/lib/apt/lists/*RUN --mount=type=bind,source=docker/tensorrt/requirements-models-arm64.txt,target=/requirements-tensorrt-models.txt \- pip3 wheel --wheel-dir=/trt-model-wheels -r /requirements-tensorrt-models.txt+ pip3 wheel --wheel-dir=/trt-model-wheels --no-deps -r /requirements-tensorrt-models.txtFROM wget AS jetson-ffmpegARG DEBIAN_FRONTEND@@ -145,7 +145,8 @@ COPY --from=trt-wheels /etc/TENSORRT_VER /etc/TENSORRT_VERRUN --mount=type=bind,from=trt-wheels,source=/trt-wheels,target=/deps/trt-wheels \--mount=type=bind,from=trt-model-wheels,source=/trt-model-wheels,target=/deps/trt-model-wheels \pip3 uninstall -y onnxruntime \- && pip3 install -U /deps/trt-wheels/*.whl /deps/trt-model-wheels/*.whl \+ && pip3 install -U /deps/trt-wheels/*.whl \+ && pip3 install -U /deps/trt-model-wheels/*.whl \&& ldconfigWORKDIR /opt/frigate/