mirror of
https://github.com/immich-app/immich.git
synced 2025-07-15 20:38:26 +02:00
feat(ml): conditionally download .armnn models (#6650)
This commit is contained in:
parent
fa0913120d
commit
a84b6f5fb1
5 changed files with 127 additions and 38 deletions
machine-learning/app/models
|
@ -77,11 +77,11 @@ class FaceRecognizer(InferenceModel):
|
|||
|
||||
@property
|
||||
def det_file(self) -> Path:
|
||||
return self.cache_dir / "detection" / "model.onnx"
|
||||
return self.cache_dir / "detection" / f"model.{self.preferred_runtime}"
|
||||
|
||||
@property
|
||||
def rec_file(self) -> Path:
|
||||
return self.cache_dir / "recognition" / "model.onnx"
|
||||
return self.cache_dir / "recognition" / f"model.{self.preferred_runtime}"
|
||||
|
||||
def configure(self, **model_kwargs: Any) -> None:
|
||||
self.det_model.det_thresh = model_kwargs.pop("minScore", self.det_model.det_thresh)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue