mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 23:55:25 +03:00
Set the providers
This commit is contained in:
parent
2124a2f1fa
commit
24a1b16bc0
@ -125,7 +125,9 @@ class GenericONNXEmbedding:
|
||||
|
||||
def _load_model(self, path: str):
|
||||
if os.path.exists(path):
|
||||
return ort.InferenceSession(path, providers=providers)
|
||||
return ort.InferenceSession(
|
||||
path, providers=self.providers, provider_options=self.provider_options
|
||||
)
|
||||
else:
|
||||
logger.warning(f"{self.model_name} model file {path} not found.")
|
||||
return None
|
||||
|
||||
Loading…
Reference in New Issue
Block a user