Popularity
1.9
Stable
Activity
0.0
Stable
41
4
20

Programming language: Jupyter Notebook
License: MIT License
Tags: Machine Learning    

CoreML-samples alternatives and similar libraries

Based on the "Machine Learning" category.
Alternatively, view CoreML-samples alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of CoreML-samples or a related project?

Add another 'Machine Learning' Library

README

CoreML-samples

This is the sample code for Core ML using ResNet50 provided by Apple.
ResNet50 can categorize the input image to 1000 pre-trained categories.
What's more, this includes a sample code for coremltools converting keras model to mlmodel.

Source Code for the prediction

guard let image = imageView.image, let ref = image.buffer() else {

        return
}

do {

    // predict
    let output = try model.prediction(image: ref)

    print(output.classLabel)
    print(output.classLabelProbs)

} catch {

    print(error)
}