Testing method, device, equipment and storage medium for autonomous driving algorithm

Through automated algorithm image construction and cloud simulation platform integration, the problem of manual intervention in autonomous driving algorithm simulation testing is solved, automatic and efficient functional verification is achieved, and cost and time consumption are reduced.

CN115407679BActive Publication Date: 2024-09-20CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211042616.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-29
Publication Date
2024-09-20
Estimated Expiration
2042-08-29

AI Technical Summary

Technical Problem

Simulation testing of autonomous driving algorithms requires a lot of manual intervention, resulting in heavy workload, low efficiency, and high cost. Testers need to manually verify functions, which is time-consuming and not safe enough.

Method used

By obtaining the source code compilation of the autonomous driving algorithm to be tested, building an image, and performing simulation tasks on the cloud simulation platform based on algorithm feature identifiers and scene group mapping relationships, generating evaluation reports, and achieving automated functional verification.

Benefits of technology

It reduces the workload of testers, improves the efficiency of functional verification of autonomous driving algorithms, reduces costs, and enables automatic and efficient simulation testing after the autonomous driving algorithm is updated.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115407679B
    Figure CN115407679B
Patent Text Reader

Abstract

The present application provides a testing method, apparatus, device and storage medium for an autonomous driving algorithm. The method obtains an autonomous driving algorithm to be tested, compiles the source code of the autonomous driving algorithm to be tested, obtains a compilation product, and constructs an image of the algorithm to be tested, pushes the image of the algorithm to be tested to a cloud simulation platform, determines a target scenario group corresponding to the image of the algorithm to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier and feature identifier-scenario group mapping relationship of the autonomous driving algorithm to be tested, executes a simulation task based on the image of the algorithm to be tested and the target scenario group through the cloud simulation platform, obtains a simulation result, tests the autonomous driving algorithm to be tested, connects the algorithm compilation process, the image construction process and the push process, and connects the above process with the cloud simulation platform, thereby reducing the workload of testers or developers in verifying the functions of autonomous driving algorithms, improving work efficiency and reducing costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of testing technology, and specifically to a testing method, device, equipment and storage medium for an autonomous driving algorithm. Background Art

[0002] Computer simulation of autonomous driving systems is a key basic technology for testing and experimenting with autonomous vehicles, and is also a basic tool for the industry to define technical standards for the development and access of autonomous vehicles in the future.

[0003] Autonomous driving simulation testing refers to the use of computer simulation technology to establish mathematical models of real static environments and dynamic traffic scenarios, allowing autonomous driving vehicles and algorithms to conduct driving tests in virtual traffic scenarios. During the research and development process, autonomous driving algorithms will be continuously iterated and upgraded. Computer simulation of autonomous driving systems can be used to test and verify autonomous driving algorithms, but at the same time, testing them will become a labor-intensive and time-consuming task. In related technologies, simulation testing of autonomous driving algorithms often requires testers to manually test autonomous driving algorithms based on cloud simulation platforms, which requires a large amount of manual work, low efficiency, and high cost. Summary of the invention

[0004] In view of the shortcomings of the prior art described above, an embodiment of the present invention provides a testing method, device, equipment and storage medium for an autonomous driving algorithm to solve the above technical problems.

[0005] An embodiment of the present invention provides a method for testing an autonomous driving algorithm, the method comprising:

[0006] Get the autonomous driving algorithm to be tested;

[0007] Compile the source code of the autonomous driving algorithm to be tested to obtain a compilation product, and build an image of the algorithm to be tested;

[0008] Pushing the algorithm image to be tested to the cloud simulation platform;

[0009] Determine a target scene group corresponding to the algorithm image to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier and the feature identifier-scene group mapping relationship of the autonomous driving algorithm to be tested;

[0010] The cloud simulation platform performs simulation tasks based on the algorithm image to be tested and the target scenario group to obtain simulation results to test the autonomous driving algorithm to be tested.

[0011] In one embodiment of the present invention, before pushing the algorithm image to be tested to the cloud simulation platform, the method includes:

[0012] Obtaining an algorithm image upload instruction, wherein the algorithm image upload instruction includes platform image repository access account information and platform image repository access pass information;

[0013] Log in to the platform image warehouse of the cloud simulation platform through the platform image warehouse access account information and the platform image warehouse access pass information;

[0014] If the login is successful, the algorithm image to be tested is pushed to the platform image warehouse of the cloud simulation platform.

[0015] In one embodiment of the present invention, before logging into the platform image warehouse of the cloud simulation platform through the platform image warehouse access account information and the platform image warehouse access pass information, the method includes:

[0016] Creating a platform algorithm image and a platform image identifier of the platform algorithm image in the platform image repository;

[0017] The algorithm image upload instruction is generated based on the platform image identifier, the platform image repository access account information and the platform image repository access pass information.

[0018] In one embodiment of the present invention, if the login is successful, before pushing the algorithm image to be tested to the platform image warehouse of the cloud simulation platform, the method includes:

[0019] Associating the algorithm image to be tested with the platform image identifier;

[0020] If the login is successful, the associated algorithm image to be tested is pushed to the platform image warehouse of the cloud simulation platform to update the platform algorithm image through the algorithm image to be tested.

[0021] In one embodiment of the present invention, after constructing the image of the algorithm to be tested, the method further includes:

[0022] The algorithm image to be tested is stored in a temporary image warehouse, so that the algorithm image to be tested can be pulled from the temporary image warehouse and pushed to the cloud simulation platform.

[0023] In one embodiment of the present invention, determining the target scene group corresponding to the algorithm image to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier and the feature identifier-scene group mapping relationship of the autonomous driving algorithm to be tested includes:

[0024] Obtain multiple test scenarios for the autonomous driving algorithms to be tested;

[0025] Configuring an algorithm feature identifier of the autonomous driving algorithm to be tested based on the test scenario of each autonomous driving algorithm to be tested;

[0026] Creating the test scenarios of the autonomous driving algorithms to be tested as scenario groups in the cloud simulation platform;

[0027] Establishing the feature identifier-scenario group mapping relationship based on the correspondence between the algorithm feature identifier and the scenario group corresponding to the test scenario of the to-be-tested autonomous driving algorithm;

[0028] At least one of the scene groups is determined as the target scene group based on the algorithm feature identifier of the autonomous driving algorithm to be tested and the feature identifier-scene group mapping relationship.

[0029] In one embodiment of the present invention, after the simulation result is obtained by executing the simulation task based on the algorithm image to be tested and the target scenario group through the cloud simulation platform, the method further includes:

[0030] An evaluation report is generated according to the simulation results, and the evaluation report is displayed.

[0031] An embodiment of the present invention further provides a testing device for an autonomous driving algorithm, the device comprising:

[0032] The acquisition module is used to obtain the autonomous driving algorithm to be tested;

[0033] A compilation pipeline, used to compile the source code of the autonomous driving algorithm to be tested to obtain a compilation product;

[0034] An algorithm image pipeline, used to construct an algorithm image to be tested based on the compiled product;

[0035] The image push pipeline is used to push the image of the algorithm to be tested to the cloud simulation platform;

[0036] A cloud simulation platform is used to perform simulation tasks based on the algorithm image to be tested and the target scenario group to obtain simulation results so as to test the autonomous driving algorithm to be tested, wherein the method for determining the target scenario group includes determining the target scenario group corresponding to the algorithm image to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier of the autonomous driving algorithm to be tested and the feature identifier-scenario group mapping relationship.

[0037] An embodiment of the present invention provides an electronic device, the electronic device comprising:

[0038] one or more processors;

[0039] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the electronic device implements the testing method of the autonomous driving algorithm described in any of the above embodiments.

[0040] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the testing method of the autonomous driving algorithm described in any one of the above embodiments.

[0041] Beneficial effects of the embodiments of the present invention: The method, device, equipment and storage medium for testing the autonomous driving algorithm in the embodiments of the present invention, the method obtains the autonomous driving algorithm to be tested, compiles the source code of the autonomous driving algorithm to be tested, obtains the compilation product, and constructs the image of the algorithm to be tested, pushes the image of the algorithm to be tested to the cloud simulation platform, determines the target scene group corresponding to the image of the algorithm to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier and the feature identifier-scene group mapping relationship of the autonomous driving algorithm to be tested, performs the simulation task based on the image of the algorithm to be tested and the target scene group through the cloud simulation platform, obtains the simulation result, tests the autonomous driving algorithm to be tested, connects the algorithm compilation process, the image construction process and the push process, and connects the above process with the cloud simulation platform, so that the function verification of the autonomous driving algorithm can be realized through the test method provided by this embodiment. Thereby, the function of automatically and efficiently performing simulation on the cloud simulation platform after the autonomous driving algorithm is updated is realized, which reduces the workload of the tester or developer in verifying the function of the autonomous driving algorithm, improves the work efficiency and reduces the cost.

[0042] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0044] Figure 1 is a flowchart of a method for testing an autonomous driving algorithm according to an exemplary embodiment of the present application;

[0045] Figure 2 is a flowchart of a push process of an algorithm image to be tested shown in an exemplary embodiment of the present application;

[0046] Figure 3 is a block diagram of a testing device for an autonomous driving algorithm shown in an exemplary embodiment of the present application;

[0047] Figure 4is a block diagram of a testing device for an autonomous driving algorithm shown in another exemplary embodiment of the present application;

[0048] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0049] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0050] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0051] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0052] Computer simulation of autonomous driving systems is a key basic technology for testing and experimenting with autonomous vehicles, and is also a basic tool for the industry to define technical standards for the development and access of autonomous vehicles in the future.

[0053] Autonomous driving simulation testing refers to the use of computer simulation technology to establish mathematical models of real static environments and dynamic traffic scenarios, allowing autonomous driving vehicles and algorithms to conduct driving tests in virtual traffic scenarios. During the research and development process, autonomous driving algorithms will be continuously iterated and upgraded. Computer simulation of autonomous driving systems can be used to test and verify autonomous driving algorithms, but at the same time, testing them will become a labor-intensive and time-consuming task. In related technologies, simulation testing of autonomous driving algorithms often requires testers to manually test autonomous driving algorithms based on cloud simulation platforms, which requires a large amount of manual work, low efficiency, and high cost.

[0054] The testing of autonomous driving algorithms can be divided into two categories: one is the test of whether the code can run, and the other is the test of whether the algorithm functions normally. In traditional continuous integration, the focus is on whether the main code can run, and whether the function is normal requires testers to manually verify or use some automatic verification tools to verify. However, for autonomous driving algorithms, testers need to manually verify the function on the actual car, which is time-consuming and not safe enough; testers use simulation tools for verification, which takes a lot of time to adapt the autonomous driving algorithm and upload it to the cloud simulation platform to select the corresponding scene for simulation.

[0055] To solve the above problems, the embodiments of the present application respectively propose a testing method for an autonomous driving algorithm, a testing device for an autonomous driving algorithm, an electronic device, a computer-readable storage medium, and a computer program product, which will be described in detail below.

[0056] The test method provided in this embodiment is connected with the cloud simulation platform through the continuous integration tool, so that the functional verification of the autonomous driving algorithm can be triggered by the continuous integration tool. This realizes the function of automatically and efficiently performing simulation on the cloud simulation platform after the autonomous driving algorithm is updated, reducing the workload of testers or developers in verifying the functions of the autonomous driving algorithm.

[0057] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for testing an autonomous driving algorithm according to an exemplary embodiment of the present application. Figure 1 As shown, in an exemplary embodiment, the testing method of the autonomous driving algorithm includes at least steps S101 to S104, which are described in detail as follows:

[0058] Step S101, obtaining the autonomous driving algorithm to be tested.

[0059] In one embodiment, the autonomous driving algorithm to be tested is stored in the code warehouse, and when the code warehouse is monitored to have a newly added autonomous driving algorithm to be tested, the step of obtaining the autonomous driving algorithm to be tested is triggered. In this way, once the autonomous driving algorithm to be tested is updated or added, it can be tested without manual operation, which is convenient and fast. Wherein, whether there is a newly added autonomous driving algorithm to be tested in the code warehouse can be determined by comparing the autonomous driving algorithms to be tested at the first moment and the second moment in the code warehouse, or by monitoring the write operation log of the code warehouse. Once the log is updated, the updated or newly added autonomous driving algorithm to be tested is determined based on the log and tested.

[0060] The number of the autonomous driving algorithms to be tested may be one or more, which is not limited here. The autonomous driving algorithm to be tested may include one or more modules, such as a prediction module, a decision module, a regulation and control module, etc. The creation method of the autonomous driving algorithm to be tested may be implemented in a manner known to those skilled in the art, which is not limited here.

[0061] The autonomous driving algorithm to be tested may be continuously iterated and upgraded. In this case, the method provided in this embodiment can be used to test each upgraded autonomous driving algorithm to be tested.

[0062] In one embodiment, the step of obtaining the autonomous driving algorithm to be tested can be performed by automatically using the modified autonomous driving algorithm to be tested as the obtained autonomous driving algorithm to be tested after the code repository storing the autonomous driving algorithm to be tested is modified. That is, based on the update of the autonomous driving algorithm to be tested in the code repository, the step of obtaining the autonomous driving algorithm to be tested is triggered. In this way, the newly added or revised autonomous driving algorithm to be tested can be tested comprehensively, timely, and automatically, saving the process of human screening and execution.

[0063] Step S102, compile the source code of the autonomous driving algorithm to be tested, obtain a compilation product, and construct an image of the algorithm to be tested.

[0064] In one embodiment, an exemplary implementation of step S102 can be to build a pipeline (compilation pipeline) for compiling and testing the source code of the autonomous driving algorithm. The compilation pipeline is built through a continuous integration tool to compile the source code of the autonomous driving algorithm to be tested to obtain the corresponding product. Before the pipeline is executed, the compilation environment needs to be built.

[0065] In one embodiment, after constructing the image of the algorithm to be tested, the method further includes:

[0066] The image of the algorithm to be tested is stored in a temporary image warehouse so that the image of the algorithm to be tested can be pulled from the temporary image warehouse and pushed to the cloud simulation platform.

[0067] In one embodiment, an exemplary implementation of step S102 includes:

[0068] Pull Ubuntu 18.04 as the base image. This is just an example. The base image may also be other images known to those skilled in the art.

[0069] Install various dependent libraries required to compile the algorithm source code in the image;

[0070] Pull the code from each code repository;

[0071] Execute the compilation script or compilation instruction of each module in the container to generate the corresponding product and unit test module;

[0072] Execute unit test modules and collect execution results;

[0073] Upload the compiled product to the product storage platform.

[0074] The unit test module is used to test the product. When the execution result is the preset result, it means that the product is a qualified product. The compiled product can be uploaded to the product storage platform.

[0075] The above method does not require any consideration on whether to test the autonomous driving algorithm. The source code of the autonomous driving algorithm can be compiled in advance and tested through the unit test module. The compiled product can be uploaded to the product storage platform. When the product is needed, it can be directly obtained from the product storage platform, which is more convenient and faster.

[0076] In one embodiment, the method of building the algorithm image to be tested based on the algorithm product can be realized by a pre-built algorithm image pipeline, and the pipeline is built by a continuous integration tool to build an algorithm image that can be started by a command from the algorithm compilation product according to a specific directory structure. An exemplary step of building the algorithm image construction pipeline is as follows:

[0077] Pull Ubuntu 18.04 as the base image. This is just an example. The base image may also be other images known to those skilled in the art.

[0078] Pull the compiled products in the above embodiment, organize these products according to the steps of manual integration in the real vehicle or simulation environment, and store the algorithm products in a certain directory, format, and configuration file to obtain multiple files.

[0079] Write the algorithm startup script and modify the executable permissions of each file.

[0080] Build the image (algorithm image) through Dockerfile, and upload the image to a temporary image warehouse after the construction is completed.

[0081] The above method can realize automatic conversion of the compiled product into the algorithm image to be tested.

[0082] Step S103, pushing the algorithm image to be tested to the cloud simulation platform.

[0083] Among them, the image of the algorithm to be tested can be pushed to the cloud simulation platform by pre-building a push pipeline, so that the image of the algorithm to be tested can be pushed to the cloud simulation platform continuously and automatically.

[0084] In one embodiment, before pushing the algorithm image to be tested to the cloud simulation platform, the method includes:

[0085] Get the algorithm image upload instruction, which includes the platform image repository access account information and platform image repository access pass information;

[0086] Log in to the platform image warehouse of the cloud simulation platform through the platform image warehouse access account information and platform image warehouse access pass information;

[0087] If the login is successful, the algorithm image to be tested will be pushed to the platform image warehouse of the cloud simulation platform.

[0088] Among them, the platform image repository access account information can be a temporary user name for accessing the cloud simulation platform, and the platform image repository access pass information can be a temporary password corresponding to the temporary user name. By verifying the temporary user name and temporary password, it can be proved whether the user currently executing the step has the authority to access the platform image repository in the cloud simulation platform.

[0089] In one embodiment, before logging into the platform image warehouse of the cloud simulation platform through the platform image warehouse access account information and the platform image warehouse access pass information, the method includes:

[0090] Create a platform algorithm image in the platform image repository, as well as the platform image identifier of the platform algorithm image;

[0091] Generate an algorithm image upload instruction based on the platform image identifier, the platform image repository access account information, and the platform image repository access pass information.

[0092] In one embodiment, if the login is successful, before pushing the algorithm image to be tested to the platform image warehouse of the cloud simulation platform, the method includes:

[0093] Associate the algorithm image to be tested with the platform image identifier;

[0094] If the login is successful, the associated algorithm image to be tested is pushed to the platform image warehouse of the cloud simulation platform to update the platform algorithm image through the algorithm image to be tested.

[0095] In one embodiment, the push of the algorithm image to be tested can be implemented based on a pre-built push image pipeline for pushing the autonomous driving algorithm image to the cloud simulation platform. Since the cloud simulation platform maintains the algorithm image separately, it is necessary to push the algorithm image to be tested according to the requirements of the cloud simulation platform. Figure 2 , Figure 2 FIG. 1 is a flowchart of a push process of an algorithm image to be tested, shown in an exemplary embodiment of the present application. Figure 2As shown, an exemplary method is as follows:

[0096] After the push image pipeline (push image pipeline) starts, a new platform algorithm and platform algorithm image are created through the API (Application Programming Interface) of the cloud simulation platform. The platform algorithm and platform algorithm image here are empty information. After the algorithm image to be tested is pulled later, the platform algorithm image will be updated with the algorithm image to be tested, that is, the algorithm image to be tested will be used as the platform algorithm image.

[0097] Pull the algorithm image (algorithm image to be tested) from the temporary image warehouse. As mentioned in the above embodiment, the algorithm image to be tested is stored in the temporary image warehouse. There is no need to wait for the algorithm image upload instruction. The source code of the autonomous driving algorithm to be tested will be compiled to obtain the compilation product, and the algorithm image to be tested will be built based on the compilation product. The algorithm image to be tested is stored in the temporary image warehouse, waiting to be pulled.

[0098] Call the cloud simulation platform API to obtain the label, temporary user name and password. For example, the instructions required to upload the image (algorithm image upload instructions) are obtained through the API, including the label of the algorithm in the cloud simulation platform (platform image identifier), the temporary user name (platform image warehouse access account information) and password (platform image warehouse access pass information) of the platform image warehouse in the cloud simulation platform. Among them, the temporary user name and password are used to determine whether the current user has access rights to access the platform image warehouse in the cloud simulation platform.

[0099] If the API call fails, the error message is logged.

[0100] If the API call is successful, the built image of the algorithm to be tested is pulled from the temporary image warehouse, and the label of the image is marked as a label in the cloud simulation platform (that is, the image of the algorithm to be tested is associated with the platform image identifier).

[0101] Log in to the image repository of the cloud simulation platform using a temporary username and password. If the login fails, an error message is recorded.

[0102] If the login is successful, the algorithm image to be tested is pushed to the algorithm image warehouse (platform image warehouse) of the cloud simulation platform, and it is determined whether the push is successful. If the push fails, the error information is recorded. If the push is successful, the push image pipeline is terminated.

[0103] Step S104: determining a target scene group corresponding to the algorithm image to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier and the feature identifier-scene group mapping relationship of the autonomous driving algorithm to be tested.

[0104] In one embodiment, determining a target scenario group corresponding to the algorithm image to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier and the feature identifier-scenario group mapping relationship of the autonomous driving algorithm to be tested includes:

[0105] Obtain multiple test scenarios for the autonomous driving algorithms to be tested;

[0106] Configure the algorithm feature identifier of the autonomous driving algorithm to be tested based on the test scenario of each autonomous driving algorithm to be tested;

[0107] In the cloud simulation platform, the test scenarios of each autonomous driving algorithm to be tested are created as scenario groups;

[0108] Establishing a feature identifier-scenario group mapping relationship based on the correspondence between the algorithm feature identifier and the scenario group corresponding to the test scenario of the autonomous driving algorithm to be tested;

[0109] At least one scene group is determined as a target scene group based on the algorithm feature identifier of the autonomous driving algorithm to be tested and the feature identifier-scene group mapping relationship.

[0110] By presetting the simulation scene combinations corresponding to different autonomous driving algorithm modules. Since the autonomous driving algorithm is generally composed of multiple modules, such as prediction module, decision module, regulation and control module, etc., the scenarios required for verification of each module are different, so it is necessary to create corresponding scene groups in the cloud simulation platform and associate related scenes with the scene groups.

[0111] In one embodiment, before step S105, the method further includes:

[0112] Build a cloud simulation platform. The cloud simulation platform needs to include at least the following functions: support uploading the algorithm image to be tested, support running simulation tasks through algorithm images, support uploading simulation scenarios, support management of simulation scenario groups, support output of evaluation reports after the simulation task is completed, and support calling simulation tasks through API interfaces.

[0113] Step S105, executing the simulation task based on the algorithm image to be tested and the target scenario group through the cloud simulation platform to obtain the simulation result to test the autonomous driving algorithm to be tested.

[0114] Take the algorithm feature identifier as the name of the algorithm image to be tested as an example, for example, calling the cloud simulation platform interface through the API. Parsing the name of the algorithm image to be tested can obtain the name of the changed algorithm module, so as to find the corresponding scenario group. The ID of the corresponding scenario group and the ID of the algorithm image are passed in through the API to execute the simulation task.

[0115] In one embodiment, after performing a simulation task based on the algorithm image to be tested and the target scenario group through a cloud simulation platform and obtaining a simulation result, the method further includes:

[0116] Generate an evaluation report based on the simulation results and display the evaluation report.

[0117] Among them, the cloud simulation platform generates an evaluation report after the simulation task is completed. At the same time, the API can be called to obtain the evaluation report and display it in the pipeline.

[0118] The evaluation report may be generated by using related technical means and is not limited here.

[0119] The test method of the autonomous driving algorithm provided in the above embodiment is to build a cloud simulation platform, which supports simulation through algorithm mirroring and exposes a development interface. Set simulation scene combinations corresponding to different autonomous driving algorithm modules. Build a pipeline for compiling and testing the source code of the autonomous driving algorithm to be tested, automatically compile the source code of the autonomous driving algorithm to be tested, obtain the compiled product and perform a legality check on the compiled product. Build a pipeline for building an algorithm mirror using the product compiled from the autonomous driving algorithm code to build the algorithm mirror to be tested based on the compiled product. Build a pipeline for pushing the autonomous driving algorithm mirror to the cloud simulation platform to push the algorithm mirror to be tested to the cloud simulation platform. Call the cloud simulation platform interface through the API, use the corresponding scene to run the autonomous driving algorithm, that is, determine the scene group corresponding to the autonomous driving algorithm to be tested, test the autonomous driving algorithm to be tested with the scene group, run the simulation on the cloud simulation platform, and output an evaluation report. Connect the continuous integration tool (the algorithm compilation process, the image building process, and the push process are connected) with the cloud simulation platform, so that the functional verification of the autonomous driving algorithm can be triggered by the continuous integration tool. This enables the automatic and efficient simulation on the cloud simulation platform after the autonomous driving algorithm is updated, reducing the workload of testers or developers in verifying the functions of the autonomous driving algorithm.

[0120] The test method of the autonomous driving algorithm provided in the above embodiment obtains the autonomous driving algorithm to be tested, compiles the source code of the autonomous driving algorithm to be tested, obtains the compilation product, and constructs the image of the algorithm to be tested, pushes the image of the algorithm to be tested to the cloud simulation platform, determines the target scene group corresponding to the image of the algorithm to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier and the feature identifier-scene group mapping relationship of the autonomous driving algorithm to be tested, performs the simulation task based on the image of the algorithm to be tested and the target scene group through the cloud simulation platform, obtains the simulation result, tests the autonomous driving algorithm to be tested, connects the algorithm compilation process, the image construction process and the push process, and connects the above process with the cloud simulation platform, so that the function verification of the autonomous driving algorithm can be realized through the test method provided in this embodiment. Thereby, the function of automatically and efficiently performing simulation on the cloud simulation platform after the autonomous driving algorithm is updated is realized, which reduces the workload of the tester or developer in verifying the function of the autonomous driving algorithm, improves the work efficiency and reduces the cost.

[0121] Figure 3 FIG. 1 is a block diagram of a testing device for an autonomous driving algorithm according to an exemplary embodiment of the present application. Figure 3 As shown, the exemplary testing device 300 of the autonomous driving algorithm includes:

[0122] An acquisition module 301 is used to acquire an autonomous driving algorithm to be tested;

[0123] A compiling pipeline 302 is used to compile the source code of the autonomous driving algorithm to be tested to obtain a compilation product;

[0124] The algorithm image pipeline 303 is used to construct the algorithm image to be tested based on the compiled product;

[0125] The push image pipeline 304 is used to push the image of the algorithm to be tested to the cloud simulation platform;

[0126] The cloud simulation platform 305 is used to perform simulation tasks based on the algorithm image to be tested and the target scenario group to obtain simulation results so as to test the autonomous driving algorithm to be tested, wherein the method for determining the target scenario group includes determining the target scenario group corresponding to the algorithm image to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier of the autonomous driving algorithm to be tested and the feature identifier-scenario group mapping relationship.

[0127] In one embodiment, see Figure 4 , Figure 4It is a block diagram of a test device for an autonomous driving algorithm shown in another exemplary embodiment of the present application. The test device for the autonomous driving algorithm also includes a code repository, and the autonomous driving algorithm to be tested is obtained from the code repository through an acquisition module. The acquisition module is omitted in the figure. The entire architecture is divided into three parts: code repository, continuous integration tools (compilation pipeline, algorithm image pipeline and push image pipeline), and cloud simulation platform. In the continuous integration tool, functions such as compilation, testing, image building, and image pushing are achieved by building multiple pipelines. The cloud simulation platform provides an API interface for the pipeline to call.

[0128] It should be noted that the test device for the autonomous driving algorithm provided in the above embodiment is different from the test device for the autonomous driving algorithm provided in the above embodiment. Figure 2 The test method of the autonomous driving algorithm provided belongs to the same concept, and the specific way in which each module and unit performs the operation has been described in detail in the method embodiment, which will not be repeated here. In practical applications, the test device of the autonomous driving algorithm provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0129] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the testing method of the autonomous driving algorithm provided in the above-mentioned embodiments.

[0130] Figure 5 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 5 The computer system 1100 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0131] like Figure 5As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the storage part 1108 to the random access memory (RAM) 1103, such as executing the method described in the above embodiment. In the RAM 1103, various programs and data required for system operation are also stored. The CPU 1101, the ROM 1102 and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0132] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed so that a computer program read therefrom is installed into the storage section 1108 as needed.

[0133] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1109, and / or installed from a removable medium 1111. When the computer program is executed by a central processing unit (CPU) 1101, various functions defined in the system of the present application are executed.

[0134] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0135] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0136] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0137] Another aspect of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor of a computer, causes the computer to execute the aforementioned method for testing the autonomous driving algorithm. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0138] Another aspect of the present application further provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the test method of the autonomous driving algorithm provided in each of the above embodiments.

[0139] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A method for testing an autonomous driving algorithm, characterized in that: The method comprises: Get the autonomous driving algorithm to be tested; Compile the source code of the autonomous driving algorithm to be tested to obtain a compilation product, and build an image of the algorithm to be tested; Pushing the algorithm image to be tested to the cloud simulation platform; Determine the target scene group corresponding to the algorithm image to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier and the feature identifier-scene group mapping relationship of the autonomous driving algorithm to be tested, wherein the method of determining the target scene group corresponding to the algorithm image to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier and the feature identifier-scene group mapping relationship includes: obtaining multiple test scenes of the autonomous driving algorithms to be tested; configuring the algorithm feature identifier of the autonomous driving algorithm to be tested based on the test scenes of each of the autonomous driving algorithms to be tested; creating the test scenes of each of the autonomous driving algorithms to be tested as scene groups in the cloud simulation platform; establishing the feature identifier-scene group mapping relationship based on the correspondence between the algorithm feature identifier and the scene groups corresponding to the test scenes of the autonomous driving algorithm to be tested; and determining at least one of the scene groups as the target scene group based on the algorithm feature identifier and the feature identifier-scene group mapping relationship of the autonomous driving algorithm to be tested; The cloud simulation platform performs simulation tasks based on the algorithm image to be tested and the target scenario group to obtain simulation results to test the autonomous driving algorithm to be tested.

2. The method for testing an autonomous driving algorithm according to claim 1, wherein: Before pushing the algorithm image to be tested to the cloud simulation platform, the method includes: Obtaining an algorithm image upload instruction, wherein the algorithm image upload instruction includes platform image repository access account information and platform image repository access pass information; Log in to the platform image warehouse of the cloud simulation platform through the platform image warehouse access account information and the platform image warehouse access pass information; If the login is successful, the algorithm image to be tested is pushed to the platform image warehouse of the cloud simulation platform.

3. The method for testing an autonomous driving algorithm according to claim 2, wherein: Before logging into the platform image warehouse of the cloud simulation platform through the platform image warehouse access account information and the platform image warehouse access pass information, the method includes: Creating a platform algorithm image and a platform image identifier of the platform algorithm image in the platform image repository; The algorithm image upload instruction is generated based on the platform image identifier, the platform image repository access account information and the platform image repository access pass information.

4. The method for testing an autonomous driving algorithm according to claim 3, wherein: If the login is successful, before pushing the algorithm image to be tested to the platform image warehouse of the cloud simulation platform, the method includes: Associating the algorithm image to be tested with the platform image identifier; If the login is successful, the associated algorithm image to be tested is pushed to the platform image warehouse of the cloud simulation platform to update the platform algorithm image through the algorithm image to be tested.

5. The method for testing an autonomous driving algorithm according to any one of claims 1 to 4, characterized in that: After the algorithm image to be tested is constructed, the method further includes: The algorithm image to be tested is stored in a temporary image warehouse, so that the algorithm image to be tested can be pulled from the temporary image warehouse and pushed to the cloud simulation platform.

6. The method for testing an autonomous driving algorithm according to any one of claims 1 to 4, characterized in that: After obtaining the simulation result by executing the simulation task based on the algorithm image to be tested and the target scenario group through the cloud simulation platform, the method further includes: Generate an evaluation report based on the simulation results, and display the evaluation report.

7. A testing device for an autonomous driving algorithm, characterized in that: The device comprises: The acquisition module is used to obtain the autonomous driving algorithm to be tested; A compilation pipeline, used to compile the source code of the autonomous driving algorithm to be tested to obtain a compilation product; An algorithm image pipeline, used to construct an algorithm image to be tested based on the compiled product; The image push pipeline is used to push the image of the algorithm to be tested to the cloud simulation platform; A cloud simulation platform, for performing simulation tasks based on the algorithm image to be tested and a target scenario group to obtain simulation results, so as to test the autonomous driving algorithm to be tested, wherein the method for determining the target scenario group includes determining the target scenario group corresponding to the algorithm image to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier of the autonomous driving algorithm to be tested and the feature identifier-scenario group mapping relationship, wherein determining the target scenario group corresponding to the algorithm image to be tested constructed by the autonomous driving algorithm to be tested based on the algorithm feature identifier of the autonomous driving algorithm to be tested and the feature identifier-scenario group mapping relationship includes: obtaining multiple test scenarios of the autonomous driving algorithms to be tested; configuring the algorithm feature identifier of the autonomous driving algorithm to be tested based on the test scenarios of each of the autonomous driving algorithms to be tested; creating the test scenarios of each of the autonomous driving algorithms to be tested as scenario groups in the cloud simulation platform; establishing the feature identifier-scenario group mapping relationship based on the correspondence between the algorithm feature identifier and the scenario groups corresponding to the test scenarios of the autonomous driving algorithm to be tested; and determining at least one of the scenario groups as the target scenario group based on the algorithm feature identifier of the autonomous driving algorithm to be tested and the feature identifier-scenario group mapping relationship.

8. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the method as claimed in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 6.