Data processing method, image processing method, device, storage medium and equipment

By replacing and updating parameter sets in image processing technology, the problem of high image processing performance overhead on lightweight terminals is solved, and efficient and accurate image processing is achieved.

CN113780515BActive Publication Date: 2024-09-24JINGDONG KUNPENG (JIANGSU) TECH CO LTD
View PDF 15 Cites 0 Cited by

Patent Information

Application Number
CN202110012775.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-05
Publication Date
2024-09-24
Estimated Expiration
2041-01-05

AI Technical Summary

Technical Problem

When existing image processing technology is run on lightweight terminals (such as smartphones and vehicle-mounted intelligent terminals), the performance overhead is high and time-consuming, making it difficult to achieve efficient image processing.

Method used

By obtaining two parameter sets, the parameter subset in the larger set is replaced with the corresponding subset in the smaller set, the parameter set is updated according to the processing results, and the updated smaller parameter set is loaded into the image processing model for processing. .

Benefits of technology

A lightweight image processing model is implemented, which reduces performance overhead and improves processing efficiency. At the same time, due to the update mechanism of parameter sets, the accuracy of image processing is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113780515B
    Figure CN113780515B
Patent Text Reader

Abstract

The present disclosure provides a data processing method, an image processing method, an apparatus, a storage medium and a device, and relates to the field of data processing technology. The data processing method includes: obtaining a first parameter set and a second parameter set, the data volume of the first parameter set is greater than the data volume of the second parameter set; replacing a first parameter subset in the first parameter set with a second parameter subset in the second parameter set, the first parameter subset and the second parameter subset have a corresponding relationship, and the data volume of the first parameter subset is greater than the data volume of the second parameter subset; processing the first image set by the first parameter set, updating the second parameter subset in the first parameter set according to the processing result, and updating the second parameter set with the updated second parameter subset. The present disclosure solves the problem of high image processing performance overhead.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] At present, many image processing functions rely on machine learning technology, especially deep learning technology, such as target detection and face recognition. Generally, machine learning technology uses a relatively large model to process image data, which requires loading more model parameters and performing more complex calculations, resulting in high performance overhead and time consumption, which is not conducive to running on lightweight terminals (such as smartphones and in-vehicle smart terminals).

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] The present disclosure provides a data processing method, an image processing method, a data processing device, an image processing device, a computer-readable storage medium and an electronic device, thereby solving the problem of high image processing performance overhead at least to a certain extent.

[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0006] According to a first aspect of the present disclosure, a data processing method is provided, including: acquiring a first parameter set and a second parameter set, the data volume of the first parameter set being larger than the data volume of the second parameter set; replacing a first parameter subset in the first parameter set with a second parameter subset in the second parameter set, the first parameter subset and the second parameter subset having a corresponding relationship, and the data volume of the first parameter subset being larger than the data volume of the second parameter subset; processing a first image set through the first parameter set, updating the second parameter subset in the first parameter set according to the processing result, and updating the second parameter set using the updated second parameter subset.

[0007] In an exemplary embodiment of the present disclosure, the parameter subset of the first parameter set corresponds to the parameter subset of the second parameter set one by one.

[0008] In an exemplary embodiment of the present disclosure, the method further includes: determining the first parameter subset among the parameter subsets of the first parameter set according to replacement probabilities of the parameter subsets of the first parameter set.

[0009] In an exemplary embodiment of the present disclosure, determining the first parameter subset among the parameter subsets of the first parameter set according to the replacement probability of each parameter subset of the first parameter set includes: generating a replacement degree of each parameter subset of the first parameter set according to the replacement probability of each parameter subset of the first parameter set; and determining a parameter subset in the first parameter set whose replacement degree is a preset value as the first parameter subset.

[0010] In an exemplary embodiment of the present disclosure, the method further includes: using each parameter subset in the second parameter set as the second parameter subset respectively to update the second parameter set.

[0011] In an exemplary embodiment of the present disclosure, when the first image set is processed by the first parameter set and the second parameter subset in the first parameter set is updated according to the processing result, the method further includes: locking the parameters in the first parameter set except the second parameter subset.

[0012] In an exemplary embodiment of the present disclosure, after updating the second parameter set with the updated second parameter subset, the method further includes: processing the second image set by using the second parameter set, and updating the second parameter set according to the processing result.

[0013] According to a second aspect of the present disclosure, there is provided an image processing method, comprising: obtaining a second parameter set updated according to any one of the above-mentioned data processing methods; loading the second parameter set into an image processing model; and processing a target image through the image processing model.

[0014] In an exemplary embodiment of the present disclosure, the target image is any frame image among a plurality of frames of images acquired continuously.

[0015] In an exemplary embodiment of the present disclosure, the processing of the target image by the image processing model includes: processing the target image by the image processing model, and outputting posture information corresponding to the target image.

[0016] According to a third aspect of the present disclosure, a data processing device is provided, including: an acquisition module, used to acquire a first parameter set and a second parameter set, the data volume of the first parameter set is larger than the data volume of the second parameter set; a replacement module, used to replace a first parameter subset in the first parameter set with a second parameter subset in the second parameter set, the first parameter subset and the second parameter subset have a corresponding relationship, and the data volume of the first parameter subset is larger than the data volume of the second parameter subset; an update module, used to process a first image set through the first parameter set, update the second parameter subset in the first parameter set according to the processing result, and update the second parameter set using the updated second parameter subset.

[0017] According to a fourth aspect of the present disclosure, an image processing device is provided, comprising: a parameter set acquisition module, used to acquire a second parameter set updated according to any one of the above-mentioned data processing methods; a parameter set loading module, used to load the second parameter set into an image processing model; and a target image processing module, used to process a target image through the image processing model.

[0018] According to a fifth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any one of the above-mentioned data processing methods and image processing methods is implemented.

[0019] According to a sixth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned data processing methods and image processing methods by executing the executable instructions.

[0020] The technical solution disclosed in this disclosure has the following beneficial effects:

[0021] The first parameter subset in the first parameter set is replaced by the second parameter subset in the second parameter set, the second parameter subset in the first parameter set is updated by the processing result of the first image set by the first parameter set, and the second parameter set is updated by the updated second parameter subset; the second parameter set can be used to load into the image processing model to process the target image. On the one hand, since there are fewer parameters in the second parameter set, it is conducive to realizing a lightweight image processing model, reducing the performance overhead of image processing, and improving the efficiency of image processing. On the other hand, since the second parameter set is updated based on the second parameter subset in the first parameter set, the second parameter set inherits the characteristics of the first parameter set to a certain extent, which is conducive to improving the accuracy of image processing.

[0022] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0024] Figure 1 A system architecture diagram showing the operating environment of the exemplary embodiment;

[0025] Figure 2 A flow chart showing a data processing method in this exemplary embodiment;

[0026] Figure 3 A flow chart of determining a first parameter subset in this exemplary embodiment is shown;

[0027] Figure 4 A diagram showing an example of parameter subset replacement processing in this exemplary embodiment is shown;

[0028] Figure 5 A data processing flow chart based on a lightweight server-side service framework in this exemplary embodiment is shown;

[0029] Figure 6 A flowchart showing an image processing method in this exemplary embodiment is shown;

[0030] Figure 7 A structural block diagram of a data processing device in this exemplary embodiment is shown;

[0031] Figure 8 A structural block diagram of an image processing device according to the exemplary embodiment is shown;

[0032] Fig. 9 An electronic device for implementing the above method in this exemplary embodiment is shown. DETAILED DESCRIPTION

[0033] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0034] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0035] Herein, “first”, “second”, etc. are labels for specific objects, but do not limit the number or order of the objects.

[0036] In the related technology, there are many application scenarios that require data processing. For example: vehicle automatic driving systems, intelligent robots, intelligent video surveillance, intelligent transportation and other fields. In order to make the final processing results have higher accuracy, a network model with large computational complexity and many parameters is usually used to process the data. However, this processing method will not only lead to slow data processing speed, but also make the performance overhead too large, which is not conducive to running on lightweight terminals (such as smart phones, in-vehicle smart terminals). For example: when monocular three-dimensional target detection technology processes image data, due to the use of a large neural network with large computational complexity and many parameters, the image processing process is relatively slow, and it cannot be efficiently applied to devices with limited computing resources such as smart phones and in-vehicle smart terminals.

[0037] In view of one or more of the above problems, exemplary embodiments of the present disclosure provide a data processing method and an image processing method. Figure 1 The system architecture diagram of the operating environment of the above method is shown in FIG. Figure 1As shown, the system architecture 100 may include: a terminal 110, a network 120 and a server 130. The terminal 110 may be a smart phone, a vehicle-mounted smart terminal, etc., which monitors and collects images in real time. The network 120 is used to provide a medium for a communication link between the terminal 110 and the server 130, and may include various connection types, such as wired, wireless communication links or optical fiber cables. The server 130 is deployed in the enterprise backend and may provide support for image processing of the terminal 110.

[0038] It should be understood that Figure 1 The number of terminals, networks and servers in the embodiment is only for illustration. Any number of terminals, networks and servers may be provided as required. For example, multiple terminals 110 may be connected to the same server 130, or the server 130 may be a server cluster composed of multiple devices.

[0039] The data processing method provided in this exemplary embodiment may be executed by the server 130 or by the terminal 110 . Figure 2 The schematic flow of the data processing method in this exemplary embodiment is shown, including the following steps S210 to S230:

[0040] Step S210, obtaining a first parameter set and a second parameter set, wherein the data volume of the first parameter set is greater than the data volume of the second parameter set;

[0041] Step S220, replacing a first parameter subset in the first parameter set with a second parameter subset in the second parameter set, the first parameter subset and the second parameter subset having a corresponding relationship, and the amount of data in the first parameter subset is greater than the amount of data in the second parameter subset;

[0042] Step S230, processing the first image set by using the first parameter set, updating the second parameter subset in the first parameter set according to the processing result, and updating the second parameter set by using the updated second parameter subset.

[0043] In the data processing method, the first parameter subset in the first parameter set is replaced by the second parameter subset in the second parameter set, the second parameter subset in the first parameter set is updated by the processing result of the first parameter set on the first image set, and the second parameter set is updated by the updated second parameter subset. Since the data volume of the first parameter subset is greater than the data volume of the second parameter subset, the second parameter set can inherit the higher processing accuracy of the first parameter set while retaining the higher processing speed of the second parameter set, further saving the time of data processing and reducing performance overhead.

[0044] The following are Figure 2 Each step in the procedure is described in detail.

[0045] Step S210, obtaining a first parameter set and a second parameter set, wherein the data volume of the first parameter set is greater than the data volume of the second parameter set.

[0046] The first parameter set and the second parameter set are two parameter sets required by the image processing algorithm. In an optional embodiment, the first parameter set is a set formed by the parameters of the first model, the second parameter set is a set formed by the parameters of the second model, and the first model and the second model are image processing models. Generally, the complexity of the first model is higher than that of the second model, which can be reflected in that the structure of the first model is more complex, for example, the first model and the second model are both neural network models, the number of layers of the first model is greater than that of the second model, the first model and the second model are both decision tree models, the number of nodes of the first model is greater than that of the second model, and so on.

[0047] In an optional embodiment, the above-mentioned first model may be, for example, a residual network model RESNET34, and the second model may be, for example, a residual network model RESNET18, RESNET34 and RESNET18 respectively represent residual networks in which the sum of the number of convolutional layers and fully connected layers in the network is 34 and 18, and the model complexity of RESNET34 is higher than that of RESNET18. The parameters included in RESNET34 can constitute a first parameter set, and the parameters included in RESNET18 can constitute a second parameter set.

[0048] The data volume of a parameter set may be the number of parameters included in the parameter set, or the total data volume of all parameters in the parameter set. In this exemplary embodiment, the data volume of the first parameter set is greater than the data volume of the second parameter set, which may be reflected in that the number of parameters included in the first parameter set is greater than that of the second parameter set, or the total data volume of all parameters in the first parameter set is greater than that of the second parameter set.

[0049] In an optional implementation, when reading the first parameter set and the second parameter set, the first parameter set may be read from an external database through an external memory interface, and the second parameter set may be read from a local storage through an internal memory interface.

[0050] Step S220: replace the first parameter subset in the first parameter set with the second parameter subset in the second parameter set, the first parameter subset and the second parameter subset have a corresponding relationship, and the data volume of the first parameter subset is greater than the data volume of the second parameter subset.

[0051] The first model and the second model both include multiple modules (or branches). After the first model and the second model are divided into different modules, the parameters in each module can form a parameter subset. That is, the first parameter set and the second parameter set can be divided into multiple parameter subsets. For example, the first model and the second model are both neural network models, and each layer or multiple layers that realize a certain function in the neural network model is taken as a module (such as taking the convolution layer and the pooling layer that realize the convolution function as a module), and the parameters of each module are extracted to form a parameter subset; the first model and the second model are both decision tree models, and the decision tree model is divided into multiple paths, each path is taken as a module, and the parameters of each module are extracted to form a parameter subset.

[0052] The first parameter subset is one or more specific parameter subsets in the first parameter set, and the second parameter subset is one or more specific parameter subsets in the second parameter set. There is a corresponding relationship between the first parameter subset and the second parameter subset, and the same or similar functions can be achieved. For example, the first parameter subset is the parameter set of the first convolutional layer in the first model, and the second parameter subset is the parameter set of the first convolutional layer in the second model; the first parameter subset is the parameter set of the attention layer in the first model, and the second parameter subset is the parameter set of the attention layer in the second model, and so on.

[0053] In an optional embodiment, each parameter subset in the first parameter set is sorted according to the model structure, and each parameter subset in the second parameter set is sorted according to the model structure, and the ordinal number of the first parameter subset in the first parameter set is the same as the ordinal number of the second parameter subset in the second parameter set.

[0054] In this exemplary embodiment, the first parameter subset is the parameter subset to be replaced, and the second parameter subset is the parameter subset to be replaced. For example, the second module in the first model is replaced by the second module in the second model, the parameters of the second module in the first model form the first parameter subset, and the parameters of the second module in the second model form the second parameter subset, thus realizing the replacement of the first parameter subset with the second parameter subset, and constructing a new first parameter set, so that the new first parameter set can be used to process the first image set later. Here, the data volume of the parameter subset can be the number of parameters contained in the first parameter subset / the second parameter subset, or it can be the amount of calculation corresponding to the parameters in the first parameter subset / the second parameter subset. The data volume of the first parameter subset is greater than the data volume of the second parameter subset, which can be reflected in that the number of parameters contained in the first parameter subset is greater than that in the second parameter subset, or the total data volume of all parameters in the first parameter subset is greater than that in the second parameter subset.

[0055] It should be noted that the above-mentioned first parameter set may include one or more first parameter subsets. The second parameter set may also include one or more second parameter subsets. The first parameter subset and the second parameter subset have a corresponding relationship, and one or more first parameter subsets in the first parameter set may be replaced by the corresponding second parameter subsets in the second parameter set.

[0056] In an optional implementation, the parameter subsets of the first parameter set and the parameter subsets of the second parameter set correspond one to one. The number of parameter subsets included in the first parameter set is the same as the number of parameter subsets included in the second parameter set, and they have a corresponding relationship with each other, and can achieve the same or similar functions. The first parameter set and the second parameter set can be network model parameters that achieve the same function, different implementation complexity, and different implementation effects.

[0057] In an optional implementation, the first parameter subset is determined among the parameter subsets of the first parameter set according to the replacement probability of the parameter subsets of the first parameter set.

[0058] In this embodiment, different replacement probabilities may be preset for each parameter subset in the first parameter set, or one replacement probability may be preset for the entire parameter set, that is, the same replacement probability is set for each parameter subset included in the first parameter set, for example, the replacement probability of each parameter subset in the first parameter set is set to 0.5. Whether a parameter subset in the first parameter set is the first parameter subset is controlled by probability, and the whole process is relatively simple and easy to implement.

[0059] In addition, the optimal replacement combination can be found by performing a combination replacement operation on each parameter subset in the first parameter set, and the first parameter subset can be determined and replaced. The replacement position can also be directly set based on experience, and the parameter subset in the first parameter set at the replacement position is used as the first parameter subset.

[0060] It should be noted that, in actual application, a suitable method may be selected to determine the first parameter subset according to specific usage scenarios and the experience of developers.

[0061] In an optional implementation, the first parameter subset is determined in each parameter subset of the first parameter set according to the replacement probability of each parameter subset of the first parameter set, and the determination can also be performed through the following steps S310 to S320, and the specific steps are as follows: Figure 3 As shown:

[0062] Step S310: Generate a degree of replacement of each parameter subset of the first parameter set according to the replacement probability of each parameter subset of the first parameter set.

[0063] The replacement degree represents a measure of whether each parameter subset of the first parameter set is replaced. For example, the value of the replacement degree can be set to 0 or 1, and a replacement degree of 0 or 1 is randomly generated according to a set replacement probability.

[0064] Step S320: Determine a parameter subset in the first parameter set whose replacement degree is a preset value as a first parameter subset.

[0065] The preset value is set to a value in the replacement degree. For example, the preset value is set to 0, and the parameter subset with a replacement degree of 0 can be used as the first parameter subset.

[0066] Figure 3 In the steps shown, the replacement degree of the parameter subset is determined by the random characteristics of probability, and the parameter subset to be replaced is clarified by using the replacement degree index, so as to identify the replacement parameter subset and perform further analysis.

[0067] Step S230, processing the first image set by using the first parameter set, updating the second parameter subset in the first parameter set according to the processing result, and updating the second parameter set by using the updated second parameter subset.

[0068] The first image set here is a set consisting of multiple images, and the processing of the first image set refers to object recognition and detection of the images in the first image set based on the parameters in the first parameter set. For example, the first parameter set can be loaded into the residual network model RESNET34, and the residual network model RESNET34 has the functions of image classification and object recognition. The residual network model RESNET34 can be used to realize the recognition and detection of the images in the first image set. The above-mentioned processing results refer to the object recognition and detection results of the image, such as the objects contained in the image and the location information of the objects. First, the first parameter set to be replaced is loaded, and the first image set is processed, and the second parameter subset for replacement in the first parameter set is updated according to the processing results, until the verification set index of the first image set reaches the preset condition, the second parameter subset for replacement in the first parameter set is extracted, and the second parameter set stored in the internal storage space is updated.

[0069] In an optional implementation, when the first image set is processed by the first parameter set and the second parameter subset in the first parameter set is updated according to the processing result, the parameters in the first parameter set except the second parameter subset are locked.

[0070] That is, when the second parameter subset for replacement in the first parameter set is updated, the other parameter subsets in the first parameter set except the second parameter subset for replacement remain fixed and are not updated. The process updates the second parameter subset for replacement based on the first parameter set of the fixed parameter subset, so that the second parameter subset can inherit the characteristics of the first parameter subset.

[0071] In an optional implementation, each parameter subset in the second parameter set is used as the second parameter subset to update the second parameter set.

[0072] The above process can use each parameter subset in the second parameter set as the second parameter subset, replace the first parameter subset in the first parameter set, process the first image set by the first parameter set, update the second parameter subset in the first parameter set according to the processing result, and update the second parameter set by using the updated second parameter subset. That is, one parameter subset in the second parameter set is updated each time, and after multiple updates, each parameter subset in the second parameter set is updated.

[0073] In an optional implementation, after the second parameter set is updated by using the updated second parameter subset, the method includes: processing the second image set by using the second parameter set, and updating the second parameter set according to the processing result.

[0074] The second image set here is also a set of multiple images. When the verification set index corresponding to the second image set reaches the preset condition, the update of the second parameter set can be stopped. The update operation performed here is mainly to further improve and optimize the second parameter set and further improve the accuracy of image processing using the second parameter set.

[0075] In an optional implementation, the method may further include: processing the third image set using the first parameter set, and updating the first parameter set according to the processing result.

[0076] The third image set here is also a set composed of multiple images. When the first parameter set obtained according to step S210 has not been updated or the update training is insufficient, the third image set can be processed based on the first parameter set obtained in step S210, and the parameters in the first parameter set are repeatedly adjusted according to the processing results of the third image set, and the corresponding verification set index is set for the third image set until the verification set index reaches the preset condition, and then the updating of the first parameter set is stopped. The process can also update the original first parameter set in the external database through the external memory interface. In the above process, the first parameter set is updated to provide a parameter set with relatively high accuracy of data processing results for the subsequent processing process.

[0077] It should be noted that the first image set, the second image set and the third image set mentioned above may be the same image set or different image sets.

[0078] Figure 4 A parameter subset replacement processing example diagram is provided, wherein a first parameter set includes four parameter subsets, namely parameter subset 1-1, parameter subset 1-2, parameter subset 1-3 and parameter subset 1-4, and a second parameter set includes four parameter subsets, namely parameter subset 2-1, parameter subset 2-2, parameter subset 2-3 and parameter subset 2-4. The input may be a first image set, and the output may be a processing result of the first image set. The solid lines connecting the parameter subsets in the first parameter set and the second parameter set represent the process actually executed, and the dotted lines represent the process not executed.

[0079] When the preset value is 0, Figure 4 The replacement operation shown can also be achieved through the following relationship:

[0080] x (n) =x1 (n) ×y (n) +x2 (n) ×(1-y (n) ) (1)

[0081] x1 (n+1) =F1 (n+1) (x (n) ) (2)

[0082] x2 (n+1) =F2 (n+1) (x (n) ) (3)

[0083] Among them, y in formula (1) (n) Indicates the degree of replacement of the nth layer parameter subset of the first parameter set, x1 (n) represents the output of the nth layer parameter subset of the first parameter set, x2 (n) represents the output of the nth layer parameter subset of the second parameter set, x (n) represents the output of the parameter subset of the nth layer and the input of the n+1th layer; in formula (2), x1 (n+1) represents the output of the n+1th layer parameter subset of the first parameter set, F1 (n+1) represents the processing process of the n+1th layer parameter subset of the first parameter set; in formula (3), x2 (n+1) represents the output of the n+1th layer parameter subset of the second parameter set, F2 (n+1) It represents the processing process of the n+1th layer parameter subset of the second parameter set. It can be seen that when the replacement degree y (n) When it is 0, the output x of the nth layer parameter subset(n) x2 (n) , the parameter subset of the nth layer in the first parameter set is used as the first parameter subset, the parameter subset of the nth layer in the second parameter set is used as the second parameter subset, and the first parameter subset is replaced by the second parameter subset, for example: Figure 4 The input and output of the parameter subset in the first parameter set are dashed lines, and the second parameter subset 1-2 of the second parameter set is a solid line, and the second parameter subset 2-2 of the second parameter set is a solid line, and the second parameter subset is a dashed line. (n) When it is 1, the output x of the nth layer parameter subset (n) For x1 (n) , without replacement. The output of the nth layer is used as the input of the n+1th layer of the first parameter set and the second parameter set.

[0084] The above data processing method can be applied to three-dimensional visual target detection scenarios. Figure 5 A data processing flow chart based on a lightweight server-side service framework (SMOKE) in this scenario is provided. Figure 5 RESNET is a residual network, RESNET34 and RESNET18 represent residual networks with a sum of 34 and 18 convolutional layers and fully connected layers in the network, respectively. The model parameters of RESNET34 form a first parameter set, and the model parameters of RESNET18 form a second parameter set. The data volume of the model parameters of RESNET34 is greater than that of the model parameters of RESNET18. The parameters of each module in RESNET34 and RESNET18 form a parameter subset. The specific implementation steps are as follows:

[0085] Step S510, loading training data, where the training data may be a first image set, a second image set or a third image set;

[0086] Step S520, SMOKE model training based on RESNET34, this step is based on the original SMOKE detection framework algorithm, and trains a three-dimensional object detection network with relatively high accuracy based on RESNET34;

[0087] Step S530, random module replacement training, directly replace the corresponding modules in RESNET34 with different modules in RESNET18, and perform module training until its index in the validation set no longer increases, and then execute the following steps;

[0088] Step S540, fix the SMOKE model parameter fine-tuning training based on RESNET18. This step will separate the entire RESNET18 and continue fine-tuning training until the validation set index no longer increases.

[0089] Step S550: Model publishing.

[0090] After the update of the second parameter set is completed, the second parameter set can be used to perform actual image processing.

[0091] The image processing method provided in this exemplary embodiment may be executed by the terminal 110 or by the server 130 . Figure 6 The schematic flow of the image processing method in this exemplary embodiment is shown, including the following steps S610 to S630:

[0092] Step S610, obtaining a second parameter set updated according to the data processing method in this exemplary embodiment;

[0093] If the above-mentioned data processing method is executed by the server 130, when the second parameter set is stored in the server 130, the server 130 can read the updated second parameter set from the local storage through the internal memory interface to obtain the second parameter set, or the terminal 110 can send a request for obtaining the updated second parameter set to the server 130 and receive the second parameter model sent by the server 130 to obtain the second parameter set.

[0094] Step S620, loading the second parameter set into the image processing model.

[0095] The image processing model is used to process image data and can be used to detect object information in the image, etc. The updated second parameter set is loaded into the image processing module. The second parameter set has fewer parameters, which is conducive to realizing a lightweight image processing model while ensuring higher accuracy.

[0096] Step S630: Process the target image using the image processing model.

[0097] The target image may be collected by the terminal 110. For example, a terminal device such as a smart phone or a vehicle-mounted smart terminal may collect the target image through a connected camera, obtain a second parameter set from the server 130, and process the collected target image.

[0098] In an optional implementation, the target image may be any frame of the continuously acquired multiple frames of images. In practical applications, a video may be captured in real time by a camera connected to a smart phone or a vehicle-mounted smart terminal to obtain continuously acquired multiple frames of images, and any frame of the continuously acquired multiple frames of images may be used as the target image for image processing to achieve real-time processing.

[0099] In an optional implementation, processing the target image through an image processing model includes: processing the target image through an image processing model, and outputting posture information corresponding to the target image.

[0100] The pose information represents the position and posture information of an object in three-dimensional space, and may include information such as the object category contained in the target image, its precise length, width, height, and rotation angle in three-dimensional space, thereby realizing three-dimensional detection.

[0101] In the above-mentioned image processing method, a second parameter set updated according to the data processing method in this exemplary embodiment is obtained; the updated second parameter set is loaded into the image processing model; and the target image is processed by the image processing model. On the one hand, since there are fewer parameters in the second parameter set, it is conducive to realizing a lightweight image processing model, reducing the performance overhead of image processing, and improving the efficiency of image processing. On the other hand, since the second parameter set is updated based on the second parameter subset in the first parameter set, the second parameter set inherits the characteristics of the first parameter set to a certain extent, which is conducive to improving the accuracy of image processing.

[0102] The exemplary embodiment of the present disclosure also provides a data processing device. Figure 7 As shown, the data processing device 700 may include:

[0103] An acquisition module 710 is used to acquire a first parameter set and a second parameter set, wherein the data volume of the first parameter set is greater than the data volume of the second parameter set;

[0104] A replacement module 720, configured to replace a first parameter subset in the first parameter set with a second parameter subset in the second parameter set, the first parameter subset and the second parameter subset having a corresponding relationship, and a data volume of the first parameter subset being greater than a data volume of the second parameter subset;

[0105] The updating module 730 is used to process the first image set by using the first parameter set, update the second parameter subset in the first parameter set according to the processing result, and update the second parameter set by using the updated second parameter subset.

[0106] In an optional implementation, in the replacement module 720, the parameter subset of the first parameter set and the parameter subset of the second parameter set correspond one to one.

[0107] In an optional implementation, the replacement module 720 further includes: a first parameter subset determination module, configured to determine the first parameter subset in each parameter subset of the first parameter set according to the replacement probability of each parameter subset of the first parameter set.

[0108] In an optional embodiment, the first parameter subset determination module is further configured to: generate a replacement degree of each parameter subset of the first parameter set based on the replacement probability of each parameter subset of the first parameter set; and determine a parameter subset in the first parameter set whose replacement degree is a preset value as the first parameter subset.

[0109] In an optional implementation, the data processing device 700 further includes: using each parameter subset in the second parameter set as a second parameter subset to update the second parameter set.

[0110] In an optional implementation, the updating module 730 is further configured to: lock the parameters in the first parameter set except the second parameter subset.

[0111] In an optional implementation, the data processing device 700 further includes: an updating submodule, configured to process the second image set using the second parameter set, and update the second parameter set according to the processing result.

[0112] The exemplary embodiment of the present disclosure also provides an image processing device. Figure 8 As shown, the image processing device 800 may include:

[0113] A parameter set acquisition module 810, configured to acquire a second parameter set updated according to the data processing method in this exemplary embodiment;

[0114] A parameter set loading module 820, used to load the second parameter set into the image processing model;

[0115] The target image processing module 830 is used to process the target image through an image processing model.

[0116] In an optional implementation, the target image in the target image processing module 830 is any frame image among multiple frames of images acquired continuously.

[0117] In an optional implementation, the target image processing module 830 is configured to: process the target image through an image processing model, and output posture information corresponding to the target image.

[0118] The specific details of each part of the above-mentioned data processing device 700 and image processing device 800 have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, and thus will not be repeated here.

[0119] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned data processing method and image processing method of this specification is stored. In some possible embodiments, various aspects of the present disclosure can also be implemented in the form of a program product, which includes a program code, and when the program product is run on an electronic device, the program code is used to make the electronic device perform the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification. The program product can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, an apparatus or a device or used in combination with it.

[0120] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0121] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0122] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0123] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0124] The exemplary embodiment of the present disclosure also provides an electronic device capable of implementing the above-mentioned data processing method and image processing method. Fig. 9 hereinafter, an electronic device 900 according to this exemplary embodiment of the present disclosure is described. Fig. 9 The electronic device 900 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0125] like Fig. 9 As shown, the electronic device 900 may be in the form of a general-purpose computing device. The components of the electronic device 900 may include, but are not limited to: at least one processing unit 910, at least one storage unit 920, a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910), and a display unit 940.

[0126] The storage unit 920 stores program codes, which can be executed by the processing unit 910, so that the processing unit 910 executes the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 910 can execute Figure 2 , Figure 3 as well as Figure 6 Any one or more method steps.

[0127] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 921 and / or a cache memory unit 922 , and may further include a read-only memory unit (ROM) 923 .

[0128] The storage unit 920 may also include a program / utility 924 having a set (at least one) of program modules 925, such program modules 925 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0129] Bus 930 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0130] The electronic device 900 may also communicate with one or more external devices 1000 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 900, and / or communicate with any device that enables the electronic device 900 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 950. Furthermore, the electronic device 900 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 960. As shown, the network adapter 960 communicates with other modules of the electronic device 900 via a bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0131] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the exemplary implementation of the present disclosure.

[0132] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiment of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0133] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0134] It will be appreciated by those skilled in the art that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or implementations combining hardware and software aspects, which may be collectively referred to herein as "circuit", "module" or "system". Those skilled in the art will readily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses or adaptive changes of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and implementation are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0135] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data processing method, characterized in that: include: Acquire a first parameter set and a second parameter set, wherein the amount of data in the first parameter set is greater than the amount of data in the second parameter set; A parameter subset of the first parameter set corresponds one-to-one to a parameter subset of the second parameter set; Replacing a first parameter subset in the first parameter set with a second parameter subset in the second parameter set, wherein the first parameter subset and the second parameter subset have a corresponding relationship, and the amount of data in the first parameter subset is greater than the amount of data in the second parameter subset; The first image set is processed by using the first parameter set, a second parameter subset in the first parameter set is updated according to the processing result, and the second parameter set is updated by using the updated second parameter subset.

2. The method according to claim 1, characterized in that The method further comprises: The first parameter subset is determined from each parameter subset of the first parameter set according to the replacement probability of each parameter subset of the first parameter set.

3. The method according to claim 2, characterized in that The determining the first parameter subset from each parameter subset of the first parameter set according to the replacement probability of each parameter subset of the first parameter set includes: generating a degree of replacement of each parameter subset of the first parameter set according to the replacement probability of each parameter subset of the first parameter set; A parameter subset in the first parameter set whose replacement degree is a preset value is determined as the first parameter subset.

4. The method according to claim 1, characterized in that: The method further comprises: Each parameter subset in the second parameter set is used as the second parameter subset to update the second parameter set.

5. The method according to claim 1, characterized in that When the first image set is processed by the first parameter set, and a second parameter subset in the first parameter set is updated according to the processing result, the method further includes: The parameters in the first parameter set except the second parameter subset are locked.

6. The method according to claim 1, characterized in that After the second parameter set is updated by using the updated second parameter subset, the method further comprises: The second image set is processed using the second parameter set, and the second parameter set is updated according to the processing result.

7. An image processing method, characterized in that: include: Acquire a second parameter set updated by the data processing method according to any one of claims 1 to 6; loading the second parameter set into an image processing model; The target image is processed by the image processing model.

8. The method according to claim 7, characterized in that The target image is any frame image among the multiple frames of images collected continuously.

9. The method according to claim 8, characterized in that The processing of the target image by the image processing model includes: The target image is processed by the image processing model, and the pose information corresponding to the target image is output.

10. A data processing device, characterized in that: include: An acquisition module, configured to acquire a first parameter set and a second parameter set, wherein the data volume of the first parameter set is greater than the data volume of the second parameter set; A parameter subset of the first parameter set corresponds one-to-one to a parameter subset of the second parameter set; a replacement module, configured to replace a first parameter subset in the first parameter set with a second parameter subset in the second parameter set, the first parameter subset and the second parameter subset having a corresponding relationship, and a data volume of the first parameter subset being greater than a data volume of the second parameter subset; An updating module is used to process the first image set by using the first parameter set, update a second parameter subset in the first parameter set according to the processing result, and update the second parameter set by using the updated second parameter subset.

11. An image processing device, characterized in that: include: A parameter set acquisition module, used to acquire a second parameter set updated by the data processing method according to any one of claims 1 to 6; A parameter set loading module, used for loading the second parameter set into the image processing model; The target image processing module is used to process the target image through the image processing model.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

13. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 9 by executing the executable instructions.

Citation Information

Patent Citations

  • Method of optimizing variation function parameter fitting of forest resource management

    CN106815551A

  • Image processing method and device, computer readable storage medium and electronic device

    CN108615073A

  • Laser derusting method and device based on machine learning

    CN109272055A

  • Model training method and apparatus based on shared data

    CN109388661A

  • Image processing model training method and device, image processing method and device, and storage medium

    CN110148081A