Skip to content

Commit

Permalink
Remove standardization
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Nov 19, 2024
1 parent 4344a4a commit 6e41fe6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions frigate/embeddings/functions/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ def _preprocess_inputs(self, raw_inputs: any) -> any:

# 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:
Expand Down

0 comments on commit 6e41fe6

Please sign in to comment.