Skip to content

Commit

Permalink
fix cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Oct 10, 2024
1 parent 49fddea commit cdb794e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frigate/embeddings/functions/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(
self.embedding_function = embedding_function
self.model_type = model_type # 'text' or 'vision'
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"
or self.model_type == "text",
openvino_device=device,
Expand Down

0 comments on commit cdb794e

Please sign in to comment.