Open xu-wang11 opened 4 years ago
A clear and brief description of what the bug is.
I have posted all the code and test data to the repo:
https://github.com/xu-wang11/SiamRPN-coreml.git
mlmodel = convert(model=oonx_file, minimum_ios_deployment_target='13') mlmodel.save(coreml_file)
first I run the onnx model with onnxruntime
ort_session = onnxruntime.InferenceSession("siamrpn_update.onnx") ort_inputs = {'x': instance_image.astype(np.float32), 'kernel_reg': x1['kernel_reg'], 'kernel_cls': x1['kernel_cls']} ort_outs = ort_session.run(None, ort_inputs)
and the range of out_reg is (-0.27, 0.47)and the range of out_cls is (-10.37, 10.38) then i run the mlmodel with coremltools
x2 = update_model.predict({'x': instance_image, 'kernel_reg': x1['kernel_reg'], 'kernel_cls': x1['kernel_cls']},useCPUOnly=True)
and the range of out_reg is (-0.18, 0.25) and the range of out_cls is (-0.56, 0.75)
🐞Describe the bug
A clear and brief description of what the bug is.
I have posted all the code and test data to the repo:
https://github.com/xu-wang11/SiamRPN-coreml.git
first I run the onnx model with onnxruntime
and the range of out_reg is (-0.27, 0.47)and the range of out_cls is (-10.37, 10.38) then i run the mlmodel with coremltools
and the range of out_reg is (-0.18, 0.25) and the range of out_cls is (-0.56, 0.75)
System environment (please complete the following information):