mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-14 17:52:10 +02:00
Various Fixes (#19615)
* Don't write to write None response to file * fix genai config migration * Fix JP6 build * Include base image ARG
This commit is contained in:
parent
33f3ea3b59
commit
acf32e1a1e
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
@ -77,36 +77,6 @@ jobs:
|
|||||||
rpi.tags=${{ steps.setup.outputs.image-name }}-rpi
|
rpi.tags=${{ steps.setup.outputs.image-name }}-rpi
|
||||||
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64
|
||||||
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64,mode=max
|
*.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=max
|
|
||||||
jetson_jp6_build:
|
jetson_jp6_build:
|
||||||
runs-on: ubuntu-22.04-arm
|
runs-on: ubuntu-22.04-arm
|
||||||
name: Jetson Jetpack 6
|
name: Jetson Jetpack 6
|
||||||
|
@ -212,6 +212,7 @@ COPY docker/main/rootfs/ /
|
|||||||
# Frigate deps (ffmpeg, python, nginx, go2rtc, s6-overlay, etc)
|
# Frigate deps (ffmpeg, python, nginx, go2rtc, s6-overlay, etc)
|
||||||
FROM slim-base AS deps
|
FROM slim-base AS deps
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
ARG BASE_IMAGE
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND
|
ARG DEBIAN_FRONTEND
|
||||||
# http://stackoverflow.com/questions/48162574/ddg#49462622
|
# http://stackoverflow.com/questions/48162574/ddg#49462622
|
||||||
|
@ -34,10 +34,14 @@ rm /tmp/libedgetpu1-max.deb
|
|||||||
# install mesa-teflon-delegate from bookworm-backports
|
# install mesa-teflon-delegate from bookworm-backports
|
||||||
# Only available for arm64 at the moment
|
# Only available for arm64 at the moment
|
||||||
if [[ "${TARGETARCH}" == "arm64" ]]; then
|
if [[ "${TARGETARCH}" == "arm64" ]]; then
|
||||||
echo "deb http://deb.debian.org/debian bookworm-backports main" | tee /etc/apt/sources.list.d/bookworm-backports.list
|
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 update
|
||||||
apt-get -qq install --no-install-recommends --no-install-suggests -y mesa-teflon-delegate/bookworm-backports
|
apt-get -qq install --no-install-recommends --no-install-suggests -y mesa-teflon-delegate/bookworm-backports
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# ffmpeg -> amd64
|
# ffmpeg -> amd64
|
||||||
if [[ "${TARGETARCH}" == "amd64" ]]; then
|
if [[ "${TARGETARCH}" == "amd64" ]]; then
|
||||||
|
@ -115,7 +115,7 @@ Sequence details:
|
|||||||
|
|
||||||
response = self._send(context_prompt, thumbnails)
|
response = self._send(context_prompt, thumbnails)
|
||||||
|
|
||||||
if debug_save:
|
if debug_save and response:
|
||||||
with open(
|
with open(
|
||||||
os.path.join(
|
os.path.join(
|
||||||
CLIPS_DIR, "genai-requests", review_data["id"], "response.txt"
|
CLIPS_DIR, "genai-requests", review_data["id"], "response.txt"
|
||||||
|
@ -380,7 +380,7 @@ def migrate_017_0(config: dict[str, dict[str, Any]]) -> dict[str, dict[str, Any]
|
|||||||
new_object_config["genai"] = {}
|
new_object_config["genai"] = {}
|
||||||
|
|
||||||
for key in global_genai.keys():
|
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]
|
new_object_config["genai"][key] = global_genai[key]
|
||||||
else:
|
else:
|
||||||
new_genai_config[key] = global_genai[key]
|
new_genai_config[key] = global_genai[key]
|
||||||
|
Loading…
Reference in New Issue
Block a user