mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
Remove standardization
This commit is contained in:
parent
a586ef80e0
commit
b6040c6b83
@ -220,10 +220,6 @@ class GenericONNXEmbedding:
|
|||||||
|
|
||||||
# copy img image into center of result image
|
# copy img image into center of result image
|
||||||
frame[y_center : y_center + og_h, x_center : x_center + og_w] = og
|
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)
|
frame = np.expand_dims(frame, axis=0)
|
||||||
return [{"input_2": frame}]
|
return [{"input_2": frame}]
|
||||||
elif self.model_type == ModelTypeEnum.lpr_detect:
|
elif self.model_type == ModelTypeEnum.lpr_detect:
|
||||||
|
Loading…
Reference in New Issue
Block a user