Method and device for building function module of automatic driving perception model
By disassembling the autonomous driving perception model into common functional modules and building a highly modular perception system library, we solve the problems of long development cycle and poor reusability in the existing technology, achieve rapid deployment and flexible component reuse, and improve Model adaptation efficiency.
Patent Information
- Application Number
- CN202410698668.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-20
AI Technical Summary
Existing autonomous driving perception algorithm development solutions have problems such as long development cycles, poor reusability, complex platform and sensor configuration steps, and a lack of functional software and common algorithm modules, resulting in a lot of repetitive work for engineers and difficulty in model adaptation.
Using a method based on the computing basic platform, the autonomous driving perception model is disassembled into common functional modules, and a highly modularized and componentized perception system function module library is constructed to support the independent development and component reuse of different functional modules. Through large-scale data It integrates pre-training and fine-tuning technology to adapt to new scene data, and users can select functional modules based on the platform's computing power for rapid deployment.
It achieves rapid deployment and flexible component reuse for perception algorithm development, reduces the development cycle and engineer workload, and improves model adaptation efficiency.
Smart Images

Figure CN118674935A
Abstract
Description
Technical Field
[0001] The present application relates to the field of autonomous driving perception technology, and in particular to a method and device for building an autonomous driving perception model functional module. Background Art
[0002] The Computing Brain DEvelopment System (CBDES) consists of two parts: the Computing Base Brain (CBB) and the Graphical ADAS-AD Software Developer (GAASD). CBB consists of computing platform hardware, real-time kernel, middleware and functional software. Functional software is the core of this product, which aims to provide basic algorithm components and frameworks for various intelligent driving systems. Based on the innovative solution of "layered decoupling and cross-domain sharing" and based on the functional software function library, CBDES transfers the application algorithm development capabilities to host manufacturers, supports host engineers to quickly build their own defined intelligent driving systems, and perform functional adaptation and parameter adjustment. Compared with existing products and development models, CBDES has significant advantages in improving development efficiency, ensuring software quality and adopting generative development.
[0003] Among the related technologies, perception is one of the core modules of intelligent driving cars, providing important input information for downstream modules' positioning, prediction, decision-making, planning, and control. The quality of the underlying algorithm must be very high, and most of the perception algorithms mass-produced on the vehicle side are deep learning methods based on neural networks, that is, using large-scale labeled data to train deep neural networks and apply them to various visual perception tasks.
[0004] However, the perception algorithm development solutions in related technologies still have problems such as long development cycle, poor reusability, and complex platform and sensor configuration steps. In addition, mainstream solutions lack functional software, do not extract common algorithm modules, and have a low degree of component reuse. As intelligent driving system platforms gradually diversify and the speed of functional updates accelerates, it is easy for engineers to repeat work and make model adaptation difficult, which needs to be solved urgently. Summary of the invention
[0005] The present application provides a method and device for building a functional module of an autonomous driving perception model to solve the problems that the perception algorithm development solutions in the related technologies still have long development cycles, poor reusability, and complex and numerous platform and sensor configuration steps. In addition, the mainstream solutions lack functional software, do not extract common algorithm modules, and have a low degree of component reuse. As the intelligent driving system platform gradually diversifies and the speed of function updates accelerates, it is easy to cause engineers to repeat work and have difficulty in model adaptation.
[0006] The first aspect of the present application provides a method for building an autonomous driving perception model functional module, comprising the following steps: using a computing basic platform to perform data annotation and BEV data format adaptation to generate a vehicle-road-cloud integrated perception system functional module library; based on the vehicle-road-cloud integrated perception system functional module library, selecting and combining different functional modules to obtain required functional modules suitable for target tasks to construct a perception algorithm framework; based on the constructed perception algorithm framework, evaluating at least one functional module to obtain feature visualization qualitative analysis results and evaluation index quantitative analysis results of the at least one functional module; fine-tuning the perception model under the perception algorithm framework based on the user's own personalized data, the feature visualization qualitative analysis results, the evaluation index quantitative analysis results and the actual task data to build a final autonomous driving perception model.
[0007] Optionally, in one embodiment of the present application, at least one functional module is evaluated based on the constructed perception algorithm framework to obtain feature visualization qualitative analysis results and evaluation index quantitative analysis results of the at least one functional module, including: loading pre-trained functional module weight parameters; extracting the deep feature representation of the image sample, and extracting the weight parameters of the last layer of the target functional module in the at least one functional module and the output deep features; performing a visual qualitative analysis based on the functional module weight parameters, the deep feature representation, the weight parameters of the last layer and the deep features to obtain feature visualization qualitative analysis results; performing a performance evaluation based on preset evaluation indicators and the feature visualization qualitative analysis results to obtain the evaluation index quantitative analysis results.
[0008] Optionally, in one embodiment of the present application, the preset evaluation index includes a semantic perception feature evaluation index, and the calculation formula of the semantic perception feature evaluation index is:
[0009]
[0010] Among them, SRFR M1dule It is defined as the mean SRFR (Semantic Guided Relevant Feature Ratio) calculated on all training data, where N represents the number of images in the training set. Represents the SRFR result calculated for the i-th image.
[0011] Optionally, in one embodiment of the present application, the visual qualitative analysis is performed based on the functional module weight parameters, the deep feature representation, the weight parameters of the last layer and the deep features to obtain feature visualization qualitative analysis results, including: based on the functional modules pre-trained on the existing public data set, the output tensor of the last convolutional layer of the target functional module and the target category score tensor are calculated according to the input image samples; the output tensors are numerically sorted to obtain at least one vector that meets the preset ranking conditions; the gradient average is calculated based on the at least one vector to obtain the corresponding gradient weight to obtain the vector corresponding to each channel feature map; the Conv-CAM calculation result is obtained according to the vector corresponding to each channel feature map, so as to upsample and interpolate the fused feature map to obtain the output global class activation map result of the same size as the input image, and determine the feature visualization qualitative analysis result.
[0012] Optionally, in one embodiment of the present application, the output global class activation map result is:
[0013]
[0014] in, Indicates category c j The corresponding convolutional layer weight, A k represents the kth feature map output by the convolutional layer, ReLU is the linear correction function, j is the category subscript, c j It represents a vector of numerical sorting of the target category score tensor of the last convolutional layer of the functional module calculated based on the input image samples. ConvCAM is the calculation result of the class activation map.
[0015] The second aspect of the present application provides a device for building an autonomous driving perception model functional module, including: a generation module, which is used to use a computing basic platform to perform data annotation and BEV data format adaptation, and generate a vehicle-road-cloud integrated perception system functional module library; a construction module, which is used to select and combine different functional modules based on the vehicle-road-cloud integrated perception system functional module library, and obtain the required functional modules suitable for the target task to build a perception algorithm framework; an evaluation module, which is used to evaluate at least one functional module based on the constructed perception algorithm framework, and obtain the feature visualization qualitative analysis results and evaluation index quantitative analysis results of the at least one functional module; a construction module, which is used to fine-tune the perception model under the perception algorithm framework based on the user's own personalized data, the feature visualization qualitative analysis results and the evaluation index quantitative analysis results and the data of the actual task, and build the final autonomous driving perception model.
[0016] Optionally, in one embodiment of the present application, the evaluation module includes: a loading unit for loading pre-trained functional module weight parameters; an extraction unit for extracting the deep feature representation of the image sample, and extracting the weight parameters of the last layer of the target functional module in the at least one functional module and the output deep features; an analysis unit for performing a visual qualitative analysis based on the functional module weight parameters, the deep feature representation, the weight parameters of the last layer and the deep features to obtain a feature visualization qualitative analysis result; an evaluation unit for performing a performance evaluation based on preset evaluation indicators and the feature visualization qualitative analysis result to obtain a quantitative analysis result of the evaluation indicator.
[0017] Optionally, in one embodiment of the present application, the preset evaluation index includes a semantic perception feature evaluation index, and the calculation formula of the semantic perception feature evaluation index is:
[0018]
[0019] Among them, SRFR Module It is defined as the mean SRFR (Semantic Guided Relevant Feature Ratio) calculated on all training data, where N represents the number of images in the training set. Represents the SRFR result calculated for the i-th image.
[0020] Optionally, in one embodiment of the present application, the analysis unit includes: a first calculation subunit, used to calculate the output tensor of the last convolution layer of the target function module and the target category score tensor according to the input image sample based on the function module pre-trained on the existing public data set; a sorting subunit, used to numerically sort the output tensor to obtain at least one vector that meets the preset ranking condition; a second calculation subunit, used to calculate the gradient average based on the at least one vector to obtain the corresponding gradient weight to obtain the vector corresponding to each channel feature map; a processing subunit, used to obtain the Conv-CAM calculation result according to the vector corresponding to each channel feature map, so as to upsample and interpolate the fused feature map to obtain the output global class activation map result of the same size as the input image, and determine the feature visualization qualitative analysis result.
[0021] Optionally, in one embodiment of the present application, the output global class activation map result is:
[0022]
[0023] in, Indicates category c j The corresponding convolutional layer weight, Ak represents the kth feature map output by the convolutional layer, ReLU is the linear correction function, j is the category subscript, c j It represents a vector of numerical sorting of the target category score tensor of the last convolutional layer of the functional module calculated based on the input image samples. ConvCAM is the calculation result of the class activation map.
[0024] The third aspect of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement a method for building an autonomous driving perception model functional module as described in the above embodiment.
[0025] The fourth aspect of the present application provides a computer-readable storage medium, which stores a computer program. When the program is executed by a processor, it implements the method for building the above-mentioned autonomous driving perception model functional module.
[0026] The fifth aspect of the present application provides a computer program product, including a computer program, which, when executed, is used to implement the method for building the above-mentioned autonomous driving perception model functional module.
[0027] The embodiment of the present application can disassemble the autonomous driving perception model into a series of common functional modules, adopt the method of offline training based on large-scale data sets, build a highly modularized and componentized perception system functional module library, support independent development of algorithm modules with different functions, and realize highly flexible component reuse. Thus, a high degree of modularization and componentization is achieved, and the perception functional module library provided by the platform has been subjected to a unified pre-training process on a large-scale data set, and subsequently supports fine-tuning technology to better adapt to new scene data, and in the process of building the perception algorithm framework, users can select functional modules according to the computing power constraints of different platforms, and quickly realize application deployment. Thus, the perception algorithm development scheme in the related technology still has the problems of long development cycle, poor reusability, and complex and numerous platform and sensor configuration steps, and the mainstream solution lacks functional software, does not extract common algorithm modules, and has a low degree of component reuse. As the intelligent driving system platform gradually diversifies, the speed of function update is accelerated, which easily leads to engineers' repeated work and model adaptation difficulties.
[0028] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0030] Figure 1 A schematic diagram of the structure of an autonomous driving perception model based on a computing basic platform according to an embodiment of the present application;
[0031] Figure 2 A flowchart of a method for building an autonomous driving perception model function module according to an embodiment of the present application;
[0032] Figure 3 A schematic diagram of a functional module evaluation method according to an embodiment of the present application;
[0033] Figure 4 This is a schematic diagram showing the visualization of the functional module features of an embodiment of the present application;
[0034] Figure 5 A schematic diagram of the structure of a device for building an autonomous driving perception model functional module according to an embodiment of the present application;
[0035] Figure 6 Schematic diagram of the structure of an electronic device according to an embodiment of the present application.
[0037] 10-device for building the functional module of the autonomous driving perception model: 100-generation module, 200-construction module, 300-evaluation module and 400-construction module; 601-memory, 602-processor and 603-communication interface. DETAILED DESCRIPTION
[0038] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0039] The following describes the method and device for building the functional module of the autonomous driving perception model of the embodiment of the present application with reference to the accompanying drawings. In view of the fact that the perception algorithm development scheme in the related art mentioned in the above background technology still has problems such as long development cycle, poor reusability, and complicated platform and sensor configuration steps, and the mainstream solution lacks functional software, does not extract common algorithm modules, and has low component reuse. As the intelligent driving system platform gradually diversifies and the function update speed accelerates, it is easy to cause engineers to repeat work and difficult model adaptation. The present application provides a method for building the functional module of the autonomous driving perception model, in which the autonomous driving perception model can be disassembled into a series of common functional modules, and a method based on offline training of large-scale data sets is adopted to build a highly modular and componentized perception system functional module library, support independent development of algorithm modules with different functions, and realize highly flexible component reuse. Thus, a high degree of modularization and componentization is achieved, and the perception functional module library provided by the platform has been uniformly pre-trained on large-scale data sets, and subsequently supports fine-tuning technology to better adapt to new scene data. In the process of building the perception algorithm framework, users can select functional modules according to the computing power constraints of different platforms to quickly realize application deployment. As a result, the problems of long development cycle, poor reusability, and complicated platform and sensor configuration steps in the perception algorithm development solutions in related technologies have been solved. In addition, the mainstream solutions lack functional software, do not extract common algorithm modules, and have a low degree of component reuse. As the intelligent driving system platform gradually diversifies and the speed of functional updates accelerates, it is easy to cause engineers to repeat work and have difficulty in model adaptation.
[0040] Next, a structural diagram of the autonomous driving perception model based on the computing basic platform of an embodiment of the present application will be described.
[0041] like Figure 1 As shown, the architecture involved in building a perception algorithm based on a computing basic platform in the embodiment of the present application includes data annotation and BEV data format adaptation based on computing basic platform tools, construction of a perception algorithm model based on a vehicle-road-cloud integrated perception system functional module library, performance evaluation of functional modules, guidance of functional module fine-tuning based on evaluation indicators, and rapid deployment of algorithms on the target hardware platform based on computing basic platform tools.
[0042] Furthermore, the performance evaluation of the functional modules includes: loading pre-trained functional module parameters, extracting feature representations of image samples, visualizing features using Conv-CAM, and evaluating the performance of the functional modules.
[0043] Specifically, Figure 2 A flowchart of a method for building an autonomous driving perception model functional module provided in an embodiment of the present application.
[0044] like Figure 2 As shown, the method for building the autonomous driving perception model function module includes the following steps:
[0045] In step S201, the computing basic platform is used to perform data annotation and BEV data format adaptation to generate a vehicle-road-cloud integrated perception system functional module library.
[0046] It is understandable that vehicle-road-cloud integration can be understood here as an advanced technology for intelligent connected vehicles, which integrates the physical space and information space of people, vehicles, roads, and clouds through the new generation of information and communication technology, and realizes the safe, energy-saving, comfortable and efficient operation of the intelligent connected vehicle transportation system based on system collaborative perception, decision-making and control. Data annotation can be understood here as the process of processing unprocessed primary data, such as voice, pictures, text, video, etc., and converting them into machine-recognizable BEV data format information.
[0047] As a possible implementation method, when building a perception algorithm based on a computing infrastructure platform, the embodiment of the present application can first perform data annotation and BEV data format adaptation based on the computing infrastructure platform tools, that is, use the computing infrastructure platform to provide a closed-loop vehicle-cloud data tool chain that supports continuous evolution, to achieve annotation, simulation and data format conversion of user input data, and thereby generate a vehicle-road-cloud integrated perception system functional module library.
[0048] Step S202: Based on the vehicle-road-cloud integrated perception system function module library, different function modules are selected and combined to obtain the required function modules suitable for the target task, so as to construct a perception algorithm framework.
[0049] In some embodiments, after generating a vehicle-road-cloud integrated perception system functional module library, a perception algorithm framework can be constructed based on the vehicle-road-cloud integrated perception system functional module library.
[0050] Specifically, in the embodiments of the present application, it is possible but not limited to provide a flexible and reconfigurable vehicle-road-cloud integrated perception system functional module library based on the computing base platform, and select and combine different functional modules according to target requirements. Among them, the computing base platform (Computing Base Brain, CBB) based on can innovatively decompose the autonomous driving perception algorithm framework into a series of reusable and reconfigurable common functional modules, mainly but not limited to image feature extraction module Backbone_Camera, image feature conversion module PV2BEV, BEV perspective feature fusion module BFF_Camera, time series feature fusion module TFF_Camera, obstacle detection head OBH_Deteciton, etc. In this way, the required functional modules suitable for the target task can be obtained to construct the perception algorithm framework.
[0051] The embodiments of the present application can select and combine different functional modules based on the vehicle-road-cloud integrated perception system functional module library to obtain the required functional modules suitable for the target task to build a perception algorithm framework. Therefore, CBB can be used to achieve a high degree of modularization and componentization. The perception functional module library provided by the platform has undergone a unified pre-training process on a large-scale data set, which is convenient for subsequent support based on fine-tuning technology to better adapt to new scene data. In the process of building the perception algorithm framework, users can also select functional modules according to the computing power constraints of different platforms, quickly implement application deployment, and meet the different needs of users in actual application scenarios.
[0052] Step S203: Evaluate at least one functional module based on the constructed perception algorithm framework to obtain a qualitative analysis result of feature visualization and a quantitative analysis result of evaluation indicators of at least one functional module.
[0053] In other embodiments, after the perception algorithm framework is built, the perception algorithm framework can be used to perform performance evaluation on the functional modules.
[0054] For example, after the modular construction of the perception algorithm is completed, the embodiment of the present application can adopt a functional module performance evaluation method to perform performance evaluation and index calculation on the pre-trained functional modules, and adopt a comprehensive evaluation method based on the feature visualization qualitative analysis of the class activation map and the quantitative analysis of the evaluation index, such as Figure 3 As shown, it is a schematic diagram of a functional module evaluation method of an embodiment of the present application, and this process will be further explained below.
[0055] Optionally, in one embodiment of the present application, at least one functional module is evaluated based on constructing a perception algorithm framework to obtain feature visualization qualitative analysis results and evaluation index quantitative analysis results of at least one functional module, including: loading pre-trained functional module weight parameters; extracting the deep feature representation of the image sample, and extracting the weight parameters of the last layer of the target functional module in at least one functional module and the output deep features; performing a visual qualitative analysis based on the functional module weight parameters, the deep feature representation, the weight parameters of the last layer and the deep features to obtain feature visualization qualitative analysis results; performing a performance evaluation based on preset evaluation indicators and feature visualization qualitative analysis results to obtain evaluation index quantitative analysis results.
[0056] Optionally, in one embodiment of the present application, the preset evaluation index includes a semantic perception feature evaluation index, wherein the calculation formula of the semantic perception feature evaluation index can be expressed as:
[0057]
[0058] Among them, SRFRM1dule It is defined as the mean SRFR (Semantic Guided Relevant Feature Ratio) calculated on all training data, where N represents the number of images in the training set. They respectively represent the SRFR results calculated for the i-th image.
[0059] Based on the relevant descriptions of other embodiments, it can be understood that the embodiment of the present application can evaluate at least one functional module based on the construction of a perception algorithm framework. Next, the functional module performance evaluation method in the embodiment of the present application is further described, and its main process can be expressed as follows:
[0060] (1) Load the pre-trained function module weight parameters;
[0061] (2) Extract the deep feature representation of the image sample, extract the weight parameters of the last layer of the functional module and the output deep features;
[0062] (3) Use Conv-CAM (Converge-Class Activation Map, a semantically-aware class activation map calculation method) to visualize the deep features output by the functional module: Use Conv-CAM to calculate the class activation map of the last layer of network parameters of the functional module and perform a visualization analysis. After extracting deep features on the task dataset through the feature visualization method, performance evaluation is performed based on the evaluation indicators proposed in this invention to provide an explainable basis for further model deployment or model fine-tuning.
[0063] (4) Quantitatively evaluate the performance of the functional module based on the evaluation index: The embodiment of the present application can be, but is not limited to, evaluating the performance of the functional module by using the semantic guided relevant feature ratio (SRFR), that is, by quantifying the overlap between the task-related semantic features and the perceived target position, where SRFR Module It is defined as the mean SRFR calculated on all training data. The calculation formula can be expressed as follows:
[0064]
[0065] Among them, SRFR Module It is defined as the mean SRFR (Semantic Guided Relevant Feature Ratio) calculated on all training data, where N represents the number of images in the training set. Represents the SRFR result calculated for the i-th image.
[0066] SRFR based on a single image sample Img The detailed calculation formal definition can be expressed as follows:
[0067]
[0068] Among them, A L and A G They represent the distribution of task-related features learned by the network and the location distribution of the main objects in the category, respectively. G You can take the rectangular annotation box of the corresponding category object in the image in the dataset.
[0069] Optionally, in one embodiment of the present application, a visual qualitative analysis is performed based on the weight parameters of the functional modules, the deep feature representation, the weight parameters of the last layer and the deep features to obtain a feature visualization qualitative analysis result, including: based on the functional modules pre-trained on the existing public data set, the output tensor of the last convolutional layer of the target functional module and the target category score tensor are calculated according to the input image samples; the output tensors are numerically sorted to obtain at least one vector that meets the preset ranking conditions; the gradient average is calculated based on at least one vector to obtain the corresponding gradient weight to obtain the vector corresponding to each channel feature map; the Conv-CAM calculation result is obtained according to the vector corresponding to each channel feature map, so as to upsample and interpolate the fused feature map to obtain an output global class activation map result of the same size as the input image, and determine the feature visualization qualitative analysis result.
[0070] Optionally, in one embodiment of the present application, the output global class activation map result can be expressed as:
[0071]
[0072] in, Indicates category c j The corresponding convolutional layer weight, A k represents the kth feature map output by the convolutional layer, ReLU is the linear correction function, j is the category subscript, c j It represents the vector of numerical sorting of the target category score tensor of the last convolution layer of the functional module calculated based on the input image samples, and ConvCAM is the result of class activation map calculation. Figure 4 As shown, it is a visualization diagram of the functional module features of an embodiment of the present application, and this process is further explained below.
[0073] In the actual implementation process, based on the weight parameters of the functional modules, the deep feature representation, the weight parameters of the last layer and the deep features, a visual qualitative analysis is performed to obtain the results of the feature visualization qualitative analysis. The main implementation steps include:
[0074] (1) Based on the pre-trained function module on the existing public dataset, the output tensor A of the last convolutional layer of the function module and the target category score tensor y are calculated according to the input image samples;
[0075] (2) Sorting the tensor y numerically, we get the top three vectors c, which can be represented as follows:
[0076]
[0077] (3) Calculation The gradient average is calculated for each channel feature map output by the convolution layer in turn to obtain the corresponding gradient weight and the corresponding vector in, is the weight corresponding to the k-th channel feature map, and the gradient average of the reverse derivative of the convolutional layer feature map is used as the weight parameter, which can be expressed as follows:
[0078]
[0079] Among them, z represents the sum of the pixel values of the kth channel feature map, Represents the kth channel feature map A k The pixel value at the (m,n) coordinate position in the is the weight corresponding to the k-th channel feature map, is the vector obtained by numerically sorting the tensor y, is the symbolic representation of partial differential operation;
[0080] (4) According to the weight corresponding to each channel feature map, the feature maps of each channel are linearly weighted fused according to the following formula to obtain the Conv-CAM calculation result. Finally, the fused feature map is upsampled and interpolated to obtain the output global class activation map result with the same size as the input image. The calculation method can be expressed as follows:
[0081]
[0082] in, Indicates category c j The corresponding convolutional layer weight, A k represents the kth feature map output by the convolutional layer, ReLU is the linear correction function, j is the category subscript, c j It represents a vector of numerical sorting of the target category score tensor of the last convolutional layer of the functional module calculated based on the input image samples. ConvCAM is the calculation result of the class activation map.
[0083] Step S204, based on the user's own personalized data, the qualitative analysis results of feature visualization, the quantitative analysis results of evaluation indicators, and the data of actual tasks, the perception model under the perception algorithm framework is fine-tuned to build the final autonomous driving perception model.
[0084] In some embodiments, after obtaining the evaluation results of the functional modules, the embodiments of the present application can also guide the module fine-tuning based on the evaluation results.
[0085] For example, based on the user's own personalized data, the qualitative analysis results of feature visualization and the quantitative analysis results of evaluation indicators, combined with the specific needs of the user, the model can be fine-tuned based on the actual task data. For example, according to the target task type, some or all network layers can be frozen, and the model weights can be adjusted and updated in a targeted manner to allow the model to gradually adapt to the new scenario data of the target task.
[0086] After fine-tuning training is completed, the embodiment of the present application can also directly use the hardware deployment tool chain provided by the computing infrastructure platform to complete the hardware deployment of the model.
[0087] According to the method for building the functional module of the autonomous driving perception model proposed in the embodiment of the present application, the autonomous driving perception model can be disassembled into a series of common functional modules, and a highly modularized and componentized perception system functional module library is constructed by using a method based on offline training of large-scale data sets, supporting the independent development of algorithm modules with different functions, and realizing highly flexible component reuse. Thus, a high degree of modularization and componentization is achieved, and the perception functional module library provided by the platform has been subjected to a unified pre-training process on a large-scale data set, and subsequently supports fine-tuning technology to better adapt to new scene data. In the process of building the perception algorithm framework, users can select functional modules according to the computing power constraints of different platforms and quickly realize application deployment. Thus, the perception algorithm development scheme in the related technology still has the problems of long development cycle, poor reusability, and complex and numerous platform and sensor configuration steps, and the mainstream solution lacks functional software, does not extract common algorithm modules, and has a low degree of component reuse. As the intelligent driving system platform gradually diversifies, the function update speed is accelerated, which easily leads to engineers' repeated work and model adaptation difficulties.
[0088] Secondly, the device for building the autonomous driving perception model functional module proposed in the embodiment of the present application is described with reference to the accompanying drawings.
[0089] Figure 5 It is a structural diagram of a device for building an autonomous driving perception model functional module according to an embodiment of the present application.
[0090] like Figure 5As shown, the device 10 for building the autonomous driving perception model functional module includes: a generation module 100, a construction module 200, an evaluation module 300 and a building module 400.
[0091] Among them, the generation module 100 is used to use the computing basic platform to perform data annotation and BEV data format adaptation, and generate a vehicle-road-cloud integrated perception system functional module library.
[0092] The construction module 200 is used to select and combine different functional modules based on the vehicle-road-cloud integrated perception system functional module library to obtain the required functional modules suitable for the target task, so as to construct a perception algorithm framework.
[0093] The evaluation module 300 is used to evaluate at least one functional module based on the construction of a perception algorithm framework, and obtain a feature visualization qualitative analysis result and an evaluation index quantitative analysis result of at least one functional module.
[0094] Building module 400 is used to fine-tune the perception model under the perception algorithm framework based on the user's own personalized data, feature visualization qualitative analysis results, evaluation index quantitative analysis results, and actual task data to build the final autonomous driving perception model.
[0095] Optionally, in one embodiment of the present application, the evaluation module 300 includes: a loading unit, an extraction unit, an analysis unit and an evaluation unit.
[0096] Among them, the loading unit is used to load the pre-trained function module weight parameters.
[0097] The extraction unit is used to extract the deep feature representation of the image sample and extract the weight parameters of the last layer of the target functional module in at least one functional module and the output deep feature.
[0098] The analysis unit is used to perform visual qualitative analysis based on the weight parameters of the functional modules, the deep feature representation, the weight parameters of the last layer and the deep features to obtain the feature visual qualitative analysis results.
[0099] The evaluation unit is used to perform performance evaluation based on preset evaluation indicators and feature visualization qualitative analysis results to obtain quantitative analysis results of the evaluation indicators.
[0100] Optionally, in one embodiment of the present application, the preset evaluation index includes a semantic perception feature evaluation index, and the calculation formula of the semantic perception feature evaluation index can be expressed as:
[0101]
[0102] Among them, SRFR ModuleIt is defined as the mean SRFR (Semantic Guided Relevant Feature Ratio) calculated on all training data, where N represents the number of images in the training set. Represents the SRFR result calculated for the i-th image.
[0103] Optionally, in one embodiment of the present application, the analysis unit includes: a first calculation subunit, a sorting subunit, a second calculation subunit and a processing subunit.
[0104] The first computing subunit is used to calculate the output tensor of the last convolutional layer of the target functional module and the target category score tensor according to the input image sample based on the functional module pre-trained on the existing public data set.
[0105] The sorting subunit is used to numerically sort the output tensor to obtain at least one vector that meets a preset ranking condition.
[0106] The second calculation subunit is used to calculate the gradient average based on at least one vector to obtain the corresponding gradient weight to obtain the vector corresponding to each channel feature map.
[0107] The processing subunit is used to obtain the Conv-CAM calculation result according to the vector corresponding to each channel feature map, to perform upsampling interpolation processing on the fused feature map, to obtain the output global class activation map result of the same size as the input image, and to determine the feature visualization qualitative analysis result.
[0108] Optionally, in one embodiment of the present application, the output global class activation map result can be expressed as:
[0109]
[0110] in, Indicates category c j The corresponding convolutional layer weight, A k represents the kth feature map output by the convolutional layer, ReLU is the linear correction function, j is the category subscript, c j It represents a vector of numerical sorting of the target category score tensor of the last convolutional layer of the functional module calculated based on the input image samples. ConvCAM is the calculation result of the class activation map.
[0111] It should be noted that the above explanation of the embodiment of the method for building the autonomous driving perception model functional module is also applicable to the device for building the autonomous driving perception model functional module of this embodiment, and will not be repeated here.
[0112] According to the device for building the functional module of the autonomous driving perception model proposed in the embodiment of the present application, the autonomous driving perception model can be disassembled into a series of common functional modules, and a highly modularized and componentized perception system functional module library is constructed by using a method based on offline training of large-scale data sets, supporting the independent development of algorithm modules with different functions, and realizing highly flexible component reuse. Thus, a high degree of modularization and componentization is achieved, and the perception functional module library provided by the platform has been subjected to a unified pre-training process on a large-scale data set, and subsequently supports fine-tuning technology to better adapt to new scene data. In the process of building the perception algorithm framework, users can select functional modules according to the computing power constraints of different platforms and quickly realize application deployment. Thus, the perception algorithm development scheme in the related technology still has the problems of long development cycle, poor reusability, and complex and numerous platform and sensor configuration steps, and the mainstream solution lacks functional software, does not extract common algorithm modules, and has a low degree of component reuse. As the intelligent driving system platform gradually diversifies, the function update speed is accelerated, which easily leads to engineers' repeated work and model adaptation difficulties.
[0113] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:
[0114] A memory 601 , a processor 602 , and a computer program stored in the memory 601 and executable on the processor 602 .
[0115] When the processor 602 executes the program, the method for building the autonomous driving perception model functional module provided in the above embodiment is implemented.
[0116] Furthermore, the electronic device further comprises:
[0117] The communication interface 603 is used for communication between the memory 601 and the processor 602 .
[0118] The memory 601 is used to store computer programs that can be executed on the processor 602 .
[0119] The memory 601 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0120] If the memory 601, the processor 602 and the communication interface 603 are implemented independently, the communication interface 603, the memory 601 and the processor 602 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0121] Optionally, in a specific implementation, if the memory 601, the processor 602 and the communication interface 603 are integrated on a chip, the memory 601, the processor 602 and the communication interface 603 can communicate with each other through an internal interface.
[0122] The processor 602 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0123] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for building the autonomous driving perception model functional module as described above is implemented.
[0124] An embodiment of the present application also provides a computer program product, including a computer program, which can run computer instructions. When the computer instructions are executed by a processor, the method for building an autonomous driving perception model functional module provided in the embodiment of the present application is implemented.
[0125] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0126] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0127] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0128] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.
[0129] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one or a combination of multiple of the following technologies known in the art: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0130] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0131] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0132] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for building an autonomous driving perception model functional module, applied to a computing infrastructure platform, characterized in that: The following steps are involved: Use the computing infrastructure platform to perform data annotation and BEV data format adaptation, and generate a functional module library for the vehicle-road-cloud integrated perception system; Based on the functional module library of the vehicle-road-cloud integrated perception system, different functional modules are selected and combined to obtain the required functional modules suitable for the target task, so as to construct a perception algorithm framework; Evaluate at least one functional module based on the constructed perception algorithm framework to obtain a feature visualization qualitative analysis result and an evaluation index quantitative analysis result of the at least one functional module; Based on the user's own personalized data, the qualitative analysis results of the feature visualization, the quantitative analysis results of the evaluation indicators and the data of the actual task, the perception model under the perception algorithm framework is fine-tuned to build the final autonomous driving perception model.
2. The method according to claim 1, characterized in that The step of evaluating at least one functional module based on the constructed perception algorithm framework to obtain a feature visualization qualitative analysis result and an evaluation index quantitative analysis result of the at least one functional module includes: Load pre-trained function module weight parameters; Extracting a deep feature representation of the image sample, and extracting a weight parameter of the last layer of a target functional module in the at least one functional module and an output deep feature; Performing a visual qualitative analysis based on the functional module weight parameters, the deep feature representation, the weight parameters of the last layer and the deep feature to obtain a feature visual qualitative analysis result; A performance evaluation is performed based on the preset evaluation index and the characteristic visualization qualitative analysis result to obtain the evaluation index quantitative analysis result.
3. The method according to claim 2, characterized in that The preset evaluation index includes a semantic perception feature evaluation index, and the calculation formula of the semantic perception feature evaluation index is: Among them, SRFR M1dule It is defined as the mean SRFR (Semantic Guided Relevant Feature Ratio) calculated on all training data, where N represents the number of images in the training set. Represents the SRFR result calculated for the i-th image.
4. The method according to claim 2, characterized in that: The visual qualitative analysis is performed based on the weight parameters of the functional modules, the deep feature representation, the weight parameters of the last layer and the deep features to obtain a feature visual qualitative analysis result, including: Based on the pre-trained function module on the existing public data set, the output tensor of the last convolutional layer of the target function module and the target category score tensor are calculated according to the input image sample; Numerically sorting the output tensors to obtain at least one vector that meets a preset ranking condition; Calculate the gradient average based on the at least one vector to obtain the corresponding gradient weight to obtain the vector corresponding to each channel feature map; The Conv-CAM calculation result is obtained according to the vector corresponding to each channel feature map, so as to perform upsampling interpolation processing on the fused feature map, obtain the output global class activation map result of the same size as the input image, and determine the feature visualization qualitative analysis result.
5. The method according to claim 4, characterized in that The output global class activation map result is: in, Indicates category c j The corresponding convolutional layer weight, A k represents the kth feature map output by the convolutional layer, ReLU is the linear correction function, j is the category subscript, c j It represents a vector of numerical sorting of the target category score tensor of the last convolutional layer of the functional module calculated based on the input image samples. ConvCAM is the calculation result of the class activation map.
6. A device for building an autonomous driving perception model functional module, characterized in that: include: A generation module is used to use the computing basic platform to perform data annotation and BEV data format adaptation, and generate a functional module library for the vehicle-road-cloud integrated perception system; A construction module is used to select and combine different functional modules based on the functional module library of the vehicle-road-cloud integrated perception system to obtain the required functional modules suitable for the target task, so as to construct a perception algorithm framework; An evaluation module, used to evaluate at least one functional module based on the construction perception algorithm framework, and obtain a feature visualization qualitative analysis result and an evaluation index quantitative analysis result of the at least one functional module; The fine-tuning module is used to fine-tune the perception model under the perception algorithm framework based on the user's own personalized data, the feature visualization qualitative analysis results, the evaluation index quantitative analysis results and the data of the actual task, so as to build the final autonomous driving perception model.
7. The device according to claim 6, characterized in that The evaluation module includes: A loading unit, used to load pre-trained function module weight parameters; An extraction unit, used to extract the deep feature representation of the image sample, and extract the weight parameter of the last layer of the target functional module in the at least one functional module and the output deep feature; An analysis unit, configured to perform a visual qualitative analysis based on the functional module weight parameters, the deep feature representation, the weight parameters of the last layer and the deep feature, to obtain a feature visual qualitative analysis result; The evaluation unit is used to perform performance evaluation based on preset evaluation indicators and the characteristic visualization qualitative analysis results to obtain the evaluation indicator quantitative analysis results.
8. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for building an autonomous driving perception model functional module as described in any one of claims 1 to 5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement a method for building an autonomous driving perception model functional module as described in any one of claims 1 to 5.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed, it is used to implement the method for building an autonomous driving perception model functional module as described in any one of claims 1-5.
