zedge/DynamicCoreML

How did you make small mnistStock.mlmodel ?

Opened this issue · 0 comments

Hello, first let me thank you for your great article about Hotswapping! :)

I understand that it is necessary to bundle template model such as yours mnistStock.mlmodel otherwise it would not be possible to do
mnistStock(contentsOf: anotherModel)

In my case I have many models which I'm going to download from online storage.
I don't want to bundle them as the app would be too large and user will just choose which models to download.

I really like the solution that "template" model such as yours mnistStock.mlmodel is very small. Probably it does not contain weights file inside.
Could you please share how did you manage to have such a small mlmodel file?

Thanks a lot!
Tomas