Learn practical skills, build real-world projects, and advance your career
!pip install jovian --upgrade --quiet
# TensorFlow and tf.keras
import tensorflow as tf
from tensorflow import keras

# Helper libraries
import numpy as np
import matplotlib.pyplot as plt

print(tf.__version__)
2.3.0

Lab 6 Using the Image Generator and Fit Generator

Code courtesy of deeplearning.ai (Laurence Moroney)

A. Downloading and organising the images into directories

You will see a series of code cells that download images to the hosted runtime machine. Step through parts 0-3 in the Notebook and understand the processes involved in downloading and organising images from another source.

  1. Why do you think these images are loaded into the directories in a systematic fashion?

Clean and neat

  1. What is the name of the parent directory that contains the training images of horses?

/tmp

  1. What is the total number of training images of both horses and humans? What about the total number of validation images?

1027 training images, 256 validation images

  1. From the visualisations, do you think the images are real or generated?

They look generated

0. Download the images

This code will download the images of horses and humans into the /tmp/ directory of the host machine