From the course: Deep Learning: Image Recognition
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Loading an image data set - Python Tutorial
From the course: Deep Learning: Image Recognition
Loading an image data set
- [Instructor] To train a neural network we need a set of training images. Let's write the code to load and pre process our training images so they're in the right format to feed into a neural network. Let's go ahead and open up 03 loading image dataset.py. For this neural network we'll be using the cifar10 data set. Since the cifar10 data set is used so often, Keras provides a function for easily accessing it. Here on line eight to load the data we'll call cifar10.loaddata. This function returns four different arrays. First it returns an x and y array of training data. So we'll say x_train,y_train=that function call. The x array will contain the actual images from the data set. The y array contains the matching label for each image. The function also returns an x and y array of test data. So we'll add x_test, and y_test. The test data is in the same format as the training data, it's just additional images that we can use to test the neural network to make sure it's performing well…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Designing a neural network architecture for image recognition4m 7s
-
(Locked)
Exploring the CIFAR-10 data set2m 50s
-
(Locked)
Loading an image data set4m 6s
-
(Locked)
Dense layers3m 27s
-
(Locked)
Convolution layers5m 15s
-
(Locked)
Max pooling1m 40s
-
(Locked)
Dropout1m 54s
-
(Locked)
A complete neural network for image recognition2m 30s
-
(Locked)
-
-
-
-