mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-30 23:59:02 +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
@@ -354,6 +354,14 @@ def stats_snapshot(
|
||||
embeddings_metrics.yolov9_lpr_pps.value, 2
|
||||
)
|
||||
|
||||
for key in embeddings_metrics.classification_speeds.keys():
|
||||
stats["embeddings"][f"{key}_classification_speed"] = round(
|
||||
embeddings_metrics.classification_speeds[key].value * 1000, 2
|
||||
)
|
||||
stats["embeddings"][f"{key}_classification"] = round(
|
||||
embeddings_metrics.classification_cps[key].value, 2
|
||||
)
|
||||
|
||||
get_processing_stats(config, stats, hwaccel_errors)
|
||||
|
||||
stats["service"] = {
|
||||
|
||||
Reference in New Issue
Block a user