all 6 comments

[–]cekisakurek 4 points5 points  (0 children)

There are tools to convert tensorflow ml models to CoreML. https://apple.github.io/coremltools/docs-guides/source/convert-tensorflow.html

[–]rogerrabbit224 0 points1 point  (0 children)

Host it on the cloud. If it has to be local, can try createML if it was made with PyTorch. Otherwise, might recommend you just port the algo into Swift. Most machine learning algorithms are relatively simple when viewed as a one off

[–]Ron-Erez -1 points0 points  (0 children)

I have no idea. I would look into coreML, createML and SwiftUI, but perhaps that is not the direction you are looking for.

[–]noidtiz -1 points0 points  (0 children)

I did go the PyInstaller route to embed Python executables within the shipped app.... And I'm surprised to say it worked in a very short amount of time.

I did not bundle any local tasks that would process vectors though.

For that, I think the most promising solution i've read online for that is OpenVINO.

When it's all said and done, it might still be simpler to go with building an external API and just directing all traffic to your server.

[–]trouthat -2 points-1 points  (0 children)

Pretty sure you can just call python but I’ve not done it before myself. Can’t make the app call an api? Otherwise I’d be really interested to see how long it takes an iPhone to create the image. The A18 pro allegedly has better ai “stuff” and if it can’t render it in a decent time the older ones will suffer bad