mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat(ml)!: switch image classification and CLIP models to ONNX (#3809)
This commit is contained in:
parent
8211afb726
commit
165b91b068
14 changed files with 1617 additions and 507 deletions
|
|
@ -46,7 +46,7 @@ class ModelCache:
|
|||
model: The requested model.
|
||||
"""
|
||||
|
||||
key = self.cache.build_key(model_name, model_type.value)
|
||||
key = f"{model_name}{model_type.value}{model_kwargs.get('mode', '')}"
|
||||
async with OptimisticLock(self.cache, key) as lock:
|
||||
model = await self.cache.get(key)
|
||||
if model is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue