The calculation process of convolution in Caffe

Source: Internet
Author: User

The recent experiment is to see that the code can increase its own understanding of the recent convolution of the operation of the summary

Convenient for future inspection, but also corrects the previous understanding deviation.

Convolution is an essential operation in convolution neural networks,

The following diagram is a simple relationship between each layer.


You can see a good extension of the relationship, the following is the entire convolution of the approximate process

The upper part of the graph is the traditional convolution operation, and the following figure is the multiplication of a matrix.

The following figure is a detailed operation of the convolution operation in a convolution layer, in him, according to the size of the volume of kernel data and then expand, in the same picture of the different convolution kernel selected row by line, different n words, on the same line after the stitching, different can be multiple channels, Note, however, that each paragraph in the same line should correspond to the convolution window of a position in the original image.


From the above diagram, we can see clearly that the convolution calculation process is

Split a three-channel RGB image into three single channel images, and then have a K-convolution kernel for each channel, the convolution operation, from the diagram can be clearly seen each channel corresponding K convolution and are different, but after the completion of the calculation, the corresponding convolution of the results of the superposition, can be, This will get the feature image of the entire convolution layer. The next step is other actions.


The following figure is a detailed operation of the convolution operation in a convolution layer, in him, according to the size of the volume of kernel data and then expand, in the same picture of the different convolution kernel selected row by line, different n words, on the same line after the stitching, different can be multiple channels, Note, however, that each paragraph in the same line should correspond to the convolution window of a position in the original image.


For convolution operations in the convolution layer, there is also a group concept to illustrate that groups is the number that represents the filter group. The introduction of GRUOP is mainly for the selective connection of the input and output terminals of the channels, otherwise there will be too many parameters. A convolution operation is performed for each group and 1/group input channel and 1/group output channel. For example, there are 4 input, 8 output, then 1-4 belong to the first group, 5-8 belong to the second Gruop

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.