Method for expanding repvg structure model, image processing method and device

A structural model and image processing technology, applied in the field of extended repvgg structural model, can solve the problems of no parameter space, small parameter search space, small parameter space, etc., to improve the efficiency of image processing, reduce the amount of calculation, and increase the parameter space. Effect

Pending Publication Date: 2022-05-17
CHENGDU VISION ZENITH TECH DEV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Repvgg mainly obtains the advantages of resnet during training by adding cross-layer connections that can be fused later to vgg: cross-layer connections are convenient for gradient return, so it is easy to model training, and the final effect may be better, but there are the following disadvantages: it does not Does not bring a larger parameter space, the parameter space is small
Therefore, the image processing technology based on the repvgg structure model has the problem of small parameter search space and low image processing efficiency

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for expanding repvg structure model, image processing method and device
  • Method for expanding repvg structure model, image processing method and device
  • Method for expanding repvg structure model, image processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] Embodiment 1: A method for extending the repvgg structure model, including step S3:

[0029] S3: Design a deep convolutional neural network based on a readable storage medium: such as Figure 4 As shown, on the basis of the repvgg structure, additional k convolutions are added next to each conv, and the k convolutions include conv1, conv2,...,convk to obtain an extended structure. Among them, the number of additional convolutions added by each layer of conv can be variable, and K can be a positive integer.

[0030] In the specific application of this embodiment, each convolution convk satisfies the following conditions: conv is followed by a bn layer, and convk is followed by a bn layer.

[0031] In the specific application of this embodiment, each convolution convk satisfies the following condition: the kernel size of each dimension of convk must be smaller than or equal to the kernelsize of the dimension of conv.

[0032] In the specific application of this embodime...

Embodiment 2

[0037]Embodiment 2: on the basis of embodiment 1, including steps: S5: each original conv of the trained model and the extra conv added have a bn layer, according to the weight of the bn layer, the bn layer is fused into Go to the corresponding conv weights, and remove bn to obtain a model fused with bn; S6: In the model fused with bn, for each original conv that conforms to the extended structure, first according to the algorithm of repvgg, according to the conv The number of groups, the original cross-layer connection is integrated into the conv weight as a special convolution with a specific weight, and then for all the additional convolution conv1, conv2, ..., convk of conv, refer to the idea of ​​​​repvgg, put each The kernelsize and group of all dimensions of the weight of an additional convolution are expanded to an updated kernelsize and an updated group to make it consistent with the kernelsize and group of conv, and the new part of the weight is filled with 0; then th...

Embodiment 3

[0038] Embodiment 3: On the basis of Embodiment 2, an image processing method based on the method of extending the repvgg structural model as described above, includes steps S1 and S2 executed sequentially before step S3; after step S3, execute step S4; after step S6, execute step S7; wherein: S1, collect corresponding pictures according to the question; S2, mark the collected pictures; S4, input the pictures and corresponding label information into the deep convolutional neural network designed in step S3 Training, to obtain a trained model; S7, using the final model with integrated weights obtained in step S6 to perform image processing.

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

PUM

No PUM Login to view more

Abstract

The invention discloses a method for expanding a repvg structure model, and an image processing method and device. The method comprises the following steps: S1, collecting a corresponding picture according to a problem; s2, labeling the collected pictures; s3, designing a deep convolutional neural network, and on the basis of repvg, adding k extra convolutions (conv1, conv2,..., convk) beside each conv; s4, inputting the picture and the corresponding annotation information into a designed deep convolutional neural network for training to obtain a trained model; s5, performing fusion weight processing on the trained model to obtain a final model; and S7, solving an image processing problem by using the final model. According to the method, a better weight can be learned in a larger parameter space, so that a model with a better effect is obtained, and when the method is applied to an image processing technology, the larger parameter space can be brought, the calculation amount is reduced, and the image processing efficiency is improved.

Description

technical field [0001] The present invention relates to the field of image processing, and more specifically, relates to a method for extending a repvgg structural model, an image processing method, and a device. Background technique [0002] In the deep convolutional neural network, the emergence of the resnet structure has greatly improved the effect of the model under the same amount of parameters / computation, and because of the cross-layer connection, it is convenient for gradient lossless return, which greatly accelerates the model training and begins to be able to Train very deep models. However, in the actual deployment of the model, due to the hardware characteristics and optimization settings of most of the devices that need to be deployed, resnet will be slower than the vgg structure model with the same amount of calculation, so resnet is often not suitable for practical application deployment. [0003] With the development of technology, the repvgg structure prop...

Claims

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

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06V10/80G06V10/82G06K9/62G06N3/04G06N3/08
CPCG06N3/08G06N3/045G06F18/25
Inventor 阚欣
Owner CHENGDU VISION ZENITH TECH DEV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products