Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Queries the description of the model.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CoreML | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
Parameter | Description | Example |
---|---|---|
CoreMLRef | The reference number to the model. | $Model |
Returns JSON or error.
Query description:
Set Field [ CoreML::Model Description ; MBS("CoreML.Description"; $$ML) ]
Example result:
{
"predictedProbabilitiesName" : "classLabelProbs",
"predictedFeatureName" : "classLabel",
"inputDescriptionsByName" : {
"image" : {
"optional" : false,
"type" : "Image",
"imageConstraint" : {
"pixelsWide" : 224,
"pixelFormatTypeName" : "32BGRA",
"pixelFormatType" : 1111970369,
"pixelFormatTypeDescription" : "32 bit BGRA",
"pixelsHigh" : 224
},
"name" : "image"
}
},
"outputDescriptionsByName" : {
"classLabel" : {
"optional" : false,
"type" : "String",
"name" : "classLabel"
},
"classLabelProbs" : {
"optional" : false,
"dictionaryConstraint" : {
"keyType" : "String"
},
"type" : "Dictionary",
"name" : "classLabelProbs"
}
},
"metadata" : {
"MLModelVersionStringKey" : "",
"MLModelDescriptionKey" : "Detects the dominant objects present in an image from a set of 1000 categories such as trees, animals, food, vehicles, person etc. The top-5 error from the original publication is 7.8%.",
"MLModelCreatorDefinedKey" : {
},
"MLModelAuthorKey" : "Original Paper: Kaiming He and Xiangyu Zhang and Shaoqing Ren and Jian Sun. Keras Implementation: François Chollet",
"MLModelLicenseKey" : "MIT License. More information available at https:\/\/github.com\/fchollet\/keras\/blob\/master\/LICENSE"
}
}
Load model to get description:
Set Variable [ $model ; Value: MBS( "CoreML.OpenModel"; "/Users/cs/Desktop/UpdatableDrawingClassifier.mlmodelc" ) ]
Set Field [ test::ModelDescription ; MBS( "CoreML.Description"; $model ) ]
Set Variable [ $r ; Value: MBS( "CoreML.Release"; $model ) ]
Created 16th September 2017, last changed 16th December 2019
CoreML.CompileModel - CoreML.GetUsesCPUOnly
Feedback: Report problem or ask question.