mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
fix cpu
This commit is contained in:
parent
49fddeaeb3
commit
cdb794ece8
@ -54,7 +54,7 @@ class GenericONNXEmbedding:
|
|||||||
self.embedding_function = embedding_function
|
self.embedding_function = embedding_function
|
||||||
self.model_type = model_type # 'text' or 'vision'
|
self.model_type = model_type # 'text' or 'vision'
|
||||||
self.providers, self.provider_options = get_ort_providers(
|
self.providers, self.provider_options = get_ort_providers(
|
||||||
force_cpu=self.config.device == "CPU",
|
force_cpu=device == "CPU",
|
||||||
requires_fp16=self.config.model_size == "large"
|
requires_fp16=self.config.model_size == "large"
|
||||||
or self.model_type == "text",
|
or self.model_type == "text",
|
||||||
openvino_device=device,
|
openvino_device=device,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user