mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-23 17:52:05 +02:00
YOLOv9 LPR model is not compatible (#20159)
This commit is contained in:
parent
cd519ed1ad
commit
0e61d3f153
@ -112,6 +112,7 @@ class CudaGraphRunner(BaseModelRunner):
|
|||||||
EnrichmentModelTypeEnum.paddleocr.value,
|
EnrichmentModelTypeEnum.paddleocr.value,
|
||||||
EnrichmentModelTypeEnum.jina_v1.value,
|
EnrichmentModelTypeEnum.jina_v1.value,
|
||||||
EnrichmentModelTypeEnum.jina_v2.value,
|
EnrichmentModelTypeEnum.jina_v2.value,
|
||||||
|
EnrichmentModelTypeEnum.yolov9_license_plate.value,
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self, session: ort.InferenceSession, cuda_device_id: int):
|
def __init__(self, session: ort.InferenceSession, cuda_device_id: int):
|
||||||
|
@ -262,7 +262,7 @@ class LicensePlateDetector(BaseEmbedding):
|
|||||||
self.runner = get_optimized_runner(
|
self.runner = get_optimized_runner(
|
||||||
os.path.join(self.download_path, self.model_file),
|
os.path.join(self.download_path, self.model_file),
|
||||||
self.device,
|
self.device,
|
||||||
model_type="yolov9",
|
model_type=EnrichmentModelTypeEnum.yolov9_license_plate.value,
|
||||||
)
|
)
|
||||||
|
|
||||||
def _preprocess_inputs(self, raw_inputs):
|
def _preprocess_inputs(self, raw_inputs):
|
||||||
|
@ -12,3 +12,4 @@ class EnrichmentModelTypeEnum(str, Enum):
|
|||||||
jina_v1 = "jina_v1"
|
jina_v1 = "jina_v1"
|
||||||
jina_v2 = "jina_v2"
|
jina_v2 = "jina_v2"
|
||||||
paddleocr = "paddleocr"
|
paddleocr = "paddleocr"
|
||||||
|
yolov9_license_plate = "yolov9_license_plate"
|
||||||
|
Loading…
Reference in New Issue
Block a user