As already mentioned, I will answer my comment in response.
Others mentioned this, but you most likely have a damaged boot or something is broken with the model itself. For starters, I highly recommend not using the VGG16 model or related models on a mobile device just because of their sheer size (500 MB for VGG16). You will run out of memory on the iPhone 6 just by loading the model, the size of your application will be gigantic, and you will have a long initialization time as you load these scales.
I recommend using something like the SqueezeNet option, which is small (~ 5 MB), can be more accurate when training on ImageNet, and not as expensively calculated as the Inception family. Apple refers to the use of one of them in one of the Main ML WWDC sessions.
When you add a model to your Xcode project, make sure that it is actually registered for your purpose. The current beta version of Xcode sometimes forgets to add this to your goal, so select the model and check the file inspector to make sure it is part of your target. If the model is not your goal, Xcode will not automatically generate a Swift header for it.
Brad larson
source share