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 6. Creating Art with Style Transfer

In this chapter, we will explore what was one of the most popular mainstream applications of deep learning in 2017—style transfer. We begin by introducing the concepts of style transfer and then its faster alternative, appropriately named fast neural style transfer. Similar to other chapters, we will provide the intuition behind the models (rather than granular details) and, in doing so, you will gain a deeper understanding and appreciation for the potential of deep learning algorithms. Unlike previous chapters, this chapter will focus more on the steps involved in getting the model working on iOS rather than building up the application, in order to keep it concise. 

By the end of this chapter you will have achieved the following:

  • Gained an intuitive understanding of how style transfer works
  • Gained hands-on experience of working with the Core ML Tools Python package and custom layers to get Keras models working in Core ML

Let's get started by introducing...