Neural network iteration pruning method and device based on feature perception and electronic equipment
Through the feature-aware neural network iterative pruning method, redundant channels are determined through feature map similarity analysis and hierarchical clustering, and combined with the greedy iterative strategy for pruning, the problem of deep neural network compression in consumer electronics devices is solved and achieved. Efficient compression and performance preservation of models.
Patent Information
- Application Number
- CN202410665229.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-08-23
AI Technical Summary
Due to the excessive computing power and storage space requirements of existing deep neural network models in consumer electronics devices, it is difficult to effectively compress them without affecting model performance, resulting in limited application in edge computing scenarios.
The neural network iterative pruning method based on feature awareness is used to determine the redundant feature maps and prune redundant channels by performing similarity measurement and hierarchical clustering on the output feature maps. It combines the greedy iteration strategy to iteratively prune under hyperparameter constraints. Achieve adaptive adjustment of the pruning rate of each layer.
It achieves effective compression of model parameters and calculations, reduces deviations in pruning rate and sensitivity, improves image recognition accuracy, and promotes the deployment of large-scale neural networks in devices with limited hardware resources.
Smart Images

Figure CN118536573A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of deep neural network compression, and in particular to a method, device and electronic device for iterative pruning of a neural network based on feature perception. Background Art
[0002] With the rapid development of artificial intelligence, deep neural network algorithms represented by VGG, Yolo, Resnet, etc. have been widely used in image classification, target recognition and other fields. However, the huge computing power and storage space requirements of the model during reasoning limit its application in consumer electronics such as watches, mobile phones, and embedded devices. How to fully unleash the potential of neural networks in edge computing scenarios such as consumer electronics is still facing many difficulties. Therefore, studying how to compress the model size as much as possible without affecting the performance of the model can increase the possibility of large models in the future. As an effective compression method, model channel pruning technology has been widely studied and applied in the industry. It can achieve the purpose of lightweight by deleting redundant channels of the model while maintaining accuracy. To apply the model channel pruning method for model compression, it is first necessary to select redundant channels in the model according to channel redundancy, then trim the redundant channels according to a certain ratio, and finally fine-tune to restore the model accuracy. In terms of channel redundancy measurement, researchers have proposed a variety of solutions from different perspectives, such as weight amplitude, BN layer scale factor, convolution kernel geometric median, convolution kernel rank, etc. However, this type of non-data-dependent measurement solution only considers the model itself, without taking into account the input data and feature extraction results during model inference, resulting in the redundancy measurement not being universal. At the same time, when pruning channels, the pruning ratio of each layer is roughly set based on experience, resulting in a large deviation between the pruning rate and pruning sensitivity of each layer of the model.
[0003] Different layers in the network have different sensitivities to pruning operations. For example, pruning sensitive layers will cause irrecoverable accuracy loss in the network as a whole, while pruning non-sensitive layers will hardly affect network accuracy. Therefore, setting appropriate thresholds for each layer can achieve a good balance between pruning accuracy loss and pruning rate. Existing methods roughly set the pruning rate of each layer based on engineering experience, which makes it difficult for pruning operations to balance the relationship between accuracy loss and pruning rate, which may affect the accuracy recovery of the network after pruning and reduce the accuracy of image recognition. Summary of the invention
[0004] Based on this, it is necessary to provide a feature-aware neural network iterative pruning method, device and electronic device to address the above technical problems.
[0005] A neural network iterative pruning method based on feature perception, the method comprising:
[0006] The image to be classified is input into the convolutional neural network model; the convolutional neural network model is a convolutional neural network model obtained after iterative pruning and retraining of the neural network based on feature perception.
[0007] The convolutional neural network model is used to classify and identify the image to be classified to obtain the image category of the image to be classified.
[0008] The specific steps of iterative pruning of neural networks based on feature perception include:
[0009] The convolutional neural network model to be pruned is used to infer the images randomly selected from the dataset and extract the output feature map of the current pruned layer.
[0010] The current pruning layer is pruned in a similarity single-step manner according to the output feature map; similarity single-step pruning refers to determining redundant feature maps by performing similarity measurement and hierarchical clustering on the output feature map, and pruning the convolution channels corresponding to the redundant feature maps.
[0011] Fine-tune the pruned convolutional neural network model.
[0012] If the accuracy loss of the fine-tuned convolutional neural network model meets the preset accuracy loss constraint, the pruning is accepted and the iterative pruning is continued within the current pruning layer according to the preset step size.
[0013] If the accuracy loss does not meet the preset accuracy loss constraint, the pruning is rejected, the convolutional neural network model is restored to the state before pruning this layer, the current pruned layer is updated to the next layer, and inter-layer iterative pruning continues; until all convolutional layers of the convolutional neural network model are traversed, if the preset pruning end condition is not met, the current pruned layer is updated to the first layer of the pruned neural network model, and iterative pruning continues; if the preset pruning end condition is met, pruning ends and the convolutional neural network model after pruning optimization is obtained; the preset pruning end condition is: the pruning rate of the entire network reaches the preset target total pruning rate, or the number of outer layer pruning cycles reaches the preset maximum cycle value.
[0014] A neural network iterative pruning device based on feature perception, the device comprising:
[0015] The image input module is used to input the image to be classified into the convolutional neural network model; the convolutional neural network model is a convolutional neural network model obtained by retraining after being processed by a feature-aware neural network iterative pruning module.
[0016] The image classification module is used to classify and identify the image to be classified using a convolutional neural network model to obtain the image category of the image to be classified.
[0017] Among them, the feature-aware neural network iterative pruning module includes: a feature map determination module, an intra-layer redundant channel determination and pruning module, and an inter-layer iterative pruning module.
[0018] The convolutional neural network model to be pruned is used to infer the images randomly selected from the dataset and extract the output feature map of the current pruned layer.
[0019] The intra-layer iterative pruning module is used to perform similarity single-step pruning on the current pruned layer according to the output feature map; similarity single-step pruning refers to determining redundant feature maps by similarity measurement and hierarchical clustering processing on the output feature map, and pruning the convolution channels corresponding to the redundant feature maps; fine-tuning the pruned convolutional neural network model; if the accuracy loss of the fine-tuned convolutional neural network model meets the preset accuracy loss constraint, the pruning of this layer is accepted, and the intra-layer iterative pruning continues at the current pruned layer according to the preset step size.
[0020] The inter-layer iterative pruning module is used to reject the pruning if the accuracy loss does not meet the preset accuracy loss constraint, restore the convolutional neural network model to the state before pruning the current layer, update the current pruned layer to the next layer, and continue the inter-layer iterative pruning; until all convolutional layers of the convolutional neural network model are traversed, if the preset pruning end condition is not met, the current pruned layer is updated to the first layer of the pruned neural network model, and the iterative pruning continues; if the preset pruning end condition is met, the pruning ends and the convolutional neural network model after pruning optimization is obtained; the preset pruning end condition is: the pruning rate of the whole network reaches the preset target total pruning rate, or the number of outer layer pruning cycles reaches the preset maximum cycle value.
[0021] An electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0022] The above-mentioned neural network iterative pruning method, device and electronic device based on feature perception, the method includes: measuring the redundancy of channels by calculating the similarity between feature maps generated by network inference, and then separating redundant channels; then applying a greedy iterative pruning scheme, iteratively pruning redundant channels under hyperparameter constraints, making pruning decisions based on the fine-tuning accuracy after pruning, and finally achieving adaptive adjustment of the pruning rate of each layer. This method can achieve effective compression of model parameters and calculation amount without affecting model performance, reduce the deviation of pruning rate and pruning sensitivity of each layer of the model, and solve the problem of hardware platform computing power and resource constraints faced by the consumer electronics field when deploying deep learning algorithms, thereby promoting the deployment of large-scale neural networks in devices with limited hardware resources and improving the image recognition accuracy of network models. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A flowchart of a feature-aware neural network iterative pruning method in one embodiment;
[0024] Figure 2 A schematic diagram of a flow chart of a neural network iterative pruning method based on feature perception in one embodiment;
[0025] Figure 3 1 is a visualization of the output feature maps of different channels in another embodiment, wherein (a) is a three-channel color image to be recognized, (b) is an output feature map of activation layer 1, and (c) is an output feature map of activation layer 12;
[0026] Figure 4 hierarchical clustering algorithm steps in another embodiment;
[0027] Figure 5 is a flow chart of a pruning rate iterative approximation method based on greedy iteration as a basic idea in another embodiment;
[0028] Figure 6 A schematic diagram of a single-step pruning process in another embodiment;
[0029] Figure 7 is a structural block diagram of a neural network iterative pruning device based on feature perception in one embodiment;
[0030] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0032] This application analyzes the hardware platform computing power and resource constraints faced by the consumer electronics field when deploying deep learning algorithms, and proposes a neural network iterative pruning method based on feature perception. By pruning redundant channels in the neural network, the network scale and network computing power are compressed, thereby improving the feasibility of deploying deep learning algorithms on edge platforms. In terms of specific algorithms, the channel redundancy is first measured by perceiving the similarity between the feature graphs of the neural network, and then the pruning rate of each layer of the network is adaptively adjusted based on a greedy iterative method. This method consists of three parts: feature graph similarity analysis, a channel redundancy measurement method based on feature perception, and a multi-layer iterative pruning method based on a greedy strategy. The dependencies between the various parts are as follows: Figure 1As shown in the figure, the similarity of feature graphs existing in the neural network is first displayed by visualizing feature graphs, and its feasibility as a model redundancy judgment is analyzed; then, in the order of data normalization, similarity calculation, feature graph clustering, and single-step pruning, it is introduced how to perceive channel similarity for redundancy measurement and pruning; finally, single-step pruning is used as a unit for pruning, and under the supervision of loss constraints and pruning decisions, an iterative method is used to achieve adaptive adjustment of the pruning rate. Compared with existing methods in the industry, this method comprehensively considers network weights and input data in terms of redundant channel measurement and redundant channel selection to find redundant structures in the network, providing a basis for redundancy judgment for pruning operations. This method adopts a multi-layer iterative pruning method based on a greedy strategy, which continuously approaches the global optimal pruning scale and accuracy performance of the model through small step iterative pruning under the supervision of loss constraints and pruning decisions. After testing, in the VGG16-CIFAR10 task, this method can achieve a compression effect of 92.27% and 65.81% in terms of parameter quantity and computational complexity, respectively, at a precision loss of 0.15%. In the VGG19-CIFAR100 task, the model size can be pruned to 2.41M while maintaining 68.91% recognition accuracy.
[0033] In one embodiment, Figure 2 As shown, a feature-aware neural network iterative pruning method is provided, which includes the following steps:
[0034] Step 200: Input the image to be classified into a convolutional neural network model; the convolutional neural network model is a convolutional neural network model obtained after iterative pruning and retraining of a neural network based on feature perception.
[0035] Step 202: Use a convolutional neural network model to perform classification and recognition processing on the image to be classified to obtain the image category of the image to be classified.
[0036] Step 204, wherein the specific steps of iterative pruning of a neural network based on feature perception include: using the to-be-pruned convolutional neural network model to infer a randomly selected image from the data set, and extracting the output feature map of the current pruned layer; performing similarity single-step pruning on the current pruned layer according to the output feature map; similarity single-step pruning refers to determining redundant feature maps by similarity measurement and hierarchical clustering processing on the output feature map, and pruning the convolution channels corresponding to the redundant feature maps; fine-tuning the pruned convolutional neural network model; if the accuracy loss of the fine-tuned convolutional neural network model meets the preset accuracy loss constraint, then accept this pruning, and continue to perform the pruning at the current pruning layer according to the preset step size. Iterative pruning within the layer; if the accuracy loss does not meet the preset accuracy loss constraint, the pruning is rejected, the convolutional neural network model is restored to the state before pruning this layer, the current pruned layer is updated to the next layer, and inter-layer iterative pruning continues; until all convolutional layers of the convolutional neural network model are traversed, if the preset pruning end condition is not met, the current pruned layer is updated to the first layer of the pruned neural network model, and iterative pruning continues; if the preset pruning end condition is met, pruning ends and the pruned optimized convolutional neural network model is obtained; the preset pruning end condition is: the pruning rate of the entire network reaches the preset target total pruning rate, or the number of outer layer pruning cycles reaches the preset maximum cycle value.
[0037] Specifically, the pruning rate is defined as the ratio of the number of pruned channels to the number of initial network channels.
[0038] The convolutional neural network model to be pruned can be but is not limited to a VGG network model. Here, the VGG19 network model is taken as an example to illustrate the similarity between feature maps.
[0039] In order to intuitively show the similarity between feature maps, the VGG19 network model is trained using the CIFAR10 dataset, a picture to be recognized is randomly selected for inference, and the 64 feature maps output by the first layer of convolution are extracted and visualized in grayscale. Figure 3 As shown, (a) is the three-channel color image to be recognized, (b) is the output feature map of activation layer 1, and (c) is the output feature map of activation layer 12. Figure 3 It can be found that different channels can extract multi-dimensional features of the original image, such as edges, contours, backgrounds, textures, and corners. In addition, it can be clearly seen that there are similarities in the features extracted by different channels, that is, the feature extraction capabilities between channels are redundant. Based on this, the redundant channels corresponding to similar features can be trimmed, and the channels corresponding to important features can be retained, thereby reducing the network size.
[0040] The output feature graph is subjected to similarity measurement and hierarchical clustering processing. Specifically, when calculating the similarity of the output feature graph, the absolute value of the pixel value of the output feature graph will affect the calculation result of the similarity (for example, the same picture with different grayscale values represents the same feature or object, but its similarity value is very large). Therefore, it is necessary to normalize the image data and convert the original data into dimensionless data of 0-1. When calculating the similarity of the output feature graph, the Euclidean distance can be used as the similarity distance; methods such as cosine distance and relative entropy (KL) divergence can also be used to calculate the similarity. After calculating the similarity between feature graphs, a similarity matrix can be obtained. Next, the feature graph needs to be divided into different classes. Since the target number of clustering is an unknown parameter, supervised clustering methods such as K-Means cannot be used. As an unsupervised bottom-up clustering method, the hierarchical clustering algorithm can generate a hierarchical clustering tree based only on the differences between samples, which is more suitable for the scenario of this method. The calculation steps of the hierarchical clustering algorithm are as follows: Figure 4 As shown in FIG, the algorithm first considers each sample as a separate class, merges the two classes with the greatest similarity in each clustering, and iterates the process until the similarity between all classes is less than the preset threshold T.
[0041] As an important branch of model lightweight technology, model channel pruning can achieve the purpose of lightweighting by deleting redundant channels of the model while maintaining accuracy. To apply the model channel pruning method for model compression, it is first necessary to select redundant channels in the model according to channel redundancy, then trim the redundant channels according to a certain proportion, and finally fine-tune to restore the model accuracy. In terms of channel redundancy measurement, researchers have proposed a variety of schemes from different angles, such as weight amplitude, BN layer scale factor, convolution kernel geometric median, convolution kernel rank, etc. However, this type of non-data-dependent measurement scheme only considers the model itself, without taking into account the input data and feature extraction results during model inference, resulting in the redundancy measurement not being universal. Therefore, from the perspective of data dependence, this paper proposes a channel redundancy measurement method based on feature perception, and realizes quantitative analysis of channel redundancy through similarity measurement and hierarchical clustering algorithm.
[0042] Different layers in the network have different sensitivities to pruning operations. For example, pruning sensitive layers will cause irreversible accuracy loss in the entire network, while pruning non-sensitive layers will hardly affect the network accuracy. Therefore, setting appropriate thresholds for each layer can achieve a good balance between pruning accuracy loss and pruning rate. Existing methods roughly set the pruning rate of each layer based on engineering experience, which makes it difficult for pruning operations to balance the relationship between accuracy loss and pruning rate. In order to solve this problem, a pruning rate iterative approximation method based on greedy iteration is proposed. First, the network pruning problem is transformed into: under a preset compression rate, how to distribute the total pruning rate to different layers of the network while maximizing the recognition accuracy of the network.
[0043] The pruning rate iterative approximation method is based on the greedy iteration idea. Specifically, it includes: splitting the entire pruning process into multiple sub-processes, pruning each layer in order from shallow to deep layers, iteratively finding the local pruning optimal solution of each sub-process under the supervision of loss constraints and pruning decisions, and maximally approximating the global pruning optimal solution under the total pruning rate by connecting the local optimal solutions in series. The process of the pruning rate iterative approximation method based on the greedy iteration idea is as follows: Figure 5 shown.
[0044] In the above-mentioned feature-aware neural network iterative pruning method, the method includes: measuring the redundancy of channels by calculating the similarity between feature maps generated by network inference, and then separating redundant channels; then applying a greedy iterative pruning scheme, iteratively pruning redundant channels under hyperparameter constraints, making pruning decisions based on the fine-tuning accuracy after pruning, and finally achieving adaptive adjustment of the pruning rate of each layer. This method can achieve effective compression of model parameters and computational complexity without affecting model performance, reduce the deviation of pruning rate and pruning sensitivity of each layer of the model, and solve the problem of hardware platform computing power and resource constraints faced by the consumer electronics field when deploying deep learning algorithms, thereby promoting the deployment of large-scale neural networks in devices with limited hardware resources and improving the image recognition accuracy of network models.
[0045] In one embodiment, the specific steps of similarity single-step pruning in step 204 include: normalizing the output feature map to obtain a normalized feature map; using the Euclidean distance as the similarity distance to calculate the feature similarity of the normalized features to obtain a similarity matrix; using a hierarchical clustering algorithm to process the similarity matrix to obtain a number of clustering clusters; determining redundant feature maps based on all clustering clusters, and pruning the convolution channels corresponding to the redundant feature maps.
[0046] Specifically, the output features after activation operation are normalized using the Min-Max normalization method, and its calculation principle is shown in formula (1).
[0047]
[0048] Among them, I norm represents the normalized feature map, I represents the feature map before normalization, max(I) and min(I) represent the maximum and minimum values of the pixels in the feature map I, respectively.
[0049] When calculating the similarity of feature graphs, the Euclidean distance is used as the similarity distance, and the calculation formula is shown in formula (2).
[0050]
[0051] Among them, D is the feature map I a with I b The distance To calculate the feature map I a with I b function of the distance.
[0052] In one embodiment, the specific steps of similarity single-step pruning in step 204 also include: normalizing the output feature map after the activation operation of the normalization method to obtain a normalized activated feature map; removing the interference caused by the 0 value in the normalized activated feature map to obtain a similarity matrix; wherein the calculation formula of the similarity after removing the 0 value interference is:
[0053]
[0054] Among them, D is the similarity after removing the interference of 0 value, which is I a with I b Represents the two feature maps a and b whose similarity is to be calculated, x and y represent the horizontal and vertical coordinates of the pixels in the feature map, N r With N c Represents the length and width of the feature map, N0 is I a and I b The number of pixel pairs with similar distance 0 in I norm Represents the normalized feature map.
[0055] A hierarchical clustering algorithm is used to process the similarity matrix to obtain several clusters; redundant feature maps are determined based on all clusters, and convolution channels corresponding to the redundant feature maps are trimmed.
[0056] Specifically, the output features after activation operation are normalized using the Min-Max normalization method, and its calculation principle is shown in formula (1).
[0057] In order to avoid the interference of redundant information in the feature map, the feature map after activation operation is used to measure the similarity. In actual operation, it is found that the feature map after activation contains a large number of 0 values, and these 0 values will cause the calculated similarity to be falsely high. Therefore, it is necessary to eliminate the interference similarity caused by 0 values. The similarity calculation formula after eliminating the interference of 0 values is shown in formula (3).
[0058] In one of the embodiments, the output feature map is normalized using a Min-Max normalization method to obtain a normalized feature map.
[0059] In one embodiment, the method further includes: for the bilinear interpolation method, considering the similarity of its 8 neighboring pixels when performing similarity calculation, and adding it to the similarity distance of the central pixel at a preset ratio, the optimized similarity distance is:
[0060]
[0061] in, represents the optimized normalized feature map of feature map a, It represents the optimized normalized feature map of feature map b. Feature maps a and b need to add 1 pixel of padding. α, β1, β2, β3, β4, β5, β6, β7 and β8 represent the weights of the pixels at the corresponding positions in the calculation.
[0062] Specifically, referring to the bilinear interpolation method, the similarity of the 8 neighboring pixels is considered when calculating the similarity, and is added to the pixel distance of the central pixel in a certain proportion. The optimized similarity distance calculation method is shown in formula (4) to formula (6), and the feature map used in the formula needs to add 1 pixel of padding. Preferably, α = 0.6, β1 = β2 = β3 = β4 = β5 = β6 = β7 = β8 = 0.05.
[0063] In one of the embodiments, a hierarchical clustering algorithm is used to process the similarity matrix to obtain several clusters, including: treating each sample as a separate cluster, and taking the similarity distance between samples as the distance between classes; merging the two classes with the smallest distance between classes to obtain a cluster; using the centroid clustering method to calculate the distance between clusters, and updating the distance between clusters, and then entering the next round of iteration until the similarity between all clusters is less than a preset threshold, and obtaining several clusters.
[0064] In one embodiment, the distance update formula between clusters is:
[0065]
[0066] Among them, N A With NB Respectively represent the number of elements in cluster A and cluster B, M = A∪B, D (M,C) is the distance between the new cluster M and the original cluster C, D (A,C) is the distance between cluster A and cluster C, D (B,C) is the distance between cluster B and cluster C.
[0067] Specifically, in the clustering process, when different clusters are merged, the distance between the new clusters needs to be updated, and the centroid clustering method is used to calculate the distance between clusters. Assuming that there are three clusters A, B, and C in the current feature map set, and the difference between cluster A and cluster B is the smallest, cluster merging is required. The distance update method between the merged new cluster M and the original cluster C is shown in formula (7).
[0068] In one of the embodiments, redundant feature maps are determined based on all clustering clusters, and convolution channels corresponding to the redundant feature maps are trimmed, including: randomly selecting a feature map in each cluster as the main feature map, retaining the channel corresponding to the main feature map, and trimming the convolution channels corresponding to the redundant feature map.
[0069] In one embodiment, a preset maximum cluster similarity ratio ε is set: the similarity threshold T is indirectly set by setting the preset maximum cluster similarity ratio ε. The dependency relationship between the two parameters is: T = ε*(max(S j )), max(S j ) represents the similarity matrix S j The maximum value in .
[0070] Preset accuracy loss constraint δ: Analyze the preset accuracy loss of the network after pruning, and select the next pruning operation by comparing it with the preset accuracy loss constraint.
[0071] Preset target total pruning rate λ: Since the channel is used as the pruning granularity in this method, in order to facilitate statistical calculation, the channel pruning rate is used as the total pruning rate calculation method for the entire network. The specific calculation method is: the ratio of the number of channels pruned during network pruning to the number of channels in the original network. When the total pruning rate is reached, pruning ends.
[0072] Preset maximum number of pruning cycles θ: Define the pruning of the network from the first layer to the last layer as a pruning cycle. Preset the maximum number of cycles before pruning. When the number of cycles reaches the preset value, the pruning ends.
[0073] The process of the pruning rate iterative approximation method based on greedy iteration is as follows: Figure 5 As shown, the specific detailed steps are analyzed as follows:
[0074] Step 1: Single-step pruning: Prune the current layer with a small step size under the constraint of the preset maximum clustering similarity ratio ε according to single-step pruning.
[0075] Step 2: Fine-tune the model using a step learning rate to compensate for the accuracy of the pruned model. Note that a smaller initial learning rate value and fewer fine-tuning rounds are set here.
[0076] Step 3 Loss constraint: Select the iteration direction according to the accuracy recovery: if the accuracy loss is less than δ, accept the pruning of this layer, and continue to prune this layer according to the set step size; if the accuracy loss is greater than δ, reject the pruning of this layer, restore the network to the state before pruning this layer, and jump to the next layer for pruning.
[0077] Step 4 Pruning decision: In order to prevent the algorithm from running away during the pruning process, that is, the network cannot find the current local optimal solution and the global optimal solution under the set step size and precision loss threshold, two conditions for the end of pruning are set. Condition 1: The total pruning rate of the entire network reaches the preset value λ, which means that the pruning is completed and the pruning can be ended; Condition 2: The number of cyclic pruning from the shallow layer to the deep layer of the network reaches the preset maximum cycle value θ, which means that although the network has not reached the preset total pruning rate under the existing constraints, it has reached the optimal pruning scale and the pruning is ended.
[0078] The process of single-step pruning of the network according to the feature graph clustering results is as follows Figure 6 shown.
[0079] Figure 6 The left side in the middle is the output feature map during the network inference process. Assume that the current layer has 7 feature maps, each feature map corresponds to a feature channel, and different channels extract different image features. Figure 6 The detailed steps of the process are as follows:
[0080] Step 1: Randomly select an image in the data set for inference calculation, select a layer of the network, and perform feature map extraction and analysis according to step 100.
[0081] Step 2: Use formula (1) to normalize the feature graph, and use formula (4) to calculate the similarity between feature graphs to obtain the initial similarity matrix.
[0082] Step 3: Using the similarity matrix as the initial inter-class distance, hierarchically cluster the feature maps under the constraint of the minimum similarity threshold T using the method shown in formula (7) to obtain several clusters. Randomly select a feature map from each cluster as the main feature map, retain the channels corresponding to the main feature map, and trim the channels corresponding to the redundant feature maps. Fine-tune the trimmed network to restore network accuracy.
[0083] It should be understood that although Figure 1The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0084] In a verification example, in order to adapt to some designs in the pruning method, the network structure used in this example is slightly different from the general network structure. For example, the hidden layer parameters in the VGG network are reduced from 4096 to 512; the experiments are all implemented using Python language and Pytorch framework.
[0085] (1) Experimental environment
[0086] First, the software and hardware test environment on the PC side is introduced. The GPU models and software versions used in the experiment are shown in Table 1.
[0087] Table 1 Software and hardware environment and versions
[0088] Environment Version Operating System Ubuntu Language Python 3.7 Training Framework Torch 1.6.0+cu101 Torchvision 0.7.0+cu101 GPU Quadro GV100
[0089] (2) Dataset and Model
[0090] The detailed information of the models and datasets in different experiments is shown in Table 2. A total of 3 groups of tasks were set up to test the pruning algorithm. The difficulty of the tasks gradually increased in order. Experiment 1 used the CIFAR10 dataset to test the VGG16 model; Experiment 2 used the CIFAR100 dataset to test the VGG16 model. Experiment 3 used the ImageNet dataset subset Tiny-ImageNet to test on the VGG19 network. In order to facilitate comparison and increase the accuracy of the experimental data in the paper, the table calculates the number of parameters of the network model under different experimental conditions and the amount of inference calculation when a single input is used.
[0091] Table 2 Datasets and model types
[0092]
[0093]
[0094] VGGNet: This network structure is a general sequence model. Other new network structures are improved on the basis of VGG. In the experiment, two network structures, VGG16 and VGG19, were used. VGG16 consists of convolutional layers and fully connected layers, and VGG19 adds three convolutional layers on the basis of VGG16. Since the VGG19 network is deeper, it has stronger fitting ability in most scenarios and performs better than VGG16.
[0095] CIFAR10: The CIFAR10 dataset has 10 categories, each category has 6,000 images, including 50,000 training images and 10,000 test images. The size of a single image is 32*32.
[0096] CIFAR100: The CIFAR100 dataset has 100 classes, each class has 600 images, and the rest of the parameters are the same as the CIFAR10 dataset.
[0097] Tiny_ImageNet: The ImageNet dataset contains 14 million images, with the size of a single image ranging from 200 pixels to 800 pixels. Since the complete ImageNet data is too large, conventional hardware systems do not have the corresponding computing power for training and verification. Therefore, in practice, its subset Tiny_ImageNet is mostly used. This subset has 200 categories, each category has 500 training images and 50 test images. The size of a single image in the experiment is 32*32.
[0098] Training and testing: After the network model is generated, the weights, biases and other parameters are initialized to speed up the network convergence. In order to expand the diversity of the data set and enhance the generalization ability of the network, the training set and test set data are normalized, randomly cropped and randomly flipped. During network training, the learning rate is adjusted by cosine annealing to help the network escape the local optimal point. The network accuracy indicated in this experiment is the Top1 accuracy.
[0099] (3) Performance of VGG16-CIFAR10
[0100] First, the model is tested on the VGG16 network model. The model structure is the same as the network structure used in the literature (Learning efficient convolutional networks through network slimming, Z.Liu, J.Li, Z.Shen et al., 2017, pp.2736--2744). The basic unit structure of the convolutional layer is Conv-BatchNorm2d-ReLU. The pooling layer is inserted in some positions in the network to reduce the size of the feature map and reduce the computational complexity of the network. First, the model is pre-trained. The stochastic gradient descent optimizer is used in the training process. After 100 epochs of training, the highest accuracy is Top1-92.63%. The network is pruned on this benchmark model, and the maximum number of loop pruning times θ in the pruning end condition is set to 8, and the preset target total pruning rate λ is set to 90%. The pruning effect of this algorithm under different preset maximum clustering similarity ratios ε and preset accuracy loss constraints δ is shown in Table 3
[0101] In the table, Sr no. represents the test number, where Base represents the benchmark model, Sim ratio represents the preset maximum clustering similarity ratio ε, Acc st represents the preset accuracy loss constraint δ, #Para left(M) represents the number of parameters of the pruned network; %Para pruned represents the parameter pruning ratio compared with the network; #FLOPs left(M) represents the amount of computation for one network reasoning after pruning; %FLOPs pruned represents the pruning ratio of the amount of computation; Epoch cost represents the number of Epochs consumed by this pruning, and Top1 Acc represents the test set accuracy of network reasoning.
[0102] The experimental results under different hyperparameters ε and δ are analyzed. When ε is set to 0.95 and δ is set to 0.20%, the experimental effect is the best. Under the compression ratio of 92.27% reduction in parameters and 65.81% reduction in calculation, the accuracy loss is only 0.15%, and the computing power consumption of the whole pruning process is 993 epochs. Only from the accuracy preservation effect, when ε is set to 0.90 and δ is set to 0.20%, the network accuracy loss is only 0.08%, but its network compression rate is slightly lower than Sr no.1. Observing Srno.2 and Sr no.4, it can be found that when the constraint δ value is large, the compression rate of the model will be greater, but the accuracy loss will also be more serious.
[0103] Table 3 VGG16-CIFAR10-performance under different parameters
[0104]
[0105] The pruning results of the test experiments with test numbers Sr no.1 and Sr no.3 are extracted, and the comparison results with other excellent pruning methods are shown in Table 4. By comparison, it can be found that when the network size is reduced to 1.16M using this method, its model accuracy is still much higher than other comparison networks. When the model size after pruning is 1.69M, the pruning rate is lower than that of the IANP method, but the accuracy is improved by 0.57%. In summary, this method has excellent performance in terms of network compression rate and accuracy retention.
[0106] Table 4 VGG16-CIFAR10-comparison results with other works
[0107]
[0108]
[0109] Among them, the method (1) and the method (3) are the methods used in the test experiments with test numbers Sr no. 1 and Sr no. 3 respectively.
[0110] (4) Performance of VGG16-CIFAR100
[0111] In order to demonstrate the versatility of this method on different data sets, the effect of the VGG network on the CIFAR100 data set was tested. Compared with the CIFAR10 classification task, the CIFAR100 classification task is more complex, and the impact of pruning on network performance is more obvious. The pruning effects in three cases are shown respectively, Low represents a low pruning rate, Middle represents a medium pruning rate, and High represents a high pruning rate. The comparison results of the pruning effects of this method in three cases with other methods are shown in Table 5.
[0112] Table 5 VGG16-CIFAR100-Comparison results with other works
[0113]
[0114] Under low pruning rate, this method can achieve 65.36% network parameter pruning rate and 26.01% computational pruning rate at 0.50% precision attenuation. Under medium pruning rate, this method achieves a relatively balanced state in terms of compression rate and precision. At 77.78% parameter compression rate, it still achieves 69.52% recognition rate. When pursuing the ultimate compression rate, this method can achieve 68.91% model recognition rate at a model size of 2.41M, while compressing the computational amount to 56.45% of the original. Compared with HBAP and IANP, this method can maintain higher network recognition accuracy at a smaller model size. Although LENS and VCNP have higher recognition accuracy, the VGG16 models they use are more complex, and the computational amount reaches an astonishing 501M and 256M respectively, and the network scale has not been significantly reduced. Therefore, compared with LENS and VCNP, this method has better compression effect.
[0115] In addition to showing the pruning effect of the parameters and computational amount of this method under three pruning rates, the changes in the channels of different layers of the model after pruning are statistically analyzed. The number of channels of the network before and after pruning is shown in Table 6. From the analysis of Table 6, it can be found that with the increase of the pruning rate, the number of channels in each layer is decreasing, that is, the pruning of redundant channels is achieved. At the same time, it can be found that the channel pruning ratios in different layers are different. For example, the initial number of channels of the 8th and 9th layers is 512, but with the increase of the pruning rate, the number of channels of the 8th layer remains unchanged, while the number of channels of the 9th layer gradually decreases. This shows that this method can actively perceive the sensitivity of layer pruning during the pruning process, avoiding excessive pruning of sensitive layers, resulting in irrecoverable accuracy loss of the network. The overall analysis of the changes in the number of channels after pruning shows that the redundancy phenomenon in the deep layer of the VGG network is more obvious, while the redundancy of the shallow layer is lower. It can be inferred that the network extracts more invalid features in the deep layer during image recognition. This feature can guide subsequent researchers to conduct research on model compression.
[0116] Table 6 VGG19-CIFAR100-model structure
[0117]
[0118] (5) Performance of VGG19-Tiny_ImageNet
[0119] This method is tested using Tiny-ImageNet in the VGG19 network. Compared with CIFAR100, the classification difficulty of this task continues to increase. The preset maximum number of pruning cycles θ is set to 5. As the number of cycles increases, the pruning rate of the network gradually increases, and the accuracy also decreases slightly. The pruning results after each cycle are shown in Table 7.
[0120] Table 7 VGG19-Tiny_ImageNet-pruning effect at different iterations
[0121]
[0122]
[0123] From the analysis of Table 7, it can be found that compared with other classification tasks, this task is more complex. The classification accuracy of the initial model is 50.41%, the model size is 20.38M, and the amount of calculation required to complete the reasoning of a single picture is 398.50M. In the first round of pruning, this method can achieve 65.20% parameter compression and 41.31% calculation amount compression at a loss of 3.1% accuracy. In the fifth round of pruning, this method achieves 88.72% parameter compression and 73.20% calculation amount compression. From the trend of the change in the number of model parameters after pruning, it can be found that with the increase of the pruning rounds, the change in the model size gradually decreases, that is, it can be considered that there are fewer and fewer redundant channels in the model. Comparing the 4th and 5th rounds of pruning, it can be found that the model size is reduced by 0.52M, but the network accuracy has a loss of 2.19%; similarly, comparing the 1st and 4th rounds of pruning results, the model size is reduced by 4.07M, but the network accuracy is only lost by 1.41%. This phenomenon shows that there is a critical size for network model compression, and excessive compression beyond this critical limit will lead to a large and irreversible loss of accuracy.
[0124] In one embodiment, Figure 7 As shown, a neural network iterative pruning device based on feature perception is provided, comprising: an image input module, an image classification module and a neural network iterative pruning module based on feature perception, wherein:
[0125] The image input module is used to input the image to be classified into the convolutional neural network model; the convolutional neural network model is a convolutional neural network model obtained by retraining after being processed by a feature-aware neural network iterative pruning module.
[0126] The image classification module is used to classify and identify the image to be classified using a convolutional neural network model to obtain the image category of the image to be classified.
[0127] Among them, the feature-aware neural network iterative pruning module includes: a feature map determination module, an intra-layer redundant channel determination and pruning module, and an inter-layer iterative pruning module.
[0128] The convolutional neural network model to be pruned is used to infer the images randomly selected from the dataset and extract the output feature map of the current pruned layer.
[0129] The intra-layer iterative pruning module is used to perform similarity single-step pruning on the current pruned layer according to the output feature map; similarity single-step pruning refers to determining redundant feature maps and pruning convolution channels corresponding to redundant feature maps by performing similarity measurement and hierarchical clustering on the output feature map; fine-tuning the pruned convolutional neural network model; if the accuracy loss of the fine-tuned convolutional neural network model meets the preset accuracy loss constraint, this pruning is accepted, and intra-layer iterative pruning continues at the current pruned layer according to the preset step size.
[0130] The inter-layer iterative pruning module is used to reject the pruning if the accuracy loss does not meet the preset accuracy loss constraint, restore the convolutional neural network model to the state before the pruning, update the current pruned layer to the next layer, and continue the inter-layer iterative pruning; until all the convolutional layers of the convolutional neural network model are traversed, if the preset pruning end condition is not met, the current pruned layer is updated to the first layer of the pruned neural network model, and the iterative pruning continues; if the preset pruning end condition is met, the pruning ends and the convolutional neural network model after pruning optimization is obtained; the preset pruning end condition is: the pruning rate of the whole network reaches the preset target total pruning rate, or the number of outer layer pruning cycles reaches the preset maximum cycle value.
[0131] In one of the embodiments, the specific steps of similarity single-step pruning in the feature-aware neural network iterative pruning module include: normalizing the output feature map to obtain a normalized feature map; using the Euclidean distance as the similarity distance to calculate the feature similarity of the normalized features to obtain a similarity matrix; using a hierarchical clustering algorithm to process the similarity matrix to obtain a number of clustering clusters; determining redundant feature maps based on all clustering clusters, and trimming the convolution channels corresponding to the redundant feature maps.
[0132] In one embodiment, the specific steps of similarity single-step pruning in the feature-aware neural network iterative pruning module also include: normalizing the output feature map after the activation operation of the normalization method to obtain a normalized activated feature map; eliminating the interference caused by the 0 value in the normalized activated feature map to obtain a similarity matrix; wherein the similarity after eliminating the 0 value interference is calculated using formula (3); processing according to the similarity matrix using a hierarchical clustering algorithm to obtain a plurality of cluster clusters; determining redundant feature maps based on all cluster clusters, and trimming the convolution channels corresponding to the redundant feature maps.
[0133] In one of the embodiments, the feature-aware neural network iterative pruning module is also used to normalize the output feature map using a Min-Max normalization method to obtain a normalized feature map.
[0134] In one embodiment, the device is also used for considering the similarity of the eight neighboring pixels when performing similarity calculation for the bilinear interpolation method, and adding a preset ratio to the similarity distance of the central pixel. The optimized similarity distance is shown in formulas (4) to (6).
[0135] In one of the embodiments, the feature-aware neural network iterative pruning module is also used to regard each sample as a separate cluster, and use the similarity distance between samples as the distance between classes; merge the two classes with the smallest distance between classes to obtain a cluster; use the centroid clustering method to calculate the distance between clusters, and update the distance between clusters, and then enter the next round of iteration until the similarity between all clusters is less than a preset threshold, and a number of clusters are obtained.
[0136] In one embodiment, the distance update formula between clusters in the feature-aware neural network iterative pruning module is shown in formula (7).
[0137] In one of the embodiments, the feature-aware neural network iterative pruning module is also used to randomly select a feature map in each cluster as the main feature map, retain the channels corresponding to the main feature map, and trim the convolution channels corresponding to the redundant feature maps.
[0138] For the specific definition of the feature-aware neural network iterative pruning device, please refer to the definition of the feature-aware neural network iterative pruning method above, which will not be repeated here. Each module in the above-mentioned feature-aware neural network iterative pruning device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0139] In one embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as follows: Figure 8As shown. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a neural network iterative pruning method based on feature perception is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0140] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0141] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above method embodiment when executing the computer program.
[0142] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0143] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A feature-aware neural network iterative pruning method, characterized in that: The method comprises: Inputting the image to be classified into a convolutional neural network model; the convolutional neural network model is a convolutional neural network model obtained after iterative pruning and retraining of a neural network based on feature perception; Using the convolutional neural network model to perform classification and recognition processing on the image to be classified, so as to obtain the image category of the image to be classified; The specific steps of the feature-aware neural network iterative pruning include: Use the convolutional neural network model to be pruned to infer the randomly selected images from the dataset and extract the output feature map of the current pruned layer; Performing similarity single-step pruning on the current pruning layer according to the output feature map; the similarity single-step pruning refers to determining redundant feature maps by performing similarity measurement and hierarchical clustering processing on the output feature map, and pruning the convolution channels corresponding to the redundant feature maps; Fine-tune the pruned convolutional neural network model; If the accuracy loss of the fine-tuned convolutional neural network model meets the preset accuracy loss constraint, the pruning is accepted and the iterative pruning is continued within the current pruning layer according to the preset step size; If the accuracy loss does not meet the preset accuracy loss constraint, the pruning is rejected, the convolutional neural network model is restored to the state before pruning the current layer, the current pruned layer is updated to the next layer, and inter-layer iterative pruning is continued; until all convolutional layers of the convolutional neural network model are traversed, if the preset pruning end condition is not met, the current pruned layer is updated to the first layer of the pruned neural network model, and iterative pruning is continued; if the preset pruning end condition is met, pruning is ended to obtain the convolutional neural network model after pruning optimization; the preset pruning end condition is: the pruning rate of the entire network reaches the preset target total pruning rate, or the number of outer layer pruning cycles reaches the preset maximum cycle value.
2. The method according to claim 1, characterized in that The specific steps of similarity single-step pruning include: Normalizing the output feature map to obtain a normalized feature map; The normalized feature graph is used to calculate feature similarity using the Euclidean distance as the similarity distance to obtain a similarity matrix; A hierarchical clustering algorithm is used to process the similarity matrix to obtain a plurality of clusters; Redundant feature maps are determined based on all clustering clusters, and the convolution channels corresponding to the redundant feature maps are pruned.
3. The method according to claim 1, characterized in that The specific steps of similarity single-step pruning include: The output feature map after activation operation is normalized using the Min-Max normalization method to obtain a normalized activated feature map; The interference caused by the 0 value in the normalized activated feature map is removed to obtain the similarity matrix; the calculation formula of the similarity after removing the interference of the 0 value is: Among them, D is the similarity after removing the interference of 0 value, which is I a with I b Represents the two feature maps a and b whose similarity is to be calculated, x and y represent the horizontal and vertical coordinates of the pixels in the feature map, N r With N c Represents the length and width of the feature map, N0 is I a and I b The number of pixel pairs with similar distance 0 in I norm Represents the normalized feature map; A hierarchical clustering algorithm is used to process the similarity matrix to obtain a plurality of clusters; Redundant feature maps are determined based on all clustering clusters, and the convolution channels corresponding to the redundant feature maps are pruned.
4. The method according to claim 2 or 3, characterized in that: The output feature map is normalized by using a Min-Max normalization method to obtain a normalized feature map.
5. The method according to claim 3, characterized in that: Also includes: For the bilinear interpolation method, the similarity of the 8 neighboring pixels is considered when calculating the similarity, and is added to the similarity distance of the central pixel at a preset ratio. The optimized similarity distance is: in, represents the optimized normalized feature map of feature map a, It represents the optimized normalized feature map of feature map b. Feature maps a and b need to add 1 pixel of padding. α, β1, β2, β3, β4, β5, β6, β7 and β8 represent the weights of the pixels at the corresponding positions in the calculation.
6. The method according to claim 2 or 3, characterized in that: According to the similarity matrix, a hierarchical clustering algorithm is used to process and obtain several clusters, including: Treat each sample as a separate cluster and use the similarity distance between samples as the distance between classes; The two classes with the smallest inter-class distance are merged to obtain a cluster; the inter-cluster distance is calculated using the centroid clustering method, and the distance between clusters is updated, and then the next round of iteration is entered until the similarity between all clusters is less than the preset threshold, and several clusters are obtained.
7. The method according to claim 6, characterized in that The distance update formula between clusters is: Among them, N A With N B Respectively represent the number of elements in cluster A and cluster B, M = A∪B, D (M,C) is the distance between the new cluster M and the original cluster C, D (A,C) is the distance between cluster A and cluster C, D (B,C) is the distance between cluster B and cluster C.
8. The method according to claim 2 or 3, characterized in that: Determine the redundant feature maps based on all clusters, and trim the convolution channels corresponding to the redundant feature maps, including: A feature map is randomly selected from each cluster as the main feature map, the convolution channels corresponding to the main feature map are retained, and the convolution channels corresponding to the redundant feature maps are cropped.
9. A neural network iterative pruning device based on feature perception, characterized in that: The device comprises: An image input module, used to input the image to be classified into a convolutional neural network model; the convolutional neural network model is a convolutional neural network model obtained by retraining after being processed by a neural network iterative pruning module based on feature perception; An image classification module is used to perform classification and recognition processing on the image to be classified using the convolutional neural network model to obtain the image category of the image to be classified; The feature-aware neural network iterative pruning module includes a feature map determination module, an intra-layer redundant channel determination and pruning module, and an inter-layer iterative pruning module. Use the convolutional neural network model to be pruned to infer the randomly selected images from the dataset and extract the output feature map of the current pruned layer; The intra-layer iterative pruning module is used to perform similarity single-step pruning on the current pruning layer according to the output feature map; the similarity single-step pruning refers to determining redundant feature maps by similarity measurement and hierarchical clustering processing on the output feature map, and pruning the convolution channels corresponding to the redundant feature maps; fine-tuning the pruned convolutional neural network model; if the accuracy loss of the fine-tuned convolutional neural network model meets the preset accuracy loss constraint, then accept this pruning, and continue to perform intra-layer iterative pruning at the current pruning layer according to the preset step size; The inter-layer iterative pruning module is used to reject the pruning if the accuracy loss does not meet the preset accuracy loss constraint, restore the convolutional neural network model to the state before the pruning, update the current pruned layer to the next layer, and continue the inter-layer iterative pruning; until all convolutional layers of the convolutional neural network model are traversed, if the preset pruning end condition is not met, the current pruned layer is updated to the first layer of the pruned neural network model, and the iterative pruning is continued; if the preset pruning end condition is met, the pruning ends and the convolutional neural network model after pruning optimization is obtained; the preset pruning end condition is: the pruning rate of the whole network reaches the preset target total pruning rate, or the number of outer layer pruning cycles reaches the preset maximum cycle value.
10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Improved multi-sequence magnetic resonance image registration method based on self-similarity
CN109377455A
Outdoor photo sun position estimation method based on full convolutional neural network
CN111402327A
Image recognition network model pruning method and device, equipment and storage medium
CN114358279A
Knowledge graph representation method based on pruning subgraph
CN114780750A
Land utilization classification and identification system based on remote sensing image
CN116129278A
Cited By
Network model lightweight method, device, equipment, medium and program product
CN119886233A
Monolithic calculation imaging edge reconstruction method based on end-to-end sensitivity analysis
CN119941541A
Lithium battery health state analysis neural network pruning method and system and storage medium
CN122596149A
