MiDaS icon indicating copy to clipboard operation
MiDaS copied to clipboard

MiDaS 2.1 TFLite fp16 with Core ML Delegate gets wrong results

Open TimYao18 opened this issue 2 years ago • 0 comments

I have converted the MiDaS 2.1 ONNX model into TFLite float32 and float16 using ONNX2TF.

I tried the float32 and float16 models with GPU(Metal Delegate) and NPU(Core ML Delegate) on iPhone 15 Pro MAX, all good but the result is strange when using NPU(Core ML Delegate) with float16 as below:

The original image 1

Model produces results using Core ML Delegate with float16 model. 2

Model produces results using Metal Delegate with float16 model. 3

Since the TensorFlow Core ML Delegate official site said it support float16 and float32 model, is there any one tried the fp16 model with iOS NPU(Core ML Delegate) with normal result, or also met the same issue? The model I converted into fp16 is here

TimYao18 avatar Jan 15 '24 02:01 TimYao18