Can I upload .mlmodel files via wifi insetad to embed them?

I plan to use some models with a size of more than 500 MB, and I do not want them to be built-in, otherwise my application will be huge, which is not very desirable.

Thank,

+4
source share
1 answer

It is possible. After loading the compile model with:

let compiledUrl = try MLModel.compileModel(at: modelUrl)
let model = try MLModel(contentsOf: compiledUrl)

The compiled model will be stored in a temporary place. After compilation is complete, you should move it to a permanent location.

+6
source

Source: https://habr.com/ru/post/1687401/


All Articles