Depthwise Volume: Each channel independently makes space filters

The Depthwise volume is a separate application of the space core for each input channel, and not all the input channels are sought simultaneously in each output, as is the case with the normal volume.

• Step by stepCollate in 2 self-measured2 First-hand sources
Start Body
Learning objectives and first steps2 objectives 2 first fixes

Try to do it after reading

  • Distinguishing passage-to-channel space cores from corridors
  • Track the output channel according to groups and multiplier

Suggested first

  • Thrust and Matrix Operations
  • Basic neural network

Space processing can not mix channels

The Depthwise volume is a separate application of the space core for each input channel, and not all the input channels are sought simultaneously in each output, as is the case with the normal volume. At the most common channel multiplier of 1 p.m., there are C channels, while the output is still C, each with a set of nuclears. It reduces connectivity, but it also limits cross-channel interactions that can be expressed on a single layer.

(b) Two channels for input, with windows 2 x 2 being [(1,2], [3,4]] and [10,20, [30,40]]. Each channel is filled with a total of 2 x 2 cores, with 10 and 100 output, not directly added to 110. The normal volume only gets 110 if it has one output channel and two input tests of 1.

For depthwise for input channel 3, with a double ratio of 2, each input channel corresponds to two sets of cores for output of channel 6. groups = the number of input channels that are commonly used to achieve it and the number of output channels is required to be multiple integer. The size of a groups cannot be limited without checking the input output conditions.

Channel mixing is done on the other floor

The independent space filters often combine channel information with a volume of 1 x 1 pointwise. depthwise itself did not complete this step. If it directly replaces the original normal volume without replacing the mixed structure, the expression capacity has changed and the effect difference cannot be attributed solely to a reduction in parameters.

(b) In the case of parameters, a multiplier of 1, 3x3, input of 3 channels, with only 27 weights when free of bias; The regular 3 to 6 channels have 162 volumes. However, the two layers of the output channel are different and direct ratios may be unfair and should be aligned with the overall structure and output requirements before comparing the combined costs.

Actual velocity depends on the kernel and memory access of hardware. The number of multipliers per route is low and may still be subject to movement control and bandwidth restrictions. The sixfold reduction in the theoretical multiplier should not be written directly as a sixfold delay reduction, especially for small batches of equipment.

This section refers to MobileNet original paper and PyTorch 2 Conv2d group rules, 10, 100 and 110 for synthetic windows. Image corridors are usually learning features at the depths and should not always be understood as red and green and blue.

What is the output of the two channel windows and of the 10 and 100, depthwise multiplied by 1?

The two output channels are 10 and 100, respectively, and are not automatically added.

Why does depthwise always take 1 x 1 volume after that?

The independent space filter itself does not complete the cross-channel combination for blending channels and adjusting the output dimensions.

The multiple outputs generated by the same input channel can also be studied in different spatial modes at a corridor multiplier of more than one, but they still do not see any other input channel. The multiplier increase is not the same as the general whole route connection, and this distinction should be maintained in the structure chart.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
  2. PyTorch — Conv2d

Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.

← Back to the knowledge directory
Ask Max Ask about this site
Ask Max ↗

Opening the assistant…

Paper figure

Photo comments

LEAVE A NOTE

About this photograph

Connecting to the discussion board…

    Comments become public after moderation. You can delete your own comments from this browser.
    No email is required. Clearing cookies prevents this browser from claiming earlier comments.

    MAX WANG / INDEX

    Find something

    Enter a keyword, or explore the directory below.