我在 Xcode 9 Beta 上使用 CoreML 和 Swift 4.0。
如果您VGG16.mlmodel
在项目导航器中选择一个文件,我会收到错误消息:There was an problem decoding this document CoreML
此外,作为代码的结果,我得到了错误Use of unresolved identifier 'VGG16'
和Use of undeclared type 'VGG16'
VGG16.mlmodel从这里下载https://developer.apple.com/machine-learning/
可能是什么问题呢?
模型 Places205-GoogLeNet、ResNet50 和 Inception v3 的 PS 一切正常。