A training method, system, device and storage medium for target recognition model

Through multiple rounds of model iteration and parameter iteration, combined with random disturbance and candidate parameter adjustment, the problem of under-fitting and over-fitting in target recognition model training is solved, and the recognition ability and recognition effect are improved.

CN117671385BActive Publication Date: 2024-09-03BEIJING SENIOR SMART DRIVING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311759749.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2024-09-03
Estimated Expiration
2043-12-20

AI Technical Summary

Technical Problem

Existing target recognition models are prone to under-fitting or over-fitting problems during the training process, and it is difficult to adjust the learning rate and momentum factors, which affects the recognition effect of the model.

Method used

Through multiple rounds of model iteration and parameter iteration, the preliminary gradient value is calculated and adjusted within a certain range, random disturbance is added to determine candidate model parameters, and hyperparameters are adjusted based on the candidate parameters to improve the model training effect.

Benefits of technology

It improves the training effect and recognition ability of the target recognition model, solves the problem of difficult hyperparameter adjustment, and achieves better model performance and recognition effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117671385B
    Figure CN117671385B
Patent Text Reader

Abstract

The present specification relates to a training method, system, device and storage medium for a target recognition model, the method comprising obtaining a plurality of training samples, the training samples comprising laser point cloud data; performing a plurality of rounds of model iterations based on the plurality of training samples and training parameters to complete the training of the target recognition model, the target recognition model being used to recognize targets based on the laser point cloud data, wherein in each round of model iteration: calculating a preliminary gradient value based on the model parameters corresponding to the round of model iteration; performing a plurality of parameter iterations based on the model parameters and the preliminary gradient values ​​corresponding to the round of model iteration to determine a plurality of candidate model parameters; determining a target model parameter based on the plurality of candidate model parameters as the updated model parameter; and evaluating the target recognition model corresponding to the round of model iteration to determine whether the model training process is completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a training method and system for a target recognition model. Background Art

[0002] The task of target recognition is one of the core issues in the field of computer vision. The purpose of target recognition is to identify the target (object) of interest in the image. In some scenarios, it can also further determine the position, size and other information of the target. Since different targets have different appearances, shapes, postures, etc., and are interfered by factors such as illumination, occlusion, and different image acquisition devices during imaging, target recognition is a difficult task type in the field of computer vision.

[0003] With the development of machine learning, in order to better complete the target recognition task, machine learning can be used to use the powerful processing capabilities of machine learning models to achieve the recognition of the target of interest. However, the performance of the machine learning model is strongly correlated with its training method. Therefore, it is necessary to provide an improved training method for the target recognition model to improve the training effect of the target recognition model, thereby improving the recognition ability and recognition effect of the target recognition model. Summary of the invention

[0004] One of the embodiments of the present specification provides a method for training a target recognition model, which includes: obtaining multiple training samples, the training samples including laser point cloud data; based on the multiple training samples and training parameters, performing multiple rounds of model iterations to complete the training of the target recognition model, the target recognition model is used to recognize targets based on laser point cloud data, wherein in each round of model iteration: based on the model parameters corresponding to the round of model iteration, a preliminary gradient value is calculated; based on the model parameters and the preliminary gradient values ​​corresponding to the round of model iteration, multiple parameter iterations are performed to determine multiple candidate model parameters; based on the multiple candidate model parameters, target model parameters are determined as updated model parameters; and the target recognition model corresponding to the round of model iteration is evaluated to determine whether the model training process is completed.

[0005] One of the embodiments of the present specification provides a training system for a target recognition model, which includes: a sample acquisition module, used to acquire multiple training samples, the training samples include laser point cloud data; a model training module, used to perform multiple rounds of model iterations based on multiple training samples and training parameters to complete the training of the target recognition model, in each round of model iteration, the target recognition model is used to recognize the target based on the laser point cloud data; the model training module is also used to: calculate preliminary gradient values ​​based on the model parameters corresponding to the round of model iteration; perform multiple parameter iterations based on the model parameters and preliminary gradient values ​​corresponding to the round of model iteration to determine multiple candidate model parameters; determine the target model parameters based on the multiple candidate model parameters as the updated model parameters; and evaluate the target recognition model corresponding to the round of model iteration to determine whether the model training process is completed.

[0006] One of the embodiments of the present specification provides a training device for a target recognition model, including a processor, and the processor is used to execute a training method for the target recognition model.

[0007] One of the embodiments of the present specification provides a computer-readable storage medium, which stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes a training method for a target recognition model. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:

[0009] Figure 1 is an exemplary scene diagram of a target recognition model according to some embodiments of this specification;

[0010] Figure 2 is an exemplary flowchart of one round of iteration in the training process of the target recognition model shown in some embodiments of this specification;

[0011] Figure 3 is an exemplary flow chart of a parameter iteration in a round of model iteration in the training process of the target recognition model shown in some embodiments of this specification;

[0012] Figure 4 It is an exemplary module diagram of a training system for a target recognition model according to some embodiments of this specification. DETAILED DESCRIPTION

[0013] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.

[0014] It should be understood that the "system", "device", "unit" and / or "module" used herein are a method for distinguishing different components, elements, parts, portions or assemblies at different levels. However, if other words can achieve the same purpose, the words can be replaced by other expressions.

[0015] As shown in this specification and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "comprise" and "include" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0016] Flowcharts are used in this specification to illustrate the operations performed by the system according to the embodiments of this specification. It should be understood that the preceding or following operations are not necessarily performed precisely in order. Instead, the steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.

[0017] The model training process generally involves parameters configured within the model itself (referred to as "model parameters") and parameters used for model training (referred to as "training parameters" or "hyperparameters"). The model parameters of the target recognition model may include weights, biases, etc. During the training of the target recognition model, the model parameters can be iteratively adjusted, and the final performance after the model training is completed is related to the model parameters. The training parameters usually need to be preset by the user based on experience before model training. If the training parameters are not selected appropriately, the model is prone to underfitting or overfitting problems.

[0018] In view of this, some embodiments of the present specification provide a method for training a target recognition model, which can select more appropriate parameters as much as possible in each round of iteration during the model training process, thereby improving the training effect of the model.

[0019] Figure 1 is an exemplary scene diagram of a target recognition model according to some embodiments of this specification.

[0020] refer to Figure 1 , the target recognition model 120 is used to detect the target based on the laser point cloud data. Taking the autonomous driving scenario as an example, the target recognition model 120 can be used to identify obstacles or other vehicles around the vehicle based on the laser point cloud data acquired by the laser radar 110-2 (LiDAR) on the vehicle 110-1. In some embodiments, the laser radar 110-2 can be configured to capture data as the vehicle 110-1 moves along a track. For example, the transmitter of the laser radar 110-2 can be configured to scan the surrounding environment. The laser radar 110-2 measures the distance to the target by illuminating the target with a pulsed or continuous wave laser beam and measuring the reflected / scattered pulses with a receiver. The laser beam used for the laser radar 110-2 can be ultraviolet light, visible light, or near infrared light. In some embodiments, the laser radar 110-2 can capture point cloud data including depth information of objects in the surrounding environment.

[0021] The target recognition model 120 may be a machine learning model. In some embodiments, the target recognition model 120 may be obtained by training the initial model 122 using a plurality of training samples 130, and the trained target recognition model 120 is stored in a storage device 140. When the vehicle 110-1 is running, the laser point cloud data acquired by the laser radar 110-2 is input into the target recognition model 120, and the target recognition model 120 may output a recognition result 150 to reflect information such as the type of obstacle.

[0022] In some embodiments, the training method of the target recognition model 120 may include obtaining multiple training samples 130, where the training samples 130 include laser point cloud data; based on the multiple training samples 130 and training parameters, performing multiple rounds of model iterations to complete the training of the target recognition model 120.

[0023] In some embodiments, training samples 130 may be constructed from historically acquired laser point cloud data to train the initial model 122. The historically acquired laser point cloud data may be surrounding point cloud data acquired by a laser radar (such as laser radar 110-2) when a vehicle (such as vehicle 110-1) is running, and training samples 130 for machine learning model training may be obtained by manually adding corresponding labels (such as target recognition results) to objects in the point cloud data.

[0024] In some embodiments, the training parameters may include at least one of a learning rate and a momentum factor.

[0025] The learning rate can represent the step size of the optimization update of the model parameters during the model training process. For the sake of convenience, the model parameters are further explained in terms of weights in the following text. It can be understood that other parameters such as bias in the model parameters can be adjusted in the same or similar manner. Specifically, the learning rate can control the amplitude of each (round) update of the weight. If the learning rate is set too large, the training may be unstable; if the learning rate is set too small, the training may be very slow. In order to better explain the learning rate, this manual explains it with the stochastic gradient descent method, which is an optimization algorithm commonly used in machine learning to reduce the value of the loss function, and this manual does not expand the description.

[0026] The algorithm formula of stochastic gradient descent can be expressed as: where θ t Represents the weight of the model in this iteration, θ t-1 represents the weight of the previous iteration of the model, η represents the learning rate, represents the gradient calculated based on the current random sample and the cost function J (i.e., the direction of model parameter optimization update), x i represents a random sample, y i Represents the true value corresponding to the random sample. It should be noted that the learning rate can also be used in other optimization algorithms besides the stochastic gradient descent method.

[0027] In the stochastic gradient descent method, the optimization performance of the model depends heavily on whether the learning rate η is selected appropriately. Choosing a suitable learning rate usually requires researchers to spend a lot of time and effort.

[0028] Since the stochastic gradient descent method only uses a small number of samples in each iteration, its convergence speed may be relatively slow when facing a noisy data set. Another optimization algorithm, the momentum method, introduces a hyperparameter momentum factor based on the stochastic gradient descent method to smooth the model parameter update process. The momentum factor is a hyperparameter used to control the influence of momentum information on the overall gradient update when training a machine learning model. It is usually expressed as a number between 0 and 1, which is used to control the contribution of historical gradient information to the current gradient update. The algorithm formula of the momentum method can be expressed as: θ t =θ t-1 -v t ; where γ represents the momentum factor, v t Indicates the direction of parameter optimization update at the current moment.

[0029] Similar to the learning rate, the momentum factor also needs to be manually selected. Different values ​​may lead to different training effects.

[0030] It can be seen from the above formula that the learning rate and momentum factor play similar roles in the model training process. In order to improve the model training effect, the difficulty of adjusting the learning rate and momentum factor at the same time is further increased.

[0031] In some embodiments of the present specification, multiple rounds of model iterations can be performed based on multiple training samples and training parameters to complete the training of the target recognition model. In some embodiments, in each round of multiple rounds of model iterations during the model training process, multiple candidate model parameters can be determined by adding random perturbations, and hyperparameters can be adjusted in combination with the candidate model parameters, so that the model training process has adaptive adjustment capabilities and solves the problem of difficulty in adjusting hyperparameters.

[0032] Figure 2 FIG. 1 is an exemplary flow chart of a round of model iteration in the training process of the target recognition model shown in some embodiments of this specification. Figure 2 As shown, the process 200 includes the following steps. In some embodiments, one or more steps in the process 200 can be performed by the model training module 420.

[0033] Step 210, calculating a preliminary gradient value based on the model parameters corresponding to this round of model iteration.

[0034] The preliminary gradient value indicates the adjustment direction of the model parameters in the current round of model iteration obtained under the current model parameters. In some embodiments, if the current model iteration is the first round of model iteration, the current model parameters are initialized parameters; if the current model iteration is not the first round of model iteration, the current model parameters are updated model parameters determined in the previous round of model iteration.

[0035] In some embodiments, the method of calculating the preliminary gradient value may include: inputting the training sample into the model for forward propagation to obtain the model's prediction result for the training sample, and calculating the loss function value based on the error between the prediction result and the true value, and further, performing back propagation on the model based on the obtained loss function value to calculate the gradient value. The loss function represents the error between the prediction result of the training sample and the true value. In some embodiments, the loss function can be expressed as Where y is the label corresponding to the training sample, is the prediction result of the target recognition model for the training sample. During the model training process, the choice of loss function will affect the performance of the trained model. For example, for the target recognition model of the multi-classification target recognition task, its loss function can be the classification loss (such as the cross entropy loss function) used to measure the classification accuracy of the model for multiple target categories. The loss function value represents the result of the current round of loss function.

[0036] The model parameter adjustment direction and adjustment range reflected by the preliminary gradient value are relatively simple, and arbitrary adjustment of the preliminary gradient value may lead to a decrease in model performance. Therefore, in the embodiments of this specification, the preliminary gradient value is adjusted within a certain appropriate range, and the parameter modification direction (or updated model parameters) is determined by performing multiple parameter iterations at least based on the adjusted gradient value.

[0037] Step 220: Based on the model parameters and the preliminary gradient values ​​corresponding to this round of model iteration, multiple parameter iterations are performed to determine multiple candidate model parameters.

[0038] In some embodiments, the preliminary gradient value can be adjusted based on a preset interval (such as within a ±10% interval) to obtain multiple random gradient values ​​within the preset interval, and candidate model parameters corresponding to each random gradient value are iteratively selected based on the multiple random gradient values.

[0039] Figure 3 FIG. 1 is an exemplary flow chart of a parameter iteration in a round of model iteration during the training process of the target recognition model shown in some embodiments of this specification. Figure 3 As shown, process 300 includes the following steps.

[0040] Step 310: determine the target gradient value corresponding to this parameter iteration.

[0041] The target gradient value is obtained by varying the preliminary gradient value to a certain extent. In some embodiments, the target gradient value can be obtained by adding noise to the preliminary gradient value.

[0042] In some embodiments, depending on whether the current parameter iteration is the first parameter iteration, the method for obtaining the target gradient value corresponding to the parameter iteration is different.

[0043] In some embodiments, if the current iteration is the first parameter iteration, the target gradient value corresponding to the parameter iteration is determined based on the preliminary gradient value and the noise sampling value; if the current iteration is not the first parameter iteration, the target gradient value corresponding to the parameter iteration is determined based on the target gradient value and the noise sampling value corresponding to the previous parameter iteration.

[0044] In some embodiments, the noise sampling value is sampled from a preset distribution. In some embodiments, the preset distribution may be a Gaussian distribution. It should be noted that in some embodiments, the preset distribution may also be other distributions, such as a t distribution, a Cauchy distribution, and the like.

[0045] For example, assuming that k parameter iterations are performed in total and the current iteration is the i-th parameter iteration, in step 210, the model parameters (such as weights θ t ), the calculated initial gradient value is expressed as g t. Then the target gradient value corresponding to the i-th parameter iteration is in, represents the target gradient value corresponding to the last parameter iteration, and N(0,σ) represents a normal distribution with an expectation of 0 and a variance of σ. In some embodiments, if the current parameter iteration is the first time, the target gradient value is g′ t =g t +N(0,σ).

[0046] In some embodiments, by adding noise disturbance to the preliminary gradient value, the target gradient value obtained in this iteration has a certain degree of randomness. In multiple rounds of parameter iteration, the model parameters obtained based on the target gradient value can have different update amplitudes and update directions, and then in subsequent steps, the loss function can be determined based on the model parameters corresponding to multiple different update amplitudes and update directions, and then more appropriate model parameters can be selected to improve the performance of the model.

[0047] Step 320: Based on the target gradient value corresponding to the parameter iteration, the model parameters corresponding to the current round of model iteration or the candidate model parameters corresponding to the previous parameter iteration are updated by the optimizer to obtain the candidate model parameters corresponding to the parameter iteration.

[0048] In some embodiments, the optimizer may iterate the target gradient value corresponding to the secondary parameter. Update the model parameters to obtain the candidate model parameters corresponding to this parameter iteration (for example, the updated weights ). Specifically, if the current iteration is the first parameter iteration, the optimizer updates the model parameters corresponding to the current model iteration based on the target gradient value corresponding to the parameter iteration; if the current iteration is not the first parameter iteration, the optimizer updates the candidate model parameters corresponding to the previous parameter iteration based on the target gradient value corresponding to the parameter iteration. Continuing with the previous example, assuming that k parameter iterations are performed in total, k updated weight sets can be obtained That is, multiple candidate model parameters are obtained.

[0049] In some embodiments, the optimizer may select an Adam optimizer, a Momentum optimizer, an SGD optimizer, etc. Updating the model parameters by the optimizer is a conventional technique in the art and will not be further described in this specification.

[0050] In some embodiments, the optimizer embeds model training parameters, which may include at least one of the learning rate and momentum as described above. The training parameters may remain fixed in multiple parameter iterations, or may be based on the optimizer algorithm or the model parameters obtained from the previous iteration (e.g. Therefore, in some embodiments, process 300 may further include step 330 to update the model training parameters.

[0051] Step 330: Based on the candidate model parameters corresponding to this parameter iteration, the model training parameters are updated for use in the next parameter iteration or the next round of model iteration.

[0052] For each parameter iteration or each round of model iteration, different training parameters can be used to make more random combinations of training parameters (such as learning rate and momentum factor) within a reasonable range of variation to improve the model training effect. In some embodiments, the model training parameters can also be updated once after multiple parameter iterations, such as once after every 5 parameter iterations.

[0053] By combining the candidate model parameters, the model training parameters are adjusted, so that the model training process has adaptive adjustment capabilities, effectively solving the problem of difficulty in adjusting training parameters (hyperparameters).

[0054] Step 230: Determine target model parameters based on the multiple candidate model parameters as updated model parameters.

[0055] In some embodiments, a candidate model parameter that meets a preset condition among multiple candidate model parameters may be selected as the model parameter updated in this round of model iteration. For example, the preset condition may be to select the candidate model parameter with the largest change (such as difference) relative to the model parameter corresponding to this round of model iteration as the model parameter updated in this round of model iteration to obtain a larger adjustment range.

[0056] In some embodiments, if the number of candidate model parameters is large, it may take a long time to execute step 230, and the differences between the candidate model parameters obtained by adjacent parameter iterations may be small. Therefore, a portion of the candidate model parameters may be selected from the plurality of candidate model parameters by arithmetic sampling for further processing.

[0057] In some embodiments, step 230 may further include: based on a preset sampling step size, determining a sampling set from multiple candidate model parameters through arithmetic sampling, the sampling set including at least two sampling candidate model parameters; calculating the loss function values ​​corresponding to the at least two sampling candidate model parameters respectively; based on the loss function values, determining the target model parameters from the at least two sampling candidate model parameters as the updated model parameters.

[0058] In some embodiments, the sampling step size may be a value preset based on manual experience before model training. In some embodiments, the sampling step size may be related to the number of parameter iterations. For example, the sampling step size may be set so that the number of sampled candidate model parameters in the sampling set obtained by arithmetic sampling is fixed (such as 10, 50 or 100, etc.).

[0059] Continuing with the previous example, assuming that the sampling step size is s, the sampling set can be the sampling candidate weight set of k / s sampling candidate model parameters selected from the updated weight set K (containing k updated weights)

[0060] In some embodiments, the loss function value corresponding to each sampling candidate model parameter can be calculated by forward propagation of the model. For example, the loss function value corresponding to each sampling candidate model parameter in the sampling candidate weight set R can be calculated. It can be used as a model parameter, and the training samples can be input into the model to obtain the model's prediction results for the training samples, and the loss function value L can be calculated by calculating the error between the prediction results and the true value. t , and repeat this cycle until the sampling loss function set corresponding to all sampling candidate weights is obtained Furthermore, the sampling loss function set S can be used to select a sampling candidate weight from the sampling candidate weight set R to obtain the target model parameter as the updated model parameter.

[0061] In some embodiments, based on the loss function value, determining the target model parameter from at least two sampled candidate model parameters as the updated model parameter can further include: selecting the sampled candidate model parameter with the smallest loss function value as the target model parameter as the updated model parameter.

[0062] Continuing with the above example, a sampling candidate weight may be selected from the sampling candidate weight set R based on the sampling loss function set S. In some embodiments, the sampling candidate weight with the smallest loss function value may be selected from the sampling loss function set S (e.g. ) as the updated model parameters.

[0063] Step 240, evaluating the target recognition model corresponding to this round of model iteration to determine whether the model training process is completed.

[0064] In some embodiments, at the end of each round of model iteration, the target recognition model of the currently updated model parameters can be evaluated, for example, using a validation set or a cross-validation method to evaluate the model. When the performance of the model reaches a preset requirement (such as model convergence, etc.) or the number of model iterations reaches a preset maximum number of iterations, it can be determined that the model training is completed; if the evaluation determines that the model training is not completed, the next round of model iteration is performed, that is, the above process 200 is re-executed, and the updated model parameters can be used as the starting model parameters for the next round of model iteration.

[0065] It should be noted that the above description of the process 200 and the process 300 is only for example and explanation, and does not limit the scope of application of this specification. For those skilled in the art, various modifications and changes can be made to the process 200 and the process 300 under the guidance of this specification. However, these modifications and changes are still within the scope of this specification.

[0066] By adding random noise disturbance to the gradient, multiple candidate model parameters are determined and the sampled model parameters are selected by sampling to determine better model parameters, so that during the model parameter optimization (model training) process, the update amplitude and update direction of the model parameters can be dynamically adjusted, so that the model trained by the target recognition model training method provided in this specification can have better target recognition ability and recognition effect.

[0067] Figure 4 It is an exemplary module diagram of a training system for a target recognition model according to some embodiments of this specification.

[0068] refer to Figure 4 The target recognition model training system 400 provided in this specification includes a sample acquisition module 410 and a model training module 420.

[0069] The sample acquisition module 410 can be used to acquire multiple training samples, where the training samples include laser point cloud data. For more information about training samples, see Figure 1 Related description.

[0070] The model training module 420 can be used to perform multiple rounds of model iterations based on multiple training samples and training parameters to complete the training of the target recognition model, where the target recognition model is used to recognize targets based on laser point cloud data, wherein the model training module 420 is also used to: calculate preliminary gradient values ​​based on the model parameters corresponding to this round of model iteration; perform multiple parameter iterations based on the model parameters and preliminary gradient values ​​corresponding to this round of model iteration to determine multiple candidate model parameters; determine the target model parameters based on the multiple candidate model parameters as the updated model parameters; and evaluate the target recognition model corresponding to this round of model iteration to determine whether the model training process is completed.

[0071] For more information about the model training module 420, please refer to the relevant descriptions of process 200 and process 300.

[0072] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of this specification. Although not explicitly stated here, those skilled in the art may make various modifications, improvements and corrections to this specification. Such modifications, improvements and corrections are suggested in this specification, so such modifications, improvements and corrections still belong to the spirit and scope of the exemplary embodiments of this specification.

[0073] At the same time, this specification uses specific words to describe the embodiments of this specification. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of this specification. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, certain features, structures or characteristics in one or more embodiments of this specification can be appropriately combined.

[0074] In addition, unless explicitly stated in the claims, the order of processing elements and sequences, the use of alphanumeric characters, or the use of other names in this specification are not intended to limit the order of the processes and methods of this specification. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this specification. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.

[0075] Similarly, it should be noted that in order to simplify the description disclosed in this specification and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this specification, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the subject matter of this specification are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.

[0076] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of this specification are approximate values, in specific embodiments, the setting of such numerical values ​​is as accurate as possible within the feasible range.

[0077] Each patent, patent application, patent application publication, and other materials, such as articles, books, specifications, publications, documents, etc., cited in this specification is hereby incorporated by reference in its entirety. Except for application history documents that are inconsistent with or conflicting with the content of this specification, documents that limit the broadest scope of the claims of this specification (currently or later attached to this specification) are also excluded. It should be noted that if the descriptions, definitions, and / or use of terms in the materials attached to this specification are inconsistent or conflicting with the content of this specification, the descriptions, definitions, and / or use of terms in this specification shall prevail.

[0078] Finally, it should be understood that the embodiments in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.

Claims

1. A method for training a target recognition model, characterized in that: The method comprises: Acquire a plurality of training samples, wherein the training samples include laser point cloud data; Based on the multiple training samples and training parameters, multiple rounds of model iterations are performed to complete the training of the target recognition model, where the target recognition model is used to recognize the target based on the laser point cloud data, wherein in each round of model iteration: Calculate the initial gradient value based on the model parameters corresponding to this round of model iteration; Based on the model parameters and the preliminary gradient values ​​corresponding to the round of model iteration, multiple parameter iterations are performed to determine multiple candidate model parameters, wherein for each parameter iteration: If the current iteration is the first parameter iteration, based on the preliminary gradient value and the noise sampling value, Determine the target gradient value corresponding to this parameter iteration; If the current iteration is not the first parameter iteration, determine the target gradient value corresponding to the current parameter iteration based on the target gradient value and the noise sampling value corresponding to the previous parameter iteration; Based on the target gradient value corresponding to the parameter iteration, the model parameters corresponding to the current round of model iteration or the candidate model parameters corresponding to the previous parameter iteration are updated by the optimizer to obtain the candidate model parameters corresponding to the parameter iteration; Based on the multiple candidate model parameters, determine the target model parameters as updated model parameters; The target recognition model corresponding to this round of model iteration is evaluated to determine whether the model training process is completed.

2. The method according to claim 1, characterized in that The noise sampling value is sampled from a preset distribution, and the preset distribution is a normal distribution.

3. The method according to claim 1, characterized in that The optimizer has built-in model training parameters, wherein the model training parameters include at least one of a learning rate and a momentum; Each parameter iteration further includes: Based on the candidate model parameters corresponding to this parameter iteration, the model training parameters are updated for use in the next parameter iteration or the next round of model iteration.

4. The method according to claim 1, characterized in that The step of determining target model parameters based on the plurality of candidate model parameters as updated model parameters includes: Based on a preset sampling step length, a sampling set is determined from the plurality of candidate model parameters by arithmetic sampling, wherein the sampling set includes at least two sampled candidate model parameters; Calculating loss function values ​​corresponding to the at least two sampled candidate model parameters respectively; Based on the loss function value, the target model parameter is determined from the at least two sampled candidate model parameters as the updated model parameter.

5. The method according to claim 4, characterized in that The step of determining the target model parameter from the at least two sampled candidate model parameters based on the loss function value as the updated model parameter comprises: The sampling candidate model parameters with the smallest loss function value are selected as the target model parameters, as the updated model parameters.

6. A training system for a target recognition model, characterized in that: The system comprises: A sample acquisition module, used to acquire a plurality of training samples, wherein the training samples include laser point cloud data; A model training module is used to perform multiple rounds of model iterations based on the multiple training samples and training parameters to complete the training of the target recognition model, wherein the target recognition model is used to recognize the target based on the laser point cloud data, wherein in each round of model iteration, the model training module is used to: Calculate the initial gradient value based on the model parameters corresponding to this round of model iteration; Based on the model parameters and the preliminary gradient values ​​corresponding to the round of model iteration, multiple parameter iterations are performed to determine multiple candidate model parameters, wherein for each parameter iteration: If the current iteration is the first parameter iteration, based on the preliminary gradient value and the noise sampling value, Determine the target gradient value corresponding to this parameter iteration; If the current iteration is not the first parameter iteration, determine the target gradient value corresponding to the current parameter iteration based on the target gradient value and the noise sampling value corresponding to the previous parameter iteration; Based on the target gradient value corresponding to the parameter iteration, the model parameters corresponding to the current round of model iteration or the candidate model parameters corresponding to the previous parameter iteration are updated by the optimizer to obtain the candidate model parameters corresponding to the parameter iteration; based on the multiple candidate model parameters, the target model parameters are determined as the updated model parameters; The target recognition model corresponding to this round of model iteration is evaluated to determine whether the model training process is completed.

7. The system according to claim 6, characterized in that The optimizer has built-in model training parameters, wherein the model training parameters include at least one of a learning rate and a momentum; Each parameter iteration further includes: Based on the candidate model parameters corresponding to this parameter iteration, the model training parameters are updated for use in the next parameter iteration or the next round of model iteration.

8. The system according to claim 6, characterized in that The training module is also used to: Based on a preset sampling step length, a sampling set is determined from the plurality of candidate model parameters by arithmetic sampling, wherein the sampling set includes at least two sampled candidate model parameters; Calculating loss function values ​​corresponding to the at least two sampled candidate model parameters respectively; Based on the loss function value, the target model parameter is determined from the at least two sampled candidate model parameters as the updated model parameter.

9. A training device for a target recognition model, comprising a processor, characterized in that: The processor is used to execute the training method of the target recognition model as described in any one of claims 1 to 5.

10. A computer-readable storage medium, wherein the storage medium stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes the target recognition model training method as described in any one of claims 1 to 5.