Multi-task model training method and device, multi-task processing method and device
The multi-task model training method of gradient balancing solves the problem of insufficient positioning accuracy caused by the limited computing power of mobile terminals, achieves efficient multi-task processing and accuracy improvement, and simplifies the training process.
Patent Information
- Application Number
- CN202111508235.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-12-10
AI Technical Summary
The computing power of mobile terminals is limited, making it difficult to identify more identification elements while ensuring algorithm execution efficiency, resulting in insufficient positioning accuracy. Especially in autonomous driving and map data production, existing multi-task models with multiple identification elements need to label the entire amount. dataset, resulting in increased training complexity.
A multi-task model training method based on gradient balancing is adopted, by obtaining a training sample set of initial images and a pre-established multi-task network, including a general feature extractor and an initial branch network, and adjusting the loss weight value to balance the training effects of multiple tasks. Ensure the best results on every task.
It achieves efficient training of multi-task models on mobile terminals, balances the processing effects of multiple tasks, improves the efficiency and accuracy of multi-task processing, and reduces dependence on annotated data.
Smart Images

Figure CN114202026B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, specifically to technical fields such as computer vision and deep learning, and in particular to a multi-task model training method and device, a multi-task processing method and device, an electronic device, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the development of AI (Artificial Intelligence) technology, the improvement of mobile terminal hardware performance and the reduction of prices, visual algorithms can be used to make up for the lack of positioning accuracy in mobile terminals. For example, lane-level navigation or other functions that require high-precision positioning can be implemented on mobile terminals, which is of great significance for both autonomous driving and map data production. Due to the limitations of mobile terminal computing power, it is necessary to identify more recognition elements while ensuring the efficiency of algorithm execution. Multi-task models are an inevitable solution. Training such a model requires balancing the training intensity of different tasks to ensure that the multi-task model can achieve the best results on each task. Summary of the invention
[0003] The present disclosure provides a multi-task model training method and device, a multi-task processing method and device, an electronic device, a computer-readable storage medium, and a computer program product.
[0004] According to a first aspect, a multi-task model training method is provided, the method comprising: obtaining a training sample set including at least one type of initial image, wherein each type of initial image is annotated with at least one type of identification element; obtaining a pre-established multi-task network, the multi-task network comprising a universal feature extractor and initial branch networks corresponding one-to-one to each type of identification element, the universal feature extractor being connected to each initial branch network through a branch node; performing the following training steps: selecting an initial image from the training sample set, inputting the selected initial image into a universal feature extractor, obtaining a feature map corresponding one-to-one to the selected initial image, and the identification element of the selected initial image corresponds to all initial branch networks; for each feature map in the obtained feature map, inputting the feature map into the initial branch network corresponding to the identification element of the feature map; collecting the gradient values of each initial branch network in the branch node, and adjusting the loss weight value of the corresponding initial branch network based on the gradient values of each initial branch network, and obtaining a multi-task model in response to the multi-task network satisfying the training completion condition.
[0005] According to a second aspect, a multi-task processing method is provided, the method comprising: acquiring an image to be processed; inputting the image to be processed into a multi-task model generated by the method described in any implementation manner of the first aspect, and obtaining a multi-task processing result of the image to be processed.
[0006] According to a third aspect, a multi-task model training device is provided, the device comprising: a sample acquisition unit, configured to acquire a training sample set including at least one type of initial image, wherein each type of initial image is annotated with at least one type of identification element; a network acquisition unit, configured to acquire a pre-established multi-task network, the multi-task network comprising a universal feature extractor and initial branch networks corresponding to each type of identification element, the universal feature extractor being connected to each initial branch network through a branch node; an image selection unit, configured to select an initial image from the training sample set, input the selected initial image into the universal feature extractor, obtain a feature map corresponding to the selected initial image, and the identification element of the selected initial image corresponds to all initial branch networks; a feature input unit, configured to input each feature map in the obtained feature map into the initial branch network corresponding to the identification element of the feature map; a gradient adjustment unit, configured to collect the gradient values of each initial branch network in the branch node, and adjust the loss weight value of the corresponding initial branch network based on the gradient values of each initial branch network; a model acquisition unit, configured to obtain a multi-task model when the multi-task network meets the training completion condition.
[0007] According to the fourth aspect, a multi-task processing device is provided, which includes: an acquisition unit, configured to acquire an image to be processed; an input unit, configured to input the image to be processed into a multi-task model generated by the device described in any implementation method of the third aspect, to obtain a multi-task processing result of the image to be processed.
[0008] According to the fifth aspect, an electronic device is provided, which includes: at least one processor; and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any implementation of the first aspect or the second aspect.
[0009] According to a sixth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method described in any implementation of the first aspect or the second aspect.
[0010] According to a seventh aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the method described in any implementation of the first aspect or the second aspect.
[0011] The multi-task model training method and device provided by the embodiments of the present disclosure are as follows: first, a training sample set including at least one type of initial image is obtained, and each type of initial image is annotated with at least one type of identification element; second, a pre-established multi-task network is obtained, and the multi-task network includes a universal feature extractor and initial branch networks corresponding to each type of identification element, and the universal feature extractor is connected to each initial branch network through a branch node; third, an initial image is selected from the training sample set, and the selected initial image is input into the universal feature extractor to obtain a feature map corresponding to the selected initial image, and the identification element of the selected initial image corresponds to all the initial branch networks; then, for each feature map in the obtained feature map, the feature map is input into the initial branch network corresponding to the identification element of the feature map; finally, the gradient values of each initial branch network in the branch node are collected, and the loss weight value of the corresponding initial branch network is adjusted based on the gradient value of each initial branch network, and in response to the multi-task network meeting the training completion condition, a multi-task model is obtained. Therefore, by setting up a multi-task network of a universal feature extractor and multiple initial branch networks, and using the gradients of each initial branch network to adjust the loss weight values of the initial branch network during multi-task training, a multi-task model based on gradient balance is obtained, which balances the training effects of multiple tasks and ensures that the multi-task model can achieve the best effect on each task.
[0012] The multi-task processing method and device provided by the embodiment of the present disclosure obtain an image to be processed; input the image to be processed into a multi-task model generated by the multi-task model training method of this embodiment to obtain a multi-task processing result of the image to be processed. Thus, the multi-task model generated by using a universal feature extractor and multiple initial branch networks can balance the task processing effects of each task and improve the efficiency of multi-task processing.
[0013] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0015] Figure 1 is a flowchart of an embodiment of a multi-task model training method according to the present disclosure;
[0016] Figure 2 is a structural diagram of a multi-task network training in an embodiment of the present disclosure;
[0017] Figure 3 is a flow chart of an embodiment of a multi-tasking method according to the present disclosure;
[0018] Figure 4 is a structural schematic diagram of an embodiment of a multi-task model training device according to the present disclosure;
[0019] Figure 5 is a structural schematic diagram of an embodiment of a multi-task processing device according to the present disclosure;
[0020] Figure 6 It is a block diagram of an electronic device used to implement the multi-task model training method or multi-task processing method of an embodiment of the present disclosure. DETAILED DESCRIPTION
[0021] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0022] The traditional multi-task model with multiple recognition elements requires the full data set to be labeled, otherwise multiple different task models are used. Based on this, the present disclosure proposes a multi-task model training method based on gradient balance. Figure 1 A process 100 according to an embodiment of a multi-task model training method of the present disclosure is shown. The multi-task model training method comprises the following steps:
[0023] Step 101: Obtain a training sample set including at least one type of initial images.
[0024] In this embodiment, the execution subject on which the multi-task model training method runs can obtain the training sample set in a variety of ways. For example, the execution subject can obtain the training sample set stored in the database server through a wired connection or a wireless connection. For another example, the user can obtain the training sample set collected by the terminal by communicating with the terminal.
[0025] Here, the training sample set may include at least one type of initial images. In view of the different tasks implemented by different samples when training a multi-task model, the initial images are divided into different categories. Each type of initial images can realize sample annotation of recognition elements corresponding to at least one task. For example, one type of initial images in the training sample set is used for target detection tasks, and another type of initial images in the training sample set is used for semantic segmentation and key point detection. The initial images in the current training sample set can also be used for other visual tasks, which will not be repeated here.
[0026] In this embodiment, each type of initial image is annotated with at least one type of identification element. The identification element is the detection target that the multi-task model needs to process. The detection target can be a person, object, scenery, etc. in the image. The multi-task model generally has more than two detection targets. By annotating the identification elements in the initial image, the multi-task network can correctly determine the identification elements, providing the true value information of the detection target for the multi-task model training. When the initial image is used to achieve one task, the annotation on the initial image has one type of identification element; when the initial image is used to achieve more than two tasks, the annotation on the initial image has more than two types of identification elements; Figure 2 As shown, identification element 1 (not shown in the figure) and identification element 2 (not shown in the figure) are marked on the Class A image, which can realize two tasks; identification element 3 (not shown in the figure) is marked on the Class B image, which can realize one task.
[0027] In this embodiment, obtaining a training sample set including at least one type of initial image includes: using independent data reading modules for images of different recognition elements, and implementing independent data preprocessing according to task requirements, and processing different format information. For example, the preprocessing methods required for tasks such as semantic segmentation, target detection, and key point detection are different for processing images of each type of recognition element, so that the images are completely decoupled according to different recognition elements to obtain a training sample set.
[0028] In the technical solution disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of the initial images and identification elements involved are carried out after authorization and comply with relevant laws and regulations.
[0029] Step 102: Acquire a pre-established multi-task network.
[0030] Among them, the multi-task network includes a general feature extractor and an initial branch network corresponding to each type of recognition element. The general feature extractor is connected to each initial branch network through branch nodes.
[0031] In this embodiment, the universal feature extractor maps the input image to a high-dimensional feature space to obtain a feature map of the input image, which contains features of all recognition elements of the input image. The universal feature extractor is a network shared by all initial branch networks; the initial branch networks correspond to the tasks and recognition elements of the multi-task model, respectively, and the number of initial branch networks is the same as the number of tasks of the multi-task model, and the number of initial branch networks is also the same as the number of recognition elements. Each initial branch network performs task processing on the corresponding recognition elements in the feature map of the input image based on the feature map of the input image to obtain the task processing results of the corresponding recognition elements.
[0032] In this embodiment, the general feature extractor extracts all features of the input initial image to obtain a feature map of the input image. Based on the differences in recognition elements, the feature map is split into feature maps corresponding to different recognition elements. The feature map of each recognition element is input into the initial branch network corresponding to the recognition element to obtain the task processing results of each initial branch network performing task processing on its own feature map.
[0033] Based on the different scenarios adapted by the multi-task model, the network structure of the initial branch network in the multi-task network can be different. For example, in the autonomous driving scenario, the multi-task model needs to perform lane segmentation and pedestrian detection, so the multi-task network needs to include a semantic segmentation network and a target detection network.
[0034] In some optional implementations of this embodiment, the above-mentioned initial branch network may include: any two of: a semantic segmentation network, a target detection network, and a key point detection network.
[0035] In this embodiment, the semantic segmentation network takes the feature map of some original data (e.g., a plane image) as input and converts it into a mask with a highlighted region of interest, wherein each pixel in the image is assigned to a corresponding category according to the object of interest to which it belongs. Compared with the traditional semantic segmentation network which uses the extraction of feature maps as an intermediate link, the semantic segmentation network of this embodiment directly uses the feature map of the initial image as input.
[0036] In this embodiment, the target detection network takes the feature map of some raw data as input, finds all the targets of interest in the feature map, and determines the position and size of the target. Compared with the traditional target detection network that uses the extraction of feature maps as an intermediate link, the target detection network of this embodiment directly uses the feature map of the initial image as input.
[0037] In this embodiment, the key point detection network takes the feature map of some original data as input, finds all the key points of interest in the feature map, and determines the positional relationship between the key points. Compared with the traditional key point detection network that uses the extraction of feature maps as an intermediate link, the key point detection network of this embodiment directly uses the feature map of the initial image as input.
[0038] In this optional implementation, a variety of initial branch networks are set based on the tasks of the multi-task model, which provides a variety of optional methods for representing the initial branch networks and improves the diversity of the initial branch network settings.
[0039] Step 103, selecting an initial image from the training sample set, inputting the selected initial image into a universal feature extractor, and obtaining a feature map corresponding to the selected initial image.
[0040] Among them, the identification elements of the selected initial image correspond to all initial branch networks.
[0041] In this embodiment, the execution subject may select an initial image from the training sample set obtained in step 101, and execute the training steps of step 103 to step 106. The selection method and the number of initial images are not limited in this application. For example, in one iterative training, a class of initial images may be randomly selected, and at least two identification elements are marked on the class of initial images; or two classes of initial images may be randomly selected in one iterative training, and each class of initial images may be marked with a class of identification elements, and the loss value of the multi-task network is calculated by the annotation information of the identification elements of the selected initial images, and the parameters of the multi-task network are adjusted.
[0042] In this embodiment, the general feature extractor mainly maps the selected initial image to a high-dimensional feature space to obtain high-dimensional features. The general feature extractor can be an encoder. For example, the feature extractor is composed of two layers of DNN, and each layer of DNN is 512-dimensional.
[0043] In this embodiment, the feature map corresponds to each type of initial image. For example, if one type of initial image is input, the universal feature extractor outputs the feature map of the initial image of that type; if multiple types of initial images are input, the universal feature extractor outputs the feature maps of multiple types of initial images. Figure 2 As shown, when a class A image is input, a class A feature map is output; when a class B image is input, a class B feature map is output.
[0044] Based on the different numbers of selected initial images, the manner of obtaining feature maps corresponding to the selected initial images is also different. In some optional implementations of this embodiment, the above-mentioned inputting the selected initial images into the general feature extractor to obtain feature maps corresponding to the selected initial images includes: in response to the selected initial images being multiple categories, superimposing the multiple categories of initial images and inputting them into the general feature extractor to obtain feature maps output by the general feature extractor; splitting the feature maps output by the general feature extractor according to the types of the multiple categories of initial images to obtain feature maps corresponding to the multiple categories of initial images.
[0045] In this optional implementation, when the selected initial images are of multiple categories, the multiple categories of initial images are superimposed and input into the universal feature extractor at the same time, and the universal feature extractor is split according to the types of the multiple categories of initial images. The feature maps corresponding to each category of initial image can be effectively obtained, thereby ensuring the effectiveness of subsequent initial branch network training.
[0046] Optionally, the above-mentioned input of the selected initial image into the universal feature extractor to obtain a feature map corresponding one-to-one to the selected initial image includes: in response to the selected initial image being one class, the initial image is input into the universal feature extractor to obtain a feature map output by the universal feature extractor, and the feature map output by the universal feature extractor is the feature map of all initial branch networks.
[0047] In this optional implementation, the feature map corresponding to the initial image can be used as the input of each initial branch network, so that each initial branch network can process its own recognition element in the feature map corresponding to the initial image.
[0048] Step 104: for each feature map in the obtained feature map, input the feature map into an initial branch network corresponding to the identification element of the feature map.
[0049] In this embodiment, during each iteration of the multi-task network training, a feature map is obtained from the general feature extractor, and the feature map is split according to the type of the initial image, and each feature map is input into the initial branch network corresponding to the recognition element of the initial image, such as Figure 2 In the example, if the A-class image is annotated with identification element 1 and identification element 2, the A-class feature map corresponding to the A-class image is obtained from the general feature extractor, and the A-class feature map is input into the initial branch network 1 and the initial branch network 2 respectively. At this time, the A-class feature map is input into both the initial branch network 1 and the initial branch network 2. If the B-class image is annotated with identification element 3, the B-class feature map corresponding to the B-class image is obtained from the general feature extractor, and the B-class feature map is input into the initial branch network 3.
[0050] like Figure 2 As shown in the figure, the initial images corresponding to different recognition elements are combined and input into the universal feature extractor of the multi-task network. The input initial image is extracted by the universal feature extractor, and the extracted feature map is split according to different recognition elements and respectively input into independent initial branch networks. Each initial branch network performs independent recognition element processing, which can be a variety of target detection tasks or a variety of target recognition tasks, such as detection, semantic segmentation, and key point detection. Because different initial branch networks correspond to independent loss functions, when annotating data for each recognition element, only each recognition element can be annotated without considering the prediction of other initial branch networks.
[0051] Step 105 , collecting the gradient values of each initial branch network in the branch node, and adjusting the loss weight value of the corresponding initial branch network based on the gradient values of each initial branch network.
[0052] In this embodiment, based on the structure of the multi-task network, independent loss functions can be set for different initial branch networks, and the loss functions of different initial branch networks are calculated in each iterative training of the multi-task network, such as Figure 2 As shown, the identification element 1 processed by the initial branch network 1 can independently calculate the loss function of the initial branch network 1, obtain the loss value of the loss function of the initial branch network 1, and adjust the parameters of the multi-task network based on the loss value of the initial branch network 1.
[0053] The original meaning of gradient is a vector, which means that the directional derivative of a loss function at this point reaches the maximum value along this direction, that is, the loss function changes fastest and at the largest rate of change along this direction at this point. In deep learning, the main task of neural networks is to find the optimal network parameters (weights and biases) during learning. The optimal network parameters are also the parameters when the loss function is minimized. However, in general, the loss function is more complex and has many parameters, and it is impossible to determine the point where the minimum value is obtained. Therefore, the method of finding the minimum value (or the smallest possible value) through the gradient is the gradient descent method. In order to make the loss function of the initial branch network drop as quickly as possible, the gradient descent algorithm can also be used to update the parameters of the multi-task network along the negative direction of the gradient.
[0054] Since multi-task networks share most of the network structure ( Figure 2 In the general feature extractor in the network), different initial branch networks will affect the feature activation of the general feature extractor, so conflicts may occur. In order to solve this problem, the loss weights of different initial branch networks can be adjusted according to the gradient size of each initial branch network in the general feature extractor. The training steps of the multi-task network include multiple iterative training. In each iterative training, the tool can collect the gradient values of the branch nodes connecting the general feature extractor and each initial branch network, and based on the collected gradient values, the gradient values corresponding to the loss function of each initial branch network can be distinguished.
[0055] In this embodiment, during each iterative training, the loss value of the loss function of the multi-task network is calculated once. The loss value of the multi-task network is obtained by adding the product values of all initial branch networks. The product value of each initial network is obtained by multiplying the loss value of each initial branch network by its respective loss weight value. By adjusting the loss weight value of the initial branch network, the proportion of the initial branch network in the multi-task network can be adjusted. The larger the loss weight value, the larger the training share in the multi-task network.
[0056] In some optional implementations of the present embodiment, the above-mentioned adjustment of the loss weight value of the corresponding initial branch network based on the gradient value of each initial branch network includes: in response to the gradient value of the current initial branch network among all the initial branch networks in the current iterative training cycle being greater than the gradient values of other initial branch networks, setting the loss weight value of the current initial branch network to be smaller than the loss weight values of other initial branch networks in the next iterative training cycle.
[0057] In this optional implementation, the iterative training cycle refers to the time period in which all initial branch networks in the multi-task network complete the loss function calculation and parameter adjustment in the current iterative training.
[0058] In this optional implementation, by monitoring the gradient of the initial branch network in the current iterative training cycle and adjusting the loss weight value of the current initial branch network in the next iterative training cycle, an adjustment means is provided for the training of the multi-task network, thereby ensuring the reliability of the multi-task network training.
[0059] Optionally, the above-mentioned adjustment of the loss weight value of the corresponding initial branch network based on the gradient value of each initial branch network also includes: in response to the gradient value of the current initial branch network among all the initial branch networks in multiple iterative training cycles being greater than the gradient values of other initial branch networks, setting the loss weight value of the current initial branch network to be smaller than the loss weight values of other initial branch networks after the multiple iterative training cycles.
[0060] In this optional implementation, after monitoring the gradient value of the current initial branch network for multiple iteration cycles, the loss weight value of the current initial branch network is adjusted to provide a reliable basis for the stable training of the multi-task network.
[0061] Step 106, in response to the multi-task network satisfying the training completion condition, obtaining a multi-task model.
[0062] In this embodiment, the loss value of the multi-task network can be used to detect whether the multi-task network meets the training completion condition. After the multi-task network meets the training completion condition, a trained multi-task model is obtained.
[0063] In this embodiment, the training completion condition includes at least one of the following: the number of training iterations of the multi-task network reaches a predetermined iteration threshold, and the loss value of the multi-task network is less than a predetermined loss value threshold. The predetermined iteration threshold is an empirical value obtained based on the loss value of the multi-task network. For example, the predetermined iteration threshold of the multi-task network is 10,000 times. The predetermined loss value threshold of the multi-task network is 0.02.
[0064] Optionally, in this embodiment, in response to the multi-task network not meeting the training completion condition, relevant parameters in the multi-task network are adjusted so that the loss value of the multi-task network converges, and the above training steps 103-106 are continued to be performed based on the adjusted multi-task network.
[0065] In this optional implementation, when the multi-task network does not meet the training completion conditions, adjusting the relevant parameters of the multi-task network helps to help the loss value of the multi-task network converge.
[0066] In this embodiment, if the training is not completed, the loss value of the multi-task network can be converged by adjusting the parameters of the multi-task network. Specifically, adjusting the relevant parameters in the multi-task network to converge the loss value of the multi-task network includes: by executing steps 103 to 106, repeatedly adjusting the parameters of any initial branch network in the multi-task network or the loss weight value of any initial branch network to converge the loss value of the multi-task network.
[0067] Optionally, during each iteration, the parameters of two or more initial branch networks may be adjusted simultaneously to ensure that the loss value of the multi-task network gradually decreases until it stabilizes.
[0068] The multi-task model training method provided by the embodiment of the present disclosure first obtains a training sample set including at least one type of initial image, each type of initial image is annotated with at least one type of identification element; secondly, obtains a pre-established multi-task network, the multi-task network includes a universal feature extractor and initial branch networks corresponding to each type of identification element, the universal feature extractor is connected to each initial branch network through a branch node; thirdly, selects an initial image from the training sample set, inputs the selected initial image into the universal feature extractor, obtains a feature map corresponding to the selected initial image, and the identification element of the selected initial image corresponds to all the initial branch networks; then, for each feature map in the obtained feature map, inputs the feature map into the initial branch network corresponding to the identification element of the feature map; finally, collects the gradient values of each initial branch network in the branch node, and adjusts the loss weight value of the corresponding initial branch network based on the gradient value of each initial branch network, and obtains the multi-task model in response to the multi-task network satisfying the training completion condition. Therefore, by setting up a multi-task network of a universal feature extractor and multiple initial branch networks, and using the gradients of each initial branch network to adjust the loss weight values of the initial branch network during multi-task training, a multi-task model based on gradient balance is obtained, which balances the training effects of multiple tasks and ensures that the multi-task model can achieve the best effect on each task.
[0069] In another embodiment of the present disclosure, the multi-task model training method further includes: obtaining a newly added image, wherein the newly added image is annotated with at least one type of newly added elements; adding a newly added branch network corresponding to all the newly added elements to the multi-task model, so that the general feature extractor is also connected to the newly added branch network through the branch node; performing the following new training steps: selecting a newly added image and an initial image, and inputting the selected newly added image and the selected initial image into the general feature extractor at the same time to obtain a new feature map; inputting the feature map corresponding to the selected initial image split from the new feature map into each initial branch network in sequence; inputting the feature map corresponding to the selected newly added image split from the new feature map into the newly added branch network; collecting the gradient values of each initial branch network and the newly added branch network in the branch node, and adjusting the loss weight value of the corresponding initial branch network and / or the newly added branch network based on the gradient values of each initial branch network and the gradient values of the newly added branch network.
[0070] In this embodiment, the newly added image is an image different from the initial image, and the newly added image is annotated with annotation information of the newly added elements, which provides true value information for the newly added elements and facilitates the training of the newly added branch network; the newly added branch network is a network that is different from the initial branch networks, and the newly added branch network can achieve tasks different from those of the initial branch networks.
[0071] In this embodiment, after the newly added image is input into the general feature extractor, a feature map corresponding to the newly added image will be generated accordingly, and the feature map corresponding to the newly added image will be input into the newly added branch network to facilitate the training of the newly added branch network.
[0072] In this embodiment, when the multi-task model with the newly added branch network meets the training completion condition, a new multi-task model is obtained. The new multi-task model adds the newly added branch network relative to the multi-task model and can realize new task processing.
[0073] The multi-task model training method provided by the embodiments of the present disclosure can arbitrarily expand new additional elements on the generated multi-task model. At the same time, it only needs to label the new data sets corresponding to the new elements and add new branch networks, thereby realizing arbitrary expansion of different elements.
[0074] In another embodiment of the present disclosure, the multi-task model training method may further include: removing one or more initial branch networks in the multi-task model.
[0075] The multi-task model training method provided by the embodiments of the present disclosure can remove one or more initial branch networks from the trained multi-task model, and after removing the initial branch networks, the performance of the new multi-task model will not be affected, thereby ensuring the scalability of the multi-task model.
[0076] Optionally, after the new multi-task model adds a newly added branch network, in another optional implementation of this embodiment, the multi-task model training method may further include: removing one or more newly added branch networks in the new multi-task model.
[0077] Furthermore, based on the multi-task model training method provided in the above embodiment, the present disclosure also provides an embodiment of a multi-task processing method. The multi-task processing method of the present disclosure combines artificial intelligence fields such as computer vision and deep learning.
[0078] See also Figure 3 , shows a process 300 according to an embodiment of a multi-task processing method of the present disclosure. The multi-task processing method provided in this embodiment includes the following steps:
[0079] Step 301: Obtain an image to be processed.
[0080] In this embodiment, the image to be processed may be an image including information such as a person, an object, or a scene. By processing the image to be processed through a multi-task model, different task processing results may be obtained. The execution subject of the multi-task processing method may obtain the image to be processed in a variety of ways. For example, the execution subject may obtain the image to be processed stored in the database server through a wired connection or a wireless connection. For another example, the execution subject may also receive the image to be processed collected in real time by a terminal or other device.
[0081] In this embodiment, the acquired image to be processed may have identification elements or may not have identification elements. When the image to be processed has identification elements, the identification elements on the image to be processed may be of one category or of multiple categories. Each category of identification elements corresponds to a task. Based on the general feature extractor in the multi-task model and the initial branch network corresponding to the identification element, the identification element can be effectively identified to obtain the task processing result of the identification element.
[0082] When there is no identification element on the image to be processed, the multi-task model can directly give the task processing result of no identification element detected.
[0083] In this embodiment, the recognition element corresponds to the task. For example, in the target detection task, the recognition element is the target corresponding to the target detection task, and the target can be a person, object, etc. in the image to be processed; in the semantic segmentation task, the recognition element is the pixel category of different objects in the image to be processed to be labeled for the semantic segmentation task.
[0084] Step 302: input the image to be processed into the multi-task model to obtain the multi-task processing result of the image to be processed.
[0085] In this embodiment, the execution subject can input the image to be processed obtained in step 301 into the multi-task model, so as to obtain the multi-task processing result of the image to be processed. It should be noted that the multi-task processing result is the result of performing multiple task processing on the image to be processed. Based on the structure of the multi-task model, it can be known that the obtained multi-task processing result can improve the efficiency of all task processing.
[0086] In this embodiment, the multi-task model can be adopted as described above. Figure 1 The specific training process can be found in Figure 1 The relevant description of the embodiments will not be repeated here.
[0087] In this embodiment, the multi-task processing result of the image to be processed is determined based on the initial branch network and / or the newly added branch network of the multi-task model, and the number of initial branch networks and newly added branch networks in the multi-task model is the number of multi-task processing results of the image to be processed. For example, if the multi-task model has only an initial branch network and the number of initial branch networks is two, then there are two multi-task processing results of the image to be processed. For another example, if the multi-task model includes two initial branch networks and three newly added branch networks, then there are five multi-task processing results of the image to be processed.
[0088] In some optional implementations of this embodiment, the initial branch network of the multi-task model includes: any two or more of: a semantic segmentation network, a target detection network, and a key point detection network, and the multi-task processing result includes: at least two of: a semantic segmentation result of the target in the image to be processed, a target detection result, and a key point detection result.
[0089] In this optional implementation, different tasks based on the multi-task model may result in different multi-task processing results, and after the multi-task model processes the image to be processed, the multi-task processing results may also be expressed in different forms.
[0090] In this optional implementation, the multi-task processing result presentation form set based on the tasks of the multi-task model provides a variety of optional methods for representing the multi-task processing results, thereby improving the diversity of the multi-task model in processing the image to be processed.
[0091] The multi-task processing method provided by the embodiment of the present disclosure obtains an image to be processed; the image to be processed is input into a multi-task model generated by the multi-task model training method of this embodiment to obtain a multi-task processing result of the image to be processed. Thus, the multi-task model generated by using a universal feature extractor and multiple initial branch networks can balance the task processing effects of each task and improve the efficiency of multi-task processing.
[0092] Further references Figure 4As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a multi-task model training device. Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0093] like Figure 4 As shown, the multi-task model training device 400 provided in this embodiment includes: a sample acquisition unit 401, a network acquisition unit 402, an image selection unit 403, a feature input unit 404, a gradient adjustment unit 405, and a model acquisition unit 406. Among them, the above-mentioned sample acquisition unit 401 can be configured to obtain a training sample set including at least one type of initial image, wherein each type of initial image is annotated with at least one type of identification element. The above-mentioned network acquisition unit 402 can be configured to obtain a pre-established multi-task network, which includes a universal feature extractor and an initial branch network corresponding to each type of identification element, and the universal feature extractor is connected to each initial branch network through a branch node. The above-mentioned image selection unit 403 can be configured to select an initial image from the training sample set, input the selected initial image into the universal feature extractor, obtain a feature map corresponding to the selected initial image, and the identification element of the selected initial image corresponds to all initial branch networks. The above-mentioned feature input unit 404 can be configured to input each feature map in the obtained feature map into the initial branch network corresponding to the identification element of the feature map. The above-mentioned gradient adjustment unit 405 can be configured to collect the gradient values of each initial branch network in the branch node, and adjust the loss weight value of the corresponding initial branch network based on the gradient values of each initial branch network. The above-mentioned model acquisition unit 406 can be configured to obtain a multi-task model when the multi-task network meets the training completion condition.
[0094] In this embodiment, in the multi-task model training device 400, the specific processing of the sample acquisition unit 401, the network acquisition unit 402, the image selection unit 403, the feature input unit 404, the gradient adjustment unit 405, and the model acquisition unit 406 and the technical effects thereof can be referred to respectively. Figure 1 The relevant descriptions of step 101, step 102, step 103, step 104, step 105, and step 106 in the corresponding embodiments are not repeated here.
[0095] In some optional implementations of this embodiment, the image selection unit 403 includes: an overlay module (not shown in the figure), and an acquisition module (not shown in the figure). The overlay module can be configured to, in response to the selected initial image being of multiple categories, overlay the multiple categories of initial images and input them into a universal feature extractor to obtain a feature map output by the universal feature extractor. The acquisition module can be configured to split the feature map output by the universal feature extractor according to the categories of the multiple categories of initial images to obtain feature maps corresponding to the multiple categories of initial images.
[0096] In some optional implementations of this embodiment, the device 400 further includes: a newly added acquisition unit (not shown in the figure), a network addition unit (not shown in the figure), a newly added selection unit (not shown in the figure), an initial input unit (not shown in the figure), and a newly added input unit (not shown in the figure). Among them, the newly added acquisition unit is configured to acquire a newly added image, and the newly added image is annotated with at least one type of newly added elements. The network addition unit can be configured to add a newly added branch network corresponding to all newly added elements in the multi-task model, so that the general feature extractor is also connected to the newly added branch network through the branch node. The newly added selection unit can be configured to select a newly added image and an initial image, and input the selected newly added image and the selected initial image into the general feature extractor at the same time to obtain a new feature map. The initial input unit can be configured to input the feature map corresponding to the selected initial image split from the new feature map into each initial branch network in turn. The newly added input unit can be configured to input the feature map corresponding to the selected newly added image split from the new feature map into the newly added branch network. The above-mentioned newly added adjustment unit can be configured to collect the gradient values of each initial branch network and the newly added branch network in the branch node, and adjust the loss weight value of the corresponding initial branch network and / or the newly added branch network based on the gradient values of each initial branch network and the gradient values of the newly added branch network.
[0097] In some optional implementations of this embodiment, the above-mentioned initial branch network includes: any two of: a semantic segmentation network, a target detection network, and a key point detection network.
[0098] In some optional implementations of the present embodiment, the gradient adjustment unit 405 is further configured to: in response to the gradient value of the current initial branch network among all the initial branch networks in the current iterative training cycle being greater than the gradient values of other initial branch networks, set the loss weight value of the current initial branch network to be smaller than the loss weight values of other initial branch networks in the next iterative training cycle.
[0099] In some optional implementations of this embodiment, the sample device 400 further includes: a removal unit (not shown in the figure). The removal unit may be configured to remove one or more initial branch networks in the multi-task model.
[0100] The multi-task model training device provided by the embodiment of the present disclosure, first, the sample acquisition unit 401 acquires a training sample set including at least one type of initial image, each type of initial image is annotated with at least one type of identification element; secondly, the network acquisition unit 402 acquires a pre-established multi-task network, the multi-task network includes a universal feature extractor and initial branch networks corresponding to each type of identification element, the universal feature extractor is connected to each initial branch network through a branch node; thirdly, the image selection unit 403 selects an initial image from the training sample set, inputs the selected initial image into the universal feature extractor, obtains a feature map corresponding to the selected initial image, and the identification element of the selected initial image corresponds to all initial branch networks; then, the feature input unit 404 inputs each feature map in the obtained feature map into the initial branch network corresponding to the identification element of the feature map; then, the gradient adjustment unit 405 collects the gradient values of each initial branch network in the branch node, and adjusts the loss weight value of the corresponding initial branch network based on the gradient values of each initial branch network; finally, the model acquisition unit 406 obtains the multi-task model in response to the multi-task network meeting the training completion condition. Therefore, by setting up a multi-task network of a universal feature extractor and multiple initial branch networks, and using the gradients of each initial branch network to adjust the loss weight values of the initial branch network during multi-task training, a multi-task model based on gradient balance is obtained, which balances the training effects of multiple tasks and ensures that the multi-task model can achieve the best effect on each task.
[0101] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a multi-task processing device. Figure 3 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0102] like Figure 5 As shown, the multi-task processing device 500 provided in this embodiment includes: an acquisition unit 501 and an input unit 502. The acquisition unit 501 can be configured to acquire an image to be processed. The input unit 502 can be configured to input the image to be processed into the image processing unit 501 as shown in the above Figure 3 In the multi-task model generated by the device described in the embodiment, a multi-task processing result of the image to be processed is obtained.
[0103] In this embodiment, in the multi-task processing device 500, the specific processing of the acquisition unit 501 and the input unit 502 and the technical effects thereof can be referred to in Figure 3 The relevant descriptions of step 301 and step 302 in the corresponding embodiment are not repeated here.
[0104] In some optional implementations of this embodiment, the multi-task processing result includes: at least two of: a semantic segmentation result of the target in the image to be processed, a target detection result, and a key point detection result.
[0105] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0106] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0107] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0108] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0109] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0110] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as a multi-task model training method or a multi-task processing method. For example, in some embodiments, the multi-task model training method or the multi-task processing method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the multi-task model training method or the multi-task processing method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform a multi-task model training method or a multi-task processing method in any other appropriate manner (e.g., by means of firmware).
[0111] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0112] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable multi-task model training device, a multi-task processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0113] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 foregoing.
[0114] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0115] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0116] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0117] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0118] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A multi-task model training method, the method comprising: Acquire a training sample set including at least one type of initial images, wherein each type of initial images is annotated with at least one type of identification element; Acquire a pre-established multi-task network, wherein the multi-task network includes a universal feature extractor and initial branch networks corresponding to various recognition elements one by one, wherein the universal feature extractor is connected to each initial branch network through a branch node; Perform the following training steps: Selecting an initial image from the training sample set, inputting the selected initial image into the universal feature extractor, obtaining a feature map corresponding to the selected initial image, wherein the identification elements of the selected initial image correspond to all initial branch networks; For each feature map in the obtained feature maps, input the feature map into an initial branch network corresponding to the identification element of the feature map; The gradient values of each initial branch network in the branch node are collected, and the loss weight value of the corresponding initial branch network is adjusted based on the gradient value of each initial branch network. In response to the multi-task network satisfying the training completion condition, a multi-task model is obtained, wherein the loss weight value of the corresponding initial branch network is adjusted based on the gradient value of each initial branch network, including: in response to the gradient value of the current initial branch network among all the initial branch networks in the current iterative training cycle being greater than the gradient values of other initial branch networks, in the next iterative training cycle, the loss weight value of the current initial branch network is set to be smaller than the loss weight value of other initial branch networks.
2. The method according to claim 1, wherein: The step of inputting the selected initial image into the general feature extractor to obtain a feature map corresponding to the selected initial image comprises: In response to the selected initial image being of multiple categories, the multiple categories of initial images are superimposed and input into the universal feature extractor to obtain a feature map output by the universal feature extractor; The feature map output by the universal feature extractor is split according to the types of the multiple categories of initial images to obtain feature maps corresponding to the multiple categories of initial images.
3. The method according to claim 1, further comprising: Acquire a newly added image, wherein the newly added image is annotated with at least one type of newly added elements; Adding a new branch network corresponding to all the new elements in the multi-task model, so that the general feature extractor is also connected to the new branch network through the branch node; Perform the following new training steps: Selecting a newly added image and an initial image, and inputting the selected newly added image and the selected initial image into the universal feature extractor at the same time to obtain a new feature map; Inputting the feature map corresponding to the selected initial image separated from the new feature map into each initial branch network in sequence; Inputting the feature map corresponding to the selected newly added image separated from the new feature map into the newly added branch network; The gradient values of each initial branch network and the newly added branch network in the branch node are collected, and the loss weight values of the corresponding initial branch network and / or the newly added branch network are adjusted based on the gradient values of each initial branch network and the gradient value of the newly added branch network.
4. The method according to claim 1, wherein: The initial branch network includes any two of a semantic segmentation network, a target detection network, and a key point detection network.
5. The method according to claim 1, further comprising: One or more initial branch networks in the multi-task model are removed.
6. A multitasking method, the method comprising: Get the image to be processed; The image to be processed is input into a multi-task model generated by the method according to any one of claims 1 to 5, and a multi-task processing result of the image to be processed is output.
7. The method according to claim 6, wherein: The multi-tasking results include: At least two of the semantic segmentation results, target detection results, and key point detection results of the target in the image to be processed.
8. A multi-task model training device, the device comprising: A sample acquisition unit is configured to acquire a training sample set including at least one type of initial images, wherein each type of initial images is annotated with at least one type of identification element; A network acquisition unit is configured to acquire a pre-established multi-task network, wherein the multi-task network includes a universal feature extractor and initial branch networks corresponding to various types of recognition elements, wherein the universal feature extractor is connected to each initial branch network through a branch node; An image selection unit is configured to select an initial image from the training sample set, input the selected initial image into the universal feature extractor, and obtain a feature map corresponding to the selected initial image, wherein the identification elements of the selected initial image correspond to all initial branch networks; A feature input unit is configured to input each feature map in the obtained feature map into an initial branch network corresponding to the identification element of the feature map; A gradient adjustment unit is configured to collect the gradient values of each initial branch network in the branch node, and adjust the loss weight value of the corresponding initial branch network based on the gradient value of each initial branch network, wherein the adjustment of the loss weight value of the corresponding initial branch network based on the gradient value of each initial branch network includes: in response to the gradient value of the current initial branch network among all the initial branch networks in the current iterative training cycle being greater than the gradient values of other initial branch networks, setting the loss weight value of the current initial branch network to be less than the loss weight values of other initial branch networks in the next iterative training cycle; The model obtaining unit is configured to obtain the multi-task model when the multi-task network meets the training completion condition.
9. The device according to claim 8, wherein: The image selection unit comprises: A superposition module is configured to, in response to the selected initial image being of multiple categories, superimpose the multiple categories of initial images and input them into the universal feature extractor to obtain a feature map output by the universal feature extractor; The obtaining module is configured to split the feature map output by the universal feature extractor according to the types of the multiple categories of initial images to obtain feature maps corresponding to the multiple categories of initial images.
10. The device according to claim 8, further comprising: A newly added acquisition unit is configured to acquire a newly added image, wherein the newly added image is annotated with at least one type of newly added elements; A network adding unit, configured to add a new branch network corresponding to all the new elements in the multi-task model, so that the general feature extractor is also connected to the new branch network through the branch node; A new selection unit is configured to select a new image and an initial image, and input the selected new image and the selected initial image into the universal feature extractor at the same time to obtain a new feature map; An initial input unit is configured to sequentially input the feature map input corresponding to the selected initial image separated from the new feature map into each initial branch network; A newly added input unit is configured to input the feature map corresponding to the selected newly added image separated from the new feature map into the newly added branch network; A new adjustment unit is configured to collect the gradient values of each initial branch network and the newly added branch network in the branch node, and adjust the loss weight value of the corresponding initial branch network and / or the newly added branch network based on the gradient values of each initial branch network and the gradient value of the newly added branch network.
11. The device according to claim 8, wherein: The initial branch network includes any two of a semantic segmentation network, a target detection network, and a key point detection network.
12. The device according to claim 8, further comprising: A removal unit is configured to remove one or more initial branch networks in the multi-task model.
13. A multi-tasking processing device, the device comprising: An acquisition unit, configured to acquire an image to be processed; The input unit is configured to input the image to be processed into a multi-task model generated by the device according to any one of claims 8 to 12, and output a multi-task processing result of the image to be processed.
14. The device according to claim 13, wherein: The multi-tasking results include: At least two of the semantic segmentation results, target detection results, and key point detection results of the target in the image to be processed.
15. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
16. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 7.
17. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 7.
