Add model type

This commit is contained in:
Nicolas Mowen 2025-05-23 05:21:54 -06:00
parent 6c6be1e048
commit c67b25e3da

View File

@ -34,10 +34,16 @@ class BirdClassificationConfig(FrigateBaseModel):
)
class TeachableMachineModelType(str, Enum):
object = "object"
state = "state"
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.")
model_type: TeachableMachineModelType = Field(title="Type of model.")
class ClassificationConfig(FrigateBaseModel):