Model training method and device and storage medium

By obtaining and adjusting simulation data to make it closer to the real environment, and combining real data and adjusted simulation data for model training, the problem of low accuracy of AI models in the existing technology is solved and higher training accuracy is achieved.

CN118568482APending Publication Date: 2024-08-30HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310504921.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-02-21
Filing Date
2023-05-06
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the existing technology, the accuracy of AI models trained based on a small amount of real data and a large amount of simulation data is low and difficult to effectively improve.

Method used

By obtaining multiple real data and the first simulation data, the second simulation data that is closer to the real environment is adjusted, and the real data and the second simulation data are combined for model training to improve the accuracy of the AI ​​model.

Benefits of technology

By adjusting the simulation data to make it closer to the real environment, the accuracy of the trained AI model is significantly improved and can more accurately adapt to the real environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568482A
    Figure CN118568482A
Patent Text Reader

Abstract

The invention discloses a model training method and device and a storage medium, and belongs to the field of computers. The method comprises the steps that multiple pieces of real data and multiple pieces of first simulation data are obtained, the multiple pieces of real data are data describing a real environment, the real environment is an environment where a first artificial intelligence AI model to be trained is applied, and the multiple pieces of first simulation data are data describing a simulation environment; the simulation environment is used for simulating the real environment; based on the multiple pieces of real data, adjusting the multiple pieces of first simulation data to obtain multiple pieces of second simulation data; and performing model training based on the multiple pieces of real data and the multiple pieces of second simulation data to obtain a first AI model. According to the invention, the precision of training the AI model can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to Chinese patent application No. 202310145883.4 filed on February 21, 2023, with invention name “Simulation-based edge-cloud collaborative multimodal perception method, device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of computers, and in particular to a method, device and storage medium for model training. Background Art

[0003] Artificial intelligence (AI) technology has been widely used in industries such as automobiles, robots, urban construction, and medical care. For example, in the automobile industry, an AI model is trained to achieve autonomous driving, and the car's autonomous driving is achieved through the AI ​​model. Before training, a large amount of training data is obtained, and then the AI ​​model is trained using the large amount of training data.

[0004] In the related art, sensor equipment is used to collect real data from the real environment, and the real data is used as training data. The real environment is the environment in which the AI ​​model is applied. However, it is difficult to collect a large amount of real data using sensor equipment, and usually only a small amount of real data can be collected. Therefore, a simulation environment can be established, and a large amount of simulation data can be generated based on the simulation environment, and a large amount of simulation data can also be used as training data. Then, the AI ​​model is trained based on the small amount of real data and the large amount of simulation data.

[0005] Although an AI model can be trained based on the small amount of real data and the large amount of simulation data, the accuracy of the trained AI model is often low. Summary of the invention

[0006] The present application provides a model training method, device and storage medium to improve the accuracy of training AI models. The technical solution is as follows:

[0007] In the first aspect, the present application provides a method for model training, which is applied to a cloud service platform. In the method, a plurality of real data and a plurality of first simulation data are obtained, wherein the plurality of real data are data describing a real environment, the real environment is the environment in which a first artificial intelligence AI model to be trained is applied, and the plurality of first simulation data are data describing a simulation environment, and the simulation environment is used to simulate a real environment. Based on the plurality of real data, the plurality of first simulation data are adjusted to obtain a plurality of second simulation data. Model training is performed based on the plurality of real data and the plurality of second simulation data to obtain a first AI model.

[0008] Since the multiple first simulation data are adjusted based on the multiple real data to obtain multiple second simulation data, the first AI model is obtained by model training based on the multiple real data and the multiple second simulation data, which can improve the accuracy of the trained first AI model.

[0009] In one possible implementation, the multiple second simulation data are closer to data describing the real environment than the multiple first simulation data, so the multiple second simulation data are used to train the first AI model to improve the accuracy of training the first AI model.

[0010] In another possible implementation, the multiple real data include at least one first data and at least one second data. Based on the at least one second data, the multiple first simulation data are adjusted to obtain multiple second simulation data. Model training is performed based on the at least one first data and the multiple first simulation data to obtain a second AI model. Based on the at least one second data and the multiple second simulation data, the second AI model is adjusted to obtain the first AI model. Since the multiple first simulation data are adjusted based on the at least one second data to obtain multiple second simulation data, and then based on the at least one second data and the multiple second simulation data, the second AI model is adjusted to obtain the first AI model, a first AI model with higher accuracy can be obtained.

[0011] In another possible implementation, a simulation environment is created based on the multiple real data, and multiple first simulation data are generated based on the simulation environment. Since the simulation environment is created based on the multiple real data, the accuracy of the simulation environment can be improved, so that first simulation data with higher accuracy can be generated.

[0012] In another possible implementation, a first adjustment model is obtained based on the at least one second data and the plurality of first simulation data, and the first adjustment model is used to adjust the visual characteristics of the simulation data toward the direction of the visual characteristics of the data describing the real environment. The plurality of second simulation data are obtained by adjusting the visual characteristics of the plurality of first simulation data based on the first adjustment model. Since the first adjustment model is used to adjust the visual characteristics of the simulation data toward the direction of the visual characteristics of the data describing the real environment, the plurality of second simulation data are obtained by adjusting the visual characteristics of the plurality of first simulation data based on the first adjustment model, so that the visual characteristics of the plurality of second simulation data are closer to the visual characteristics of the data describing the real environment.

[0013] In another possible implementation, the visual characteristics of the multiple first simulation data are adjusted based on the second adjustment model to obtain multiple third simulation data. The first type of data included in the first data set is determined based on the first discriminator network, and the first type is used to indicate whether the data is real data or simulated data. The first data set includes the at least one second data and the multiple third simulation data. The network parameters of the second adjustment model are adjusted based on the first type of data included in the first data set to obtain a third adjustment model. When the third adjustment model meets the first condition, the third adjustment model is determined as the first adjustment model. In this way, a first AI model can be trained to adjust the visual characteristics of the simulation data in the direction close to the visual characteristics of the data describing the real environment.

[0014] In another possible implementation, when the third adjustment model does not meet the first condition, based on the second type of the at least one second data and the first type of data included in the first data set, the network parameters of the first discriminator network are adjusted to obtain a second discriminator network, and the second type is used to indicate that the at least one second data is real data. The visual characteristics of the multiple first simulation data are adjusted based on the third adjustment model to obtain multiple fourth simulation data. The first type of data included in the second data set is determined based on the second discriminator network, and the second data set includes at least one second data and the multiple fourth simulation data. The network parameters of the third adjustment model are adjusted based on the first type of data included in the second data set to obtain a fourth adjustment model. When the fourth adjustment model meets the first condition, the fourth adjustment model is determined as the first adjustment model. In this way, the adjustment model can be trained cyclically to obtain a first adjustment model with higher accuracy.

[0015] In another possible implementation, based on the at least one second data and the multiple second simulation data, the network parameters of the second AI model are adjusted to obtain a third AI model, and the features of the multiple second simulation data extracted by the third AI model are closer to the features of the at least one second data than the features of the multiple second simulation data extracted by the second AI model. Based on the third data set and the label information of the data in the third data set, the network parameters of the third AI model are adjusted to obtain the first AI model, and the third data set includes the at least one second data and the multiple second simulation data. Since the features of the multiple second simulation data extracted by the third AI model are closer to the features of the at least one second data than the features of the multiple second simulation data extracted by the second AI model, the first AI model is obtained by adjusting the third AI model, so that the accuracy of the first AI model can be improved.

[0016] In another possible implementation, a feature of at least one second data and a feature of the plurality of second simulation data are extracted based on the second AI model. Based on the feature of the at least one second data and the features of the plurality of second simulation data, a network parameter of the second AI model is adjusted to obtain a third AI model, so that the feature of the plurality of second simulation data extracted by the third AI model is closer to the feature of the at least one second data than the feature of the plurality of second simulation data extracted by the second AI model.

[0017] In another possible implementation, the plurality of second simulation data are labeled to obtain label information of the plurality of second simulation data. Part of the second data in the at least one second data is labeled to obtain label information of the part of the second data. Based on the second AI model, the label information of the part of the second data, and the label information of the plurality of second simulation data, features of the at least one second data and features of the plurality of second simulation data are extracted.

[0018] In another possible implementation, the label information of the data in the third data set includes the label information of the at least one second data and the label information of the plurality of second simulation data. The at least one second data is inferred based on the third AI model to obtain the label information of the at least one second data. The plurality of second simulation data are annotated based on the multimodal model to obtain the label information of the plurality of second simulation data.

[0019] In another possible implementation, the receiving terminal device sends at least one real data and label information of the at least one real data, the terminal device is located in a real environment, the at least one real data is data collected by the terminal device from the real environment, and the label information of the at least one real data is obtained by the terminal device by reasoning the at least one truth data based on the first AI model. Based on the at least one real data and the label information of the at least one real data, the first AI model is adjusted. In this way, after the first AI model is trained, feedback from the terminal device running the first AI model can be continuously received, and the first AI model can be continuously optimized based on the received feedback to continue to improve the accuracy of the first AI model.

[0020] In another possible implementation, the multiple real data include one or more of the following data: image data, radar data, object point cloud data, or object inertial measurement unit IMU data. The multiple real data may be data in a 3D space and may be applied to a real environment in a 3D space.

[0021] In a second aspect, the present application provides a model training device for executing the method in the first aspect or any possible implementation of the first aspect. Specifically, the device includes a unit for executing the method in the first aspect or any possible implementation of the first aspect.

[0022] In a third aspect, the present application provides a computing device cluster, wherein the computing device cluster includes at least one computing device, each of the at least one computing device includes at least one processor and at least one memory, and the at least one memory stores computer-readable instructions; the at least one processor executes the computer-readable instructions so that the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect.

[0023] In a fourth aspect, the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium, and the computer program is loaded by a processor to implement the method of the above-mentioned first aspect or any possible implementation method of the first aspect.

[0024] In a fifth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program is loaded by a processor to execute the method of the first aspect or any possible implementation of the first aspect.

[0025] In a sixth aspect, the present application provides a chip comprising a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call and run the computer instructions from the memory to execute the method of the above-mentioned first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a schematic diagram of a network architecture provided by an embodiment of the present application;

[0027] Figure 2 This is another network architecture diagram provided by an embodiment of the present application;

[0028] Figure 3 It is a flow chart of a model training method provided in an embodiment of the present application;

[0029] Figure 4 is a flow chart of a method for obtaining a first adjustment model provided in an embodiment of the present application;

[0030] Figure 5 is a flow chart of a method for obtaining a third AI model provided in an embodiment of the present application;

[0031] Figure 6is a flowchart of another method for obtaining a third AI model provided in an embodiment of the present application;

[0032] Figure 7 is a flow chart of a method for obtaining a first AI model provided in an embodiment of the present application;

[0033] Figure 8 is a flow chart of another model training method provided in an embodiment of the present application;

[0034] Fig. 9 It is a schematic diagram of the structure of a model training device provided in an embodiment of the present application;

[0035] Fig.10 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;

[0036] Fig.11 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;

[0037] Fig.12 It is a structural diagram of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0039] See also Figure 1 An embodiment of the present application provides a network architecture 100, which includes a cloud service platform 101 and a data acquisition device 102, and the cloud service platform 101 communicates with the data acquisition device 102.

[0040] The network architecture 100 is used to train the AI ​​model so that the AI ​​model has the functions required by the user. For ease of explanation, the environment in which the AI ​​model is applied is referred to as the real environment, and the data in the real environment is referred to as real data.

[0041] For example, suppose that an AI model with the function of identifying objects in an industrial park needs to be trained. The industrial park is a real environment, and the data collected in the industrial park is called real data. Optionally, the real data can be one or more of the following: image data, radar data, object point cloud data, or object inertial measurement unit (IMU) data. Data collection is performed in the industrial park to obtain real data, and the AI ​​model is used to infer the real data of the industrial park to identify objects in the industrial park.

[0042] The data acquisition device 102 is located in the real environment, and is used to collect data in the real environment to obtain multiple real data, where the multiple real data are data describing the real environment, and send the multiple real data to the cloud service platform 101 .

[0043] The cloud service platform 101 is used to receive the multiple real data and obtain multiple first simulation data, where the multiple first simulation data are data describing a simulation environment, and the simulation environment is used to simulate the real environment; based on the multiple real data, the multiple first simulation data are adjusted to obtain multiple second simulation data, and the multiple second simulation data are closer to the data describing the real environment than the multiple first simulation data; model training is performed based on the multiple real data and the multiple second simulation data to obtain a first AI model.

[0044] In some embodiments, the cloud service platform 101 can perform model training based on at least one first data and the multiple first simulation data to obtain a second AI model, where the at least one first data is part of the multiple real data; based on at least one second data, the multiple first simulation data are adjusted to obtain multiple second simulation data, where the at least one second data is data in the multiple real data other than the at least one first data; based on the at least one second data and the multiple second simulation data, the second AI model is adjusted to obtain the first AI model.

[0045] In some embodiments, see Figure 2 The network architecture 100 also includes at least one terminal device 103, and the cloud service platform 101 also communicates with each terminal device 103, and the at least one terminal device 103 is also located in the real environment.

[0046] After the cloud service platform 101 obtains the first AI model through training, the cloud service platform 101 may deploy the first AI model to each terminal device 103 of the at least one terminal device 103 .

[0047] For each terminal device 103 in the at least one terminal device 103, the terminal device 103 is used to collect data in a real environment, obtain at least one real data, and reason about the at least one real data based on the first AI model.

[0048] See also Figure 3 The present application embodiment provides a model training method 300, the method 300 is applied to Figure 1 or Figure 2 The network architecture 100 is shown. The method 300 includes:

[0049] Step 301: Receive multiple real data, each of which is data describing a real environment, and the real environment is the environment in which the first AI model to be trained is applied.

[0050] For a data acquisition device located in a real environment, when it is necessary to train an AI model with a certain function, the data acquisition device collects multiple real data in the real environment, which is the environment in which the AI ​​model is applied, and sends the multiple real data to the cloud service platform.

[0051] In some embodiments, the data acquisition device includes one or more of the following devices: a camera device, a radar device, or an IMU.

[0052] In some embodiments, the multiple real data include one or more of the following data: image data, radar data, object point cloud data, or object IMU data, etc. The image data or the object point cloud data is obtained by a camera device shooting a real environment, the radar data is obtained by a radar device collecting data from the real environment, and the object IMU data is obtained by an IMU collecting data from an object in the real environment.

[0053] In some embodiments, the data acquisition device may also send a training task to the cloud service platform, where the training task is used to request the training of an AI model that implements the function in a real environment.

[0054] In some embodiments, the data acquisition device also labels each real data among the multiple real data to obtain label information of each real data, and also sends the label information of each real data to the cloud service platform.

[0055] Among them, the multiple real data are the data required for training the AI ​​model. For any one of the multiple real data, the real data and the label information of the real data can constitute a training sample, and the training sample is used to train the AI ​​model.

[0056] For any real data, the label information of the real data is used to indicate the target in the real data. For example, assuming that an AI model for object recognition needs to be trained, the label information of the real data can be the object identification information in the real data, and the object identification information can be the object category or object name. For another example, assuming that an AI model for semantic segmentation needs to be trained, the AI ​​model is used to segment objects from the data, and the label information of the real data can be the object boundary in the real data.

[0057] For example, suppose that an AI model with object recognition function needs to be trained. The AI ​​model is used to identify objects in an industrial park, and the data acquisition device is a camera device. The data acquisition device is located in the industrial park and is used to shoot objects in the industrial park to obtain multiple image data and multiple object point cloud data. The object image in each image data is labeled to obtain label information for each image data. For each image data, the label information of the image data may be the object identification information in the image data (such as the object name or object category). Assuming that the image data includes an apple image, the label information of the image data may be an apple. The points belonging to the object in each object point cloud data are labeled to obtain the label information of each object point cloud data. For each object point cloud data, the label information of the object point cloud data may be the object identification information (such as the object name or object category).

[0058] The data acquisition device sends the multiple image data, the multiple object point cloud data, the label information of the multiple image data, the label information of the multiple object point cloud data and a training task to the cloud service platform, and the training task is used to request the training of an AI model with object recognition function in the industrial park.

[0059] Step 302: Acquire a plurality of first simulation data based on at least one first data, wherein the plurality of first simulation data are data describing a simulation environment, the simulation environment is used to simulate a real environment, and the at least one first data is part of the plurality of real data.

[0060] The multiple first simulation data are also the data required for training the AI ​​model. If a large number of data acquisition devices are deployed in a real environment to collect a large amount of real data, it will be difficult and the success rate is relatively high. Therefore, the real environment can be simulated to obtain a simulation environment, and a large amount of first simulation data can be obtained based on the simulation environment.

[0061] In step 302 , a plurality of first simulation data may be acquired through the following process 3021 - 3022 .

[0062] 3021: Create a simulation environment based on the at least one first data.

[0063] In 3021, a simulation environment can be created in the following two ways.

[0064] Method 1: Based on the at least one first data, each simulation component corresponding to the simulation environment and the posture information and position information of each simulation component are obtained, and based on the each simulation component corresponding to the simulation environment and the posture information and position information of each simulation component, a simulation environment is generated.

[0065] In the first method, identification information of the real environment is obtained based on the at least one first data and the environment recognition model, and each simulation component corresponding to the real environment is obtained based on the asset library and the type of the real data. The posture information and position information of each simulation component corresponding to the real environment are obtained based on the object point cloud data included in the at least one first data. Based on the posture information and position information of each simulation component, the simulation components are constructed into a simulation environment.

[0066] The asset library is used to store the correspondence between the identification information of the real environment and the simulation components.

[0067] The environment recognition model is obtained by training a plurality of first training samples, each of which includes identification information of a real environment and at least one real data belonging to the real environment. Alternatively, the environment recognition model is an existing model with the function of recognizing an environment.

[0068] In some embodiments, based on the identification information of the real environment, the corresponding simulation components are obtained from the asset library, and the obtained simulation components are displayed so that the user can select each simulation component corresponding to the real environment. For any simulation component, the object point cloud data corresponding to the simulation component is obtained from the at least one first data, the simulation component and the object point cloud data correspond to the same object, and the object point cloud data includes the position information of multiple points on the object corresponding to the simulation component. The posture information and position information of the simulation component are obtained based on the object point cloud data.

[0069] For example, multiple image data and multiple object point cloud data sent by a data acquisition device are received, and identification information of the real environment is obtained as an industrial park based on the multiple image data, the multiple object point cloud data and the environment recognition model. Simulation components corresponding to the industrial park are obtained from the asset library, and the obtained simulation components include at least one building simulation component, at least one road simulation component, at least one car simulation component and at least one flower bed simulation component.

[0070] The at least one building simulation component, the at least one road simulation component, the at least one vehicle simulation component and / or the at least one flower bed simulation component etc. are displayed to allow the user to select the building simulation component, road simulation component, vehicle simulation component and / or flower bed simulation component etc. corresponding to the industrial park.

[0071] Based on the building point cloud data included in the at least one first data, the posture information and position information of the building simulation component corresponding to the industrial park are obtained. Based on the road point cloud data included in the at least one first data, the posture information and position information of the road simulation component corresponding to the industrial park are obtained. Based on the car point cloud data included in the at least one first data, the posture information and position information of the car simulation component corresponding to the industrial park are obtained. Based on the flower bed point cloud data included in the at least one first data, the posture information and position information of the flower bed simulation component corresponding to the industrial park are obtained.

[0072] Based on the posture information and position information of the building simulation components, the posture information and position information of the road simulation components, the posture information and position information of the vehicle simulation components, and / or the posture information and position information of the flower bed simulation components corresponding to the industrial park, the building simulation components, road simulation components, vehicle simulation components, and / or flower bed simulation components corresponding to the industrial park are constructed into a simulation environment of the industrial park.

[0073] Method 2: obtaining label information of the at least one first data, and generating a simulation environment based on the at least one first data and the label information of the at least one first data.

[0074] In the second mode, if the data acquisition device sends the tag information of the at least one first data, the tag information of the received at least one first data is acquired.

[0075] If the data acquisition device does not send the label information of the at least one first data, the at least one first data is annotated based on the multimodal model to obtain the label information of the at least one first data. That is, for any first data, the first data is input into the multimodal model, and the multimodal model annotates the first data to obtain the label information of the first data, and the label information of the first data output by the multimodal model is obtained.

[0076] In the second mode, based on the at least one first data and the tag information of the at least one first data, a simulation environment is generated by an algorithm for creating a simulation environment. Optionally, the algorithm for creating a simulation environment includes one or more of the following algorithms: a simultaneous localization and mapping (SLAM) algorithm, a visual simultaneous localization and mapping (VSLAM) algorithm, or a radar-based SLAM algorithm.

[0077] 3022: Generate the plurality of first simulation data based on the simulation environment.

[0078] In 3022, based on the simulation environment, the plurality of first simulation data are generated by a simulation data generation tool. Optionally, the simulation data generation tool includes one or more of the following tools: blender (a software name) or nvidiaomniverse replicator (a software name).

[0079] Step 303: Perform model training based on the at least one first data and the multiple first simulation data to obtain a second AI model.

[0080] In step 303, the multiple first simulation data are annotated based on the multimodal model to obtain label information of the multiple first simulation data. The multiple first simulation data and the label information of the multiple first simulation data are combined into multiple second training samples, and each second training sample in the multiple second training samples includes a first simulation data and the label information of the first simulation data. The at least one first data and the label information of the at least one first data are combined into at least one second training sample, and each second training sample in the at least one second training sample includes a first data and the label information of the first data. Model training is performed based on each of the composed second training samples to obtain a second AI model.

[0081] In some embodiments, a blank model is trained based on each of the second training samples to obtain a second AI model. Optionally, the blank model can be a convolutional neural network, a random forest algorithm, a logistic regression algorithm, or a support vector machine (SVM).

[0082] In some embodiments, the training task indicates a certain function, and an AI model with the function is obtained. The environment in which the AI ​​model is applied is different from the above-mentioned real environment. Model training is performed on the obtained AI model based on each second training sample to obtain a second AI model.

[0083] For example, for an existing AI model for identifying objects in an industrial park, the AI ​​model may not be applicable to the new industrial park after the change due to changes in the layout and / or objects of the industrial park. Therefore, training can be performed based on the AI ​​model to obtain an AI model applicable to the new industrial park after the change.

[0084] Since the multiple first simulation data are generated based on the simulation environment, there is a large difference between the multiple first simulation data and the data used to describe the real environment, so the accuracy of the trained second AI model is not high enough. Therefore, the following operations are required to adjust the multiple first simulation data.

[0085] Step 304: Based on at least one second data, the multiple first simulation data are adjusted to obtain multiple second simulation data, wherein the multiple second simulation data are closer to data of a real environment than the multiple first simulation data, and the at least one second data is data in the multiple real data other than the at least one first data.

[0086] In some embodiments, the visual characteristics of the plurality of first simulation data are significantly different from the visual characteristics of the data used to describe the real environment. Optionally, the visual characteristics of the first simulation data include one or more of the following characteristics: texture, illumination or object image shape of the first simulation data.

[0087] In step 304 , the plurality of first simulation data may be adjusted through the following operations 3041 to 3042 to obtain a plurality of second simulation data.

[0088] 3041: Obtain a first adjustment model based on the at least one second data and the plurality of first simulation data, wherein the first adjustment model is used to adjust the visual characteristics of the simulation data toward the direction of the visual characteristics of the data close to the real environment.

[0089] In some embodiments, see Figure 4 , the first adjustment model is obtained through the following process.

[0090] 11: Adjust the visual characteristics of the plurality of first simulation data based on the second adjustment model to obtain a plurality of third simulation data.

[0091] The second adjustment model can be a convolutional neural network, a random forest algorithm, a logistic regression algorithm, or a SVM, etc.

[0092] In operation 11, the plurality of first simulation data are input into a second adjustment model, so that the second adjustment model adjusts the visual characteristics of the plurality of first simulation data to obtain a plurality of third simulation data, and the plurality of third simulation data output by the second adjustment model are obtained.

[0093] In some embodiments, for any first simulation data, the second adjustment model adjusts the visual characteristics of the first simulation data to obtain a third simulation data, that is, the second adjustment model adjusts the visual characteristics of the first simulation data in terms of texture, illumination, or object image shape to obtain the third simulation data.

[0094] 12: Determine a first type of data included in the first data set based on the first discriminator network, the first type of data is used to indicate whether the data is real data or simulated data, and the first data set includes the at least one second data and the plurality of third simulated data.

[0095] In operation 12, the data included in the first data set is input to the first discriminator network. For each data included in the first data set, the first discriminator network is enabled to determine the type of the data. The type of each data included in the first data set output by the first discriminator network is obtained.

[0096] 13: Based on the second type of the at least one second data and the first type of data included in the first data set, adjust the network parameters of the first discriminator network to obtain a second discriminator network, and the second type is used to indicate that the at least one second data is real data.

[0097] In operation 13, since the at least one second data is a part of the plurality of real data, it is directly determined that the second type of the at least one second data indicates that the at least one second data is real data.

[0098] 14: Adjust the network parameters of the second adjustment model based on the first type of data included in the first data set to obtain a third adjustment model.

[0099] In operation 14, based on the first type of data included in the first data set, network parameters of the second adjustment model are adjusted by adversarial training to obtain a third adjustment model.

[0100] 15: Determine whether the third adjustment model satisfies the first condition. If the first condition is not satisfied, return to execute operation 16. If the first condition is satisfied, execute operation 17.

[0101] In some embodiments, the first condition may be that the number of times the third adjustment model is trained reaches a specified number of times, that is, the initial value of the number of times the third adjustment model is trained may be initialized first, and the number of times the third adjustment model is trained is increased each time the operation 11 is returned to be executed.

[0102] In some embodiments, the first condition may be that the third adjustment model converges, for example, the loss function value of the third adjustment model remains unchanged or the gradient value of the third adjustment model remains unchanged.

[0103] 16: Use the second discriminator network as the first discriminator network, and use the third adjustment model as the second adjustment model, and return to perform operation 11.

[0104] 17: Determine the third adjustment model as the first adjustment model, and end the operation.

[0105] 3042: Adjust the visual characteristics of the plurality of first simulation data based on the first adjustment model to obtain a plurality of second simulation data.

[0106] The plurality of first simulation data correspond to the plurality of second simulation data in one-to-one correspondence.

[0107] In 3042, the plurality of first simulation data are input into a first adjustment model, so that the first adjustment model adjusts the visual characteristics of the plurality of first simulation data to obtain a plurality of second simulation data, and the plurality of second simulation data output by the first adjustment model are obtained.

[0108] In some embodiments, for any first simulation data, the first adjustment model adjusts the visual characteristics of the first simulation data to obtain a second simulation data, that is, the first adjustment model adjusts the visual characteristics of the first simulation data such as texture, illumination or object image shape to obtain the second simulation data.

[0109] Step 305: Based on the at least one second data and the plurality of second simulation data, adjust the second AI model to obtain the first AI model.

[0110] In step 305 , the second AI model may be adjusted through the following process from 3051 to 3052 to obtain the first AI model.

[0111] 3051: Based on the at least one second data and the multiple second simulation data, adjust the network parameters of the second AI model to obtain a third AI model, and the features of the multiple second simulation data extracted by the third AI model are closer to the features of the at least one second data than the features of the multiple second simulation data extracted by the second AI model.

[0112] In some embodiments, see Figure 5 , the network parameters of the second AI model are adjusted through the following process to obtain the third AI model.

[0113] 21: Extracting features of at least one second data and features of the plurality of second simulation data based on the second AI model.

[0114] In operation 21, the at least one second data and the multiple second simulation data are input into the second AI model, so that the second AI model extracts the features of the at least one second data and the multiple second simulation data, and obtains the features of the at least one second data and the multiple second simulation data output by the second AI model.

[0115] 22: Based on the characteristics of the at least one second data and the characteristics of the plurality of second simulation data, adjust the network parameters of the second AI model to obtain a third AI model.

[0116] In operation 22, the network parameters of the second AI model may be adjusted in the following two ways to obtain the third AI model.

[0117] In a first manner, a distance between a feature of the at least one second data and features of the plurality of second simulation data is calculated, and a network parameter of the second AI model is adjusted based on the calculated distance to obtain a third AI model.

[0118] In the process of adjusting the network parameters of the second AI model, the network parameters of the second AI model are adjusted in a direction of reducing the distance between the features of the at least one second data and the features of the plurality of second simulation data to obtain a third AI model.

[0119] The second method is to determine the first type of data in the second data set through a second discriminator network based on the characteristics of the at least one second data and the characteristics of the multiple second simulation data, and the second data set includes the at least one second data and the multiple second simulation data; based on the second type of the at least one second data and the first type of data in the second data set, adjust the network parameters of the second AI model by using adversarial training to obtain a third AI model.

[0120] In the second method, the features of the at least one second data and the features of the plurality of second simulation data are input into the second discriminator network. The second discriminator network determines the first type of each data in the second data set based on the features of the at least one second data and the features of the plurality of second simulation data, and obtains the first type of each data in the second data set output by the second discriminator network. Based on the second type of the at least one second data and the first type of the data in the second data set, the network parameters of the second AI model are adjusted by adversarial training to obtain a third AI model.

[0121] 23: Determine whether the third AI model satisfies the second condition. If the second condition is not satisfied, perform operation 24. If the second condition is satisfied, end.

[0122] In some embodiments, the second condition may be that the number of times the third AI model is trained reaches a specified number of times, that is, the initial value of the number of times the third AI model is trained may be initialized first, and the number of times the third AI model is trained may be increased each time the operation 21 is returned to be executed.

[0123] In some embodiments, the second condition may be that the third AI model converges. For example, the loss function value of the third AI model remains unchanged or the gradient value of the third adjustment model remains unchanged.

[0124] 24: Use the third AI model as the second AI model and return to execute operation 21.

[0125] In some embodiments, see Figure 6 , the network parameters of the second AI model are adjusted through the following process to obtain the third AI model.

[0126] 31: Label part of the second data in the at least one second data to obtain label information of the part of the second data.

[0127] In operation 31, the at least one second data is annotated based on the multimodal model to obtain label information of the at least one second data. That is, for any second data, the second data is input into the multimodal model, so that the multimodal model annotates the second data to obtain label information of the first data, and the label information of the second data output by the multimodal model is obtained.

[0128] 32: Extract features of the at least one second data and features of the multiple second simulation data based on the second AI model, the label information of the portion of the second data, and the label information of the multiple second simulation data.

[0129] In operation 32, the label information of the portion of the second data, the label information of the multiple second simulation data, the at least one second data and the multiple second simulation data are input into the second AI model, so that the second AI model extracts the features of the at least one second data and the features of the multiple second simulation data based on the label information of the portion of the second data and the label information of the multiple second simulation data, and obtains the features of the at least one second data and the features of the multiple second simulation data output by the second AI model.

[0130] 33: Based on the characteristics of the at least one second data and the characteristics of the plurality of second simulation data, adjust the network parameters of the second AI model to obtain a third AI model.

[0131] In operation 33, the network parameters of the second AI model may be adjusted by the first method or the second method to obtain the third AI model, which will not be described in detail herein.

[0132] 34: Determine whether the third AI model satisfies the second condition. If the second condition is not satisfied, perform operation 35. If the second condition is satisfied, end.

[0133] 35: Use the third AI model as the second AI model and return to execute operation 31.

[0134] 3052: Based on the second data set and label information of the data in the second data set, adjust the network parameters of the third AI model to obtain the first AI model, the second data set including the at least one second data and the multiple second simulation data.

[0135] In some embodiments, see Figure 7 , the network parameters of the third AI model can be adjusted through the following process to obtain the first AI model.

[0136] 41: Obtain label information of the at least one second data based on the third AI model.

[0137] In operation 41, the at least one second data is input into the third AI model, so that the third AI model infers the at least one second data to obtain label information of the at least one second data, and obtains the label information of the at least one second data output by the third AI model.

[0138] 42: Based on the second data set and the label information of the data in the second data set, adjust the network parameters of the third AI model to obtain the first AI model.

[0139] The label information of the data in the second data set includes the label information of the at least one second data output by the third AI model and the label information of the plurality of second simulation data.

[0140] For each of the plurality of second simulation data, the label information of the second simulation data is the same as the label information of the first simulation data corresponding to the second simulation data. Alternatively, the plurality of second simulation data are annotated based on the multimodal model to obtain the label information of the plurality of second simulation data.

[0141] In operation 42, for any data in the second data set (which may be the second data or the second simulation data), the data and the label information corresponding to the data are combined into a third training sample, and the above process is repeated to obtain multiple third training samples. The third AI model is trained using the multiple third training samples to obtain the first AI model.

[0142] 43: Determine whether the first AI model satisfies the third condition. If the third condition is not satisfied, perform operation 44. If the third condition is satisfied, end.

[0143] In some embodiments, the third condition may be that the number of times the first AI model is trained reaches a specified number of times, that is, the initial value of the number of times the first AI model is trained may be initialized, and the number of times the first AI model is trained may be increased each time the operation 41 is returned to be executed.

[0144] In some embodiments, the third condition may be that the first AI model converges. For example, the loss function value of the first AI model remains unchanged or the gradient value of the first adjustment model remains unchanged.

[0145] 44: Use the first AI model as the third AI model and return to execute operation 41.

[0146] In some embodiments, at least one simulation platform may be generated in a simulation environment, the first AI model may be deployed to the at least one simulation platform, the first AI model may be tested using the at least one simulation platform, and then the running effect and performance of the first AI model may be observed.

[0147] For example, assuming that the first AI model needs to be deployed on a vehicle or a robot, the simulation platform can be used to observe whether the autonomous driving vehicle or robot has an accident such as a collision. Determine whether to continue training the first AI model based on the test result. If training is continued, return to execute the above step 304.

[0148] In some embodiments, the first AI model may be deployed on at least one terminal device in a real environment. For each of the at least one terminal device, the terminal device collects data in the real environment to obtain at least one real data, and infers the at least one real data to obtain label information of the at least one real data.

[0149] In some embodiments, the terminal device adjusts the first AI model deployed on the terminal device based on the at least one real data and the label information of the at least one real data.

[0150] In some embodiments, the terminal device sends the at least one real data and label information of the at least one real data to the cloud service platform.

[0151] In this way, the receiving terminal device sends the at least one real data and the label information of the at least one real data. Based on the at least one real data and the label information of the at least one real data, the first AI model is adjusted. In this way, after the first AI model is deployed to the terminal device, the first AI model can be continuously optimized to make the accuracy of the first AI model higher and higher.

[0152] In some embodiments, the operation of adjusting the first AI model may be: combining the at least one real data and the label information of the at least one real data into at least one fourth training sample, each of the at least one fourth training sample including one real data and the label information of the one real data. The first AI model is trained based on the at least one fourth training sample.

[0153] In an embodiment of the present application, multiple real data sent by a data acquisition device are received, and the multiple real data include at least one first data and at least one second data. A simulation environment is created based on the at least one first data. Since the simulation environment is created based on the real data, the accuracy of creating the simulation environment can be improved. In addition, the multiple real data include image data, radar data, object point cloud data or object IMU data. The multiple real data can be data in 3D space and can be applied to a real environment in 3D space.

[0154] Acquire multiple first simulation data based on the simulation environment. Perform model training based on the at least one first data and the multiple first simulation data to obtain a second AI model. Adjust the multiple first simulation data based on the at least one second data to obtain multiple second simulation data, so that the multiple second simulation data are closer to the data describing the real environment. Based on the at least one second data and the multiple second simulation data, adjust the second AI model to obtain the first AI model, thereby obtaining a first AI model with higher accuracy and improving the accuracy of the training model.

[0155] The first AI model is then deployed to at least one terminal device in a real environment. The terminal device collects data in the real environment to obtain at least one real data, and infers the at least one real data to obtain label information of the at least one real data. The receiving terminal device sends the at least one real data and the label information of the at least one real data. Based on the at least one real data and the label information of the at least one real data, the first AI model is adjusted, so that after the first AI model is deployed, the first AI model can be continuously optimized.

[0156] See also Figure 8 The present application embodiment provides a model training method 800, which is applied to Figure 1 or Figure 2 The network architecture 100 is shown. The method 800 includes:

[0157] Step 801: Receive multiple real data, each of which is data describing a real environment, and the real environment is the environment in which the first AI model to be trained is applied.

[0158] In step 801, the detailed implementation process of receiving the multiple real data is shown in Figure 3 The relevant contents of step 301 of the method 300 are not described in detail here.

[0159] Step 802: Acquire a plurality of first simulation data based on the plurality of real data, where the plurality of first simulation data is data describing a simulation environment, and the simulation environment is used to simulate a real environment.

[0160] In step 802, a detailed implementation process of obtaining a plurality of first simulation data based on the plurality of real data is shown in FIG. Figure 3 The step 302 of the method 300 described above, regarding “obtaining the contents of a plurality of first simulation data based on at least one first data”, will not be described in detail here.

[0161] Step 803: Based on the multiple real data, the multiple first simulation data are adjusted to obtain multiple second simulation data, and the multiple second simulation data are closer to the data of the real environment than the multiple first simulation data.

[0162] In step 803, based on the multiple real data, the multiple first simulation data are adjusted to obtain multiple second simulation data. For a detailed implementation process, see Figure 3 The content of "adjusting the plurality of first simulation data to obtain a plurality of second simulation data based on at least one second data" in step 304 of the method 300 is not described in detail here.

[0163] Step 804: Perform model training based on the multiple real data and the multiple second simulation data to obtain a first AI model.

[0164] In step 803, the plurality of second simulation data are annotated based on the multimodal model to obtain label information of the plurality of second simulation data. The plurality of second simulation data and the label information of the plurality of second simulation data are combined into a plurality of training samples, each of the plurality of training samples including a second simulation data and the label information of the second simulation data.

[0165] The multiple real data are annotated based on the multimodal model to obtain label information of the multiple real data. The multiple real data and the label information of the multiple real data are combined into multiple training samples, each of the multiple training samples includes one real data and the label information of the one real data.

[0166] Model training is performed based on each of the composed training samples to obtain the first AI model.

[0167] In some embodiments, a blank model is trained based on each of the composed training samples to obtain a first AI model.

[0168] In some embodiments, the received training task indicates a certain function, and an AI model with the function is obtained. The environment in which the AI ​​model is applied is different from the above-mentioned real environment. Model training is performed on the obtained AI model based on each composed training sample to obtain a first AI model.

[0169] In an embodiment of the present application, multiple real data sent by a data acquisition device are received, and a simulation environment is created based on the multiple real data. Since the simulation environment is created based on real data, the accuracy of creating the simulation environment can be improved. Multiple first simulation data are obtained based on the simulation environment. Multiple first simulation data are adjusted based on the multiple real data to obtain multiple second simulation data, so that the multiple second simulation data are closer to the data describing the real environment. Model training is performed based on the multiple real data and the multiple second simulation data to obtain a first AI model, thereby obtaining a first AI model with higher accuracy and improving the accuracy of the training model.

[0170] See also Fig. 9 The embodiment of the present application provides a model training device 900, which is applied to a cloud service platform, which can be Figure 1 or Figure 2 The cloud service platform 101 in the network architecture 100 shown, or Figure 3 The cloud service platform in the method 300 shown, or Figure 8 The cloud service platform in the method 800 is shown. The device 900 includes:

[0171] An acquisition unit 901 is used to acquire a plurality of real data and a plurality of first simulation data, wherein the plurality of real data are data describing a real environment, the real environment is an environment in which a first artificial intelligence AI model to be trained is applied, and the plurality of first simulation data are data describing a simulation environment, the simulation environment is used to simulate a real environment;

[0172] A processing unit 902 is used to adjust the plurality of first simulation data based on the plurality of real data to obtain a plurality of second simulation data;

[0173] The processing unit 902 is also used to perform model training based on the multiple real data and the multiple second simulation data to obtain a first AI model.

[0174] Optionally, the plurality of second simulation data are closer to data describing a real environment than the plurality of first simulation data.

[0175] Optionally, the detailed implementation process of the acquisition unit 901 acquiring multiple real data and multiple first simulation data can be found in Figure 3 Steps 301 and 302 of the method 300 are shown, and Figure 8 The relevant contents in steps 801 and 802 of the method 800 are not described in detail here.

[0176] Optionally, the processing unit 902 adjusts the plurality of first simulation data to obtain the plurality of second simulation data. Figure 3 Step 304 of method 300 is shown, and Figure 8 The relevant contents in step 803 of the method 800 are not described in detail here.

[0177] Optionally, the processing unit 902 performs model training based on the multiple real data and the multiple second simulation data to obtain a first AI model. Figure 3 Step 305 of method 300 is shown, and Figure 8 The relevant contents in step 804 of the method 800 are not described in detail here.

[0178] Optionally, the multiple real data include at least one first data and at least one second data, and the processing unit 902 is configured to:

[0179] Based on the at least one second data, adjusting the plurality of first simulation data to obtain a plurality of second simulation data;

[0180] Performing model training based on the at least one first data and the plurality of first simulation data to obtain a second AI model;

[0181] Based on the at least one second data and the plurality of second simulation data, the second AI model is adjusted to obtain the first AI model.

[0182] Optionally, the processing unit 902 adjusts the plurality of first simulation data based on the at least one second data to obtain the plurality of second simulation data. Figure 3 The relevant contents in step 304 of the method 300 are not described in detail here.

[0183] Optionally, the processing unit 902 performs model training based on the at least one first data and the plurality of first simulation data to obtain a second AI model. Figure 3 The relevant contents in step 303 of the method 300 are not described in detail here.

[0184] Optionally, the processing unit 902 adjusts the second AI model to obtain the first AI model based on the at least one second data and the plurality of second simulation data. Figure 3 The relevant contents in step 305 of the method 300 are not described in detail here.

[0185] Optionally, the acquiring unit 901 is configured to:

[0186] Creating the simulation environment based on the at least one first data;

[0187] A plurality of first simulation data are generated based on the simulation environment.

[0188] Optionally, the detailed implementation process of the acquisition unit 901 creating the simulation environment based on the at least one first data is shown in Figure 3 The relevant contents in step 3021 of the method 300 are not described in detail here.

[0189] Optionally, the detailed implementation process of the acquisition unit 901 generating a plurality of first simulation data based on the simulation environment is shown in Figure 3 The relevant contents in step 3022 of the method 300 are not described in detail here.

[0190] Optionally, the processing unit 902 is configured to:

[0191] Acquire a first adjustment model based on the at least one second data and the plurality of first simulation data, the first adjustment model being used to adjust the visual characteristics of the simulation data toward the direction of the visual characteristics of the data describing the real environment;

[0192] The visual characteristics of the plurality of first simulation data are adjusted based on the first adjustment model to obtain a plurality of second simulation data.

[0193] Optionally, the processing unit 902 obtains the first adjustment model based on the at least one second data and the plurality of first simulation data. Figure 3 The relevant contents in step 3041 of the method 300 are not described in detail here.

[0194] Optionally, the processing unit 902 adjusts the visual characteristics of the plurality of first simulation data based on the first adjustment model to obtain the plurality of second simulation data. Figure 3 The relevant contents in step 3042 of the method 300 are not described in detail here.

[0195] Optionally, the processing unit 902 is configured to:

[0196] Adjusting the visual characteristics of the plurality of first simulation data based on the second adjustment model to obtain a plurality of third simulation data;

[0197] Determine, based on the first discriminator network, a first type of data included in the first data set, the first type being used to indicate whether the data is real data or simulated data, the first data set including the at least one second data and the plurality of third simulated data;

[0198] adjusting a network parameter of a second adjustment model based on a first type of data included in the first data set to obtain a third adjustment model;

[0199] When the third adjustment model satisfies the first condition, the third adjustment model is determined as the first adjustment model.

[0200] Optionally, the processing unit 902 is further configured to:

[0201] When the third adjustment model does not satisfy the first condition, based on the second type of the at least one second data and the first type of data included in the first data set, adjusting the network parameters of the first discriminator network to obtain a second discriminator network, wherein the second type is used to indicate that the at least one second data is real data;

[0202] Adjusting the visual characteristics of the plurality of first simulation data based on the third adjustment model to obtain a plurality of fourth simulation data;

[0203] determining a first type of data included in a second data set based on a second discriminator network, the second data set including the at least one second data and the plurality of fourth simulation data;

[0204] adjusting a network parameter of a third adjustment model based on a first type of data included in the second data set to obtain a fourth adjustment model;

[0205] When the fourth adjustment model satisfies the first condition, the fourth adjustment model is determined as the first adjustment model.

[0206] Optionally, the processing unit 902 is configured to:

[0207] Based on the at least one second data and the plurality of second simulation data, adjusting a network parameter of the second AI model to obtain a third AI model, wherein features of the plurality of second simulation data extracted by the third AI model are closer to features of the at least one second data than features of the plurality of second simulation data extracted by the second AI model;

[0208] Based on the third data set and label information of the data in the third data set, the network parameters of the third AI model are adjusted to obtain the first AI model, and the third data set includes the at least one second data and the multiple second simulation data.

[0209] Optionally, the processing unit 902 adjusts the network parameters of the second AI model to obtain the third AI model based on the at least one second data and the plurality of second simulation data. Figure 3 The relevant contents in step 3051 of the method 300 are not described in detail here.

[0210] Optionally, the processing unit 902 adjusts the network parameters of the third AI model to obtain the first AI model based on the third data set and the label information of the data in the third data set. Figure 3 The relevant contents in step 3052 of the method 300 are not described in detail here.

[0211] Optionally, the processing unit 902 is configured to:

[0212] Extracting features of the at least one second data and features of the plurality of second simulation data based on the second AI model;

[0213] Based on the characteristics of the at least one second data and the characteristics of the plurality of second simulation data, the network parameters of the second AI model are adjusted to obtain a third AI model.

[0214] Optionally, the processing unit 902 is configured to:

[0215] Annotating the plurality of second simulation data to obtain label information of the plurality of second simulation data;

[0216] Marking part of the second data in the at least one second data to obtain label information of the part of the second data;

[0217] Based on the second AI model, the label information of the portion of the second data, and the label information of the plurality of second simulation data, features of the at least one second data and features of the plurality of second simulation data are extracted.

[0218] Optionally, the label information of the data in the third data set includes the label information of the at least one second data and the label information of the plurality of second simulation data;

[0219] The processing unit 902 is further configured to:

[0220] Reasoning the at least one second data based on the third AI model to obtain label information of the at least one second data;

[0221] The plurality of second simulation data are annotated based on the multimodal model to obtain label information of the plurality of second simulation data.

[0222] Optionally, the device 900 further includes a receiving unit 903;

[0223] A receiving unit 903 is configured to receive at least one real data and label information of the at least one real data sent by a terminal device, where the terminal device is located in a real environment, the at least one real data is data collected by the terminal device from the real environment, and the label information of the at least one real data is obtained by the terminal device through reasoning of the at least one truth data based on a first AI model;

[0224] The processing unit 902 is further used to adjust the first AI model based on the at least one real data and the label information of the at least one real data.

[0225] Optionally, the detailed implementation process of the receiving unit 903 receiving at least one real data and the label information of the at least one real data can be found in Figure 3 The relevant contents in step 305 of the method 300 are not described in detail here.

[0226] Optionally, the processing unit 902 adjusts the first AI model based on the at least one real data and the label information of the at least one real data. Figure 3 The relevant contents in step 305 of the method 300 are not described in detail here.

[0227] Optionally, the multiple real data include one or more of the following data: image data, radar data, object point cloud data or object inertial measurement unit IMU data.

[0228] In the embodiment of the present application, since the processing unit adjusts the multiple first simulation data based on the multiple real data to obtain multiple second simulation data, the multiple second simulation data are closer to data describing the real environment than the multiple first simulation data. In this way, the processing unit performs model training based on the multiple real data and the multiple second simulation data to obtain the first AI model, which can improve the accuracy of the first AI model obtained by training.

[0229] See also Fig.10 , the present application embodiment provides a computing device 1000. For example, the computing device 1000 may be Figure 1 or Figure 2 The device in the cloud service platform in the network architecture shown, or Figure 3 The method 300 or Figure 8 Devices in the cloud service platform in the method 800 are shown.

[0230] like Fig.10 As shown, computing device 1000 includes: bus 1002, processor 1004, memory 1006 and communication interface 1008. Processor 1004, memory 1006 and communication interface 1008 communicate through bus 1002. Computing device 1000 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in computing device 1000.

[0231] The bus 1002 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 The bus 1004 may include a path for transmitting information between various components of the computing device 1000 (eg, the processor 1004, the memory 1006, and the communication interface 1008).

[0232] The processor 1004 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0233] The memory 1006 may include a volatile memory, such as a random access memory (RAM). The memory 1006 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0234] See also Fig.10 , the memory 1006 stores executable program codes, and the processor 1004 executes the executable program codes to respectively implement Fig. 9 The functions of the acquisition unit 901, the processing unit 902 and the receiving unit 903 in the device 900 shown in the figure are implemented to realize the method provided by any of the above embodiments. That is, the memory 1006 stores instructions for executing the method provided by any of the above embodiments. Or,

[0235] The communication interface 1008 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1000 and other devices or a communication network.

[0236] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.

[0237] like Fig.11 As shown, the computing device cluster includes at least one computing device 1000. The memory 1006 in one or more computing devices 1000 in the computing device cluster may store the same instructions for executing the method provided in any of the above embodiments.

[0238] In some possible implementations, the memory 1006 of one or more computing devices 1000 in the computing device cluster may also store partial instructions for executing the above data management method. In other words, the combination of one or more computing devices 1000 may jointly execute instructions for executing the method provided in any of the above embodiments.

[0239] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.12 A possible implementation is shown. Fig.12 As shown, two computing devices 1000A and 1000B are connected via a network. Specifically, they are connected to the network via a communication interface in each computing device.

[0240] In this type of possible implementation, the memory 1006 in the computing device 1000A stores the execution Fig. 9 The instructions for the functions of the acquisition unit 901 and the processing unit 902 in the embodiment shown in the figure are as follows. Fig. 9 Instructions for the functionality of the receiving unit 903 in the illustrated embodiment.

[0241] It should be understood that Fig.12 The functions of the computing device 1000A shown in FIG. 1000A may also be completed by multiple computing devices 1000. Similarly, the functions of the computing device 1000B may also be completed by multiple computing devices 1000.

[0242] The present application embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to that of Fig.12 The connection mode of the computing device cluster is different in that the memory 1006 in one or more computing devices 1000 in the computing device cluster may store the same instructions for executing the method provided in any of the above embodiments.

[0243] In some possible implementations, the memory 1006 of one or more computing devices 1000 in the computing device cluster may also store partial instructions for executing the method provided in any of the above embodiments. In other words, the combination of one or more computing devices 1000 may jointly execute instructions for executing the method provided in any of the above embodiments.

[0244] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the method provided in any of the above embodiments.

[0245] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the method provided in any of the above embodiments.

[0246] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0247] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A model training method, characterized in that: The method is applied to a cloud service platform, and includes: Acquire a plurality of real data and a plurality of first simulation data, wherein the plurality of real data are data describing a real environment, the real environment is an environment in which a first artificial intelligence AI model to be trained is applied, and the plurality of first simulation data are data describing a simulation environment, the simulation environment is used to simulate the real environment; Based on the multiple real data, adjusting the multiple first simulation data to obtain multiple second simulation data; Model training is performed based on the multiple real data and the multiple second simulation data to obtain a first AI model.

2. The method according to claim 1, characterized in that The plurality of real data include at least one first data and at least one second data; The adjusting the plurality of first simulation data based on the plurality of real data to obtain a plurality of second simulation data comprises: Based on the at least one second data, adjusting the plurality of first simulation data to obtain a plurality of second simulation data; The performing model training based on the multiple real data and the multiple second simulation data to obtain the first AI model includes: Performing model training based on the at least one first data and the plurality of first simulation data to obtain a second AI model; Based on the at least one second data and the plurality of second simulation data, the second AI model is adjusted to obtain the first AI model.

3. The method according to claim 2, characterized in that A plurality of first simulation data are obtained, including: Creating the simulation environment based on the at least one first data; The plurality of first simulation data are generated based on the simulation environment.

4. The method according to claim 2 or 3, characterized in that The adjusting the plurality of first simulation data to obtain the plurality of second simulation data based on the at least one second data comprises: Acquire a first adjustment model based on the at least one second data and the plurality of first simulation data, wherein the first adjustment model is used to adjust the visual characteristics of the simulation data toward the direction close to the visual characteristics of the data describing the real environment; The plurality of second simulation data are obtained by adjusting the visual characteristics of the plurality of first simulation data based on the first adjustment model.

5. The method according to claim 4, characterized in that The acquiring the first adjustment model based on the at least one second data and the plurality of first simulation data comprises: Adjusting the visual characteristics of the plurality of first simulation data based on the second adjustment model to obtain a plurality of third simulation data; Determine, based on the first discriminator network, a first type of data included in a first data set, wherein the first type is used to indicate whether the data is real data or simulated data, and the first data set includes the at least one second data and the plurality of third simulated data; adjusting the network parameters of the second adjustment model based on the first type of data included in the first data set to obtain a third adjustment model; When the third adjustment model satisfies a first condition, the third adjustment model is determined as the first adjustment model.

6. The method according to claim 5, characterized in that The acquiring the first adjustment model based on the at least one second data and the plurality of first simulation data further includes: When the third adjustment model does not satisfy the first condition, based on the second type of the at least one second data and the first type of data included in the first data set, adjusting the network parameters of the first discriminator network to obtain a second discriminator network, wherein the second type is used to indicate that the at least one second data is real data; Adjust the visual characteristics of the plurality of first simulation data based on the third adjustment model to obtain a plurality of fourth simulation data; determining a first type of data included in a second data set based on the second discriminator network, the second data set including the at least one second data and the plurality of fourth simulation data; adjusting the network parameters of the third adjustment model based on the first type of data included in the second data set to obtain a fourth adjustment model; When the fourth adjustment model satisfies the first condition, the fourth adjustment model is determined as the first adjustment model.

7. The method according to any one of claims 2 to 6, characterized in that: The adjusting the second AI model to obtain the first AI model based on the at least one second data and the plurality of second simulation data includes: Based on the at least one second data and the plurality of second simulation data, adjusting a network parameter of the second AI model to obtain a third AI model, wherein features of the plurality of second simulation data extracted by the third AI model are closer to features of the at least one second data than features of the plurality of second simulation data extracted by the second AI model; Based on a third data set and label information of data in the third data set, network parameters of the third AI model are adjusted to obtain the first AI model, and the third data set includes the at least one second data and the multiple second simulation data.

8. The method according to claim 7, characterized in that The adjusting the network parameters of the second AI model to obtain a third AI model based on the at least one second data and the plurality of second simulation data includes: Extracting features of the at least one second data and features of the plurality of second simulation data based on the second AI model; Based on the characteristics of the at least one second data and the characteristics of the plurality of second simulation data, the network parameters of the second AI model are adjusted to obtain the third AI model.

9. The method according to claim 8, characterized in that The method further comprises: Annotating the plurality of second simulation data to obtain label information of the plurality of second simulation data; Marking part of the second data in the at least one second data to obtain label information of the part of the second data; The extracting the feature of the at least one second data and the features of the plurality of second simulation data based on the second AI model includes: Based on the second AI model, the label information of the portion of the second data, and the label information of the plurality of second simulation data, features of the at least one second data and features of the plurality of second simulation data are extracted.

10. The method according to claim 7 or 8, characterized in that The label information of the data in the third data set includes the label information of the at least one second data and the label information of the plurality of second simulation data; Before adjusting the network parameters of the third AI model to obtain the first AI model based on the third data set and the label information of the data in the third data set, the method further includes: Inferring the at least one second data based on the third AI model to obtain label information of the at least one second data; The plurality of second simulation data are annotated based on the multimodal model to obtain label information of the plurality of second simulation data.

11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: A receiving terminal device sends at least one real data and label information of the at least one real data, the terminal device is located in the real environment, the at least one real data is data collected by the terminal device from the real environment, and the label information of the at least one real data is obtained by the terminal device through reasoning on the at least one truth data based on the first AI model; Adjust the first AI model based on the at least one real data and the label information of the at least one real data.

12. The method according to any one of claims 1 to 11, characterized in that: The multiple real data include one or more of the following data: image data, radar data, object point cloud data or object inertial measurement unit IMU data.

13. A device for model training, characterized in that: The device is applied to a cloud service platform and includes: An acquisition unit, used to acquire a plurality of real data and a plurality of first simulation data, wherein the plurality of real data are data describing a real environment, the real environment is an environment in which a first artificial intelligence AI model to be trained is applied, and the plurality of first simulation data are data describing a simulation environment, the simulation environment is used to simulate the real environment; A processing unit, configured to adjust the plurality of first simulation data based on the plurality of real data to obtain a plurality of second simulation data; The processing unit is also used to perform model training based on the multiple real data and the multiple second simulation data to obtain a first AI model.

14. The device according to claim 13, characterized in that The plurality of real data include at least one first data and at least one second data, and the processing unit is configured to: Based on the at least one second data, adjusting the plurality of first simulation data to obtain a plurality of second simulation data; Performing model training based on the at least one first data and the plurality of first simulation data to obtain a second AI model; Based on the at least one second data and the plurality of second simulation data, the second AI model is adjusted to obtain the first AI model.

15. The device according to claim 14, characterized in that The acquisition unit is used to: Creating the simulation environment based on the at least one first data; The plurality of first simulation data are generated based on the simulation environment.

16. The device according to claim 14 or 15, characterized in that The processing unit is used for: Acquire a first adjustment model based on the at least one second data and the plurality of first simulation data, wherein the first adjustment model is used to adjust the visual characteristics of the simulation data toward the direction close to the visual characteristics of the data describing the real environment; The plurality of second simulation data are obtained by adjusting the visual characteristics of the plurality of first simulation data based on the first adjustment model.

17. The device according to claim 16, characterized in that The processing unit is used for: Adjusting the visual characteristics of the plurality of first simulation data based on the second adjustment model to obtain a plurality of third simulation data; Determine, based on the first discriminator network, a first type of data included in a first data set, wherein the first type is used to indicate whether the data is real data or simulated data, and the first data set includes the at least one second data and the plurality of third simulated data; adjusting the network parameters of the second adjustment model based on the first type of data included in the first data set to obtain a third adjustment model; When the third adjustment model satisfies a first condition, the third adjustment model is determined as the first adjustment model.

18. The device according to claim 17, characterized in that The processing unit is further used for: When the third adjustment model does not satisfy the first condition, based on the second type of the at least one second data and the first type of data included in the first data set, adjusting the network parameters of the first discriminator network to obtain a second discriminator network, wherein the second type is used to indicate that the at least one second data is real data; Adjust the visual characteristics of the plurality of first simulation data based on the third adjustment model to obtain a plurality of fourth simulation data; determining a first type of data included in a second data set based on the second discriminator network, the second data set including the at least one second data and the plurality of fourth simulation data; adjusting the network parameters of the third adjustment model based on the first type of data included in the second data set to obtain a fourth adjustment model; When the fourth adjustment model satisfies the first condition, the fourth adjustment model is determined as the first adjustment model.

19. The device according to any one of claims 14 to 18, characterized in that: The processing unit is used for: Based on the at least one second data and the plurality of second simulation data, adjusting a network parameter of the second AI model to obtain a third AI model, wherein features of the plurality of second simulation data extracted by the third AI model are closer to features of the at least one second data than features of the plurality of second simulation data extracted by the second AI model; Based on a third data set and label information of data in the third data set, network parameters of the third AI model are adjusted to obtain the first AI model, and the third data set includes the at least one second data and the multiple second simulation data.

20. The device according to claim 19, characterized in that The processing unit is used for: Extracting features of the at least one second data and features of the plurality of second simulation data based on the second AI model; Based on the characteristics of the at least one second data and the characteristics of the plurality of second simulation data, the network parameters of the second AI model are adjusted to obtain the third AI model.

21. The device according to claim 20, characterized in that The processing unit is used for: Annotating the plurality of second simulation data to obtain label information of the plurality of second simulation data; Marking part of the second data in the at least one second data to obtain label information of the part of the second data; Based on the second AI model, the label information of the portion of the second data, and the label information of the plurality of second simulation data, features of the at least one second data and features of the plurality of second simulation data are extracted.

22. The device according to claim 19 or 20, characterized in that The label information of the data in the third data set includes the label information of the at least one second data and the label information of the plurality of second simulation data; The processing unit is further used for: Inferring the at least one second data based on the third AI model to obtain label information of the at least one second data; The plurality of second simulation data are annotated based on the multimodal model to obtain label information of the plurality of second simulation data.

23. The device according to any one of claims 13 to 22, characterized in that The device also includes a receiving unit; The receiving unit is configured to receive at least one real data and label information of the at least one real data sent by a terminal device, the terminal device is located in the real environment, the at least one real data is data collected by the terminal device from the real environment, and the label information of the at least one real data is obtained by the terminal device through reasoning on the at least one truth data based on the first AI model; The processing unit is further used to adjust the first AI model based on the at least one real data and the label information of the at least one real data.

24. The device according to any one of claims 13 to 23, characterized in that The multiple real data include one or more of the following data: image data, radar data, object point cloud data or object inertial measurement unit IMU data.

25. A computing device cluster, characterized in that: The computing device cluster includes at least one computing device, each of the at least one computing device includes at least one processor and at least one memory, and the at least one memory stores computer-readable instructions; the at least one processor executes the computer-readable instructions so that the computing device cluster executes the method according to any one of claims 1 to 12.

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

27. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

Citation Information

Cited By

  • Model training method and apparatus, and storage medium

    EP4660850A1