Method and system for training automatic driving model
A method for training an automatic driving model comprises: obtaining a sample acquisition strategy of the automatic driving model; transmitting the sample acquisition strategy of the automatic driving model to a vehicle equipment, the vehicle equipment being configured to sort objective driving data from a driving data set based on the sample acquisition strategy; receiving the objective driving data from the vehicle equipment; adding the objective driving data into a training set of the automatic driving model; and training the automatic driving model based on the training set. A system for training the automatic driving model is also disclosed.
1 . A method configured for training an automatic driving model applied to a computer device, the computer device comprising a server and enabled to communicate with a vehicle equipment of a vehicle, and the method comprising:
obtaining a sample acquisition strategy of the automatic driving model;
transmitting the sample acquisition strategy of the automatic driving model to the vehicle equipment for sorting objective driving data;
receiving the objective driving data from the vehicle equipment;
adding the objective driving data into a training set of the automatic driving model;
training the automatic driving model based on the training set; and
deploying trained automatic driving model to the vehicle via the server;
wherein the vehicle operates in an automatic driving mode based on the trained automatic driving model, the sample acquisition strategy comprises a driving scene of the objective driving data, and obtaining the sample acquisition strategy of the automatic driving model further comprises:
obtaining a vehicle control effect of the automatic driving model in a test driving scene; and
setting the test driving scene as the driving scene of the objective driving data in a case that the vehicle control effect of the automatic driving model in the test driving scene fails to meet a preset driving safety standard.
2 . The method of claim 1 , wherein obtaining the vehicle control effect of the automatic driving model in the test driving scene further comprises:
obtaining test samples of the test driving scene;
inputting the test samples into the automatic driving model to obtain a vehicle control command corresponding to the test driving scene; and
detecting whether an execution result of the vehicle control command in the test driving scene meets the preset driving safety standard, to obtain the vehicle control effect.
3 . The method of claim 1 , wherein after training the automatic driving model based on the training set, the method further comprises:
continuing to obtain the vehicle control effect of the automatic driving model in the test driving scene until the vehicle control effect of the automatic driving model in the test driving scene meets the preset driving safety standard.
4 . A method configured for training an automatic driving model applied to a vehicle equipment of a vehicle enabled to communicate with a computer device, the computer device comprising a server, and the method comprising:
collecting driving data of the vehicle as the vehicle is in operation;
receiving a sample acquisition strategy of the automatic driving model from the computer device, wherein the sample acquisition strategy comprises a driving scene of an objective driving data, and the computer device obtains a vehicle control effect of the automatic driving model in a test driving scene, and sets the test driving scene as the driving scene of the objective driving data when the vehicle control effect of the automatic driving model in the test driving scene fails to meet a preset driving safety standard;
sorting the objective driving data from collected driving data based on the sample acquisition strategy; and
transmitting the objective driving data to the computer device, wherein the objective driving data is added into a training set of the automatic driving model, and the automatic driving model is trained based on the training set including the objective driving data, trained automatic driving model is deployed to the vehicle via the server, and the vehicle operates in an automatic driving mode based on the trained automatic driving model.
5 . The method of claim 4 , wherein sorting the objective driving data from the collected driving data based on the sample acquisition strategy further comprises:
obtaining driving scenes of the collected driving data; and
sorting the objective driving data meeting the sample acquisition strategy from the collected driving data based on the driving scenes of the collected driving data.
6 . The method of claim 5 , wherein obtaining the driving scenes of the collected driving data further comprising:
inputting the collected driving data into a pre-trained scene recognition model to obtain the driving scenes of the collected driving data.
7 . A system configured for training an automatic driving model, comprising;
a vehicle comprising a vehicle equipment; and
a computer device communicated with the vehicle equipment, the computer device comprising a server;
wherein the vehicle equipment is configured to:
collect driving data of the vehicle in a driving process,
receive a sample acquisition strategy of the automatic driving model from the computer device,
sort objective driving data from collected driving data based on the sample acquisition strategy, and
transmit the objective driving data to the computer device;
the computer device is configured to:
obtain the sample acquisition strategy of the automatic driving model,
transmit the sample acquisition strategy of the automatic driving model to the vehicle equipment,
receive the objective driving data from the vehicle equipment,
add the objective driving data into a training set of the automatic driving model, and
train the automatic driving model based on the training set including the objective driving data;
wherein trained automatic driving model is deployed to the vehicle via the server, the vehicle operates in an automatic driving mode based on the trained automatic driving model, the sample acquisition strategy comprises a driving scene of the objective driving data, and when the computer device obtains the sample acquisition strategy of the automatic driving model, the computer device is further configured to:
obtain a vehicle control effect of the automatic driving model in a test driving scene; and
set the test driving scene as the driving scene of the objective driving data when the vehicle control effect of the automatic driving model in the test driving scene fails to meet a preset driving safety standard.
8 . The system of claim 7 , wherein when the computer device obtains the vehicle control effect of the automatic driving model in the test driving scene, the computer device is further configured to:
obtain test samples of the test driving scene;
input the test samples into the automatic driving model to obtain a vehicle control command corresponding to the test driving scene; and
detect whether an execution result of the vehicle control command in the test driving scene meets the preset driving safety standard, to obtain the vehicle control effect.
9 . The system of claim 7 , wherein after the computer device trains the automatic driving model based on the training set, the computer device is further configured to:
continue to obtain the vehicle control effect of the automatic driving model in the test driving scene until the vehicle control effect of the automatic driving model in the test driving scene meets the preset driving safety standard.
10 . The system of claim 7 , wherein when the vehicle equipment sorts the objective driving data from the collected driving data based on the sample acquisition strategy, the vehicle equipment is further configured to:
obtain driving scenes of the collected driving data; and
sort the objective driving data meeting the sample acquisition strategy from the collected driving data based on the driving scenes of the collected driving data.
11 . The system of claim 10 , wherein when the vehicle equipment obtains the driving scenes of the collected driving data, the vehicle equipment is further configured to:
input the collected driving data into a pre-trained scene recognition model to obtain the driving scenes of the collected driving data.