mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
Add basic config for defining a teachable machine model
This commit is contained in:
parent
5dd30b273a
commit
6c6be1e048
@ -34,10 +34,19 @@ class BirdClassificationConfig(FrigateBaseModel):
|
||||
)
|
||||
|
||||
|
||||
class TeachableMachineConfig(FrigateBaseModel):
|
||||
enabled: bool = Field(default=True, title="Enable running the model.")
|
||||
model_path: str = Field(title="Path to teachable machine tflite model.")
|
||||
labelmap_path: str = Field(title="Path to teachable machine labelmap.")
|
||||
|
||||
|
||||
class ClassificationConfig(FrigateBaseModel):
|
||||
bird: BirdClassificationConfig = Field(
|
||||
default_factory=BirdClassificationConfig, title="Bird classification config."
|
||||
)
|
||||
teachable_machine: Dict[str, TeachableMachineConfig] = Field(
|
||||
title="Teachable Machine Model Configs."
|
||||
)
|
||||
|
||||
|
||||
class SemanticSearchConfig(FrigateBaseModel):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user