NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Remove arm32 (#5935)
Blake Blackshearcefbed614f67
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 8a06ef0e6d..4fab7e815a 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -49,7 +49,7 @@ jobs:with:context: .push: true- platforms: linux/amd64,linux/arm64,linux/arm/v7+ platforms: linux/amd64,linux/arm64target: frigatetags: |ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}diff --git a/.github/workflows/maintain_cache.yml b/.github/workflows/maintain_cache.ymlnew file mode 100644index 0000000000..b0d6360fcf--- /dev/null+++ b/.github/workflows/maintain_cache.yml@@ -0,0 +1,45 @@+name: Maintain Cache++on:+ schedule:+ - cron: "13 0 * * 0,4"++env:+ PYTHON_VERSION: 3.9++jobs:+ multi_arch_build:+ runs-on: ubuntu-latest+ name: Image Build+ steps:+ - name: Remove unnecessary files+ run: |+ sudo rm -rf /usr/share/dotnet+ sudo rm -rf /usr/local/lib/android+ sudo rm -rf /opt/ghc+ - id: lowercaseRepo+ uses: ASzc/change-string-case-action@v5+ with:+ string: ${{ github.repository }}+ - name: Check out code+ uses: actions/checkout@v3+ - name: Set up QEMU+ uses: docker/setup-qemu-action@v2+ - name: Set up Docker Buildx+ uses: docker/setup-buildx-action@v2+ - name: Log in to the Container registry+ uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a+ with:+ registry: ghcr.io+ username: ${{ github.actor }}+ password: ${{ secrets.GITHUB_TOKEN }}+ - name: Create version file+ run: make version+ - name: Build and push+ uses: docker/build-push-action@v3+ with:+ context: .+ push: false+ platforms: linux/amd64,linux/arm64+ target: frigate+ cache-from: type=ghadiff --git a/Dockerfile b/Dockerfileindex 204fc7c812..4059a80595 100644--- a/Dockerfile+++ b/Dockerfile@@ -133,11 +133,6 @@ RUN apt-get -qq update \RUN wget -q https://bootstrap.pypa.io/get-pip.py -O get-pip.py \&& python3 get-pip.py "pip"-RUN if [ "${TARGETARCH}" = "arm" ]; \- then echo "[global]" > /etc/pip.conf \- && echo "extra-index-url=https://www.piwheels.org/simple" >> /etc/pip.conf; \- fi-COPY requirements.txt /requirements.txtRUN pip3 install -r requirements.txtdiff --git a/Makefile b/Makefileindex c26c86bf27..69455fac0c 100644--- a/Makefile+++ b/Makefile@@ -22,14 +22,11 @@ amd64:arm64:docker buildx build --platform linux/arm64 --target=frigate --tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) .-armv7:- docker buildx build --platform linux/arm/v7 --target=frigate --tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) .--build: version amd64 arm64 armv7- docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --target=frigate --tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) .+build: version amd64 arm64+ docker buildx build --platform linux/arm64/v8,linux/amd64 --target=frigate --tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) .push: build- docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --target=frigate --tag $(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH) .+ docker buildx build --push --platform linux/arm64/v8,linux/amd64 --target=frigate --tag $(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH) .docker buildx build --push --platform linux/amd64 --target=frigate-tensorrt --tag $(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt .run: localdiff --git a/docker/install_deps.sh b/docker/install_deps.shindex 4b6ea7923e..f92e20514b 100755--- a/docker/install_deps.sh+++ b/docker/install_deps.sh@@ -37,15 +37,6 @@ if [[ "${TARGETARCH}" == "amd64" ]]; thenrm -rf btbn-ffmpeg.tar.xz /usr/lib/btbn-ffmpeg/doc /usr/lib/btbn-ffmpeg/bin/ffplayfi-# ffmpeg -> arm32-if [[ "${TARGETARCH}" == "arm" ]]; then- # add raspberry pi repo- gpg --no-default-keyring --keyring /usr/share/keyrings/raspbian.gpg --keyserver keyserver.ubuntu.com --recv-keys 9165938D90FDDD2E- echo "deb [signed-by=/usr/share/keyrings/raspbian.gpg] http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi" | tee /etc/apt/sources.list.d/raspi.list- apt-get -qq update- apt-get -qq install --no-install-recommends --no-install-suggests -y ffmpeg-fi-# ffmpeg -> arm64if [[ "${TARGETARCH}" == "arm64" ]]; then# add raspberry pi repo@@ -75,16 +66,6 @@ if [[ "${TARGETARCH}" == "arm64" ]]; thenlibva-drm2 mesa-va-driversfi-# not sure why 32bit arm requires all these-if [[ "${TARGETARCH}" == "arm" ]]; then- apt-get -qq install --no-install-recommends --no-install-suggests -y \- libgtk-3-dev \- libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \- libxvidcore-dev libx264-dev libjpeg-dev libpng-dev libtiff-dev \- gfortran openexr libatlas-base-dev libtbb-dev libdc1394-22-dev libopenexr-dev \- libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev-fi-apt-get purge gnupg apt-transport-https wget xz-utils -yapt-get clean autoclean -yapt-get autoremove --purge -ydiff --git a/docker/install_s6_overlay.sh b/docker/install_s6_overlay.shindex 9a849cb65b..4e858ef07c 100755--- a/docker/install_s6_overlay.sh+++ b/docker/install_s6_overlay.sh@@ -6,8 +6,6 @@ s6_version="3.1.4.1"if [[ "${TARGETARCH}" == "amd64" ]]; thens6_arch="x86_64"-elif [[ "${TARGETARCH}" == "arm" ]]; then- s6_arch="armhf"elif [[ "${TARGETARCH}" == "arm64" ]]; thens6_arch="aarch64"fidiff --git a/docs/docs/frigate/hardware.md b/docs/docs/frigate/hardware.mdindex acbd2c7fd3..e5233e218c 100644--- a/docs/docs/frigate/hardware.md+++ b/docs/docs/frigate/hardware.md@@ -48,7 +48,7 @@ A single Coral can handle many cameras and will be sufficient for the majority oThe OpenVINO detector type is able to run on:- 6th Gen Intel Platforms and newer that have an iGPU-- x86 & Arm32/64 hosts with VPU Hardware (ex: Intel NCS2)+- x86 & Arm64 hosts with VPU Hardware (ex: Intel NCS2)More information is available [in the detector docs](/configuration/detectors#openvino-detector)diff --git a/requirements-wheels.txt b/requirements-wheels.txtindex 094059c2f8..f0e199de35 100644--- a/requirements-wheels.txt+++ b/requirements-wheels.txt@@ -23,4 +23,3 @@ zeroconf == 0.47.*# Openvino Library - Custom built with MYRIAD supportopenvino @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.2.0/openvino-2022.2.0-000-cp39-cp39-manylinux_2_31_x86_64.whl; platform_machine == 'x86_64'openvino @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.2.0/openvino-2022.2.0-000-cp39-cp39-linux_aarch64.whl; platform_machine == 'aarch64'-openvino @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.2.0/openvino-2022.2.0-000-cp39-cp39-linux_armv7l.whl; platform_machine == 'armv7l'