From 607a18ffff7f20090ff2d2f69320109e739546a6 Mon Sep 17 00:00:00 2001 From: Michael Kent Date: Tue, 3 Nov 2026 22:49:24 -0600 Subject: [PATCH] fix(ml): disable onnxruntime telemetry (#32956) * fix(ml): disable onnxruntime telemetry * cleanup --------- Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com> --- machine-learning/Dockerfile | 3 ++- machine-learning/immich_ml/__init__.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/machine-learning/Dockerfile b/machine-learning/Dockerfile index fb595a9c1..bad35fa6e 100644 --- a/machine-learning/Dockerfile +++ b/machine-learning/Dockerfile @@ -34,7 +34,8 @@ RUN --mount=type=cache,target=/ccache \ --skip_tests \ --use_openvino CPU \ --use_cache \ - --compile_no_warning_as_error + --compile_no_warning_as_error \ + --no_telemetry # bundle openvino into the wheel as the published one does, so it is what the EP loads beside it WORKDIR /code/onnxruntime/build/Release/dist diff --git a/machine-learning/immich_ml/__init__.py b/machine-learning/immich_ml/__init__.py index e69de29bb..75a1eb03b 100644 --- a/machine-learning/immich_ml/__init__.py +++ b/machine-learning/immich_ml/__init__.py @@ -0,0 +1,3 @@ +import os + +os.environ.setdefault("ORT_DISABLE_TELEMETRY", "1")