mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-31 13:48:19 +02:00
Add support for Frigate+ input data type (#19799)
This commit is contained in:
parent
667c302a7d
commit
281c461647
@ -158,6 +158,9 @@ class ModelConfig(BaseModel):
|
|||||||
self.input_pixel_format = model_info["pixelFormat"]
|
self.input_pixel_format = model_info["pixelFormat"]
|
||||||
self.model_type = model_info["type"]
|
self.model_type = model_info["type"]
|
||||||
|
|
||||||
|
if model_info.get("inputDataType"):
|
||||||
|
self.input_dtype = model_info["inputDataType"]
|
||||||
|
|
||||||
# generate list of attribute labels
|
# generate list of attribute labels
|
||||||
self.attributes_map = {
|
self.attributes_map = {
|
||||||
**model_info.get("attributes", DEFAULT_ATTRIBUTE_LABEL_MAP),
|
**model_info.get("attributes", DEFAULT_ATTRIBUTE_LABEL_MAP),
|
||||||
|
Loading…
Reference in New Issue
Block a user