Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MiDaS 2.1 TFLite fp16 with Core ML Delegate gets wrong results #264

Open
TimYao18 opened this issue Jan 15, 2024 · 0 comments
Open

MiDaS 2.1 TFLite fp16 with Core ML Delegate gets wrong results #264

TimYao18 opened this issue Jan 15, 2024 · 0 comments

Comments

@TimYao18
Copy link

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 TimYao18 changed the title Is there MiDaS 2.1 TFLite fp16 model for sharing? MiDaS 2.1 TFLite fp16 with Core ML Delegate gets wrong results Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant