!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
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.
- Why do you think these images are loaded into the directories in a systematic fashion?
Clean and neat
- What is the name of the parent directory that contains the training images of horses?
- 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
- 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