This commit is contained in:
Nicolas Mowen 2025-09-18 14:13:10 -06:00
parent 62c1efc430
commit 157132973a
2 changed files with 4 additions and 3 deletions

View File

@ -106,7 +106,7 @@ class CudaGraphRunner(BaseModelRunner):
# Import here to avoid circular imports
from frigate.detectors.detector_config import ModelTypeEnum
from frigate.embeddings.types import EnrichmentModelTypeEnum
return model_type in [
ModelTypeEnum.yolonas.value,
EnrichmentModelTypeEnum.paddleocr.value,
@ -173,7 +173,7 @@ class OpenVINOModelRunner(BaseModelRunner):
def is_complex_model(model_type: str) -> bool:
# Import here to avoid circular imports
from frigate.embeddings.types import EnrichmentModelTypeEnum
return model_type in [EnrichmentModelTypeEnum.paddleocr.value]
def __init__(self, model_path: str, device: str, model_type: str, **kwargs):

View File

@ -5,9 +5,10 @@ class EmbeddingTypeEnum(str, Enum):
thumbnail = "thumbnail"
description = "description"
class EnrichmentModelTypeEnum(str, Enum):
arcface = "arcface"
facenet = "facenet"
jina_v1 = "jina_v1"
jina_v2 = "jina_v2"
paddleocr = "paddleocr"
paddleocr = "paddleocr"