From the course: Deep Learning: Image Recognition
Unlock the full course today
Join today to access over 23,100 courses taught by industry experts.
Convolution layers - Python Tutorial
From the course: Deep Learning: Image Recognition
Convolution layers
- [Instructor] So far, we've created the neural network with densely connected layers. Now we're ready to add convolutional layers to make it better at finding patterns in images. Let's open up 05_convolutional_layers.py. To be able to recognize images officially, we'll add convolutional layers before our densely connected layers. Convolutional layers are able to look for patterns in an image, no matter where the pattern appears in the image. Let's go down to line 22, this is where we'll insert a convolutional layer. First, to add the layer, we'll call model.add. Now there's two types of convolutional layers: 1D and 2D. Since we're working with images, we'll want to add the two dimensional convolutional layer. For some kinds of data, like sound waves, you can use one dimensional convolutional layers, but typically you'll be working with 2D layers. To create one, we just create a new Conv2D object and then pass in the parameters. The first parameter is how many different filters should…
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)
-
-
-
-