mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 10:33:11 +03:00
add warning log about incorrectly nested model config
This commit is contained in:
parent
8582ac9dec
commit
de5c26dd0b
@ -560,6 +560,9 @@ class FrigateConfig(FrigateBaseModel):
|
||||
|
||||
# users should not set model themselves
|
||||
if detector_config.model:
|
||||
logger.warning(
|
||||
"The model key should be specified at the root level of the config, not under detectors. The nested model key will be ignored."
|
||||
)
|
||||
detector_config.model = None
|
||||
|
||||
model_config = self.model.model_dump(exclude_unset=True, warnings="none")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user