I was working on a project, where I was trying to use the DeepLabV3 coreML model to remove the background of the image. I found text documentation online on how to remove the background using this model. So when I am using their method or function it said that - Value of type 'MLMultiArray' has no member 'image'
SO now I don't understand the issue.
The Func -
func visionRequestDidComplete(request: VNRequest, error: Error?) {
DispatchQueue.main.async {
if let observations = request.results as? [VNCoreMLFeatureValueObservation],
let segmentationmap = observations.first?.featureValue.multiArrayValue {
let segmentationMask = segmentationmap.image(min: 0, max: 1)
self.outputImage = segmentationMask!.resizedImage(for: self.selectedImage.size)!
maskInputImage()
}
}
}