fast-style-transfer-coreml
fast-style-transfer-coreml copied to clipboard
Doesn't work on actual device (weird ouput)
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
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)
Also could you share the work you did to fix that crash?
I have similar error when model runs on GPU, my device is iPhone 8 (Apple A11 Bionic processor), iOS 12.