Fix erroneous warning (#10070)

Customizing only the detector model path results in the warning
"Customizing more than a detector model path is unsupported." because
`{} is not {}` evaluates to True
This commit is contained in:
Andrew Reiter
2024-02-27 07:48:56 -05:00
committed by GitHub
parent 7eb89ca67c
commit 00c2caa1b7

View File

@@ -1304,7 +1304,7 @@ class FrigateConfig(FrigateBaseModel):
model.width != schema["width"]["default"]
or model.height != schema["height"]["default"]
or model.labelmap_path is not None
or model.labelmap is not {}
or model.labelmap
or model.input_tensor != schema["input_tensor"]["default"]
or model.input_pixel_format
!= schema["input_pixel_format"]["default"]