Model compression method and device, target detection equipment and storage medium
A target detection and compression method technology, applied in the field of deep learning, can solve the problems of poor convolution layer effect, loss of model accuracy, poor versatility, etc., to avoid rough cropping problems, improve input-output ratio, and ensure detection accuracy Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Such as figure 1 As shown, according to an embodiment of the first aspect of the present invention, a compression method of a target detection model is proposed, the method comprising:
[0043] Step 102, acquiring a sample image, and constructing a standard detection model;
[0044] Step 104, setting the regular term of the scaling coefficient of the batch normalization layer in the standard detection model;
[0045] Step 106, perform sparse training on the standard detection model according to the regularization item;
[0046] Step 108, pruning the standard detection model according to the scaling factor;
[0047] Step 110, fine-tuning the pruned standard detection model to obtain a target detection model.
[0048] In this embodiment, the standard detection model is constructed according to the sample image, and the original scaling coefficient of the batch normalization (BN, Batch Normalization) layer in the standard detection model is used to measure the importanc...
Embodiment 2
[0055] Such as figure 2 As shown, according to an embodiment of the present invention, a compression method of a target detection model is proposed, the method comprising:
[0056] Step 202, acquire a sample image, and construct a standard detection model;
[0057] Step 204, setting the regular term of the scaling coefficient of the batch normalization layer in the standard detection model;
[0058] Step 206, perform sparse training on the standard detection model according to the regularization item;
[0059] Step 208, sort all the scaling factors according to the preset rules, and generate the serial number of each scaling factor starting from 1;
[0060] Step 210, according to the comparison result of the sequence number and the preset sequence number, delete the channel corresponding to the scaling factor;
[0061] Step 212, fine-tuning the pruned standard detection model to obtain a target detection model.
[0062] In this embodiment, after sparse training, all scali...
Embodiment 3
[0064] Such as image 3 As shown, according to an embodiment of the present invention, a compression method of a target detection model is proposed, the method comprising:
[0065] Step 302, acquiring a sample image, and constructing a standard detection model;
[0066] Step 304, setting the regular term of the scaling coefficient of the batch normalization layer in the standard detection model;
[0067] Step 306, perform sparse training on the standard detection model according to the regularization item;
[0068] Step 308, pruning the standard detection model according to the scaling factor;
[0069] Step 310, acquiring benchmark data of the standard detection model and test data of the target detection model;
[0070] Step 312, calculating the difference between benchmark data and test data;
[0071] Step 314, whether the difference is greater than the reference threshold, if so, enter step 304, if not, enter step 316;
[0072] Step 316, storing the target detection mo...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com