Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
类数据是 mlmodel 文件的一部分,但不在元数据中。如果需要,您可以将其添加到元数据中,但您必须为此编写一个简短的 Python 脚本。
从 iOS 14 开始,MLModelDescription.classLabels您还可以访问类名列表。
MLModelDescription.classLabels