Skip to content

Commit

Permalink
fix model type check
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Oct 10, 2024
1 parent 059f694 commit 49fddea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frigate/embeddings/functions/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def __init__(
self.providers, self.provider_options = get_ort_providers(
force_cpu=self.config.device == "CPU",
requires_fp16=self.config.model_size == "large"
or self.config.model_type == "text",
openvino_device=self.config.device,
or self.model_type == "text",
openvino_device=device,
)

self.download_path = os.path.join(MODEL_CACHE_DIR, self.model_name)
Expand Down

0 comments on commit 49fddea

Please sign in to comment.