Skip to Main Content
Hands-On Java Deep Learning for Computer Vision
book

Hands-On Java Deep Learning for Computer Vision

by Klevis Ramo
February 2019
Intermediate to advanced content levelIntermediate to advanced
260 pages
6h 3m
English
Packt Publishing
Content preview from Hands-On Java Deep Learning for Computer Vision

Exploring triplet loss

In this section, we shall look at the finer details of the cost function with a triplet loss. We will train network weights using the triplet cost function or the triplet loss. The idea was introduced in the paper by Schroff in 2015, FaceNet: A unified embedding for face recognition and clusteringWe shall also explore the areas to choose the triplet so that our network will learn to achieve really high accuracy. 

We begin by choosing the base or anchor image, which will be used as a sample for other comparts. The base image is as follows: 

We shall now select a different image that represents the same person; this ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Deep Learning Projects

Java Deep Learning Projects

Md. Rezaul Karim
Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

Benjamin Planche, Eliot Andres

Publisher Resources

ISBN: 9781789613964Supplemental Content