Book Image

Hands-On Java Deep Learning for Computer Vision

By : Klevis Ramo
Book Image

Hands-On Java Deep Learning for Computer Vision

By: Klevis Ramo

Overview of this book

Although machine learning is an exciting world to explore, you may feel confused by all of its theoretical aspects. As a Java developer, you will be used to telling the computer exactly what to do, instead of being shown how data is generated; this causes many developers to struggle to adapt to machine learning. The goal of this book is to walk you through the process of efficiently training machine learning and deep learning models for Computer Vision using the most up-to-date techniques. The book is designed to familiarize you with neural networks, enabling you to train them efficiently, customize existing state-of-the-art architectures, build real-world Java applications, and get great results in a short space of time. You will build real-world Computer Vision applications, ranging from a simple Java handwritten digit recognition model to real-time Java autonomous car driving systems and face recognition models. By the end of this book, you will have mastered the best practices and modern techniques needed to build advanced Computer Vision Java applications and achieve production-grade accuracy.
Table of Contents (8 chapters)

Applying style cost function

In this section, we are going to see what is the style in terms of convolution layers, and then based on that intuition, we'll build the style cost function. In the end, we'll go through a slightly more formal definition of the style cost function.

How to capture the style

A part of the process is quite similar to what we have seen in the content cost function. So, we will still use convolution layers to capture image features and we will feed the neural network with a generated image, and then instead of the content image, we will use the style image here. And once we do that, we have the features captured for each of the layers.

Let's suppose that we pick up this layer as a feature...