Fix float input

This commit is contained in:
Nicolas Mowen 2024-11-01 06:40:02 -06:00 committed by GitHub
parent 8c2c07fd18
commit ea37d868de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)