Add support for yolox models to onnx detector (#17773)

This commit is contained in:
Nicolas Mowen
2025-04-18 05:40:06 -06:00
committed by GitHub
parent 8270967cdc
commit 19aaa64fe9
5 changed files with 108 additions and 2 deletions

View File

@@ -77,6 +77,8 @@ class LocalObjectDetector(ObjectDetector):
if self.dtype == InputDTypeEnum.float:
tensor_input = tensor_input.astype(np.float32)
tensor_input /= 255
elif self.dtype == InputDTypeEnum.float_denorm:
tensor_input = tensor_input.astype(np.float32)
return self.detect_api.detect_raw(tensor_input=tensor_input)