diff --git a/frigate/config.py b/frigate/config.py index 33fd1cf60..602f03f1f 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -1511,10 +1511,10 @@ class FrigateConfig(FrigateBaseModel): ) detector_config: DetectorConfig = adapter.validate_python(model_dict) if detector_config.model is None: - detector_config.model = config.model + detector_config.model = config.model.model_copy() else: path = detector_config.model.path - detector_config.model = config.model + detector_config.model = config.model.model_copy() detector_config.model.path = path if "path" not in model_dict or len(model_dict.keys()) > 1: diff --git a/frigate/test/test_config.py b/frigate/test/test_config.py index be935d431..697edfe91 100644 --- a/frigate/test/test_config.py +++ b/frigate/test/test_config.py @@ -82,7 +82,7 @@ class TestConfig(unittest.TestCase): }, "edgetpu": { "type": "edgetpu", - "model": {"path": "/edgetpu_model.tflite", "width": 160}, + "model": {"path": "/edgetpu_model.tflite"}, }, "openvino": { "type": "openvino", @@ -112,11 +112,6 @@ class TestConfig(unittest.TestCase): assert runtime_config.detectors["edgetpu"].model.path == "/edgetpu_model.tflite" assert runtime_config.detectors["openvino"].model.path == "/etc/hosts" - assert runtime_config.model.width == 512 - assert runtime_config.detectors["cpu"].model.width == 320 - assert runtime_config.detectors["edgetpu"].model.width == 160 - assert runtime_config.detectors["openvino"].model.width == 512 - def test_invalid_mqtt_config(self): config = { "mqtt": {"host": "mqtt", "user": "test"},