Getting the ml models to the device

The SDK will automatically download the models according to the SDK version, by default the SDK will download compressed files. The download is faster and lighter, and it will take several seconds to decompress on the device. To download uncompressed files and shorter processing on the device you can set a flag below to false.

PassioNutritionAI.shared.requestCompressedFiles = false

After obtaining special approval the developer can also host the models on an internal server.

var passioConfig = PassioConfiguration(key: "your_key")
passioConfig.sdkDownloadsModels = false

In that case, the models will be served directly to the SDK. To find out more about this special configuration please contact your primary point of contact at Passio or reach us via

Last updated