mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix float input (#14720)
This commit is contained in:
parent
8c2c07fd18
commit
e5ebf938f6
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user