NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Various Fixes (#19615)
Nicolas Mowenacf32e1a1e8c
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 44f472beb1..032ca1c5c2 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -77,36 +77,6 @@ jobs:rpi.tags=${{ steps.setup.outputs.image-name }}-rpi*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64,mode=max- jetson_jp5_build:- if: false- runs-on: ubuntu-22.04- name: Jetson Jetpack 5- steps:- - name: Check out code- uses: actions/checkout@v4- with:- persist-credentials: false- - name: Set up QEMU and Buildx- id: setup- uses: ./.github/actions/setup- with:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- - name: Build and push TensorRT (Jetson, Jetpack 5)- env:- ARCH: arm64- BASE_IMAGE: nvcr.io/nvidia/l4t-tensorrt:r8.5.2-runtime- SLIM_BASE: nvcr.io/nvidia/l4t-tensorrt:r8.5.2-runtime- TRT_BASE: nvcr.io/nvidia/l4t-tensorrt:r8.5.2-runtime- uses: docker/bake-action@v6- with:- source: .- push: true- targets: tensorrt- files: docker/tensorrt/trt.hcl- set: |- tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt-jp5- *.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp5- *.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp5,mode=maxjetson_jp6_build:runs-on: ubuntu-22.04-armname: Jetson Jetpack 6diff --git a/docker/main/Dockerfile b/docker/main/Dockerfileindex ca93f4a3b1..d555d99b9f 100644--- a/docker/main/Dockerfile+++ b/docker/main/Dockerfile@@ -212,6 +212,7 @@ COPY docker/main/rootfs/ /# Frigate deps (ffmpeg, python, nginx, go2rtc, s6-overlay, etc)FROM slim-base AS depsARG TARGETARCH+ARG BASE_IMAGEARG DEBIAN_FRONTEND# http://stackoverflow.com/questions/48162574/ddg#49462622diff --git a/docker/main/install_deps.sh b/docker/main/install_deps.shindex bd9f363e96..59e348985a 100755--- a/docker/main/install_deps.sh+++ b/docker/main/install_deps.sh@@ -34,9 +34,13 @@ rm /tmp/libedgetpu1-max.deb# install mesa-teflon-delegate from bookworm-backports# Only available for arm64 at the momentif [[ "${TARGETARCH}" == "arm64" ]]; then- echo "deb http://deb.debian.org/debian bookworm-backports main" | tee /etc/apt/sources.list.d/bookworm-backports.list- apt-get -qq update- apt-get -qq install --no-install-recommends --no-install-suggests -y mesa-teflon-delegate/bookworm-backports+ if [[ "${BASE_IMAGE}" == *"nvcr.io/nvidia/tensorrt"* ]]; then+ echo "Info: Skipping apt-get commands because BASE_IMAGE includes 'nvcr.io/nvidia/tensorrt' for arm64."+ else+ echo "deb http://deb.debian.org/debian bookworm-backports main" | tee /etc/apt/sources.list.d/bookworm-backbacks.list+ apt-get -qq update+ apt-get -qq install --no-install-recommends --no-install-suggests -y mesa-teflon-delegate/bookworm-backports+ fifi# ffmpeg -> amd64diff --git a/frigate/genai/__init__.py b/frigate/genai/__init__.pyindex 4a97890979..46c3bd8a0f 100644--- a/frigate/genai/__init__.py+++ b/frigate/genai/__init__.py@@ -115,7 +115,7 @@ Sequence details:response = self._send(context_prompt, thumbnails)- if debug_save:+ if debug_save and response:with open(os.path.join(CLIPS_DIR, "genai-requests", review_data["id"], "response.txt"diff --git a/frigate/util/config.py b/frigate/util/config.pyindex 5b4671b753..5ae17d975a 100644--- a/frigate/util/config.py+++ b/frigate/util/config.py@@ -380,7 +380,7 @@ def migrate_017_0(config: dict[str, dict[str, Any]]) -> dict[str, dict[str, Any]new_object_config["genai"] = {}for key in global_genai.keys():- if key not in ["provider", "base_url", "api_key"]:+ if key not in ["enabled", "model", "provider", "base_url", "api_key"]:new_object_config["genai"][key] = global_genai[key]else:new_genai_config[key] = global_genai[key]