0 votes
1 view
in Machine Learning by (15.5k points)

I was taking a look at Convolutional Neural Network from CS231n Convolutional Neural Networks for Visual Recognition. In Convolutional Neural Network, the neurons are arranged in 3 dimensions(height, width, depth). I am having trouble with the depth of the CNN. I can't visualize what it is.

In the link, they said The CONV layer's parameters consist of a set of learnable filters. Every filter is small spatially (along width and height), but extends through the full depth of the input volume.

For example look at this picture. Sorry if the image is too crappy. crappy picture

I can grasp the idea that we take a small area off the image, then compare it with the "Filters". So the filters will be a collection of small images? Also, they said We will connect each neuron to only a local region of the input volume. The spatial extent of this connectivity is a hyperparameter called the receptive field of the neuron. So is the receptive field has the same dimension as the filters? Also, what will be the depth here? And what do we signify using the depth of a CNN?

So, my question mainly is, if I take an image having a dimension of [32*32*3] (let's say i have 50000 of these images, making the dataset [50000*32*32*3]), what shall i choose as its depth and what would it mean by the depth. Also, what will be the dimension of the filters?

Also, it will be much helpful if anyone can provide some link that gives some intuition on this.

So in one part of the tutorial(Real-world example part), it says The Krizhevsky et al. architecture that won the ImageNet challenge in 2012 accepted images of size [227x227x3]. On the first Convolutional Layer, it used neurons with receptive field size F=11, stride S=4 and no zero padding P=0. Since (227 - 11)/4 + 1 = 55, and since the Conv layer had a depth of K=96, the Conv layer output volume had size [55x55x96].

Here we see the depth is 96. So is depth something that I choose arbitrarily? or something I compute? Also in the example above(Krizhevsky et al) they had 96 depths. So what does it mean by its 96 depths? Also the tutorial stated Every filter is small spatially (along width and height), but extends through the full depth of the input volume.

So that means the depth will be like this? If so then can i assume Depth = Number of Filters?

1 Answer

0 votes
by (33.2k points)

In Deep Neural Networks the depth points to how deep the network is but in this context, the depth is used for visual recognition and it translates to the 3rd dimension of an image.

In this case, you have an image, and the size of this input is 32x32x3. The neural network should be able to learn based on this parameters as depth translates to the different channels of the training images.

For the real-world examples, the first convolutional layer will filters the 224×224×3 input image with 96 kernels of size 11×11×3 with a stride of 4 pixels.

I hope this answer might help.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...