NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Simplify tensorrt building (#13851)
Nicolas Mowen1a51ce712c3e
diff --git a/docker/tensorrt/Dockerfile.amd64 b/docker/tensorrt/Dockerfile.amd64index 61d3264c91..3dcb426589 100644--- a/docker/tensorrt/Dockerfile.amd64+++ b/docker/tensorrt/Dockerfile.amd64@@ -3,8 +3,6 @@# https://askubuntu.com/questions/972516/debian-frontend-environment-variableARG DEBIAN_FRONTEND=noninteractive-ARG TRT_BASE=nvcr.io/nvidia/tensorrt:23.03-py3-# Make this a separate target so it can be built/cached optionallyFROM wheels as trt-wheelsARG DEBIAN_FRONTEND@@ -15,7 +13,7 @@ COPY docker/tensorrt/requirements-amd64.txt /requirements-tensorrt.txtRUN mkdir -p /trt-wheels && pip3 wheel --wheel-dir=/trt-wheels -r /requirements-tensorrt.txt# Build CuDNN-FROM ${TRT_BASE} AS cudnn-deps+FROM wget AS cudnn-depsARG COMPUTE_LEVELdiff --git a/frigate/detectors/plugins/onnx.py b/frigate/detectors/plugins/onnx.pyindex a0f5552d94..f3e15422b2 100644--- a/frigate/detectors/plugins/onnx.py+++ b/frigate/detectors/plugins/onnx.py@@ -49,7 +49,9 @@ class ONNXDetector(DetectionApi):"trt_timing_cache_enable": True,"trt_timing_cache_path": "/config/model_cache/tensorrt/ort","trt_engine_cache_enable": True,+ "trt_dump_ep_context_model": True,"trt_engine_cache_path": "/config/model_cache/tensorrt/ort/trt-engines",+ "trt_ep_context_file_path": "/config/model_cache/tensorrt/ort",})elif provider == "OpenVINOExecutionProvider":