fast-style-transfer-coreml icon indicating copy to clipboard operation
fast-style-transfer-coreml copied to clipboard

Doesn't work on actual device (weird ouput)

Open alexiscreuzot opened this issue 6 years ago • 3 comments

So I changed the code to avoid the crash caused by trying to store every models in memory.

I get weird outputs :

  • wave gives a green background
  • rain_princess gives some kind of glitchy result

img_a39ba37c5950-1 img_fd6752b6f756-1

alexiscreuzot avatar Apr 01 '18 17:04 alexiscreuzot

There seems to be GPU implementation issue on the iOS device. https://forums.developer.apple.com/thread/97040

You can try to make the model only run on CPU but it will take way longer than expected.

let options = MLPredictionOptions()
options.usesCPUOnly = true
let outoptions.usesCPUOnly = true
let outFeatures = try! model.prediction(from: input, options:options)

r1cebank avatar Apr 25 '18 07:04 r1cebank

Also could you share the work you did to fix that crash?

r1cebank avatar Apr 25 '18 07:04 r1cebank

I have similar error when model runs on GPU, my device is iPhone 8 (Apple A11 Bionic processor), iOS 12.

dneprDroid avatar Nov 29 '18 14:11 dneprDroid