mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
ignore rknn model if not using it
This commit is contained in:
parent
f328104e84
commit
b6cc2054c5
@ -69,6 +69,7 @@ class InferenceModel(ABC):
|
|||||||
|
|
||||||
def _download(self) -> None:
|
def _download(self) -> None:
|
||||||
ignore_patterns = [] if self.model_format == ModelFormat.ARMNN else ["*.armnn"]
|
ignore_patterns = [] if self.model_format == ModelFormat.ARMNN else ["*.armnn"]
|
||||||
|
if self.model_format != ModelFormat.RKNN: ignore_patterns.append("*.rknn")
|
||||||
snapshot_download(
|
snapshot_download(
|
||||||
f"immich-app/{clean_name(self.model_name)}",
|
f"immich-app/{clean_name(self.model_name)}",
|
||||||
cache_dir=self.cache_dir,
|
cache_dir=self.cache_dir,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user