natmlx / natml-unity

High performance, cross-platform machine learning for Unity Engine.
Apache License 2.0
230 stars 25 forks source link

Edge Model Embedding Issue on iOS #48

Closed Papasmun closed 1 year ago

Papasmun commented 1 year ago

Issue Outline: Unable to embed MLEdgeModel on iOS. According to to build logs, the model does get downloaded and embedded into the app binary. Seems that NatML isn't picking up the embedded model at runtime

Notes: 1) Works on Windows build, not on iOS 2) Using "@natsuite/movenet" 3) NatML version: 1.1.3 NatDevice version: 1.3.3 Hub version: 1.0.20

iOS log message.txt

Build log on Unity Editor Editor.log

olokobayusuf commented 1 year ago

Hey @Papasmun I just noticed, it seems like your iOS device is not connected to the internet? Model embedding embeds the graph to reduce download times, but you still need an internet connection the very first time for NatML to fetch the session data needed to create the MLEdgeModel.

olokobayusuf commented 1 year ago

I'm closing this issue as we've made several improvements to model embedding in the 1.1.4 update.