Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are channels in tf.nn.conv2D?

I've looked through some great explanations on what different arguments of tf.nn.conv2D represent, but I still can't understand what exactly in_channels and out_channels represent.

Could someone please clarify this for me?

like image 230
Massyanya Avatar asked Dec 08 '22 17:12

Massyanya


1 Answers

Lets say you have a image of size 64x64. It is composed of R-G-B of 64x64 each, so the input size is 64x64x3 and 3 is the input channel in this case. Now you want to convolve this input with a kernel of 5x5x3, you get an output of 64x64x1 (with padding). Suppose you have 100 such kernels and convolve each one of them with the input, you get 64x64x100. Here the output channels are 100.

like image 153
vijay m Avatar answered Dec 10 '22 07:12

vijay m