From 6e41fe6132e42b57f7e19216f19479f2d45595c9 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 7 Nov 2024 16:32:41 -0700 Subject: [PATCH] Remove standardization --- frigate/embeddings/functions/onnx.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frigate/embeddings/functions/onnx.py b/frigate/embeddings/functions/onnx.py index 8fd58c168..67b2c44a2 100644 --- a/frigate/embeddings/functions/onnx.py +++ b/frigate/embeddings/functions/onnx.py @@ -220,10 +220,6 @@ class GenericONNXEmbedding: # copy img image into center of result image frame[y_center : y_center + og_h, x_center : x_center + og_w] = og - - # standardize pixel values across channels - mean, std = frame.mean(), frame.std() - frame = (frame - mean) / std frame = np.expand_dims(frame, axis=0) return [{"input_2": frame}] elif self.model_type == ModelTypeEnum.lpr_detect: