mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-05 00:15:51 +01:00
* Get stats for embeddings inferences * cleanup embeddings inferences * Enable UI for feature metrics * Change threshold * Fix check * Update python for actions * Set python version * Ignore type for now
28 lines
727 B
Python
28 lines
727 B
Python
from enum import Enum
|
|
from typing import TypedDict
|
|
|
|
from frigate.camera import CameraMetrics
|
|
from frigate.embeddings.types import EmbeddingsMetrics
|
|
from frigate.object_detection import ObjectDetectProcess
|
|
|
|
|
|
class StatsTrackingTypes(TypedDict):
|
|
camera_metrics: dict[str, CameraMetrics]
|
|
embeddings_metrics: EmbeddingsMetrics | None
|
|
detectors: dict[str, ObjectDetectProcess]
|
|
started: int
|
|
latest_frigate_version: str
|
|
last_updated: int
|
|
processes: dict[str, int]
|
|
|
|
|
|
class ModelStatusTypesEnum(str, Enum):
|
|
not_downloaded = "not_downloaded"
|
|
downloading = "downloading"
|
|
downloaded = "downloaded"
|
|
error = "error"
|
|
|
|
|
|
class TrackedObjectUpdateTypesEnum(str, Enum):
|
|
description = "description"
|