From 271f5cf9d5085fe2d96cf339dc70540cd06c35bb Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 17 Dec 2025 14:17:29 -0700 Subject: [PATCH] Ensure there is no NameError when processing --- frigate/data_processing/real_time/custom_classification.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frigate/data_processing/real_time/custom_classification.py b/frigate/data_processing/real_time/custom_classification.py index ede21b404..f05ba8105 100644 --- a/frigate/data_processing/real_time/custom_classification.py +++ b/frigate/data_processing/real_time/custom_classification.py @@ -251,6 +251,8 @@ class CustomStateClassificationProcessor(RealTimeProcessorApi): except Exception: logger.warning("Failed to resize image for state classification") return + else: + resized_frame = frame if self.interpreter is None: # When interpreter is None, always save (score is 0.0, which is < 1.0)