mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore(deps): update machine-learning (major) (#6934)
* chore(deps): update machine-learning * formatting --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
This commit is contained in:
parent
bfba81de94
commit
2b8ec30767
2 changed files with 30 additions and 32 deletions
|
|
@ -62,8 +62,7 @@ class InferenceModel(ABC):
|
|||
return self._predict(inputs)
|
||||
|
||||
@abstractmethod
|
||||
def _predict(self, inputs: Any) -> Any:
|
||||
...
|
||||
def _predict(self, inputs: Any) -> Any: ...
|
||||
|
||||
def configure(self, **model_kwargs: Any) -> None:
|
||||
pass
|
||||
|
|
@ -79,8 +78,7 @@ class InferenceModel(ABC):
|
|||
)
|
||||
|
||||
@abstractmethod
|
||||
def _load(self) -> None:
|
||||
...
|
||||
def _load(self) -> None: ...
|
||||
|
||||
def clear_cache(self) -> None:
|
||||
if not self.cache_dir.exists():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue