Model training method and apparatus, and storage medium
By acquiring and adjusting real data and simulation data to train the AI model, the problem of low accuracy of AI models in the existing technology is solved, and higher model applicability and performance are achieved.
Patent Information
- Application Number
- PCT/CN2023/142498
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-06
- Filing Date
- 2023-12-27
- Publication Date
- 2024-08-29
AI Technical Summary
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.
By obtaining multiple real data and first simulation data, the second simulation data that is closer to the real environment is adjusted, and model training is performed based on these data to improve the accuracy of the AI model. Specific methods include creating a simulation environment, adjusting the visual characteristics of the simulation data to make it closer to the real environment, using multi-modal models and discriminator networks to optimize model parameters, and cyclically adjusting the model to improve accuracy.
Through this method, the training accuracy of the AI model is significantly improved, making it more suitable for real-world applications and enhancing the applicability and performance of the model.
Smart Images

Figure CN2023142498_29082024_PF_FP_ABST
Abstract
Description
Model training method, device and storage medium
[0001] This application claims priority to Chinese Patent Application No. 202310145883.4, filed on February 21, 2023, entitled “Method, Device, and Storage Medium for Edge-Cloud Collaborative Multimodal Perception Based on Simulation,” the entire contents of which are incorporated herein by reference. Furthermore, this application claims priority to Chinese Patent Application No. 202310504921.0, filed on May 6, 2023, entitled “Method, Device, and Storage Medium for Model Training,” the entire contents of which are incorporated herein by reference. 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 applied in industries such as automotive, robotics, urban construction, and healthcare. For example, in the automotive industry, training an AI model for autonomous driving is crucial. This involves acquiring a large amount of training data before training, and then using this data to train the AI model.
[0004] In related technologies, sensor devices are used to collect real data from a real environment, which is then used as training data. This real environment is the environment in which the AI model is applied. However, it is difficult to collect large amounts of real data using sensor devices; typically, only a small amount can be collected. Therefore, a simulation environment can be established to generate a large amount of simulated data, which is also used as training data. The AI model is then trained based on this small amount of real data and the large amount of simulated data.
[0005] Although an AI model can be trained based on this small amount of real data and a large amount of simulation data, the accuracy of the trained AI model is often low.
[0006] Summary of the Invention
[0007] This application provides a model training method, device, and storage medium to improve the accuracy of training AI models. The technical solution is as follows:
[0008] In a first aspect, the present application provides a method for model training, which is applied to a cloud service platform. In the method, multiple real data and multiple first simulation data are obtained. The multiple real data are data describing a real environment, which is the environment used by a first artificial intelligence (AI) model to be trained. The multiple first simulation data are data describing a simulation environment, which 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. Model training is performed based on the multiple real data and the multiple second simulation data to obtain a first AI model.
[0009] 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.
[0010] In one possible implementation, the multiple second simulation data are closer to data describing the real environment than the multiple first simulation data. Thus, the multiple second simulation data are used to train the first AI model to improve the accuracy of training the first AI model.
[0011] 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.
[0012] 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.
[0013] 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 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. Because the first adjustment model is used to adjust the visual characteristics of the simulation data toward 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.
[0014] 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.
[0015] 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.
[0016] 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, where 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 extracted by the second AI model. Based on a 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, where the third data set includes the at least one second data and the multiple second simulation data. Because 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 extracted by the second AI model, adjusting the third AI model to obtain the first AI model can improve the accuracy of the first AI model.
[0017] In another possible implementation, a feature of at least one second data and features 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, network parameters of the second AI model are adjusted to generate a third AI model, such that the features of the plurality of 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 plurality of second simulation data extracted by the second AI model.
[0018] In another possible implementation, the plurality of second simulation data are labeled to obtain label information for the plurality of second simulation data. A portion of the at least one second data is labeled to obtain label information for the portion of second data. Based on the second AI model, the label information for the portion of second data, and the label information for 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.
[0019] 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 label information of the at least one second data is obtained by performing inference on the at least one second data based on the third AI model. The label information of the plurality of second simulation data is obtained by annotating the plurality of second simulation data based on the multimodal model.
[0020] In another possible implementation, a receiving terminal device sends at least one piece of real data and label information for the at least one piece of real data. The terminal device is located in a real environment. The at least one piece of real data is data collected by the terminal device from the real environment. The label information for the at least one piece of real data is derived by the terminal device through inference of the at least one piece of real data based on a first AI model. The first AI model is adjusted based on the at least one piece of real data and the label information for the at least one piece of real data. In this way, after the first AI model is trained, feedback from the terminal device running the first AI model can be continuously received. Based on the received feedback, the first AI model can be continuously optimized to further improve the accuracy of the first AI model.
[0021] 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 can be 3D space data and can be applied to a real environment in a 3D space.
[0022] 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.
[0023] In a third aspect, the present application provides a computing device cluster, comprising at least one computing device, each of the at least one computing device comprising at least one processor and at least one memory, wherein 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 performs the method in the first aspect or any possible implementation of the first aspect.
[0024] 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.
[0025] 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.
[0026] 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
[0027] FIG1 is a schematic diagram of a network architecture provided by an embodiment of the present application;
[0028] FIG2 is a schematic diagram of another network architecture provided in an embodiment of the present application;
[0029] FIG3 is a flow chart of a model training method provided in an embodiment of the present application;
[0030] FIG4 is a flow chart of a method for obtaining a first adjustment model provided in an embodiment of the present application;
[0031] FIG5 is a flow chart of a method for obtaining a third AI model provided in an embodiment of the present application;
[0032] FIG6 is a flowchart of another method for obtaining a third AI model provided in an embodiment of the present application;
[0033] FIG7 is a flow chart of a method for obtaining a first AI model provided in an embodiment of the present application;
[0034] FIG8 is a flow chart of another model training method provided in an embodiment of the present application;
[0035] FIG9 is a schematic diagram of the structure of a model training device provided in an embodiment of the present application;
[0036] FIG10 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0037] FIG11 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;
[0038] FIG12 is a schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
[0040] 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 .
[0041] The network architecture 100 is used to train an 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 a real environment, and the data in the real environment is referred to as real data.
[0042] For example, suppose you need to train an AI model with the ability to identify objects in an industrial park. 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 in the industrial park obtains real data, and the AI model is used to infer the real data of the industrial park to identify objects in the industrial park.
[0043] 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, which are data describing the real environment, and send the multiple real data to the cloud service platform 101.
[0044] 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; and model training is performed based on the multiple real data and the multiple second simulation data to obtain a first AI model.
[0045] 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.
[0046] In some embodiments, referring to FIG. 2 , the network architecture 100 further includes at least one terminal device 103 , and the cloud service platform 101 further communicates with each terminal device 103 , and the at least one terminal device 103 is also located in a real environment.
[0047] After the cloud service platform 101 trains the first AI model, the cloud service platform 101 can deploy the first AI model to each terminal device 103 in the at least one terminal device 103.
[0048] 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 perform inference on the at least one real data based on the first AI model.
[0049] Referring to FIG3 , an embodiment of the present application provides a model training method 300 , which is applied to the network architecture 100 shown in FIG1 or FIG2 . The method 300 includes:
[0050] 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.
[0051] 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.
[0052] In some embodiments, the data acquisition device includes one or more of the following devices: a camera device, a radar device, or an IMU.
[0053] In some embodiments, the multiple real data include one or more of the following: image data, radar data, object point cloud data, or object IMU data. The image data or the object point cloud data is obtained by a camera device capturing 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 objects in the real environment.
[0054] In some embodiments, the data acquisition device may also send a training task to the cloud service platform, which is used to request the training of an AI model that implements the function in a real environment.
[0055] In some embodiments, the data acquisition device also labels each of 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.
[0056] 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, which is used to train the AI model.
[0057] For any real data, the label information of the real data is used to indicate the target in the real data. For example, if you need to train an AI model for object recognition, 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, if you need to train an AI model for semantic segmentation, which is used to segment objects from data, the label information of the real data can be the object boundaries in the real data.
[0058] 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, etc. 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 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).
[0059] 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 the training task to the cloud service platform. The training task is used to request the training of an AI model with object recognition function in the industrial park.
[0060] 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 being used to simulate a real environment, and the at least one first data is part of the plurality of real data.
[0061] The plurality of 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 costly. Therefore, a simulation environment can be obtained by simulating the real environment, and a large amount of first simulation data can be obtained based on the simulation environment.
[0062] In step 302 , a plurality of first simulation data may be acquired through the following process 3021 - 3022 .
[0063] 3021: Create a simulation environment based on the at least one first data.
[0064] In 3021, you can create a simulation environment in the following two ways.
[0065] 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.
[0066] 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 simulated 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 simulated 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 simulated component, the simulated components are constructed into a simulated environment.
[0067] The asset library is used to store the correspondence between the identification information of the real environment and the simulation components.
[0068] The environment recognition model is obtained by training multiple 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.
[0069] In some embodiments, based on identification information of the real environment, corresponding simulated components are retrieved from an asset library and displayed, allowing a user to select each simulated component corresponding to the real environment. For each simulated component, object point cloud data corresponding to the simulated component is retrieved from the at least one first data. The simulated component and the object point cloud data correspond to the same object, and the object point cloud data includes, among other things, position information of multiple points on the object corresponding to the simulated component. Based on the object point cloud data, posture information and position information of the simulated component are retrieved.
[0070] For example, multiple image data and multiple object point cloud data are received from a data acquisition device. Based on the multiple image data, the multiple object point cloud data, and the environment recognition model, identification information of the real environment is obtained as an industrial park. Simulated components corresponding to the industrial park are obtained from the asset library. The obtained simulated components include at least one building simulation component, at least one road simulation component, at least one vehicle simulation component, and at least one flower bed simulation component.
[0071] 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.
[0072] 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 vehicle point cloud data included in the at least one first data, the posture information and position information of the vehicle 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.
[0073] Based on the posture information and position information of the building simulation components corresponding to the industrial park, the posture information and position information of the road simulation components, the posture information and position information of the automobile simulation components, and / or the posture information and position information of the flower bed simulation components, the building simulation components, road simulation components, automobile simulation components, and / or flower bed simulation components corresponding to the industrial park are constructed into a simulation environment of the industrial park.
[0074] 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.
[0075] 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 obtained.
[0076] If the data acquisition device does not send the label information of the at least one first data item, the at least one first data item is labeled based on the multimodal model to obtain the label information of the at least one first data item. That is, for any first data item, the first data item is input into the multimodal model, and the multimodal model is used to label the first data item to obtain the label information of the first data item, and the label information of the first data item is obtained as output by the multimodal model.
[0077] In the second embodiment, a simulation environment is generated based on the at least one first data and the tag information of the at least one first data using an algorithm for creating a simulation environment. Optionally, the algorithm for creating the 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.
[0078] 3022: Generate the plurality of first simulation data based on the simulation environment.
[0079] 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 nvidia omniverse replicator (a software name).
[0080] 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.
[0081] 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.
[0082] 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).
[0083] 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. The obtained AI model is trained based on each second training sample to obtain a second AI model.
[0084] For example, an existing AI model for identifying objects in an industrial park may not be applicable to the new industrial park due to changes in the layout and / or objects in the park. Therefore, training can be performed based on the existing AI model to obtain a model that is applicable to the new industrial park.
[0085] Because the multiple first simulation data are generated based on a simulation environment, there are significant differences between the multiple first simulation data and the data used to describe the real environment. Therefore, the accuracy of the trained second AI model is not high enough. Therefore, the following operations are needed to adjust the multiple first simulation data.
[0086] 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 the data of the real environment than the multiple first simulation data, and the at least one second data is the data in the multiple real data other than the at least one first data.
[0087] In some embodiments, the visual characteristics of the plurality of first simulation data are significantly different from the visual characteristics of 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, lighting, or object image shape of the first simulation data.
[0088] 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.
[0089] 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 visual characteristics of data close to the real environment.
[0090] In some embodiments, referring to FIG. 4 , the first adjustment model is obtained through the following process.
[0091] 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.
[0092] The second adjustment model can be a convolutional neural network, a random forest algorithm, a logistic regression algorithm, or an SVM, etc.
[0093] 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.
[0094] In some embodiments, for any first simulation data, the second adjustment model adjusts the visual characteristics of the first simulation data to obtain third simulation data. That is, the second adjustment model adjusts the visual characteristics of the first simulation data in terms of texture, lighting, or object image shape to obtain the third simulation data.
[0095] 12: Determine a first type of data included in the first data set based on the first discriminator network, where 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.
[0096] 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 caused 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.
[0097] 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, where the second type is used to indicate that the at least one second data is real data.
[0098] In operation 13 , since the at least one second data is 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.
[0099] 14: Adjust 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.
[0100] 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 using an adversarial training method to obtain a third adjustment model.
[0101] 15: Determine whether the third adjustment model satisfies the first condition. If the first condition is not satisfied, execute back to operation 16. If the first condition is satisfied, execute operation 17.
[0102] 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 number of times the third adjustment model is trained may be initialized, and the number of times the third adjustment model is trained may be increased each time the operation 11 is returned to be executed.
[0103] 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.
[0104] 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.
[0105] 17: Determine the third adjustment model as the first adjustment model, and end the operation.
[0106] 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.
[0107] The plurality of first simulation data corresponds to the plurality of second simulation data in a one-to-one manner.
[0108] 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.
[0109] In some embodiments, for any first simulation data, the first adjustment model adjusts the visual characteristics of the first simulation data to obtain second simulation data. That is, the first adjustment model adjusts the visual characteristics of the first simulation data, such as texture, lighting, or object image shape, to obtain the second simulation data.
[0110] 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.
[0111] In step 305 , the second AI model may be adjusted to obtain the first AI model through the following process from 3051 to 3052 .
[0112] 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.
[0113] In some embodiments, referring to FIG5 , the network parameters of the second AI model are adjusted through the following process to obtain the third AI model.
[0114] 21: Extracting features of at least one second data and features of the plurality of second simulation data based on the second AI model.
[0115] 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 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.
[0116] 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.
[0117] 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.
[0118] 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.
[0119] 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 feature of the at least one second data and the features of the plurality of second simulation data to obtain a third AI model.
[0120] 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.
[0121] In a second approach, the features of the at least one second data set and the features of the plurality of second simulation data sets are input into a second discriminator network. The second discriminator network determines the first type of each data point in the second data set based on the features of the at least one second data set and the features of the plurality of second simulation data points, and obtains the first type of each data point in the second data set output by the second discriminator network. Based on the second type of the at least one second data point and the first type of the data points in the second data set, adversarial training is used to adjust the network parameters of the second AI model to obtain a third AI model.
[0122] 23: Determine whether the third AI model meets the second condition. If the second condition is not met, perform operation 24. If it is met, end.
[0123] 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 number of times the third AI model is trained may be initialized, and the number of times the third AI model is trained may be increased each time the operation 21 is returned to be executed.
[0124] 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.
[0125] 24: Use the third AI model as the second AI model and return to execute operation 21.
[0126] In some embodiments, referring to FIG6 , the network parameters of the second AI model are adjusted through the following process to obtain the third AI model.
[0127] 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.
[0128] In operation 31, the at least one second data item is labeled based on the multimodal model to obtain label information for the at least one second data item. That is, for any second data item, the second data item is input into the multimodal model, and the multimodal model is used to label the second data item to obtain label information for the first data item. The label information for the second data item is then output by the multimodal model.
[0129] 32: Extract features of the at least one second data and features of the plurality of 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 plurality of second simulation data.
[0130] In operation 32, the label information of the portion of the second data, the label information of the plurality of second simulation data, the at least one second data, and the plurality of second simulation data are input into a second AI model, so that the second AI model extracts features of the at least one second data and features of the plurality of second simulation data based on the label information of the portion of the second data and the label information of the plurality of second simulation data. The features of the at least one second data and the features of the plurality of second simulation data output by the second AI model are obtained.
[0131] 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.
[0132] In operation 33 , the network parameters of the second AI model may be adjusted by the first method or the second method to obtain a third AI model, which will not be described in detail here.
[0133] 34: Determine whether the third AI model meets the second condition. If the second condition is not met, perform operation 35. If it is met, end.
[0134] 35: Use the third AI model as the second AI model and return to execute operation 31.
[0135] 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, where the second data set includes the at least one second data and the multiple second simulation data.
[0136] In some embodiments, referring to FIG. 7 , the network parameters of the third AI model may be adjusted through the following process to obtain the first AI model.
[0137] 41: Obtain label information of the at least one second data based on the third AI model.
[0138] In operation 41, the at least one second data is input into a 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.
[0139] 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.
[0140] 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 multiple second simulation data.
[0141] 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.
[0142] 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. 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.
[0143] 43: Determine whether the first AI model meets the third condition. If the third condition is not met, perform operation 44. If the third condition is met, end.
[0144] 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 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.
[0145] 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.
[0146] 44: Use the first AI model as the third AI model and return to execute operation 41.
[0147] In some embodiments, at least one simulation platform can be generated in a simulation environment, the first AI model can be deployed to the at least one simulation platform, the first AI model can be tested using the at least one simulation platform, and the running effect and performance of the first AI model can be observed.
[0148] For example, assuming the first AI model is deployed on a vehicle or robot, the simulation platform can be used to observe whether the autonomous vehicle or robot is involved in an accident such as a collision. Based on the test results, the system determines whether to continue training the first AI model. If so, the system returns to step 304.
[0149] In some embodiments, the first AI model can 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, performs inference on the at least one real data, and obtains label information for the at least one real data.
[0150] 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.
[0151] 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.
[0152] 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 on the terminal device, the first AI model can be continuously optimized to achieve increasingly higher accuracy.
[0153] In some embodiments, the operation of adjusting the first AI model may include: 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, where each of the at least one fourth training sample includes a real data and the label information of the real data; and training the first AI model based on the at least one fourth training sample.
[0154] 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 a 3D space and can be applied to a real environment in a 3D space.
[0155] A plurality of first simulation data are obtained based on a simulation environment. Model training is performed based on the at least one first data and the plurality of first simulation data to obtain a second AI model. The plurality of first simulation data are adjusted based on the at least one second data to obtain a plurality of second simulation data, so that the plurality of second simulation data are closer to data describing a real environment. 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, thereby obtaining a first AI model with higher accuracy, thereby improving the accuracy of the trained model.
[0156] 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 piece of real data, performs inference on the at least one piece of real data, and obtains label information for the at least one piece of real data. The receiving terminal device sends the at least one piece of real data and the label information for the at least one piece of real data. Based on the at least one piece of real data and the label information for the at least one piece of real data, the first AI model is adjusted, thereby enabling continuous optimization of the first AI model after deployment.
[0157] Referring to FIG8 , an embodiment of the present application provides a model training method 800 , which is applied to the network architecture 100 shown in FIG1 or FIG2 . The method 800 includes:
[0158] 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.
[0159] In step 801 , for the detailed implementation process of receiving the multiple real data, please refer to the relevant content of step 301 of the method 300 shown in FIG3 , which will not be described in detail here.
[0160] 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.
[0161] In step 802, for the detailed implementation process of obtaining multiple first simulation data based on the multiple real data, please refer to step 302 of method 300 shown in Figure 3 regarding "obtaining multiple first simulation data based on at least one first data", which will not be described in detail here.
[0162] Step 803: Based on the multiple real data, the multiple first simulation data are adjusted to obtain multiple second simulation data, where the multiple second simulation data are closer to the data of the real environment than the multiple first simulation data.
[0163] In step 803, for the detailed implementation process of adjusting the multiple first simulation data based on the multiple real data to obtain multiple second simulation data, please refer to step 304 of method 300 shown in Figure 3 regarding "adjusting the multiple first simulation data based on at least one second data to obtain multiple second simulation data", which will not be described in detail here.
[0164] Step 804: Perform model training based on the multiple real data and the multiple second simulation data to obtain a first AI model.
[0165] In step 803, the plurality of second simulation data are annotated based on the multimodal model to obtain label information for the plurality of second simulation data. The plurality of second simulation data and the label information for 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 for the second simulation data.
[0166] 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 including one real data and the label information of the one real data.
[0167] Model training is performed based on each training sample to obtain the first AI model.
[0168] In some embodiments, a blank model is trained based on each training sample to obtain a first AI model.
[0169] 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. The obtained AI model is trained based on each training sample to obtain a first AI model.
[0170] 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 the real data, the accuracy of creating the simulation environment can be improved. Multiple first simulation data are obtained based on the simulation environment. The 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, thereby improving the accuracy of the training model.
[0171] Referring to FIG9 , an embodiment of the present application provides a model training apparatus 900 , which is applied to a cloud service platform. The cloud service platform may be the cloud service platform 101 in the network architecture 100 shown in FIG1 or FIG2 , or the cloud service platform in the method 300 shown in FIG3 , or the cloud service platform in the method 800 shown in FIG8 . The apparatus 900 includes:
[0172] An acquisition unit 901 is configured 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, where the real environment is an environment in which the first artificial intelligence (AI) model to be trained is applied, and the plurality of first simulation data are data describing a simulation environment, where the simulation environment is used to simulate the real environment;
[0173] A processing unit 902 is configured to adjust the plurality of first simulation data based on the plurality of real data to obtain a plurality of second simulation data;
[0174] 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.
[0175] Optionally, the plurality of second simulation data are closer to data describing a real environment than the plurality of first simulation data.
[0176] Optionally, the detailed implementation process of the acquisition unit 901 acquiring multiple real data and multiple first simulation data can be found in steps 301 and 302 of the method 300 shown in Figure 3, and the relevant content in steps 801 and 802 of the method 800 shown in Figure 8, which will not be described in detail here.
[0177] Optionally, the detailed implementation process of the processing unit 902 adjusting the multiple first simulation data to obtain multiple second simulation data can be found in step 304 of method 300 shown in Figure 3 and the relevant content in step 803 of method 800 shown in Figure 8, which will not be described in detail here.
[0178] Optionally, the processing unit 902 performs model training based on the multiple real data and the multiple second simulation data to obtain the detailed implementation process of the first AI model. Please refer to step 305 of method 300 shown in Figure 3 and the relevant content in step 804 of method 800 shown in Figure 8, which will not be described in detail here.
[0179] 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:
[0180] Based on the at least one second data, adjusting the plurality of first simulation data to obtain a plurality of second simulation data;
[0181] Performing model training based on the at least one first data and the plurality of first simulation data to obtain a second AI model;
[0182] 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.
[0183] Optionally, the detailed implementation process of the processing unit 902 adjusting the multiple first simulation data to obtain multiple second simulation data based on the at least one second data can be found in the relevant content of step 304 of the method 300 shown in FIG3 , which will not be described in detail here.
[0184] Optionally, the detailed implementation process of the processing unit 902 performing model training based on the at least one first data and the multiple first simulation data to obtain the second AI model can be found in the relevant content of step 303 of the method 300 shown in Figure 3, which will not be described in detail here.
[0185] 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 multiple second simulation data. For the detailed implementation process, please refer to the relevant content in step 305 of method 300 shown in Figure 3, which will not be described in detail here.
[0186] Optionally, the acquiring unit 901 is configured to:
[0187] creating the simulation environment based on the at least one first data;
[0188] A plurality of first simulation data are generated based on the simulation environment.
[0189] Optionally, the detailed implementation process of the acquisition unit 901 creating the simulation environment based on the at least one first data can be found in the relevant content of step 3021 of the method 300 shown in FIG3 , which will not be described in detail here.
[0190] Optionally, the detailed implementation process of the acquisition unit 901 generating multiple first simulation data based on the simulation environment refers to the relevant content in step 3022 of the method 300 shown in FIG3 , which will not be described in detail here.
[0191] Optionally, the processing unit 902 is configured to:
[0192] obtaining 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 visual characteristics of the data describing the real environment;
[0193] 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.
[0194] Optionally, the detailed implementation process of the processing unit 902 obtaining the first adjustment model based on the at least one second data and the multiple first simulation data can be found in the relevant content of step 3041 of the method 300 shown in Figure 3, and will not be described in detail here.
[0195] Optionally, the detailed implementation process of the processing unit 902 adjusting the visual characteristics of multiple first simulation data based on the first adjustment model to obtain multiple second simulation data can be found in the relevant content of step 3042 of the method 300 shown in Figure 3, which will not be described in detail here.
[0196] Optionally, the processing unit 902 is configured to:
[0197] adjusting visual characteristics of the plurality of first simulation data based on the second adjustment model to obtain a plurality of third simulation data;
[0198] determining, based on the first discriminator network, a first type of data included in the first data set, where the first type is 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;
[0199] adjusting 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;
[0200] When the third adjustment model satisfies the first condition, the third adjustment model is determined as the first adjustment model.
[0201] Optionally, the processing unit 902 is further configured to:
[0202] When the third adjustment model does not satisfy the first condition, adjusting network parameters of the first discriminator network based on the second type of the at least one second data and the first type of data included in the first data set to obtain a second discriminator network, wherein the second type is used to indicate that the at least one second data is real data;
[0203] adjusting visual characteristics of the plurality of first simulation data based on a third adjustment model to obtain a plurality of fourth simulation data;
[0204] determining, based on the second discriminator network, a first type of data included in a second data set, the second data set including the at least one second data and the plurality of fourth simulation data;
[0205] adjusting 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;
[0206] When the fourth adjustment model satisfies the first condition, the fourth adjustment model is determined as the first adjustment model.
[0207] Optionally, the processing unit 902 is configured to:
[0208] adjusting network parameters of the second AI model based on the at least one second data and the plurality of second simulation data 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;
[0209] 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.
[0210] Optionally, the processing unit 902 adjusts the network parameters of the second AI model based on the at least one second data and the multiple second simulation data to obtain the detailed implementation process of the third AI model. Please refer to the relevant content in step 3051 of method 300 shown in Figure 3, which will not be described in detail here.
[0211] 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. For the detailed implementation process, please refer to the relevant content in step 3052 of method 300 shown in Figure 3, which will not be described in detail here.
[0212] Optionally, the processing unit 902 is configured to:
[0213] Extracting features of the at least one second data and features of the plurality of second simulation data based on the second AI model;
[0214] Based on the characteristics of the at least one second data and the characteristics of the plurality of second simulation data, network parameters of the second AI model are adjusted to obtain a third AI model.
[0215] Optionally, the processing unit 902 is configured to:
[0216] Labeling the plurality of second simulation data to obtain label information of the plurality of second simulation data;
[0217] Marking part of the second data in the at least one second data to obtain label information of the part of the second data;
[0218] 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.
[0219] Optionally, the label information of the data in the third data set includes label information of the at least one second data and label information of the plurality of second simulation data;
[0220] The processing unit 902 is further configured to:
[0221] Reasoning the at least one second data based on the third AI model to obtain label information of the at least one second data;
[0222] The plurality of second simulation data are annotated based on the multimodal model to obtain label information of the plurality of second simulation data.
[0223] Optionally, the apparatus 900 further includes a receiving unit 903;
[0224] A receiving unit 903 is configured to receive at least one piece of real data and label information of the at least one piece of real data sent by a terminal device, where the terminal device is located in a real environment, the at least one piece of real data is data collected by the terminal device from the real environment, and the label information of the at least one piece of real data is inferred by the terminal device based on a first AI model for the at least one piece of truth data;
[0225] The processing unit 902 is further configured 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.
[0226] 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 the relevant content of step 305 of the method 300 shown in FIG3 , which will not be described in detail here.
[0227] 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. For the detailed implementation process, please refer to the relevant content in step 305 of method 300 shown in Figure 3, which will not be described in detail here.
[0228] 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.
[0229] In the embodiment of the present application, the processing unit adjusts the plurality of first simulation data based on the plurality of real data to obtain the plurality of second simulation data. The plurality of second simulation data is closer to data describing the real environment than the plurality of first simulation data. In this way, the processing unit performs model training based on the plurality of real data and the plurality of second simulation data to obtain the first AI model, which can improve the accuracy of the trained first AI model.
[0230] 10 , an embodiment of the present application provides a computing device 1000. For example, the computing device 1000 may be a device in a cloud service platform in the network architecture shown in FIG1 or FIG2 , or a device in a cloud service platform in the method 300 shown in FIG3 or the method 800 shown in FIG8 .
[0231] As shown in Figure 10, computing device 1000 includes a bus 1002, a processor 1004, a memory 1006, and a communication interface 1008. Processor 1004, memory 1006, and communication interface 1008 communicate with each other via bus 1002. Computing device 1000 may be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in computing device 1000.
[0232] Bus 1002 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG10 illustrates a single bus line, but this does not imply a single bus or type of bus. Bus 1004 may include a path for transmitting information between various components of computing device 1000 (e.g., processor 1004, memory 1006, and communication interface 1008).
[0233] The processor 1004 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0234] The memory 1006 may include volatile memory, such as random access memory (RAM). The memory 1006 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).
[0235] Referring to FIG10 , the memory 1006 stores executable program code, and the processor 1004 executes the executable program code to respectively implement the functions of the acquisition unit 901, the processing unit 902, and the receiving unit 903 in the apparatus 900 shown in FIG9 , thereby implementing the method provided by any of the above embodiments. In other words, the memory 1006 stores instructions for executing the method provided by any of the above embodiments. Alternatively,
[0236] 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.
[0237] Embodiments of the present application also provide 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 smartphone.
[0238] As shown in Figure 11, the computing device cluster includes at least one computing device 1000. The memory 1006 of 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.
[0239] 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-described data management method. In other words, the combination of one or more computing devices 1000 can jointly execute instructions for executing the method provided in any of the above-described embodiments.
[0240] In some possible implementations, one or more computing devices in the computing device cluster can be connected via a network. The network can be a wide area network (WAN) or a local area network (LAN), among others. FIG. 12 illustrates one possible implementation. As shown in FIG. 12 , two computing devices 1000A and 1000B are connected via a network. Specifically, each computing device is connected to the network via a communication interface within the computing device.
[0241] In this type of possible implementation, the memory 1006 in the computing device 1000A stores instructions for executing the functions of the acquisition unit 901 and the processing unit 902 in the embodiment shown in FIG9 . Simultaneously, the memory 1006 in the computing device 1000B stores instructions for executing the functions of the receiving unit 903 in the embodiment shown in FIG9 .
[0242] It should be understood that the functionality of the computing device 1000A shown in FIG12 may also be accomplished by multiple computing devices 1000. Similarly, the functionality of the computing device 1000B may also be accomplished by multiple computing devices 1000.
[0243] The present application also provides another computing device cluster. The connection relationship between the computing devices in this computing device cluster can be similar to the connection method of the computing device cluster described in FIG12 . However, the memory 1006 in one or more computing devices 1000 in this computing device cluster can store the same instructions for executing the methods provided in any of the above embodiments.
[0244] 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 can jointly execute instructions for executing the method provided in any of the above embodiments.
[0245] The present application also provides a computer program product comprising instructions. The computer program product may be software or a program product comprising instructions that can be run on a computing device or stored on 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.
[0246] 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 that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the method provided in any of the above embodiments.
[0247] Those 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 a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0248] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application shall be included in the scope of protection 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 is 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 deployed on 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
Patent Citations
Simulation model training method and point cloud data generation method and device
CN112256589A
Driving strategy generation method and device, medium, equipment and simulation system
CN112382165A
Model training data acquisition method and device, computer equipment and storage medium
CN113516778A
Decision-making method and device for simulation dynamics deviation
CN115130295A
3D point cloud generation method and device based on simulation data, equipment and medium
CN116071618A
Cited By
Automatic line labeling method based on AI multi-modal large model
CN119205975A
A method for automatic line annotation based on an AI multi-modal large model
CN119205975B
