mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-01 08:32:18 +03:00
Classification Model Metrics (#18595)
* Add speed and rate metrics for custom classification models * Use metrics for classification models * Use keys * Cast to list
This commit is contained in:
committed by
Blake Blackshear
parent
765a28d812
commit
b1a65c88e8
+2
-1
@@ -92,11 +92,12 @@ class FrigateApp:
|
||||
self.log_queue: Queue = mp.Queue()
|
||||
self.camera_metrics: dict[str, CameraMetrics] = {}
|
||||
self.embeddings_metrics: DataProcessorMetrics | None = (
|
||||
DataProcessorMetrics()
|
||||
DataProcessorMetrics(list(config.classification.custom.keys()))
|
||||
if (
|
||||
config.semantic_search.enabled
|
||||
or config.lpr.enabled
|
||||
or config.face_recognition.enabled
|
||||
or len(config.classification.custom) > 0
|
||||
)
|
||||
else None
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user