Skip to content
This repository has been archived by the owner on Feb 15, 2020. It is now read-only.

Doesn't work on actual device (weird ouput) #2

Open
alexiscreuzot opened this issue Apr 1, 2018 · 3 comments
Open

Doesn't work on actual device (weird ouput) #2

alexiscreuzot opened this issue Apr 1, 2018 · 3 comments

Comments

@alexiscreuzot
Copy link

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

@r1cebank
Copy link

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
Copy link

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

@dneprDroid
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants