onnx-coreml icon indicating copy to clipboard operation
onnx-coreml copied to clipboard

convert to onnx and then convert to CoreML , but the prediction is wrong

Open MarcSteven opened this issue 5 years ago • 5 comments

MarcSteven avatar Dec 27 '19 07:12 MarcSteven

any way to deal with it ? I have the same issue now.

Shuwrood-SSW avatar Apr 21 '20 07:04 Shuwrood-SSW

@Shuwrood-SSW You can check my blog about the issue and recheck the model. Prediction wrong to check You must ensure the same image processing on the model and then do it via CoreML. And Even though you did the image Processing on the PyTorch model, but you convert it to onnx and then it doesn't include image processing. You don't need to write code in your project directly, you can use CoreMLTools to verify your modelCoreMLTools And you have image dataSet, you can use Create ML to train and it will generate the model directly(the size of model is small)

MarcSteven avatar Apr 21 '20 11:04 MarcSteven

@MarcSteven can you provide more details? Can you share ONNX model and input for which you observe incorrect prediction?

bhushan23 avatar Apr 21 '20 16:04 bhushan23

onnx model @bhushan23 FYI

MarcSteven avatar Apr 22 '20 06:04 MarcSteven

Hope it is useful to modify

MarcSteven avatar Apr 24 '20 04:04 MarcSteven