From a68e6be7e11f0cfdafe48b2d01817189f8ee4383 Mon Sep 17 00:00:00 2001 From: Mert <101130780+mertalev@users.noreply.github.com> Date: Wed, 11 Sep 2024 23:21:33 -0400 Subject: [PATCH] chore(ml): remove deprecated kwarg when downloading models (#12589) remove local_dir_use_symlinks --- machine-learning/app/models/base.py | 1 - machine-learning/app/test_main.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/machine-learning/app/models/base.py b/machine-learning/app/models/base.py index 1c019969b4..3bbd1a0289 100644 --- a/machine-learning/app/models/base.py +++ b/machine-learning/app/models/base.py @@ -71,7 +71,6 @@ class InferenceModel(ABC): f"immich-app/{clean_name(self.model_name)}", cache_dir=self.cache_dir, local_dir=self.cache_dir, - local_dir_use_symlinks=False, ignore_patterns=ignore_patterns, ) diff --git a/machine-learning/app/test_main.py b/machine-learning/app/test_main.py index 17fdb5b1fa..5f8e5b9e9c 100644 --- a/machine-learning/app/test_main.py +++ b/machine-learning/app/test_main.py @@ -124,7 +124,6 @@ class TestBase: "immich-app/ViT-B-32__openai", cache_dir=encoder.cache_dir, local_dir=encoder.cache_dir, - local_dir_use_symlinks=False, ignore_patterns=["*.armnn"], ) @@ -136,7 +135,6 @@ class TestBase: "immich-app/ViT-B-32__openai", cache_dir=encoder.cache_dir, local_dir=encoder.cache_dir, - local_dir_use_symlinks=False, ignore_patterns=[], )