From 6173a5e71c71483f778e4bcaa90734a5dedc113a Mon Sep 17 00:00:00 2001 From: vhsdream Date: Mon, 5 May 2025 16:42:01 -0400 Subject: [PATCH] Fix pthread_affinity OpenVINO crash issue --- install/immich-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/immich-install.sh b/install/immich-install.sh index 03c7c0e..3dc331d 100644 --- a/install/immich-install.sh +++ b/install/immich-install.sh @@ -332,6 +332,9 @@ else fi cd "$SRC_DIR" || exit cp -a machine-learning/{ann,immich_ml} "$ML_DIR" +if [[ "$intel_hw" = 1 ]]; then + sed -i "/intra_op/s/int = 0/int = os.cpu_count() or 0/" "$ML_DIR"/immich_ml/config.py +fi ln -sf "$APP_DIR"/resources "$INSTALL_DIR" cd "$APP_DIR" || exit