mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
Add model type
This commit is contained in:
parent
6c6be1e048
commit
c67b25e3da
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user