liveBook · Manning

Channel

As explained in Inside Deep Learning: Math, Algorithms, Models

The number of channels in the input tensor to a convolutional layer, such as RGB channels in an image.

A channel is one image-data plane describing a feature at each spatial location. RGB images commonly use red, green, and blue channels, each with the same width and height. section 3.1 section 3.8

In a convolutional layer:

  • The input has Cin channels; each filter spans those input channels. section 3.2.1
  • Each of Cout filters produces one output channel. section 3.4.1

Three input channels, two output channels

A Conv2d layer with Cin = 3 and Cout = 2 applies two filters to the three-channel input and stacks the results into a two-channel output. Padding can preserve the input’s spatial dimensions. section 3.4.2

Figure 3.3 Color images are represented by three sub-images of the same size, called channels. Each channel represents a different concept, the most common being red, green, and blue (RGB). In general, every channel represents a different kind of feature at different locations.

See how an RGB image is represented as three same-sized channel planes. section 3.1

How Inside Deep Learning: Math, Algorithms, Models covers it

How deep it goes
Defines channels and traces their role through filter dimensions and convolutional layer input and output shapes.
Examples
Uses RGB image planes and a convolution mapping three input channels to two output channels.
What you can do after
Understand how input and output channel counts relate to convolutional filters.
How it connects
Links image tensors to convolutional layers and kernels.

Also explained in

Compare how 8 books explain channel →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Inside Deep Learning: Math, Algorithms, Models. The section links point to the parts of the book it draws on.