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

Summary


In this chapter, we introduced the concept of semantic segmentation, an approach that gives our applications increased perceptual understanding of our photos and videos. It works by training a model to assign each pixel to a specific class. One popular architecture for this is U-Net, which achieves high-precision localization by preserving spatial information, by bridging the convolutional layers. We then reviewed the data used for training along with some example outputs of the model, including examples that highlight the limitations of the model.

We then saw how this model could be used by creating an image effects application, where the segmented images were used to clip people from a series of frames and composite them together to create an action shot. But this is just one example of how semantic segmentation can be applied; it's frequently used in domains such as robotics, security surveillance, and quality assurance in factories, to name a few. How else it can be applied is...