Unlock instant, AI-driven research and patent intelligence for your innovation.

Convolutional neural network cutting method based on adjacent layer weight

A technology of convolutional neural network and adjacent layers, which is applied in the field of convolutional neural network clipping, can solve the problems of loss of precision and the weight of the next layer is not considered, and achieve the effect of high clipping accuracy

Active Publication Date: 2022-01-14
江苏稻源科技集团有限公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, the above method actually has a flaw: since the channel corresponding to the next layer needs to be removed when removing the convolution kernel of the current layer, the weight of the next layer is not considered when performing model clipping.
If the channel weight of the next layer to be removed is large, it may cause a large loss of accuracy

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Convolutional neural network cutting method based on adjacent layer weight
  • Convolutional neural network cutting method based on adjacent layer weight

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The present invention will be further explained below in conjunction with the accompanying drawings.

[0018] Such as figure 2 As described above, a convolutional neural network clipping method based on adjacent layer weights in this embodiment is used to clip the VGG16 network and apply it to face recognition. The VGG16 network has 13 convolutional layers and 3 fully connected layers. The deep learning framework used in this embodiment is pytorch, which is implemented by programming in python language.

[0019] Step 1: Construct the VGG16 network, collect face image data, and obtain training data after preprocessing the face image data. The preprocessing includes normalization and data enhancement processing.

[0020] Step 2: Use the training data to train the network to obtain the trained VGG16 network. Input the VGG16 network that needs to be cut into the code project, read the convolution kernel data of each convolution layer in the VGG16 network, and calculate t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a convolutional neural network cutting method based on weights of adjacent layers. The method comprises the following steps: calculating the weight of each convolution kernel in each convolution layer in a convolutional neural network and the weight of a corresponding channel of the next layer; for each convolution layer, calculating the sum of the weight absolute values of each convolution kernel and the sum of the weight absolute values of the corresponding channels of the next layer, multiplying the sum of the weight absolute values of each convolution kernel and the sum of the weight absolute values of the channels of the next layer by corresponding convolution operation times and then adding to obtain a parameter C for measuring the importance of each convolution kernel in the convolution layer, and cutting off m convolution kernels of which the C values are smaller than a threshold value and the corresponding feature map to obtain a parameter C; cutting off a channel, which is subjected to convolution with the cut-off feature map, in the next convolution layer; and retraining the clipped network to complete network clipping. The convolutional neural network can be clipped under the condition that the precision is not lost by comprehensively considering three elements including the weight of the current convolutional layer, the weight of the next convolutional layer and the number of convolution operations of the convolutional neural network for face recognition and the like.

Description

technical field [0001] The invention relates to a convolutional neural network clipping method. Background technique [0002] Convolutional Neural Networks (Convolutional Neural Networks) is a feed-forward neural network that includes convolutional calculations and has a deep structure. It has a wide range of applications in image classification, image detection, semantic segmentation, and video tracking. [0003] With the increasing application of artificial intelligence technology in life, the edge computing of convolutional neural network has also begun to rise. However, convolutional neural network with excellent effect often has a lot of parameters, which limits its application on mobile terminals or embedded chips. running locally. Therefore, it is often necessary to cut the original neural network to a certain extent. Therefore, how to tailor convolutional neural networks without loss of accuracy has become a technique with practical value. [0004] "Pruning Filter...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06N3/08G06N3/04G06V10/774G06V10/82G06V40/16G06K9/62
CPCG06N3/082G06N3/045G06F18/214
Inventor 杨岸青王彬徐凯陈石赵佳佳袁明亮
Owner 江苏稻源科技集团有限公司