init(contentsOf:configuration:inputName:outputName:context:)
Creates an image feature extractor from a CoreML model URL.
Declaration
init(contentsOf url: URL, configuration: MLModelConfiguration, inputName: String = "image", outputName: String, context: CIContext = CIContext()) async throwsParameters
- url:
URL of the .mlmodel file.
- configuration:
The model configuration of the CoreML model.
- inputName:
The name of the input which the
modelexpects. - outputName:
The name of the output from the
model. - context:
The Core Image context.