WO2021208151A1 - 一种模型压缩方法、图像处理方法以及装置 - Google Patents
一种模型压缩方法、图像处理方法以及装置 Download PDFInfo
- Publication number
- WO2021208151A1 WO2021208151A1 PCT/CN2020/088252 CN2020088252W WO2021208151A1 WO 2021208151 A1 WO2021208151 A1 WO 2021208151A1 CN 2020088252 W CN2020088252 W CN 2020088252W WO 2021208151 A1 WO2021208151 A1 WO 2021208151A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- network layer
- model
- layer
- network
- channel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/082—Learning methods modifying the architecture, e.g. adding, deleting or silencing nodes or connections
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/084—Backpropagation, e.g. using gradient descent
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present disclosure relates to the field of machine learning technology, and in particular to a model compression method, image processing method and device.
- Channel pruning is currently a common model compression method. This method achieves compression of the neural network model by removing the parameters with smaller weights in the network model after the model is trained.
- the embodiments of the present disclosure provide at least one model compression method, image processing method and device.
- the embodiments of the present disclosure provide a model compression method, the method includes: for any one of the at least one of the multi-layer network layers in the model to be compressed, according to the According to the model compression progress of the channel pruning process at any one of the network layers, the first target model is determined, and the first target model is used to obtain the loss information of the sample image, and the first target model
- the next network layer of any network layer outputs the first feature data of the sample image; based on the loss information and the first feature data, the classification loss guidance information is determined; based on the classification loss guidance information,
- the network layer of any one layer performs channel pruning processing.
- the first target model is determined according to the model compression progress during the pruning process of the corresponding channel of the network layer of any layer, and the first target model is used to obtain the loss information of the sample image, and the first
- the next network layer of any one of the network layers in the target model outputs the first feature data of the sample image; then based on the loss information and the first feature data, the classification loss guidance information is determined, and Based on the classification loss guidance information, perform channel pruning processing on any one of the network layers. Therefore, it is possible to perform pruning for only one layer of neural network each time, and guide the channel pruning processing of this layer of neural network based on the classification loss guidance information when pruning, so as to avoid greater impact on the loss of the model after the compression is completed. In turn, the compression efficiency can be ensured, and the compression effect can be taken into consideration at the same time.
- the method further includes: performing the pruning process on all the network layers based on the any one of the network layers.
- the next network layer of any network layer described above performs parameter update processing.
- the parameters of the layer 1 + 1 network layer are adaptively adjusted.
- the determining classification loss guidance information based on the loss information and the first feature data includes: determining classification loss guidance based on the loss information and the first feature data Information and feature importance guidance information.
- the feature importance guide information is used to determine the channel selection indication information, and the channel pruning process is performed on any network layer based on the channel selection information.
- feature importance guidance information as a guide for channel pruning of the first layer of the network layer, effectively avoiding the reconstruction error caused by non-informative features to the minimum. This information will be used in the first + The layer 1 network layer is deleted during the channel pruning process, so reasonable results can be obtained.
- determining feature importance guidance information based on the loss information and the first feature data includes: determining the feature based on the first feature data and predetermined adjustment parameters Importance guidance information.
- the feature importance guide information is determined based on the size of the element value of each element in the first feature data. For a certain channel, the greater the element value of each element in the first feature data, the more important the channel is considered; The smaller the element value of each element in the first feature data is, the less important the channel is considered, and then the channel is adjusted based on this method to solve the problem of feature elimination in the next layer and make the result of channel pruning more reasonable.
- the first target model is: the to-be-compressed model; In the case that any one of the network layers is not the first network layer to be processed for channel pruning, the first target model includes: the network layer that has been processed for channel pruning, and other uncompressed models in the model to be compressed Network layer for channel pruning processing.
- the using the first target model to obtain the loss information of the sample image includes: using the first target model to obtain the classification loss prediction result of the sample image; The classification loss prediction result of the sample image, the real classification label corresponding to the sample image, and the predetermined loss function are used to obtain the loss information of the sample image.
- the determining the classification loss guidance information based on the loss information and the first characteristic data includes: using the reverse of the loss information in the first target model Propagation, determining a partial derivative of a loss function with respect to the first feature data; determining the partial derivative as the classification loss guidance information.
- the performing channel pruning processing on any network layer based on the classification loss guide information includes: based on the classification loss guide information and the first image of the sample image 2. Feature data, determining channel selection instruction information; or, determining channel selection instruction information based on feature importance guidance information and the second feature data of the sample image; or, based on the classification loss guidance information and feature importance guidance Information and the second feature data of the sample image, determine channel selection indication information; adjust the convolution kernel in any network layer based on the channel selection indication information; wherein, the channel selection indication information is used to indicate The channel to be retained; the second feature data of the sample image is the feature data output from the next network layer of any one of the network layers when the sample image is processed using the to-be-compressed model.
- the performing parameter update processing on the next network layer of the any network layer based on the any network layer after the pruning process has been performed includes: For any layer of the network that has been pruned, channel adjustments are made to each convolution kernel in the next layer of the network of any layer; based on the any layer that has been pruned Determine the second target model and use the second target model to obtain the pruning process in the second target model
- the next network layer of any one of the subsequent network layers outputs the third feature data of the sample image; and the second feature data output by the any network layer when the image is processed using the model to be compressed , Obtain the weight parameter of the next layer of the network layer; based on the weight parameter, update the original weight parameter of the next layer of the network layer.
- an embodiment of the present disclosure also provides an image processing method, including: acquiring an image to be processed; using an image processing model determined based on the first aspect or any one of the first aspect to perform image processing on the image to be processed Processing tasks.
- an embodiment of the present disclosure provides a model compression device, the device includes: an acquisition module configured to target any one of at least one of the multiple network layers in the model to be compressed, Determine the first target model according to the model compression progress during the pruning process of the corresponding channel of the network layer of any layer, and use the first target model to obtain the loss information of the sample image, and the first target model The next network layer of any one of the network layers in outputting the first feature data of the sample image; a determining module configured to determine classification loss guidance information based on the loss information and the first feature data; The pruning module is configured to perform channel pruning processing on any network layer based on the classification loss guide information.
- the device further includes: an update module configured to perform channel pruning processing on any one of the network layers by the pruning module based on the pruning processing
- the network layer of any one layer performs parameter update processing on the next network layer of the network layer of any one layer.
- the determining module is configured to determine classification loss guidance information and feature importance guidance information based on the loss information and the first feature data.
- the determining module is configured to determine the feature importance guide information based on the first feature data and predetermined adjustment parameters.
- the first target model is: the to-be-compressed model; In the case that any one of the network layers is not the first network layer to be processed for channel pruning, the first target model includes: the network layer that has been processed for channel pruning, and other uncompressed models in the model to be compressed Network layer for channel pruning processing.
- the acquisition module is configured to use the first target model to acquire the classification loss prediction result of the sample image; the classification loss prediction result based on the sample image and the The real classification label corresponding to the sample image and the predetermined loss function are used to obtain the loss information of the sample image.
- the determining module is configured to use the back propagation of the loss information in the first target model to determine the partial derivative of the loss function with respect to the first characteristic data;
- the partial derivative is determined as the classification loss guidance information.
- the pruning module is configured to determine channel selection indication information based on the classification loss guidance information and the second feature data of the sample image; or, based on feature importance guidance information And the second feature data of the sample image, determining channel selection indication information; or, based on the classification loss guidance information, feature importance guidance information, and the second feature data of the sample image, determining channel selection indication information; Based on the channel selection indication information, adjust the convolution kernel in any of the network layers; wherein the channel selection indication information is used to indicate the channel to be retained; the second feature data of the sample image is The feature data output from the network layer of any one layer of the network layer when the sample image is processed by using the to-be-compressed model.
- the update module is configured to perform pruning processing on each of the convolution kernels in the next layer of the network based on the pruning process.
- the channel adjustment based on the any layer of the network that has been pruned, and the next layer of the network layer that has been adjusted for the convolution kernel channel, determine the second target model, and use the second target Model to obtain the third feature data of the sample image at the next network layer of the any network layer after the pruning process has been performed in the second target model; and use the model to be compressed to
- the second feature data output by the network layer of any one layer is used to obtain the weight parameter of the next layer network layer; based on the weight parameter, the original weight parameter of the next layer network layer Perform update processing.
- an embodiment of the present disclosure further provides an image processing device, including: an acquiring unit configured to acquire an image to be processed; and a processing unit configured to use an image determined based on the first aspect or any one of the first aspect
- the processing model performs image processing tasks on the to-be-processed image.
- embodiments of the present disclosure also provide a computer device, including: a processor and a memory connected to each other, the memory storing computer-readable instructions executable by the processor, and when the computer device is running, the When the computer-readable instructions are executed by the processor, the above-mentioned first aspect of the embodiments of the present disclosure or the steps in any possible implementation manner of the first aspect are executed, or the computer-readable instructions are executed by the processor During execution, the steps in the second aspect of the embodiments of the present disclosure or any possible implementation of the second aspect are executed.
- the embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium.
- the computer program When the computer program is run by a processor, the first aspect or the Steps in any possible implementation manner in one aspect, or, when the computer program is run by a processor, executes the above-mentioned second aspect of the embodiments of the present disclosure, or the steps in any possible implementation manner in the second aspect.
- the embodiments of the present disclosure further provide a computer program that, when executed by a processor, implements the above-mentioned first aspect of the embodiments of the present disclosure, or the steps in any one of the possible implementation manners of the first aspect, Or, when the computer program is run by a processor, the above-mentioned second aspect of the embodiment of the present disclosure or the steps in any possible implementation manner of the second aspect are executed.
- Fig. 1 shows a flowchart of a model compression method provided by an embodiment of the present disclosure
- Figure 2 shows a schematic diagram of a model compression device provided by an embodiment of the present disclosure
- Fig. 3 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
- the channel pruning method that minimizes the loss function removes the channels of each neural network layer iteratively to minimize the impact of the final loss of the final compression model, that is, in each iteration, all neural network layers are processed .
- This method has a good compression effect on the neural network model; however, in order to evaluate the influence of each channel on the final loss, frequent fine-tuning procedures need to be performed, resulting in slow pruning speed and low efficiency.
- the layer-by-layer pruning method when pruning a certain layer of neural network layer, it will select the channel to be deleted and adjust the model parameters by minimizing the reconstruction error of the feature data output by the next layer of neural network layer. . Since this method can only perform pruning operations for one neural network layer at a time, and the fine-tuning process for each neural network layer is performed only once, the pruning speed is fast; but it is in the channel of each neural network layer. During the pruning operation, the adjustment of the channel may have a greater impact on the loss of the neural network model after the compression is completed, resulting in the unsatisfactory adjustment result of the channel, resulting in a poor final compression effect. Furthermore, the current method of channel pruning the neural network model has the problem that the efficiency and the compression effect cannot be balanced.
- the channel pruning operation will be performed on the l+1 network layer, and the output characteristics of the lth network layer after the channel pruning operation , Will become the input features of the l+1 network layer; if the channel pruning operation is performed on the l+1 network layer, some reconstruction features in the input features of the l+1 network layer are deleted , These reconstruction features are reconstructed during the channel pruning operation on the l-th network layer, which means that it is not necessary to reconstruct these when the channel pruning operation is performed on the l-th network layer.
- the reconstruction feature of the deleted network layer of the first layer which means that when the channel pruning operation is performed on the first network layer, some channels selected to be deleted are inaccurate, and the result will be obtained due to this situation.
- the compression model of is actually not the most optimized model, there is still room for optimization. This problem is called the next-level feature elimination problem.
- embodiments of the present disclosure provide a model compression method and device, which are used to perform channel pruning processing on at least one network layer in the multi-layer network layer in the compressed model, and target the at least one network layer in the compression model.
- the channel pruning processing of this layer of neural network can be guided based on the classification loss guidance information, so as to avoid a large impact on the loss of the model after the compression is completed, and thus to ensure Compression efficiency can also take into account the compression effect.
- the execution subject of the model compression method provided by the embodiments of the present disclosure is generally a computer device with a certain computing capability.
- Computer equipment includes, for example, terminal equipment or servers or other processing equipment.
- the terminal equipment can be User Equipment (UE), mobile equipment, user terminals, terminals, cellular phones, cordless phones, and personal digital assistants (PDAs). ), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc.
- UE User Equipment
- PDAs personal digital assistants
- the model compression method can be implemented by a processor calling computer-readable instructions stored in a memory.
- the input feature map dimension of the convolutional layer is 4*10*24, where 4 means The number of channels of the input feature map is 4; 10*24 represents the size of the feature map in each channel; the input feature map is convolved through a 64*4*3*3 convolution kernel, where 64 represents the convolution kernel Each convolution kernel corresponds to a channel; 4 represents the number of channels of the convolution kernel, and 3*3 represents the size of the convolution kernel.
- the output feature map is: 64*10*24; the channel pruning process is performed on the network layer of this layer, that is, to reduce the number of convolution kernels, so that the number of channels of the resulting output feature map is reduced, thereby reducing the convolution process.
- the amount of calculation, and the volume of the model For example, when performing channel pruning processing on this layer of network layer, subtracting 5 convolution kernels in this layer of network layer, the convolution kernel will become: 59*4*3*3; finally, the output obtained
- the characteristic picture is: 59*10*24.
- FIG. 1 it is a flowchart of a model compression method provided by an embodiment of the present disclosure.
- the method is used to perform channel pruning processing on at least one of the multi-layer network layers in the compressed model; a possibility
- any m-layer network layer in the L-layer network layer can be used as the network layer to be subjected to channel pruning processing.
- m is a positive integer greater than 0 and less than L.
- the method includes steps S101 to S103, wherein:
- S101 For any one of the at least one network layer in the multi-layer network layer in the to-be-compressed model, determine the first network layer according to the model compression progress during pruning the corresponding channel of the any network layer. A target model, and using the first target model to obtain the loss information of the sample image, and the network layer of any one of the network layers in the first target model to output the sample image The first feature data.
- S102 Determine classification loss guidance information based on the loss information and the first feature data.
- the model compression progress is used to indicate the position of the network layer currently undergoing pruning processing in the model to be compressed, and before that, the network layer that has undergone channel pruning processing is in the model to be compressed s position.
- the model compression progress may only be used to indicate the position of the network layer currently undergoing pruning processing in the model to be compressed .
- the corresponding first network layer A target model includes: a model to be compressed.
- l 1
- the first network layer is the first network layer in the to-be-compressed model; there are no other network layers before the first network layer.
- the l-layer network layer performs channel pruning processing, and the l-th network layer is the first-layer network layer to be subjected to channel pruning processing in the model to be compressed.
- the first target model is the model to be compressed.
- the first target model is also the model to be compressed.
- the corresponding first target model includes: the network layer that has been subjected to channel pruning processing, and the to-be-compressed model In other network layers that have not been pruned.
- a model to be compressed includes L-layer network layers, which are denoted as a1 ⁇ aL respectively; among them, there are three layers of network layer a1, layer 3 network layer a3, and layer 5 network layer a5.
- the first target model at this time includes: a1', a2, a3', and a4-aL.
- the model to be compressed includes the L-layer network layer, and the channel pruning process is performed on the layer 1 network layer to the layer L-1 network layer in the model to be processed as an example for description.
- the using the first target model to obtain the loss information of the sample image may include, for example, inputting the sample image into the first target model, and using the first target model to obtain the classification loss prediction result of the sample image, based on the The classification loss prediction result of the sample image, the real classification label corresponding to the sample image, and the predetermined loss function are used to obtain the loss information of the sample image.
- the loss information of the first target model is expressed as the following formula (1), for example:
- C represents the classification loss function of the first target model when the output feature of the l+1 network layer is Y;
- L c represents the cross-entropy loss function;
- g represents the true classification label of the sample image.
- N represents the function mapped from the l+2 network layer to the L network layer when the channel pruning process is performed on the l network layer;
- W is the parameter of the function, and
- Y is the input of the function.
- the loss information of the sample image is determined through the above process.
- the above loss information is composed of the network layer that has been processed for channel pruning and the network layer that has not been processed for channel pruning after the channel pruning process is performed on the first network layer to the 1-1 network layer.
- the first feature data is the feature data output from the l+1th network layer in the first target model.
- the first target model is used to perform image processing on the sample image, and each layer of the network layer can obtain feature data representing the characteristics of the sample image;
- the feature data output by the l+1th network layer is determined to be the first feature data.
- the classification loss guidance information is used to characterize the importance of each convolution kernel in the network layer to be processed by the channel pruning process.
- the classification loss indication information may be obtained in the following manner: using the back propagation of the loss information in the first target model to determine the partial derivative of the loss function with respect to the first feature data; The partial derivative is determined as the classification loss guidance information.
- the classification loss guidance information ⁇ satisfies the following formula (2)
- C represents the loss function
- y i represents the characteristic data output by the l+1 network layer on the i-th channel after the channel pruning process is performed on the l-th network layer
- y i is a variable; different pruning schemes correspond to different y i .
- the loss function is used to obtain the partial derivative of the variable y i
- this step is expressed as determining classification loss guidance information based on the loss information and the first feature data.
- the channel pruning process can be performed on the first network layer based on the classification loss guide information.
- the channel selection indication information is used to indicate the channel to be retained;
- the second feature data of the sample image Is the feature data output from the next network layer of any one of the network layers when the sample image is processed by using the to-be-compressed model;
- the channel pruning process is performed on the first layer of the network layer
- the output of the sample image of the first layer of the network layer of the model to be compressed can be obtained.
- the second feature data determines the channel selection instruction information based on the classification loss guidance information and the second feature data.
- the i-th channel selection indication information ⁇ satisfies the following formula (3):
- c out represents the number of output channels of the l+1th network layer; i represents the i-th channel of the output feature.
- ⁇ represents classification loss guidance information, which satisfies the above formula (2).
- I an element in a vector containing a set of binary channel selection indicators. In this formula, it corresponds to an output channel of the output feature of the first layer of the network layer, and is used to indicate whether the corresponding output channel needs to be pruned.
- the number of elements included in this vector is the same as the number of input channels of the l+1th network layer, that is, the number of output channels of the lth network layer.
- c in represents the number of input channels of the l+1th network layer. It has a one-to-one correspondence with the output channels of the first network layer.
- ⁇ corresponding to a certain output channel in the first network layer is 0, it indicates that the output channel is pruned, that is, the output channel is deleted, and the specific operation is to delete the convolution corresponding to the output channel Core; when the ⁇ corresponding to an output channel in the first network layer is 1, it indicates that the output channel is not to be pruned, that is, the channel is reserved, and the specific operation is to retain the convolution kernel corresponding to the output channel .
- y i 0 represents the second feature data.
- yi represents the characteristic data output by the l+1th network layer after the channel pruning process is performed on the lth network layer.
- the above formula (3) is an objective function when determining the channel selection indication information based on the classification loss guidance information and the second feature data of the sample image.
- the y i here is actually determined based on the different values of ⁇ when fitting the objective function.
- the convolution kernel of the first network layer is not actually adjusted. .
- the convolution kernel in any network layer is adjusted based on the finally determined ⁇ .
- the objective function for example, the Least Absolute Shrinkage and Selection Operator (LASSO) algorithm can be used to implement.
- LASSO Least Absolute Shrinkage and Selection Operator
- B refers to the number of remaining channels after channel pruning is performed on the first network layer.
- B is generally predetermined, and it is used to constrain that the number of remaining channels cannot exceed B after channel pruning is performed on the first network layer.
- the increase of ⁇ increases the number of 0s in the binary channel selection indicator vector, that is, the number of subtracted channels will increase; the decrease of ⁇ increases the number of 1s in the binary channel selection indicator vector, That is to say, the number of subtracted channels will be reduced; when solving the objective function, we will continue to try the value of ⁇ ; for example, under a certain pruning scheme, gradually increase ⁇ until the constraint condition
- the convolution kernel of the first network layer After obtaining the channel selection indication information, adjust the convolution kernel of the first network layer based on the channel selection indication information. Exemplarily, if the value of the channel selection indication information corresponding to a certain channel is 0, the convolution kernel corresponding to the channel is deleted; if the value of the channel selection indication information corresponding to a certain channel is 1, then the value of the channel selection indication information corresponding to the channel is retained. The corresponding convolution kernel.
- the embodiments of the present disclosure also provide another method for determining classification loss guidance information based on loss information and first feature data, including: based on the loss information and The first feature data determines classification loss guidance information and feature importance guidance information.
- the performing channel pruning processing on any network layer based on the classification loss guide information includes: based on the classification loss guide information, feature importance guide information, and the sample image Determine the channel selection indication information; adjust the convolution kernel in any of the network layers based on the channel selection indication information.
- the second feature data of the sample image is the feature data output from the next network layer of any one of the network layers when the sample image is processed using the to-be-compressed model.
- the feature importance guide information is used to indicate the degree of importance of element values at different positions in the feature data.
- the feature importance guide information may be determined based on the first feature data and predetermined adjustment parameters.
- the feature importance guide information ⁇ satisfies the following formula (6):
- ⁇ is a predetermined constant used to adjust The degree of influence; can be set according to needs. For example, it can be set to 1, 0.9, 1.1, and so on.
- the i-th channel selection indication information ⁇ satisfies the following formula (7):
- the channel selection indication information may also be determined only based on the feature importance guide information.
- the execution of channel pruning processing on any network layer based on the classification loss guidance information may include, for example, the second feature data based on the feature importance guidance information and the sample image , Determine the channel selection indication information; adjust the convolution kernel in any one of the network layers based on the channel selection indication information.
- the second feature data of the sample image is the feature data output from the next network layer of any one of the network layers when the sample image is processed using the to-be-compressed model.
- the objective function can be expressed as the following formula (10):
- the i-th channel is more likely to be deleted during channel pruning of the l-th network layer. In this case, you can use The reconstruction error.
- the i-th channel is not deleted during channel pruning of the l-th network layer, you can use The reconstruction error. Since in related technologies, the result of channel pruning on the first network layer is determined by many factors, including the spatial position m, the input sample image and the parameters of the model to be compressed, it is difficult to predict whether the first network layer is being pruned.
- the network layer deletes the channel when the channel is pruned, and then the embodiment of the present disclosure adopts To guide the channel pruning of the first layer of the network layer.
- the method further includes the following step S104:
- S104 Perform parameter update processing on the next network layer of any network layer based on the network layer of any network layer after the pruning process has been performed.
- any network layer is the lth network layer; then the next network layer of the lth network layer is the l+1th network layer.
- the following method can be used to update the parameters of the l+1th network layer:
- channel adjustment is performed on each convolution kernel in the first network layer (1+1).
- the second target model based on the first network layer that has been pruned and the first network layer that has undergone convolution kernel channel adjustment; and use the second target model to obtain the second target model.
- the first 1+1 network layer in the second target model outputs the third feature data of the sample image; and the second feature data output by any one of the network layers when the image is processed using the model to be compressed, to obtain the first
- the weight parameter of the l+1 network layer; based on the weight parameter, the original weight parameter of the l+1 network layer is updated.
- the number of output channels of the l network layer is 6; after a feature map is processed by the l network layer, the output feature map dimension is 6*10*24, which is the input channel of the l+1 network layer The number is also 6; if there are 64 6*3*3 convolution kernels in the l+1 network layer; if one output channel in the l network layer is deleted, the feature map will delete the output channel after the After the first layer of the network layer is processed, the dimension of the output feature map is 5*10*24; under the condition that the output channel of the layer l+1 network layer remains unchanged, the The 64 6*3*3 convolution kernels respectively perform channel deletion, and the final dimension of the 64 convolution kernels in the l+1 network layer is: 5*3*3.
- the channel of the deleted convolution kernel is consistent with the output channel of the deleted first network layer.
- the output channels of the l layer network are m1 to m6; the channels of the convolution kernel of the l+1 network layer are m1' to m6' respectively. If the output channel m3 of the l layer network is deleted; correspondingly, To delete the channel m3' of the convolution kernel of the l+1th network layer.
- the difference between the first target model and the second target model is: in the first target model, the lth network layer is the network layer before the channel pruning operation, and the l+1th network layer is also the original one in the model to be compressed The l+1 network layer; in the second target model, the l network layer is the network layer after the channel pruning operation, and the l+1 network layer is the l+th network layer that has undergone the convolution kernel channel adjustment Layer 1 network layer.
- the convolution kernels corresponding to some channels have been removed in the first layer of the network layer, the convolution kernels of the first layer of the network layer have also been adjusted accordingly, so adaptability is also required. Adjust the parameters of the l+1 network layer.
- the channels that have less impact on the layer 1 network layer have been deleted, and the remaining channels are more important channels. Therefore, the remaining channels in the first layer of the network layer can be regarded as equally important. Furthermore, for example, you can make And reduce the classification loss indicator information ⁇ , and minimize the reconstruction error by solving the least squares optimization problem with fixed channel selection indicator information That is, the weight parameter W of the l+1th network layer satisfies the following formula (12):
- the weight parameter of the layer 1+1 network layer is obtained, and the weight parameter of the layer 1+1 network layer is updated based on the weight parameter.
- W 0,(l) ,l ⁇ [1,L] are the parameters of the lth network layer, and ⁇ is the parameters of other network layers that will not be pruned (for example, a fully connected layer).
- Output model M c based on the compression step, and then re-use them training sample images.
- the final compression model is:
- the sample image can also be used to fine-tune the compression model.
- the compression model can be used to obtain the classification result of the sample image, and the classification loss of the sample image can be determined based on the classification result and the classification label of the sample image; based on the classification loss, the parameters of the compression model can be fine-tuned to improve the recognition accuracy of the compressed model .
- the embodiment of the present disclosure determines the first target model according to the model compression progress during the pruning process of the corresponding channel of any one of the network layers in the multi-layer network layer in the model to be compressed, and uses the first target model to obtain all The loss information of the sample image, and the next network layer of any one of the network layers in the first target model outputs the first feature data of the sample image; based on the loss information and the first feature data , Determine classification loss guidance information, and perform channel pruning processing on any network layer based on the classification loss guidance information.
- the channel pruning processing of this layer of neural network can be guided based on the classification loss guidance information, so as to avoid a large impact on the loss of the model after the compression is completed, and thus to ensure Compression efficiency can also take into account the compression effect.
- another embodiment of the present disclosure also uses feature importance guidance information to determine channel selection indication information, and performs channel pruning processing on any network layer based on the channel selection information.
- feature importance guidance information as a guide for channel pruning of the first layer of the network layer, effectively avoiding the reconstruction error caused by non-informative features to the minimum. This information will be used in the first + The layer 1 network layer is deleted during the channel pruning process, so reasonable results can be obtained.
- the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process.
- the specific execution order of each step should be based on its function and possibility.
- the inner logic is determined.
- the embodiment of the present disclosure also provides a model compression device corresponding to the model compression method. Since the principle of the device in the embodiment of the present disclosure to solve the problem is similar to the above-mentioned model compression method of the embodiment of the present disclosure, the implementation of the device You can refer to the implementation of the method, and the repetition will not be repeated.
- An embodiment of the present disclosure also provides an image processing method, including: acquiring a to-be-processed image; using an image processing model determined based on the model compression method provided in any of the foregoing embodiments of the present disclosure to perform image processing tasks on the to-be-processed image .
- the execution subject of the image processing method provided in the embodiments of the present disclosure is generally a computer device with a certain computing capability.
- the computer device includes, for example, a terminal device or a server or other processing devices.
- the terminal device may be a user equipment (UE).
- UE user equipment
- Mobile devices user terminals, terminals, cellular phones, cordless phones, personal digital assistants (PDAs), handheld devices, computing devices, in-vehicle devices, wearable devices, etc.
- the image processing method may be implemented by a processor invoking computer-readable instructions stored in the memory.
- the image to be processed may be directly collected by a camera device provided on a computer device, or may be obtained from other devices or storage devices through communication.
- the image processing tasks include, for example, at least one image processing task of action recognition, face recognition, facial emotion recognition, face key point recognition, and living body recognition.
- the embodiment of the present disclosure can determine the sample image and the label corresponding to each sample image based on a predetermined image processing task; train the model to be compressed based on the sample image and the label corresponding to each sample image.
- the provided model compression method performs compression processing on it; after the compression model is obtained, some sample images can be used to fine-tune the compression model to obtain a trained image processing model.
- the image processing method provided by the embodiment of the present disclosure uses an image processing model determined based on the model compression method provided by the embodiment of the present disclosure to perform image processing tasks. Since the model compression method provided by the embodiments of the present disclosure can bring better compression effects, that is, the compression model obtained has a smaller model scale and lower computational complexity than the compression model obtained by the current technology, so it is more suitable for Embedded devices perform image processing.
- the device includes: an acquisition module 21, a determination module 22, and a pruning module 23; wherein,
- the acquisition module 21 is configured to target any one of the at least one network layer in the multi-layer network layer in the to-be-compressed model, according to the pruning process of the corresponding channel of the any network layer.
- Model compression progress, determine the first target model, and use the first target model to obtain the loss information of the sample image, and the output data of the next network layer of any network layer in the first target model The first feature data of the sample image;
- the determining module 22 is configured to determine classification loss guidance information based on the loss information and the first characteristic data
- the pruning module 23 is configured to perform channel pruning processing on any network layer based on the classification loss guide information.
- the first target model is determined according to the model compression progress during the pruning process of the corresponding channel of any network layer, and the first target model is used to obtain the loss information of the sample image, and the first The next network layer of any one of the network layers in the target model outputs the first feature data of the sample image; based on the loss information and the first feature data, the classification loss guidance information is determined, and based on all According to the classification loss guidance information, channel pruning processing is performed on any one of the network layers.
- the channel pruning processing of this layer of neural network can be guided based on the classification loss guidance information, so as to avoid a large impact on the loss of the model after the compression is completed, and thus to ensure Compression efficiency can also take into account the compression effect.
- the device further includes: an update module 24, configured to: after the pruning module 23 performs channel pruning processing on any one of the network layers, based on the pruning After the processed any one of the network layers, a parameter update process is performed on the next network layer of the any one of the network layers.
- the determining module 22 is configured to determine classification loss guidance information and feature importance guidance information based on the loss information and the first feature data.
- the determining module 22 is configured to determine the feature importance guide information based on the first feature data and predetermined adjustment parameters.
- the first target model is: the to-be-compressed model
- the first target model includes: the network layer that has been processed by channel pruning, and other models in the to-be-compressed model The network layer that has not been pruned.
- the acquiring module 21 is configured to use the first target model to acquire the classification loss prediction result of the sample image; based on the classification loss prediction result of the sample image, the sample The real classification label corresponding to the image and the predetermined loss function are used to obtain the loss information of the sample image.
- the determining module 22 is configured to use the back propagation of the loss information in the first target model to determine the partial derivative of the loss function with respect to the first feature data;
- the partial derivative is determined as the classification loss guidance information.
- the pruning module 23 is configured to determine channel selection instruction information based on the classification loss guide information and the second feature data of the sample image; or, based on the feature importance guide information And the second feature data of the sample image, determining channel selection indication information; or, based on the classification loss guidance information, feature importance guidance information, and the second feature data of the sample image, determining channel selection indication information; Based on the channel selection indication information, adjust the convolution kernel in any of the network layers; wherein, the channel selection indication information is used to indicate the channel to be retained; the second feature data of the sample image is used to The feature data output from the next network layer of any one of the network layers when the sample image is processed by the compression model.
- the update module 24 is configured to perform a pruning process on each of the convolution kernels in the next layer of the network based on the pruning process.
- the channel adjustment based on the any layer of the network that has been pruned, and the next layer of the network layer that has been adjusted for the convolution kernel channel, determine the second target model, and use the second target Model to obtain the third feature data of the sample image at the next network layer of the any network layer after the pruning process has been performed in the second target model; and use the model to be compressed to
- the second feature data output by the network layer of any one layer is used to obtain the weight parameter of the next layer network layer; based on the weight parameter, the original weight parameter of the next layer network layer Perform update processing.
- model compression device provided in the foregoing embodiment performs model compression
- only the division of the above-mentioned program modules is used as an example.
- the above-mentioned processing can be allocated to different program modules as needed, that is, the internal structure of the device Divide into different program modules to complete all or part of the processing described above.
- the model compression device provided by the foregoing embodiment and the model compression method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
- An embodiment of the present disclosure further provides an image processing device, the image processing device includes: an acquisition unit and a processing unit; the acquisition unit is configured to acquire an image to be processed; the processing unit is configured to use any of the foregoing embodiments of the present disclosure
- the image processing model determined by the provided model compression method performs image processing tasks on the image to be processed.
- the embodiment of the present disclosure also provides a computer device.
- FIG. 3 it is a schematic structural diagram of the computer device 30 provided by the embodiment of the present disclosure.
- the computer device 30 includes a processor 31 and a memory 32 connected to each other.
- the memory 32 stores computer-readable instructions executable by the processor 31.
- the computer-readable instructions are executed by the processor 31 to perform model compression as provided in any of the foregoing embodiments of the present disclosure.
- the steps of the method; or when the computer-readable instructions are executed by the processor 31, the image processing model determined by the model compression method provided by the embodiment of the present disclosure is used to perform image processing tasks on the image to be processed.
- bus system is used to realize the connection and communication between these components.
- the method disclosed in the foregoing embodiment of the present invention may be applied to the processor 31 or implemented by the processor 31.
- the processor 31 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 31 or instructions in the form of software.
- the aforementioned processor 31 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like.
- the processor 31 may implement or execute various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention.
- the general-purpose processor may be a microprocessor or any conventional processor or the like.
- the steps of the method disclosed in the embodiments of the present invention can be directly embodied as execution and completion by a hardware decoding processor, or execution and completion by a combination of hardware and software modules in the decoding processor.
- the software module may be located in a storage medium, and the storage medium is located in the memory 32.
- the processor 31 reads the information in the memory 32 and completes the steps of the foregoing method in combination with its hardware.
- the memory 32 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
- the embodiment of the present disclosure also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the steps of the model compression method provided by the embodiment of the present disclosure when the computer program is run by a processor, or, When the computer program is run by the processor, it executes the image processing model determined by the model compression method provided by the embodiment of the present disclosure, and executes the image processing task.
- the computer program product provided by the embodiment of the present disclosure includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the steps of the model compression method or the image processing method described in the above method embodiment
- the instructions included in the program code can be used to execute the steps of the model compression method or the image processing method described in the above method embodiment
- the embodiments of the present disclosure also provide a computer program, which, when executed by a processor, implements the steps of any model compression method or image processing method of the foregoing embodiments.
- the computer program product can be specifically implemented by hardware, software, or a combination thereof.
- the computer program product is specifically embodied as a computer storage medium.
- the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc. Wait.
- SDK software development kit
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a nonvolatile computer readable storage medium executable by a processor.
- the technical solution of the present disclosure essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present disclosure.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Artificial Intelligence (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Biophysics (AREA)
- Molecular Biology (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Biomedical Technology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Analysis (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Medical Informatics (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Image Processing (AREA)
- Holo Graphy (AREA)
Abstract
Description
Claims (23)
- 一种模型压缩方法,包括:针对待压缩模型中的多层网络层中的至少一层网络层中的任一层网络层,根据在对所述任一层网络层对应通道剪枝处理时的模型压缩进度,确定第一目标模型,并利用所述第一目标模型,获取样本图像的损失信息,以及所述第一目标模型中的所述任一层网络层的下一层网络层输出所述样本图像的第一特征数据;基于所述损失信息以及所述第一特征数据,确定分类损失指导信息;基于所述分类损失指导信息,对所述任一层网络层执行通道剪枝处理。
- 根据权利要求1所述的模型压缩方法,其中,在对所述任一层网络层执行通道剪枝处理后,所述方法还包括:基于已进行剪枝处理后的所述任一层网络层,对所述任一层网络层的下一层网络层进行参数更新处理。
- 根据权利要求1或2所述的模型压缩方法,其中,所述基于所述损失信息以及所述第一特征数据,确定分类损失指导信息,包括:基于所述损失信息以及所述第一特征数据,确定分类损失指导信息以及特征重要性指导信息。
- 根据权利要求3所述的模型压缩方法,其中,基于所述损失信息以及所述第一特征数据,确定特征重要性指导信息,包括:基于所述第一特征数据以及预先确定的调整参数,确定所述特征重要性指导信息。
- 根据权利要求1-4任一项所述的模型压缩方法,其中,针对所述任一层网络层为待进行通道剪枝处理的第一层网络层的情况,所述第一目标模型为:所述待压缩模型;针对所述任一层网络层并非待进行通道剪枝处理的第一层网络层的情况,所述第一目标模型包括:已经进行通道剪枝处理的网络层,以及所述待压缩模型中其他未进行通道剪枝处理的网络层。
- 根据权利要求1-5任一项所述的模型压缩方法,其中,所述利用所述第一目标模型,获取样本图像的损失信息,包括:利用所述第一目标模型,获取所述样本图像的分类损失预测结果;基于所述样本图像的分类损失预测结果、所述样本图像对应的真实分类标签以及预先确定的损失函数,获取所述样本图像的损失信息。
- 根据权利要求1-6任一项所述的模型压缩方法,其中,所述基于所述损失信息以及所述第一特征数据,确定分类损失指导信息,包括:利用所述损失信息在所述第一目标模型中的反向传播,确定损失函数相对于所述第一特征数据的偏导数;将所述偏导数确定为所述分类损失指导信息。
- 根据权利要求1-7任一项所述的模型压缩方法,其中,所述基于所述分类损失指导信息,对所述任一层网络层执行通道剪枝处理,包括:基于所述分类损失指导信息以及所述样本图像的第二特征数据,确定通道选择指示信息;或者,基于特征重要性指导信息以及所述样本图像的第二特征数据,确定通道选择指示信息;又或者,基于所述分类损失指导信息、特征重要性指导信息以及所述样本图像的第二特征数据,确定通道选择指示信息;基于所述通道选择指示信息,调整所述任一网络层中的卷积核;其中,所述通道选择指示信息用于指示要保留的通道;所述样本图像的第二特征数据,为利用待压缩模型对所述样本图像进行处理时从所述任一层网络层的下一层网络层输出的特征数据。
- 根据权利要求2-8任一项所述的模型压缩方法,其中,所述基于已进行剪枝处理后的所述任一层网络层,对所述任一层网络层的下一层网络层进行参数更新处理,包括:基于已进行剪枝处理后的所述任一层网络,对所述任一层网络的下一层网络中的各个卷积核进行通道调整;基于已进行剪枝处理后的所述任一层网络、以及已进行卷积核通道调整的所述下一层网络层,确定第二目标模型,并利用所述第二目标模型,获取所述第二目标模型中的所述已进行剪枝处理后的所述任一层网络层的下一层网络层输出所述样本图像的第三特征数据;以及利用待压缩模型对图像进行处理时的所述任一层网络层输出的第二特征数据,得到所述下一层网络层的权重参数;基于所述权重参数,对所述下一层的原始权重参数进行更新处理。
- 一种图像处理方法,包括:获取待处理图像;利用基于权利要求1-9任一项确定的图像处理模型,对所述待处理图像执行图像处理任务。
- 一种模型压缩装置,所述装置包括:获取模块,配置为针对待压缩模型中的多层网络层中的至少一层网络层中的任一层网络层,根据在对所述任一层网络层对应通道剪枝处理时的模型压缩进度,确定第一目标模型,并利用所述第一目标模型,获取样本图像的损失信息,以及所述第一目标模型中的所述任一层网络层的下一层网络层输出所述样本图像的第一特征数据;确定模块,配置为基于所述损失信息以及所述第一特征数据,确定分类损失指导信息;剪枝模块,配置为基于所述分类损失指导信息,对所述任一层网络层执行通道剪枝处理。
- 根据权利要求11所述的模型压缩装置,其中,所述装置还包括更新模块,配置为在所述剪枝模块对所述任一层网络层执行通道剪枝处理后,基于已进行剪枝处理后的所述任一层网络层,对所述任一层网络层的下一层网络层进行参数更新处理。
- 根据权利要求11或12所述的模型压缩装置,其中,所述确定模块,配置为基于所述损失信息以及所述第一特征数据,确定分类损失指导信息以及特征重要性指导信息。
- 根据权利要求13所述的模型压缩装置,其中,所述确定模块,配置为基于所述第一特征数据以及预先确定的调整参数,确定所述特征重要性指导信息。
- 根据权利要求11-14任一项所述的模型压缩装置,其中,针对所述任一层网络层为待进行通道剪枝处理的第一层网络层的情况,所述第一目标模型为:所述待压缩模型;针对所述任一层网络层并非待进行通道剪枝处理的第一层网络层的情况,所述第一目标模型包括:已经进行通道剪枝处理的网络层,以及所述待压缩模型中其他未进行通道剪枝处理的网络层。
- 根据权利要求11-15任一项所述的模型压缩装置,其中,所述获取模块,配置为利用所述第一目标模型,获取所述样本图像的分类损失预测结果;基于所述样本图像的分类损失预测结果、所述样本图像对应的真实分类标签以及预先确定的损失函数,获取所述样本图像的损失信息。
- 根据权利要求11-16任一项所述的模型压缩装置,其中,所述确定模块,配置为利用所述损失信息在所述第一目标模型中的反向传播,确定损失函数相对于所述第一特征数据的偏导数;将所述偏导数确定为所述分类损失指导信息。
- 根据权利要求11-17任一项所述的模型压缩装置,其中,所述剪枝模块,配置 为基于所述分类损失指导信息以及所述样本图像的第二特征数据,确定通道选择指示信息;或者,基于特征重要性指导信息以及所述样本图像的第二特征数据,确定通道选择指示信息;又或者,基于所述分类损失指导信息、特征重要性指导信息以及所述样本图像的第二特征数据,确定通道选择指示信息;基于所述通道选择指示信息,调整所述任一网络层中的卷积核;其中,所述通道选择指示信息用于指示要保留的通道;所述样本图像的第二特征数据,为利用待压缩模型对所述样本图像进行处理时从所述任一层网络层的下一层网络层输出的特征数据。
- 根据权利要求12-18任一项所述的模型压缩装置,其中,所述更新模块,配置为基于已进行剪枝处理后的所述任一层网络,对所述任一层网络的下一层网络中的各个卷积核的进行通道调整;基于已进行剪枝处理后的所述任一层网络、以及已进行卷积核通道调整的所述下一层网络层,确定第二目标模型,并利用所述第二目标模型,获取所述第二目标模型中的所述已进行剪枝处理后的所述任一层网络层的下一层网络层输出所述样本图像的第三特征数据;以及利用待压缩模型对图像进行处理时的所述任一层网络层输出的第二特征数据,得到所述下一层层网络层的权重参数;基于所述权重参数,对所述下一层网络层的原始权重参数进行更新处理。
- 一种图像处理装置,该图像处理装置包括:获取单元,配置为获取待处理图像;处理单元,配置为利用基于权利要求1-9任一项确定的图像处理模型,对所述待处理图像执行图像处理任务。
- 一种计算机设备,包括:相互连接的处理器和存储器,所述存储器存储有所述处理器可执行的计算机可读指令,当计算机设备运行时,所述计算机可读指令被所述处理器执行时执行如权利要求1至9任一所述的模型压缩方法的步骤,或者,所述计算机可读指令被所述处理器执行时执行如权利要求10所述的图像处理方法的步骤。
- 一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如权利要求1至9任意一项所述的模型压缩方法的步骤,或者,该计算机程序被处理器运行时执行如权利要求10所述的图像处理方法的步骤。
- 一种计算机程序,所述计算机程序被处理器执行时实现如权利要求1至9任意一项所述的模型压缩方法,或者,所述计算机程序被处理器运行时执行如权利要求10所述的图像处理方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021525567A JP2022541359A (ja) | 2020-04-13 | 2020-04-30 | モデル圧縮方法、画像処理方法および装置 |
| KR1020217013984A KR20210129031A (ko) | 2020-04-13 | 2020-04-30 | 모델 압축 방법, 이미지 처리 방법 및 장치 |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010286175.9 | 2020-04-13 | ||
| CN202010286175.9A CN111488986B (zh) | 2020-04-13 | 2020-04-13 | 一种模型压缩方法、图像处理方法以及装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2021208151A1 true WO2021208151A1 (zh) | 2021-10-21 |
Family
ID=71791551
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/088252 Ceased WO2021208151A1 (zh) | 2020-04-13 | 2020-04-30 | 一种模型压缩方法、图像处理方法以及装置 |
Country Status (5)
| Country | Link |
|---|---|
| JP (1) | JP2022541359A (zh) |
| KR (1) | KR20210129031A (zh) |
| CN (1) | CN111488986B (zh) |
| TW (1) | TWI768382B (zh) |
| WO (1) | WO2021208151A1 (zh) |
Cited By (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114118411A (zh) * | 2021-11-30 | 2022-03-01 | 北京达佳互联信息技术有限公司 | 图像识别网络的训练方法、图像识别方法及装置 |
| CN114358245A (zh) * | 2021-12-24 | 2022-04-15 | 杭州海康威视数字技术股份有限公司 | 一种模型敏感性确定方法、装置及电子设备 |
| CN114580632A (zh) * | 2022-03-07 | 2022-06-03 | 腾讯科技(深圳)有限公司 | 模型优化方法和装置、计算设备及存储介质 |
| CN114813299A (zh) * | 2022-05-10 | 2022-07-29 | 无锡市第五人民医院 | 一种药敏检测样品取样预处理混合装置 |
| CN114819140A (zh) * | 2022-03-31 | 2022-07-29 | 支付宝(杭州)信息技术有限公司 | 模型剪枝方法、装置和计算机设备 |
| CN114913441A (zh) * | 2022-06-28 | 2022-08-16 | 湖南大学 | 通道剪枝方法、目标检测方法及遥感图像车辆检测方法 |
| CN114925821A (zh) * | 2022-01-05 | 2022-08-19 | 华为技术有限公司 | 一种神经网络模型的压缩方法及相关系统 |
| CN115034386A (zh) * | 2022-06-22 | 2022-09-09 | 北京三快在线科技有限公司 | 一种业务执行的方法、装置、存储介质及电子设备 |
| CN115063673A (zh) * | 2022-07-29 | 2022-09-16 | 阿里巴巴(中国)有限公司 | 模型压缩方法、图像处理方法、装置和云设备 |
| CN115222042A (zh) * | 2022-07-08 | 2022-10-21 | 中国科学院计算技术研究所 | 一种结构化剪枝的方法以及系统 |
| CN115329952A (zh) * | 2022-10-12 | 2022-11-11 | 深圳比特微电子科技有限公司 | 一种模型压缩方法、装置和可读存储介质 |
| CN115452376A (zh) * | 2022-08-05 | 2022-12-09 | 燕山大学 | 基于改进轻量级深度卷积神经网络的轴承故障诊断方法 |
| CN115543945A (zh) * | 2022-11-29 | 2022-12-30 | 支付宝(杭州)信息技术有限公司 | 一种模型压缩的方法、装置、存储介质及电子设备 |
| CN116189667A (zh) * | 2023-04-27 | 2023-05-30 | 摩尔线程智能科技(北京)有限责任公司 | 语音处理模型的量化压缩方法、装置、设备和存储介质 |
| JP2023088136A (ja) * | 2021-12-14 | 2023-06-26 | 株式会社東芝 | 学習装置、学習方法、学習プログラム、および学習システム |
| CN116992358A (zh) * | 2023-06-27 | 2023-11-03 | 西安电子科技大学 | 一种基于电子鼻设备的轻量级气体分类方法 |
Families Citing this family (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112132279B (zh) * | 2020-09-23 | 2023-09-15 | 平安科技(深圳)有限公司 | 卷积神经网络模型压缩方法、装置、设备及存储介质 |
| CN114692816B (zh) * | 2020-12-31 | 2023-08-25 | 华为技术有限公司 | 神经网络模型的处理方法和设备 |
| CN112906870B (zh) * | 2021-03-17 | 2022-10-18 | 清华大学 | 一种基于小样本的网络模型压缩云端服务方法和装置 |
| CN115115045B (zh) * | 2021-12-24 | 2026-02-06 | 杭州海康威视数字技术股份有限公司 | 一种模型剪枝方法、装置及电子设备 |
| CN117077755B (zh) * | 2022-05-06 | 2026-05-12 | Oppo广东移动通信有限公司 | 通道系数调整方法、装置、存储介质以及计算机设备 |
| CN115358386A (zh) * | 2022-08-12 | 2022-11-18 | 北京达佳互联信息技术有限公司 | 业务模型生成方法、装置、服务器及存储介质 |
| CN116110134A (zh) * | 2023-01-10 | 2023-05-12 | 支付宝(杭州)信息技术有限公司 | 活体检测方法和系统 |
| CN116205286A (zh) * | 2023-02-03 | 2023-06-02 | 北京达佳互联信息技术有限公司 | 任务处理模型的生成方法、装置、电子设备及存储介质 |
| CN116562346B (zh) * | 2023-07-07 | 2023-11-10 | 深圳大学 | 基于l0范数的人工神经网络模型压缩方法及装置 |
| CN116644781B (zh) * | 2023-07-27 | 2023-09-29 | 美智纵横科技有限责任公司 | 模型压缩方法、数据处理方法、装置、存储介质及芯片 |
| TWI906000B (zh) * | 2024-10-24 | 2025-11-21 | 台達電子工業股份有限公司 | 使用卷積神經網路模型產生高解析度圖像的方法、優化系統及使用卷積神經網路模型的人機介面 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109858613A (zh) * | 2019-01-22 | 2019-06-07 | 鹏城实验室 | 一种深度神经网络的压缩方法、系统及终端设备 |
| US20190294929A1 (en) * | 2018-03-20 | 2019-09-26 | The Regents Of The University Of Michigan | Automatic Filter Pruning Technique For Convolutional Neural Networks |
| CN110443165A (zh) * | 2019-07-23 | 2019-11-12 | 北京迈格威科技有限公司 | 神经网络量化方法、图像识别方法、装置和计算机设备 |
| CN110705708A (zh) * | 2019-10-10 | 2020-01-17 | 上海交通大学 | 卷积神经网络模型的压缩方法、装置及计算机存储介质 |
| CN110929839A (zh) * | 2018-09-20 | 2020-03-27 | 深圳市商汤科技有限公司 | 训练神经网络的方法和装置、电子设备和计算机存储介质 |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20180260695A1 (en) * | 2017-03-07 | 2018-09-13 | Qualcomm Incorporated | Neural network compression via weak supervision |
| CN108229533A (zh) * | 2017-11-22 | 2018-06-29 | 深圳市商汤科技有限公司 | 图像处理方法、模型剪枝方法、装置及设备 |
| WO2019190340A1 (en) * | 2018-03-28 | 2019-10-03 | Intel Corporation | Channel pruning of a convolutional network based on gradient descent optimization |
| JP6951295B2 (ja) * | 2018-07-04 | 2021-10-20 | 株式会社東芝 | 学習方法、学習装置および画像認識システム |
| CN110909861B (zh) * | 2018-09-17 | 2023-05-30 | 北京市商汤科技开发有限公司 | 神经网络优化方法及装置、电子设备和存储介质 |
| CN109671020B (zh) * | 2018-12-17 | 2023-10-24 | 北京旷视科技有限公司 | 图像处理方法、装置、电子设备和计算机存储介质 |
| CN110490323B (zh) * | 2019-08-20 | 2024-11-26 | 腾讯科技(深圳)有限公司 | 网络模型压缩方法、装置、存储介质和计算机设备 |
-
2020
- 2020-04-13 CN CN202010286175.9A patent/CN111488986B/zh active Active
- 2020-04-30 KR KR1020217013984A patent/KR20210129031A/ko not_active Abandoned
- 2020-04-30 JP JP2021525567A patent/JP2022541359A/ja active Pending
- 2020-04-30 WO PCT/CN2020/088252 patent/WO2021208151A1/zh not_active Ceased
- 2020-06-22 TW TW109121223A patent/TWI768382B/zh not_active IP Right Cessation
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20190294929A1 (en) * | 2018-03-20 | 2019-09-26 | The Regents Of The University Of Michigan | Automatic Filter Pruning Technique For Convolutional Neural Networks |
| CN110929839A (zh) * | 2018-09-20 | 2020-03-27 | 深圳市商汤科技有限公司 | 训练神经网络的方法和装置、电子设备和计算机存储介质 |
| CN109858613A (zh) * | 2019-01-22 | 2019-06-07 | 鹏城实验室 | 一种深度神经网络的压缩方法、系统及终端设备 |
| CN110443165A (zh) * | 2019-07-23 | 2019-11-12 | 北京迈格威科技有限公司 | 神经网络量化方法、图像识别方法、装置和计算机设备 |
| CN110705708A (zh) * | 2019-10-10 | 2020-01-17 | 上海交通大学 | 卷积神经网络模型的压缩方法、装置及计算机存储介质 |
Cited By (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114118411A (zh) * | 2021-11-30 | 2022-03-01 | 北京达佳互联信息技术有限公司 | 图像识别网络的训练方法、图像识别方法及装置 |
| JP7809854B2 (ja) | 2021-12-14 | 2026-02-02 | 株式会社東芝 | 学習装置、学習方法、学習プログラム、および学習システム |
| JP2025078854A (ja) * | 2021-12-14 | 2025-05-20 | 株式会社東芝 | 学習装置、学習方法、学習プログラム、および学習システム |
| JP2023088136A (ja) * | 2021-12-14 | 2023-06-26 | 株式会社東芝 | 学習装置、学習方法、学習プログラム、および学習システム |
| CN114358245A (zh) * | 2021-12-24 | 2022-04-15 | 杭州海康威视数字技术股份有限公司 | 一种模型敏感性确定方法、装置及电子设备 |
| CN114925821A (zh) * | 2022-01-05 | 2022-08-19 | 华为技术有限公司 | 一种神经网络模型的压缩方法及相关系统 |
| CN114580632A (zh) * | 2022-03-07 | 2022-06-03 | 腾讯科技(深圳)有限公司 | 模型优化方法和装置、计算设备及存储介质 |
| CN114819140A (zh) * | 2022-03-31 | 2022-07-29 | 支付宝(杭州)信息技术有限公司 | 模型剪枝方法、装置和计算机设备 |
| CN114813299B (zh) * | 2022-05-10 | 2023-03-24 | 无锡市第五人民医院 | 一种药敏检测样品取样预处理混合装置 |
| CN114813299A (zh) * | 2022-05-10 | 2022-07-29 | 无锡市第五人民医院 | 一种药敏检测样品取样预处理混合装置 |
| CN115034386A (zh) * | 2022-06-22 | 2022-09-09 | 北京三快在线科技有限公司 | 一种业务执行的方法、装置、存储介质及电子设备 |
| CN114913441A (zh) * | 2022-06-28 | 2022-08-16 | 湖南大学 | 通道剪枝方法、目标检测方法及遥感图像车辆检测方法 |
| CN114913441B (zh) * | 2022-06-28 | 2024-04-16 | 湖南大学 | 通道剪枝方法、目标检测方法及遥感图像车辆检测方法 |
| CN115222042A (zh) * | 2022-07-08 | 2022-10-21 | 中国科学院计算技术研究所 | 一种结构化剪枝的方法以及系统 |
| CN115063673A (zh) * | 2022-07-29 | 2022-09-16 | 阿里巴巴(中国)有限公司 | 模型压缩方法、图像处理方法、装置和云设备 |
| CN115452376A (zh) * | 2022-08-05 | 2022-12-09 | 燕山大学 | 基于改进轻量级深度卷积神经网络的轴承故障诊断方法 |
| CN115329952A (zh) * | 2022-10-12 | 2022-11-11 | 深圳比特微电子科技有限公司 | 一种模型压缩方法、装置和可读存储介质 |
| CN115543945A (zh) * | 2022-11-29 | 2022-12-30 | 支付宝(杭州)信息技术有限公司 | 一种模型压缩的方法、装置、存储介质及电子设备 |
| CN116189667A (zh) * | 2023-04-27 | 2023-05-30 | 摩尔线程智能科技(北京)有限责任公司 | 语音处理模型的量化压缩方法、装置、设备和存储介质 |
| CN116992358A (zh) * | 2023-06-27 | 2023-11-03 | 西安电子科技大学 | 一种基于电子鼻设备的轻量级气体分类方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111488986A (zh) | 2020-08-04 |
| TW202139071A (zh) | 2021-10-16 |
| KR20210129031A (ko) | 2021-10-27 |
| JP2022541359A (ja) | 2022-09-26 |
| TWI768382B (zh) | 2022-06-21 |
| CN111488986B (zh) | 2023-06-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI768382B (zh) | 一種模型壓縮方法及圖像處理方法、電腦設備及儲存介質 | |
| US12277500B2 (en) | Neural network optimization method, electronic device and processor | |
| CN113240079B (zh) | 一种模型训练方法及装置 | |
| US10074054B2 (en) | Systems and methods for Bayesian optimization using non-linear mapping of input | |
| CN114698395B (zh) | 神经网络模型的量化方法和装置、数据处理的方法和装置 | |
| CN113011532B (zh) | 分类模型训练方法、装置、计算设备及存储介质 | |
| CN113298931B (zh) | 一种物体模型的重建方法、装置、终端设备和存储介质 | |
| CN108701250A (zh) | 数据定点化方法和装置 | |
| CN109584327B (zh) | 人脸老化模拟方法、装置以及设备 | |
| CN113761934B (zh) | 一种基于自注意力机制的词向量表示方法及自注意力模型 | |
| CN113743587B (zh) | 一种卷积神经网络池化计算方法、系统、及存储介质 | |
| US12112524B2 (en) | Image augmentation method, electronic device and readable storage medium | |
| CN111382839A (zh) | 剪枝神经网络的方法和装置 | |
| WO2021169160A1 (zh) | 图像归一化处理方法及装置、存储介质 | |
| CN110321964A (zh) | 识别模型更新方法及相关装置 | |
| CN115860100A (zh) | 一种神经网络模型训练方法、装置及计算设备 | |
| WO2022262660A1 (zh) | 针对超分辨率网络的剪枝量化压缩方法、系统及介质 | |
| CN114677548A (zh) | 基于阻变存储器的神经网络图像分类系统及方法 | |
| CN116188878A (zh) | 基于神经网络结构微调的图像分类方法、装置和存储介质 | |
| CN110874627A (zh) | 数据处理方法、数据处理装置及计算机可读介质 | |
| CN118747513A (zh) | 一种模型压缩的电力图像识别轻量化应用方法 | |
| CN115049717B (zh) | 一种深度估计方法及装置 | |
| KR20250037493A (ko) | 모델 훈련 방법 및 관련 디바이스 | |
| CN113139964A (zh) | 多模态图像分割方法、装置、电子设备和存储介质 | |
| US20230401670A1 (en) | Multi-scale autoencoder generation method, electronic device and readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| ENP | Entry into the national phase |
Ref document number: 2021525567 Country of ref document: JP Kind code of ref document: A |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20931138 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20931138 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20931138 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 20/04/2023) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20931138 Country of ref document: EP Kind code of ref document: A1 |

