// preprocessing
let imageData1 = try interpreter.preprocess(with: image1)
let imageData2 = try interpreter.preprocess(with: image2)
let imageDataArray: [Data] = [imageData1, imageData2]
// inference
let outputs = try interpreter.inference(with: imageDataArray)
with image array
let images: [UIImage]
// let images: [CGImage]
// let images: [CVPixelBuffer]
// let images: [Any]
let outputs = try interpreter.inference(with: images)
with dictionary
let indexToImages: [Int: Any]
let outputs = try interpreter.inference(with: indexToImages)
with and label in method's argument
let outputs = try interpreter.inference(with: inputImage, and: styleImage)
let outputs = try interpreter.inference(with: inputImage, and: styleImageData)
candidate
with Data array ✅
with image array
with dictionary
with and label in method's argument