This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
Output from ONNX and CoreML don't seem to be matching. #577
Labels
question
Response providing clarification needed. Will not be assigned to a release. (type)
I have converted my pytorch model to ONNX and viewed my results. These images from ONNX are correct. (It is a segmentation model based of Unet with Mobilenet as backbone).
I'm running all the code on Google Colab (tried it with paperspace and AWS and same results) .
onnx='1.7.0'
coremltools='3.4'
onnx_coreml='1.3'
I get the expected output. Segments the hair in the red channel, skin in the green and background in the blue channel.
Input image:
Segmented output image:
ONNX model:
tmp.onnx.zip
Now I convert the ONNX model to CoreML:
I use the coreml model and run it on the mac with:
and i get the following output:
I see there are a lot of nan values which are resulting in these black patches.
Am i missing some preprocessing that i need to be taking care of?
Any tips or further resources that i could check out will be very helpful.
Thanks
System Information
The text was updated successfully, but these errors were encountered: