Method and apparatus for determining multi-task integrated inference network, storage medium and vehicle
By integrating decoding branches into a multi-task integrated network and selecting the optimal decoding network model, the problem of low recognition efficiency caused by different tasks using the same encoding network output is solved, and efficient recognition for different tasks is achieved.
Patent Information
- Application Number
- CN202310369074.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-04-07
AI Technical Summary
In multi-task integrated networks, different tasks have different requirements for the number of network layers, and using the same encoding network output can easily affect recognition efficiency.
By integrating a large number of decoding branches at various stages of the encoding network and filtering these decoding branches, the optimal decoding network model is determined, and a multi-task integrated inference network is constructed.
This avoids using the same encoding network output for all tasks, ensuring the recognition efficiency of different tasks.
Smart Images

Figure CN116432753B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of deep learning, and more specifically, to a method, apparatus, storage medium, and vehicle for determining a multi-task integrated inference network. Background Technology
[0002] Currently, in multi-task integrated networks, a common coding structure is used to encode and extract features from the input digital signal. However, in terms of feature extraction, different recognition tasks have different requirements for the number of network layers, which leads to technical problems that affect recognition efficiency due to different tasks using the same coding network output.
[0003] There is currently no effective solution to the technical problem that the use of the same encoding network output for different tasks can easily affect recognition efficiency. Summary of the Invention
[0004] This invention provides a method, apparatus, storage medium, and vehicle for determining a multi-task integrated inference network, to at least solve the technical problem that the use of the same encoding network output by different tasks can easily affect recognition efficiency.
[0005] According to one aspect of the present invention, a method for determining a multi-task integrated inference network is provided. The method may include: obtaining a target output position for at least one encoding network stage, wherein the target output position is set corresponding to an encoding network stage; determining a decoding network model from a set of decoding networks to be tested connected to the target output position, and decoding a target task based on the decoding network model to obtain a decoding result, wherein the set of decoding networks to be tested includes at least one decoding network model to be tested; determining decoding performance data of the decoding network model based on the decoding result, wherein the decoding performance data is used to characterize the decoding efficiency and / or decoding accuracy of the decoding network model; and constructing a multi-task integrated inference network corresponding to the target output position based on the decoding performance data.
[0006] Optionally, the target task is decoded based on the decoding network model to obtain the decoding result, including: obtaining at least one feature map corresponding to the target task in at least one encoding network stage; and inputting the feature map into the decoding network model for decoding to obtain the decoding result.
[0007] Optionally, based on the decoding results, the decoding performance data of the decoding network model is determined, including: performing an evaluation operation on the decoding results to obtain evaluation indicators, wherein the evaluation indicators are used to characterize the decoding quantification indicators corresponding to multiple decoding results; and determining the decoding performance data based on the determined evaluation indicators.
[0008] Optionally, based on the decoding performance data, a multi-task integrated inference network corresponding to the target output position is constructed, including: performing a filtering operation on the decoding performance data to obtain a filtering result, wherein the filtering result is obtained by performing a filtering operation on the decoding performance data; and constructing a multi-task integrated inference network based on the filtering result.
[0009] Optionally, based on the screening results, a multi-task integrated inference network corresponding to the target output position is constructed, including: performing a matching operation on the screening results to obtain a target network that matches the target output position with the decoding network model; and determining the target network as a multi-task integrated inference network.
[0010] Optionally, before obtaining the target output position of at least one encoding network stage, the method further includes: determining at least one encoding network stage corresponding to the encoding network based on the encoding network, wherein the encoding network is used to obtain the target task by performing encoding operations on the target task to be encoded.
[0011] According to one aspect of the present invention, a device for determining a multi-task integrated inference network is provided. The device includes: an acquisition unit, configured to acquire a target output position of at least one encoding network stage, wherein the target output position is set corresponding to an encoding network stage; a decoding unit, configured to determine a decoding network model from a set of decoding networks to be tested connected to the target output position, and to decode a target task based on the decoding network model to obtain a decoding result, wherein the set of decoding networks to be tested includes at least one decoding network model to be tested; a first determination unit, configured to determine decoding performance data of the decoding network model based on the decoding result, wherein the decoding performance data is used to characterize the decoding efficiency and / or decoding accuracy of the decoding network model; and a construction unit, configured to construct a multi-task integrated inference network corresponding to the target output position based on the decoding performance data.
[0012] According to another aspect of the present invention, a computer-readable storage medium is also provided. The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to execute the method for determining a multi-task integrated inference network according to the embodiments of the present invention.
[0013] According to another aspect of the present invention, a processor is also provided. The processor is used to run a program, wherein the program, when run by the processor, executes the method for determining a multi-task integrated inference network according to the embodiments of the present invention.
[0014] According to another aspect of the present invention, a vehicle is also provided, which is used to execute the method for determining a multi-task integrated inference network according to the embodiments of the present invention.
[0015] In this embodiment of the invention, a target output position for at least one encoding network stage is obtained, wherein the target output position is set corresponding to one encoding network stage; a decoding network model is determined from the set of decoding networks to be tested connected to the target output position, and the target task is decoded based on the decoding network model to obtain a decoding result, wherein the set of decoding networks to be tested includes at least one decoding network model to be tested; based on the decoding result, decoding performance data of the decoding network model is determined, wherein the decoding performance data is used to characterize the decoding efficiency and / or decoding accuracy of the decoding network model; based on the decoding performance data, a multi-task integrated inference network corresponding to the target output position is constructed. In other words, the embodiments of the present invention first obtain the target output position of at least one encoding network stage by determining the encoding network, then connect the set of decoding networks to be tested at the obtained target output position, and thereby determine the decoding network model. Then, the current image to be processed is input into the decoding network model for decoding operation to obtain the decoding result. The decoding efficiency and / or decoding accuracy are determined by performing an evaluation operation on the decoding result. Finally, a filtering operation is performed on the decoding efficiency and / or decoding accuracy to obtain the filtering result. Then, a matching operation is performed on the decoding network model based on the filtering result to construct a multi-task integrated inference network corresponding to the target output position. This achieves the goal of avoiding the use of the same encoding network output for all tasks, thereby solving the technical problem that the use of the same encoding network output for different tasks can easily affect the recognition efficiency. It realizes the technical effect of ensuring recognition efficiency by using different encoding network outputs for different tasks. Attached Figure Description
[0016] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0017] Figure 1 This is a flowchart of a method for determining a multi-task integrated inference network according to an embodiment of the present invention;
[0018] Figure 2(a) is a flowchart of a network structure training method according to an embodiment of the present invention;
[0019] Figure 2(b) is a flowchart of a filtering method for a decoding network according to an embodiment of the present invention;
[0020] Figure 3 This is a flowchart of an adaptive distillation method according to an embodiment of the present invention;
[0021] Figure 4 This is a flowchart of a network header decoding operation method according to an embodiment of the present invention;
[0022] Figure 5 This is a flowchart illustrating the use of different decoding networks for different tasks according to an embodiment of the present invention;
[0023] Figure 6 This is a schematic diagram of a determination device for a multi-task integrated inference network according to an embodiment of the present invention. Detailed Implementation
[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0026] Example 1
[0027] According to an embodiment of the present invention, a method for determining a multi-task integrated inference network is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0028] Figure 1 This is a flowchart of a method for determining a multi-task integrated inference network according to an embodiment of the present invention. The method may include the following steps:
[0029] Step S101: Obtain the target output position of at least one coding network stage, wherein the target output position is set corresponding to a coding network stage.
[0030] In the technical solution provided by step S101 of the present invention, at least one encoding network stage of the encoding network is determined. The encoding network stage may include multiple encoding network sub-stages. For example, the encoding network stage may be used to extract features of the target task to be encoded, and the encoding network sub-stages may be used to extract features of different dimensions of the target task to be encoded. Then, the output positions of each feature map of the encoding network stage are obtained. The output positions of the feature maps may be set corresponding to each encoding network sub-stage. For example, the output positions of the feature maps may be set corresponding to the encoding network sub-stage that extracts 2D features of the target task to be encoded. In this embodiment, the output positions of the feature maps may be determined as the target output positions of the encoding network stage. The target output positions may be set corresponding to the above-mentioned encoding network stages.
[0031] Optionally, by encoding and extracting the corresponding features of the input digital signal through each encoding network sub-stage, a feature map extracted by the current sub-stage can be obtained. Then, the extracted feature map is convolutionally decoded by connecting it to the set of decoding networks to be tested, and the decoding result is obtained.
[0032] Step S102: Determine the decoding network model in the set of decoding networks to be tested connected to the target output position, and decode the target task based on the decoding network model to obtain the decoding result. The set of decoding networks to be tested includes at least one decoding network model to be tested.
[0033] In the technical solution provided by step S102 of the present invention, after obtaining the target output position of at least one encoding network stage, a set of decoding networks to be tested is connected at the at least one target output position, and the model to be tested included in the set of decoding networks to be tested is determined as a decoding network model. Then, the following decoding operations are performed on the target task through the decoding network model: traffic light and sign detection, vehicle and pedestrian detection, and lane line classification, and corresponding decoding results can be obtained respectively. The set of decoding networks to be tested may include at least one decoding network model to be tested. The target task may be at least one feature map corresponding to the input image. The input image may be any road condition image acquired by an image acquisition device. For example, the input image may be an input picture, which may be any road condition picture taken by a dashcam. The input picture may also be any road condition picture taken by a vehicle camera. The image acquisition device may be a camera device. This is only an example and is not specifically limited.
[0034] Optionally, a first decoding result can be obtained by performing traffic light and sign detection on at least one feature map of the input image through a decoding network model. The first decoding result can be used to characterize whether the decoding network model has completed the traffic light and sign detection on at least one feature map of the input image.
[0035] Optionally, by performing vehicle and pedestrian detection on at least one feature map of the input image through a decoding network model, a second decoding result can be obtained. The second decoding result can be used to characterize whether the decoding network model has completed vehicle and pedestrian detection on at least one feature map of the input image.
[0036] Optionally, a third decoding result can be obtained by performing lane line classification on at least one feature map of the input image through a decoding network model. The third decoding result can be used to characterize whether the decoding network model has completed lane line classification on at least one feature map of the input image.
[0037] Step S103: Based on the decoding results, determine the decoding performance data of the decoding network model, wherein the decoding performance data is used to characterize the decoding efficiency and / or decoding accuracy of the decoding network model.
[0038] In the technical solution provided in step S103 of the present invention, after decoding the target task and obtaining the decoding result, the decoding result is redundantly processed to remove noise and invalid information. Then, the decoding performance data of the decoding network model can be determined by evaluating each of the redundantly processed decoding results. The decoding performance data can be used to characterize the decoding efficiency and / or decoding accuracy of the decoding network model. The decoding efficiency can be used to characterize the decoding speed of the current decoding network model for the target task, and the decoding accuracy can be used to characterize the decoding precision of the current decoding network model for the target task.
[0039] Optionally, if the current decoding result is that the current decoding network model has completed the detection of traffic lights and signs for at least one feature map of the input image, then the decoding result is evaluated to determine that the decoding efficiency of the decoding network model is 0.05s and the decoding accuracy of the decoding network model is 99.10%.
[0040] Optionally, if the current decoding result is that the current decoding network model has completed vehicle and pedestrian detection for at least one feature map of the input image, then the decoding result is evaluated to determine that the decoding efficiency of the decoding network model is 0.07s and the decoding accuracy of the decoding network model is 99.25%.
[0041] Optionally, if the current decoding result is that the current decoding network model has completed lane line classification for at least one feature map of the input image, then the decoding result is evaluated to determine that the decoding efficiency of the decoding network model is 0.03s and the decoding accuracy of the decoding network model is 99.55%.
[0042] Step S104: Based on the decoding performance data, construct a multi-task integrated inference network corresponding to the target output position.
[0043] In the technical solution provided by step S104 of the present invention, after determining the decoding performance data of the decoding network model, the optimal decoding network model can be selected from the set of decoding networks to be tested by the decoding efficiency and / or decoding accuracy of the decoding network model, and the optimal decoding network model and the target output position of the corresponding encoding network stage are constructed into a multi-task integrated inference network.
[0044] Optionally, by using the decoding efficiency and / or decoding accuracy of the decoding network model, the optimal decoding network model can be selected from the set of decoding networks to be tested. Alternatively, by using multiple decoding efficiencies and / or multiple decoding accuracies, the decoding network model corresponding to the highest decoding efficiency and / or highest decoding accuracy can be selected at different target output positions for different decoding operations of the target task. The selected decoding network model is then determined as the optimal decoding network model at that target output position. The optimal decoding network model is then used to perform the corresponding decoding operation, thereby avoiding the use of the same encoding network output for all tasks.
[0045] In steps S101 to S104 of this application, the target output position of at least one encoding network stage is first obtained by determining the encoding network. Then, a set of decoding networks to be tested is connected at the obtained target output position, and a decoding network model is determined accordingly. The current image to be processed is then input into the decoding network model for decoding to obtain the decoding result. The decoding efficiency and / or decoding accuracy are determined by performing an evaluation operation on the decoding result. Finally, a filtering operation is performed on the decoding efficiency and / or decoding accuracy to obtain the filtering result. A matching operation is then performed on the decoding network model based on the filtering result to construct a multi-task ensemble inference network corresponding to the target output position. This achieves the goal of avoiding the use of the same encoding network output for all tasks, thereby solving the technical problem that the use of the same encoding network output for different tasks can easily affect the recognition efficiency. It achieves the technical effect of ensuring recognition efficiency by using different encoding network outputs for different tasks.
[0046] The method described in this embodiment will be further described below.
[0047] As an optional embodiment, step S102, which decodes the target task based on the decoding network model to obtain a decoding result, includes: obtaining at least one feature map corresponding to the target task in at least one encoding network stage; and inputting the feature map into the decoding network model for decoding to obtain a decoding result.
[0048] In this embodiment, after determining the decoding network model in the set of decoding networks to be tested connected to the target output position, the corresponding features of the target task are encoded and extracted through at least one encoding network stage to obtain at least one feature map corresponding to the target task. Then, the obtained at least one feature map is input into the decoding network model corresponding to different target output positions to perform the following decoding operations: traffic light and sign detection, vehicle and pedestrian detection, and lane line classification, thereby obtaining the corresponding decoding results.
[0049] Optionally, the decoding result may include a first decoding result, a second decoding result, and a third decoding result. The first decoding result can be used to characterize whether the decoding network model has completed traffic light and sign detection on the acquired at least one feature map. The second decoding result can be used to characterize whether the decoding network model has completed vehicle and pedestrian detection on the acquired at least one feature map. The third decoding result can be used to characterize whether the decoding network model has completed lane line classification on the acquired at least one feature map.
[0050] As an optional implementation method, the decoding performance data of the decoding network model is determined based on the decoding results, including: performing an evaluation operation on the decoding results to obtain evaluation indicators; and determining the decoding performance data based on the determined evaluation indicators.
[0051] In this embodiment, after decoding the target task and obtaining the decoding result, an evaluation operation is performed on each decoding result to obtain an evaluation index corresponding to each decoding result. Then, by performing usability analysis on the obtained evaluation index, the decoding efficiency and / or decoding accuracy of the decoding network model are determined. The evaluation index can be used to characterize the decoding quantification index corresponding to multiple decoding results.
[0052] Optionally, an evaluation operation is performed on the decoding result to obtain the evaluation index. This can be achieved by performing evaluation operations on the first decoding result, the second decoding result, and the third decoding result respectively, thereby obtaining the evaluation index corresponding to the first decoding result, the evaluation index corresponding to the second decoding result, and the evaluation index corresponding to the third decoding result.
[0053] Optionally, the decoding efficiency and / or decoding accuracy of the decoding network model can be determined by performing usability analysis on the obtained evaluation indicators. This can be achieved by performing usability analysis on the evaluation indicators corresponding to the first decoding result, the second decoding result, and the third decoding result, respectively, thereby determining the decoding efficiency and / or decoding accuracy of each decoding network model at different target output positions.
[0054] As an optional implementation method, a multi-task integrated inference network corresponding to the target output position is constructed based on decoding performance data, including: performing a filtering operation on decoding efficiency and / or decoding accuracy to obtain filtering results; and constructing a multi-task integrated inference network based on the filtering results.
[0055] In this embodiment, after determining the decoding performance data of different decoding network models, a filtering operation is performed on the decoding efficiency and / or decoding accuracy of different decoding network models to obtain the filtering results corresponding to the decoding performance data of different decoding network models. Then, based on the obtained filtering results, the decoding network model corresponding to the highest decoding efficiency and / or highest decoding accuracy can be selected at different target output positions for different decoding operations of the target task. The selected decoding network model is determined as the optimal decoding network model at the target output position. Then, multiple optimal decoding network models are constructed into a multi-task ensemble inference network, thereby achieving the goal of avoiding all tasks using the same encoding network output. The filtering results can be obtained by performing a filtering operation on the decoding performance data.
[0056] Optionally, based on the obtained screening results, the decoding network model corresponding to the highest decoding efficiency and / or highest decoding accuracy can be selected for different decoding operations of the target task at different target output positions. Alternatively, according to the correspondence between the target output position and the decoding network model, the decoding network model corresponding to each target output position can be selected for different decoding operations of the target task at different target output positions, and the decoding network model corresponding to each target output position can be determined as the optimal decoding network model at that target output position.
[0057] As an optional implementation method, based on the screening results, a multi-task integrated inference network corresponding to the target output position is constructed, including: performing a matching operation on the screening results to obtain a target network that matches the target output position with the decoding network model; and determining the target network as a multi-task integrated inference network.
[0058] In this embodiment, after obtaining the screening results, a matching operation is performed on the screening results to determine the correspondence between the target output position and the decoding network model. Then, according to the correspondence between the target output position and the decoding network model, a pruning operation is performed on all decoding network models in the set of decoding networks to be tested connected at each target output position. At the same time, the decoding network model corresponding to each target output position is retained, and the decoding network model corresponding to each target output position is determined as the target network. Thus, multiple target networks corresponding to different target output positions are determined as a multi-task integrated inference network.
[0059] Optionally, performing a matching operation on the decoding network models in the set of decoding networks to be tested can be to delete decoding network models in the set of decoding networks to be tested that do not correspond to each target output position.
[0060] As an optional embodiment, before obtaining the target output position of at least one encoding network stage, the method further includes: determining at least one encoding network stage corresponding to the encoding network, wherein the encoding network is used to obtain the target task by performing encoding operations on the target task to be encoded.
[0061] In this embodiment, before obtaining the target output position of at least one encoding network stage, an encoding network for encoding and extracting features from the input digital signal is first selected. Then, at least one encoding network stage corresponding to the encoding network is determined. The feature map output position of each encoding network stage is then determined as the target output position of the encoding network stage. The target task to be encoded can be the input image to which the encoding operation is to be performed. The encoding network can be used to perform encoding operations on the input image, such as encoding and extracting features from the input image to obtain a feature map corresponding to the input image, and then constructing the target task through the feature map.
[0062] This embodiment first obtains the target output position of at least one encoding network stage by determining the encoding network. Then, it connects the set of decoding networks to be tested at the obtained target output position and determines the decoding network model accordingly. The current image to be processed is then input into the decoding network model for decoding to obtain the decoding result. The decoding efficiency and / or decoding accuracy are determined by performing an evaluation operation on the decoding result. Finally, a filtering operation is performed on the decoding efficiency and / or decoding accuracy to obtain the filtering result. Based on the filtering result, a pruning operation is performed on the decoding network model to construct a multi-task integrated inference network corresponding to the target output position. This solves the technical problem that using the same encoding network output for different tasks can easily affect the recognition efficiency, and achieves the technical effect of ensuring recognition efficiency by using different encoding network outputs for different tasks.
[0063] Example 2
[0064] The technical solutions of the embodiments of the present invention will be illustrated below with reference to preferred embodiments.
[0065] In current multi-task ensemble networks, a common encoding structure is used to encode and extract features from the input digital signal. However, in terms of feature extraction, different recognition tasks have different requirements for the number of network layers. This leads to a technical problem where using the same encoding network output for different tasks makes it difficult to improve the recognition accuracy of different tasks. Therefore, a method for determining the multi-task ensemble inference network is needed so that using different encoding network outputs for different tasks can ensure recognition efficiency.
[0066] One related technology discloses an image fusion super-resolution method based on adaptive texture distillation. This method includes: constructing a dataset of low / high mixed-resolution images required for training a neural network; constructing the required adaptive texture distillation network; training and testing the adaptive texture distillation network using the dataset to obtain a trained neural network model; and reconstructing a fusion super-resolution image from the low mixed-resolution images using the trained network model. However, this method mainly focuses on compressive distillation of the network structure and layers, without addressing multi-task distillation, thus failing to guarantee recognition efficiency by using different encoding network outputs for different tasks.
[0067] However, by proposing a multi-task recognition method, this invention connects a large number of decoding branches at each stage of the encoding network and filters these decoding branches, thereby avoiding the use of the same encoding network output for all tasks and solving the technical problem that the use of the same encoding network output for different tasks can easily affect recognition efficiency.
[0068] Figure 2(a) is a flowchart of a network structure training method according to an embodiment of the present invention. As shown in Figure 2(a), the training method may include the following steps:
[0069] Step S201: Input digital signal.
[0070] After inputting the digital signal, the process proceeds to steps S202, S203, and S204, entering the first network sub-stage cnn-block1, the second network sub-stage cnn-block2, and the third network sub-stage cnn-blockn.
[0071] After the network sub-stage ends, proceed to steps S211, S212 and S213, perform decoding using all decoding network sets, perform another decoding using all decoding network sets, and perform yet another decoding using all decoding network sets.
[0072] Optionally, when training the decoding network model, the outputs of each stage of the encoding network are pre-connected to all decoding network heads. After training, the decoding networks at all positions are evaluated one by one to obtain the inference efficiency and recognition accuracy of the decoding network recognition task at different positions. Finally, based on the inference efficiency and recognition accuracy, the optimal combination of decoding branch positions can be selected to obtain the final multi-task integrated inference network.
[0073] Figure 2(b) is a flowchart of a filtering method for a decoding network according to an embodiment of the present invention. As shown in Figure 2(b), the filtering method may include the following steps:
[0074] Step S201: Input digital signal.
[0075] After inputting the digital signal, the process proceeds to steps S202, S203, and S204, entering the first network sub-stage cnn-block1, the second network sub-stage cnn-block2, and the third network sub-stage cnn-blockn.
[0076] After the network sub-stage ends, proceed to steps S221, S222 and S223, retaining decoding network n (task n), retaining decoding network 1 (task 1), and retaining decoding network 2 (task 2).
[0077] Figure 3 This is a flowchart of an adaptive distillation method according to an embodiment of the present invention, such as... Figure 3 As shown, the method may include the following steps:
[0078] Step S301: Access the decoding network from multiple locations.
[0079] After connecting to the decoding network, proceed to step S302 to enter the training phase.
[0080] After entering the training phase, proceed to step S303 to evaluate and filter redundant decoding networks.
[0081] After evaluation and screening, proceed to step S304 to perform cropping based on the screening results.
[0082] After pruning based on the screening results, proceed to step S305 to infer the network structure.
[0083] Figure 4 This is a flowchart of a network header decoding operation method according to an embodiment of the present invention, such as... Figure 4 As shown, the method may include the following steps:
[0084] Step S401: Obtain sub-stage features.
[0085] After obtaining the sub-stage features, proceed to step S402, where the features are input into the decoding network.
[0086] After the features are input into the decoding network, step S403 is performed, and the decoding network outputs the final decoding result.
[0087] Optionally, after obtaining the feature tensor output by each network sub-stage, the feature tensor is input into the neural network structure to perform convolution, normalization, and activation operations on the feature tensor, thereby obtaining the final output recognition result, such as the classification and detection results of the input image. This is only an example and is not specifically limited.
[0088] Figure 5 This is a flowchart illustrating the use of different decoding networks for different tasks according to an embodiment of the present invention, such as... Figure 5 As shown, the method may include the following steps:
[0089] Step S501: Output stage feature 1. After outputting stage feature 1, proceed to step S511: use decoding network 2 to decode, thereby completing the detection of traffic lights and signs.
[0090] Step S502: Output stage feature 2. After outputting stage feature 2, proceed to step S512, and use decoding network 1 to decode, thereby completing vehicle and pedestrian detection.
[0091] Step S503: Output stage feature n. After outputting stage feature n, proceed to step S513 to decode using decoding network n, thereby completing lane line segmentation.
[0092] In this embodiment, a large number of decoding branches are first connected at each stage of the encoding network. Then, the decoding branches at all positions are evaluated one by one to obtain the inference efficiency and recognition accuracy of the decoding network recognition task at different positions. Finally, based on the inference efficiency and recognition accuracy, the optimal combination of decoding branch positions can be selected to obtain the final multi-task integrated inference network. This solves the technical problem that using the same encoding network output for different tasks can easily affect the recognition efficiency, and achieves the technical effect of ensuring recognition efficiency by using different encoding network outputs for different tasks.
[0093] Example 3
[0094] According to embodiments of the present invention, a device for determining a multi-task integrated inference network is also provided. It should be noted that this device for determining a multi-task integrated inference network can be used to execute a method for determining a multi-task integrated inference network as described in Embodiment 1.
[0095] Figure 6This is a schematic diagram of a determination device for a multi-task integrated inference network according to an embodiment of the present invention. Figure 6 As shown, a determination device 600 for a multi-task integrated inference network may include: an acquisition unit 601, a decoding unit 602, a first determination unit 603, and a construction unit 604.
[0096] The acquisition unit 601 is used to acquire the target output position of at least one coding network stage, wherein the target output position is set corresponding to a coding network stage.
[0097] The decoding unit 602 is used to determine the decoding network model in the set of decoding networks to be tested connected to the target output position, and to decode the target task based on the decoding network model to obtain the decoding result, wherein the set of decoding networks to be tested includes at least one decoding network model to be tested.
[0098] The first determining unit 603 is used to determine the decoding performance data of the decoding network model based on the decoding result, wherein the decoding performance data is used to characterize the decoding efficiency and / or decoding accuracy of the decoding network model.
[0099] Construction unit 604 is used to construct a multi-task integrated inference network corresponding to the target output position based on decoding performance data.
[0100] Optionally, the decoding unit 602 may include: an acquisition module for acquiring at least one feature map corresponding to the target task at least in at least one encoding network stage; and a decoding module for inputting the feature map into a decoding network model for decoding to obtain a decoding result.
[0101] Optionally, the first determining unit 603 may include: an evaluation module, used to perform an evaluation operation on the decoding results to obtain evaluation indicators, wherein the evaluation indicators are used to characterize the decoding quantization indicators corresponding to multiple decoding results; and a determining module, used to determine decoding performance data based on the determined evaluation indicators.
[0102] Optionally, the construction unit 604 may include: a filtering module for performing a filtering operation on the decoding performance data to obtain a filtering result, wherein the filtering result is obtained by performing a filtering operation on the decoding performance data; and a construction module for constructing a multi-task integrated inference network based on the filtering result.
[0103] Optionally, the building module may include: a first determining submodule, used to perform a matching operation on the filtering results to obtain a target network whose target output position matches the decoding network model; and a second determining submodule, used to determine the target network as a multi-task integrated inference network.
[0104] Optionally, the determination device 600 for the multi-task integrated inference network may further include: a second determination unit, configured to determine at least one encoding network stage corresponding to the encoding network based on the encoding network, wherein the encoding network is used to obtain the target task by performing encoding operations on the target task to be encoded.
[0105] In this embodiment, the acquisition unit is used to acquire the target output position of at least one encoding network stage, wherein the target output position is set corresponding to one encoding network stage; the decoding unit is used to determine the decoding network model in the set of decoding networks to be tested connected to the target output position, and decode the target task based on the decoding network model to obtain the decoding result, wherein the set of decoding networks to be tested includes at least one decoding network model to be tested; the first determination unit is used to determine the decoding performance data of the decoding network model based on the decoding result, wherein the decoding performance data is used to characterize the decoding efficiency and / or decoding accuracy of the decoding network model; the construction unit is used to construct a multi-task integrated inference network corresponding to the target output position based on the decoding performance data, which solves the technical problem that the use of the same encoding network output for different tasks can easily affect the recognition efficiency, and achieves the technical effect that using different encoding network outputs for different tasks can guarantee the recognition efficiency.
[0106] Example 4
[0107] According to an embodiment of the present invention, a computer-readable storage medium is also provided, the storage medium including a stored program, wherein the program executes the method for determining a multi-task integrated inference network in Embodiment 1.
[0108] Example 5
[0109] According to an embodiment of the present invention, a processor is also provided for running a program, wherein the program is executed by the processor to perform the method for determining the multi-task integrated inference network in embodiment 1.
[0110] Example 6
[0111] According to an embodiment of the present invention, a vehicle is also provided for performing any of the methods for determining a multi-task integrated inference network in Embodiment 1.
[0112] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0113] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0114] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.
[0115] The units described as separate components may or may not be physically separate. Similarly, the components shown as units may or may not be physical units; they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0116] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0117] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0118] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for determining a multi-task integrated inference network, characterized in that, include: Obtain the target output position of at least one coding network stage, wherein the target output position is set corresponding to one of the coding network stages; A decoding network model is determined from the set of decoding networks to be tested connected at the target output location, and the target task is decoded based on the decoding network model to obtain a decoding result. The set of decoding networks to be tested includes at least one of the decoding network models to be tested. The target task is at least one feature map corresponding to the input image. The input image is a road condition image. The decoding operation of the decoding network model includes traffic light and sign detection, vehicle and pedestrian detection, and lane line classification. The decoding result includes a first decoding result, a second decoding result, and a third decoding result. The first decoding result is used to characterize whether the decoding network model has completed traffic light and sign detection on the at least one feature map. The second decoding result is used to characterize whether the decoding network model has completed vehicle and pedestrian detection on the at least one feature map. The third decoding result is used to characterize whether the decoding network model has completed lane line classification on the at least one feature map. The decoding result is subjected to redundancy processing, and noise and invalid information in the decoding result are deleted; Each decoding result after redundancy processing is evaluated one by one to obtain the evaluation index corresponding to each decoding result. The evaluation index is used to characterize the decoding quantification index corresponding to each decoding result. Availability analysis is performed on the evaluation metrics to determine the decoding performance data of the decoding network model, wherein the decoding performance data is used to characterize the decoding efficiency and / or decoding accuracy of the decoding network model; A filtering operation is performed on the decoding performance data to obtain a filtering result, wherein the filtering result is obtained by performing a filtering operation on the decoding performance data; Based on the filtering results, a multi-task integrated inference network corresponding to the target output position is constructed.
2. The method according to claim 1, characterized in that, The target task is decoded based on the aforementioned decoding network model to obtain the decoding result, including: At least one feature map corresponding to the target task is obtained in the at least one encoding network stage; The feature map is input into the decoding network model for decoding to obtain the decoding result.
3. The method according to claim 1, characterized in that, Based on the filtering results, the multi-task ensemble inference network is constructed, including: Perform a matching operation on the filtering results to obtain the target network whose target output position matches the decoding network model; The target network is identified as the multi-task integrated inference network.
4. The method according to any one of claims 1 to 3, characterized in that, Before obtaining the target output location of at least one coding network stage, the method further includes: Based on the encoding network, at least one encoding network stage corresponding to the encoding network is determined, wherein the encoding network is used to obtain the target task by performing encoding operations on the target task to be encoded.
5. A device for determining a multi-task integrated inference network, characterized in that, The apparatus for performing the method for determining a multi-task integrated inference network according to any one of claims 1 to 4, the apparatus comprising: An acquisition unit is configured to acquire the target output position of at least one coding network stage, wherein the target output position is set corresponding to one of the coding network stages; A decoding unit is configured to determine a decoding network model from the set of decoding networks to be tested connected at the target output location, and to decode the target task based on the decoding network model to obtain a decoding result. The set of decoding networks to be tested includes at least one of the decoding network models to be tested, the target task is at least one feature map corresponding to the input image, the input image is a road condition image, and the decoding operation of the decoding network model includes traffic light and sign detection, vehicle and pedestrian detection, and lane line classification. The first determining unit is configured to determine the decoding performance data of the decoding network model based on the decoding result, wherein the decoding performance data is used to characterize the decoding efficiency and / or decoding accuracy of the decoding network model; The construction unit is used to construct a multi-task integrated inference network corresponding to the target output position based on the decoding performance data.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method for determining the multi-task integrated inference network according to any one of claims 1 to 4.
7. A processor, characterized in that, The processor is used to run a program, wherein the program is executed by the processor to perform the method for determining the multi-task integrated inference network according to any one of claims 1 to 4.
8. A vehicle, characterized in that, The vehicle is used to execute the method for determining the multi-task integrated inference network according to any one of claims 1 to 4.
