【发布时间】:2017-10-24 04:56:51
【问题描述】:
我在 Xcode 9 Beta 上使用 CoreML 和 Swift 4.0。
我从 WWDC 下载了 Inception v3.mlmodel 文件 我收到错误 Use of unresolved identifier 'InceptionV3' 和 Use of undeclared type 'InceptionV3'
我下载了一些示例项目,并且下载的项目也遇到了同样的问题。
现在我该怎么办?
谢谢
【问题讨论】:
我在 Xcode 9 Beta 上使用 CoreML 和 Swift 4.0。
我从 WWDC 下载了 Inception v3.mlmodel 文件 我收到错误 Use of unresolved identifier 'InceptionV3' 和 Use of undeclared type 'InceptionV3'
我下载了一些示例项目,并且下载的项目也遇到了同样的问题。
现在我该怎么办?
谢谢
【问题讨论】:
InceptionV3 是在您将.mlmodel 文件拖放到您的项目时自动生成的。尝试删除对该文件的引用并再次拖放。还要确保选择Target Membership 中的目标(选择.mlmodel 并查看右侧面板)。
【讨论】: