predictions(from:)
Generates predictions for an array of images.
Declaration
func predictions(from images: [URL]) throws -> [String]Parameters
- images:
An array of images you want the model to classify.
Return Value
An array of prediction labels for the images. Each label’s index corresponds to the image’s index in the input array.