All Projects → ytakzk → CoreML-samples

ytakzk / CoreML-samples

Licence: MIT license
Sample code for Core ML using ResNet50 provided by Apple and a custom model generated by coremltools.

Programming Languages

Jupyter Notebook
11667 projects
swift
15916 projects

Projects that are alternatives of or similar to CoreML-samples

Awesome Coreml Models
Largest list of models for Core ML (for iOS 11+)
Stars: ✭ 5,192 (+13563.16%)
Mutual labels:  ml, ios11, coreml, coreml-framework
CustomVisionMicrosoftToCoreMLDemoApp
This app recognises 3 hand signs - fist, high five and victory hand [ rock, paper, scissors basically :) ] with live feed camera. It uses a HandSigns.mlmodel which has been trained using Custom Vision from Microsoft.
Stars: ✭ 25 (-34.21%)
Mutual labels:  ml, ios11, coreml
Styletransfer Ios
Stars: ✭ 155 (+307.89%)
Mutual labels:  ios11, coreml
Yolov3
YOLOv3 in PyTorch > ONNX > CoreML > TFLite
Stars: ✭ 8,159 (+21371.05%)
Mutual labels:  ml, coreml
Yolov5
YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite
Stars: ✭ 19,914 (+52305.26%)
Mutual labels:  ml, coreml
Mnist draw
This is a sample project demonstrating the use of Keras (Tensorflow) for the training of a MNIST model for handwriting recognition using CoreML on iOS 11 for inference.
Stars: ✭ 139 (+265.79%)
Mutual labels:  ios11, coreml
Awesome Ml
Discover, download, compile & launch different image processing & style transfer CoreML models on iOS.
Stars: ✭ 142 (+273.68%)
Mutual labels:  ios11, coreml
Windows Machine Learning
Samples and Tools for Windows ML.
Stars: ✭ 663 (+1644.74%)
Mutual labels:  ml, coreml
MNIST-CoreML
Predict handwritten digits with CoreML
Stars: ✭ 63 (+65.79%)
Mutual labels:  coreml, coreml-framework
sharpmask
TensorFlow implementation of DeepMask and SharpMask
Stars: ✭ 31 (-18.42%)
Mutual labels:  ml, resnet
Exermote
Using Machine Learning to predict the type of exercise from movement data
Stars: ✭ 108 (+184.21%)
Mutual labels:  ios11, coreml
CoreML-and-Vision-with-a-pre-trained-deep-learning-SSD-model
This project shows how to use CoreML and Vision with a pre-trained deep learning SSD (Single Shot MultiBox Detector) model. There are many variations of SSD. The one we’re going to use is MobileNetV2 as the backbone this model also has separable convolutions for the SSD layers, also known as SSDLite. This app can find the locations of several di…
Stars: ✭ 16 (-57.89%)
Mutual labels:  coreml, coreml-framework
Arkit Sampler
Code examples for ARKit.
Stars: ✭ 1,334 (+3410.53%)
Mutual labels:  ios11, coreml
Gestureai Coreml Ios
Hand-gesture recognition on iOS app using CoreML
Stars: ✭ 145 (+281.58%)
Mutual labels:  ios11, coreml
Chineseidcardocr
[Deprecated] 🇨🇳中国二代身份证光学识别
Stars: ✭ 1,015 (+2571.05%)
Mutual labels:  ios11, coreml
Awesome Coreml Models
Collection of models for Core ML
Stars: ✭ 500 (+1215.79%)
Mutual labels:  ios11, coreml
Ios 11 By Examples
👨🏻‍💻 Examples of new iOS 11 APIs
Stars: ✭ 3,327 (+8655.26%)
Mutual labels:  ios11, coreml
Torch2coreml
Torch7 -> CoreML
Stars: ✭ 363 (+855.26%)
Mutual labels:  ios11, coreml
Netron
Visualizer for neural network, deep learning, and machine learning models
Stars: ✭ 17,193 (+45144.74%)
Mutual labels:  ml, coreml
iOS11-Demos
Collection of samples and demos of features introduced in iOS 11
Stars: ✭ 16 (-57.89%)
Mutual labels:  ios11, coreml

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.

demo

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)
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].