From e5ebf938f6c45c607a9393935901ea7680e7d7e7 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 1 Nov 2024 06:55:55 -0600 Subject: [PATCH] Fix float input (#14720) --- frigate/object_detection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frigate/object_detection.py b/frigate/object_detection.py index 0af32034e..cc4641696 100644 --- a/frigate/object_detection.py +++ b/frigate/object_detection.py @@ -90,6 +90,7 @@ class LocalObjectDetector(ObjectDetector): if self.dtype == InputDTypeEnum.float: tensor_input = tensor_input.astype(np.float32) + tensor_input /= 255 return self.detect_api.detect_raw(tensor_input=tensor_input)