Add Mesa Teflon as a TFLite detector (#18310)

* Refactor common functions for tflite detector implementations

* Add detector using mesa teflon delegate

Non-EdgeTPU TFLite can use the standard .tflite format

* Add mesa-teflon-delegate from bookworm-backports to arm64 images
This commit is contained in:
Jimmy
2025-08-16 10:20:33 -05:00
committed by Blake Blackshear
parent b1a65c88e8
commit 7ce26087f7
5 changed files with 128 additions and 32 deletions
+3 -1
View File
@@ -487,7 +487,9 @@ class FrigateConfig(FrigateBaseModel):
model_config["path"] = detector_config.model_path
if "path" not in model_config:
if detector_config.type == "cpu":
if detector_config.type == "cpu" or detector_config.type.endswith(
"_tfl"
):
model_config["path"] = "/cpu_model.tflite"
elif detector_config.type == "edgetpu":
model_config["path"] = "/edgetpu_model.tflite"