Skip to content

🪲 We demonstrate a discrepancy in coreml model predictions in iOS11 and iOS12

Notifications You must be signed in to change notification settings

varvarvarvar/coreml-convertation-bug

Repository files navigation

coreml-convertation-bug

We demonstrate a discrepancy in coreml model predictions in iOS11 and iOS12.

Abstract

Coreml model gives incorrect predictions on iOS12 (while working correctly in iOS11).

Description

We have an identity model that recieves 416x416x3 picture as input and returns the same picture.
This square model works correctly in both iOS11 and iOS12.

We create a model with 740x416x3 input and initialize it with the square model weights.
This rectangle model returns incorrect output in iOS12 (but works correctly in iOS11).

We've tried tuning image scale and coreml convertation scale but it didn't help.

We use

  • Python2.7
  • coremltools==2.0
  • keras==2.1.3

Links

ipython demo
swift playground

About

🪲 We demonstrate a discrepancy in coreml model predictions in iOS11 and iOS12

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published