Skip to Content
Deep Learning with TensorFlow - Second Edition
book

Deep Learning with TensorFlow - Second Edition

by Giancarlo Zaccone, Vihan Jain, Md. Rezaul Karim, Motaz Saad
March 2018
Intermediate to advanced content levelIntermediate to advanced
484 pages
10h 31m
English
Packt Publishing
Content preview from Deep Learning with TensorFlow - Second Edition

Dataset preparation

Our task is to build an image classifier that distinguishes between dogs and cats. We get some help from Kaggle, from which we can easily download the dataset: https://www.kaggle.com/c/dogs-vs-cats/data.

In this dataset, training set contains 20,000 labeled images, and the test and validation sets have 2,500 images.

To use the dataset, you must reshape each image to 227×227×3. In order to do this, you can use the Python code in prep_images.py. Otherwise, you can use the trainDir.rar and testDir.rar files from the repository of this book. They contain 6,000 reshaped images of dogs and cats for training, and 100 reshaped images for testing.

The following fine-tuning implementation, described in the section below, is implemented ...

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

Deep Learning with TensorFlow

Deep Learning with TensorFlow

Giancarlo Zaccone, Fabrizio Milo, Md. Rezaul Karim, Ahmed Menshawy
Deep Learning with TensorFlow 2 and Keras - Second Edition

Deep Learning with TensorFlow 2 and Keras - Second Edition

Antonio Gulli, Dr. Amita Kapoor, Sujit Pal
TensorFlow for Deep Learning

TensorFlow for Deep Learning

Bharath Ramsundar, Reza Bosagh Zadeh

Publisher Resources

ISBN: 9781788831109Supplemental Content