Book Image

Machine Learning with Core ML

Book Image

Machine Learning with Core ML

Overview of this book

Core ML is a popular framework by Apple, with APIs designed to support various machine learning tasks. It allows you to train your machine learning models and then integrate them into your iOS apps. Machine Learning with Core ML is a fun and practical guide that not only demystifies Core ML but also sheds light on machine learning. In this book, you’ll walk through realistic and interesting examples of machine learning in the context of mobile platforms (specifically iOS). You’ll learn to implement Core ML for visual-based applications using the principles of transfer learning and neural networks. Having got to grips with the basics, you’ll discover a series of seven examples, each providing a new use-case that uncovers how machine learning can be applied along with the related concepts. By the end of the book, you will have the skills required to put machine learning to work in their own applications, using the Core ML APIs
Table of Contents (16 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Chapter 9. Object Segmentation Using CNNs

Throughout the chapters in this book, we have seen various machine learning models, each progressively increasing their perceptual abilities. By this, I mean that we were first introduced to a model capable of classifying a single object present in an image. Then came a model that was able to classify not only multiple objects but also their corresponding bounding boxes. In this chapter, we continue this progression by introducing semantic segmentation, in other words, being able to assign each pixel to a specific class, as shown in the following figure: 

Source: http://cocodataset.org/#explore

This allows for a greater understanding of the scene and, therefore, opportunities for more intelligible interfaces and services. But this is not the main focus of this chapter. In this chapter, we will use semantic segmentation to create an image effects application as a way to demonstrate imperfect predictions. We'll be using this to motivate a discussion...