Navigation model training method and device, storage medium and electronic equipment

By sharing and adjusting the encoder and decoder parameters of the navigation model, the problems of low training efficiency and large network size of the deep learning model are solved, and efficient navigation effects and response times are achieved.

CN118839729APending Publication Date: 2024-10-25UNIV OF SCI & TECH OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410871186.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

Existing deep learning models have low training efficiency and large network scale in obstacle avoidance technology, resulting in long real-time inference response times and poor navigation effects.

Method used

By obtaining the navigation model to be trained, the training data set and the enhanced data, using the training data set to train the decoder, sharing the encoder parameters of the second model, and using the enhanced data to adjust the encoder and decoder parameters after the initial training conditions are met, Reduce network size to improve training efficiency and navigation effects.

Benefits of technology

It effectively improves the training efficiency of the navigation model, shortens the model response inference time, improves the navigation effect, and ensures the safety and smooth operation of mobile devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118839729A_ABST
    Figure CN118839729A_ABST
Patent Text Reader

Abstract

The invention provides a navigation model training method and device, a storage medium and electronic equipment. The method comprises the following steps: acquiring a to-be-trained first model, a training data set and enhanced data; the training data set comprises a plurality of navigation data; the enhanced data is obtained by processing failed navigation data in the training data set by a pre-trained second model; the first model comprises an encoder and a decoder, and the encoder of the first model shares encoder parameters of the second model; using navigation data in the training data set to train a decoder in the first model so as to adjust parameters of the decoder in the first model; and under the condition that the first model meets the initial training completion condition, training the first model meeting the initial training completion condition by using the enhanced data so as to adjust parameters of an encoder and parameters of a decoder of the first model meeting the initial training completion condition. By applying the method provided by the embodiment of the invention, the training efficiency and navigation effect of the model can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a training method, device, storage medium and electronic equipment for a navigation model. Background Art

[0002] With the rapid development of automated navigation and mobile control technologies, obstacle avoidance technology is one of the core technologies to ensure the safe and efficient operation of mobile devices.

[0003] Existing obstacle avoidance technologies usually use deep learning to achieve obstacle avoidance. However, the training efficiency of existing deep learning models is low, and the network scale is large, which makes the real-time reasoning response time long, resulting in poor navigation effect. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a navigation model training method, device, storage medium and electronic device, which can effectively improve the model training efficiency and navigation effect. The specific scheme is as follows:

[0005] A method for training a navigation model, comprising:

[0006] Acquire a first model to be trained, a training data set and enhanced data; the training data set includes a plurality of navigation data; the enhanced data is obtained by processing the failed navigation data in the training data set by a pre-trained second model; the first model includes an encoder and a decoder, and the encoder of the first model shares encoder parameters of the second model;

[0007] Training a decoder in the first model using the navigation data in the training data set to adjust parameters of the decoder in the first model;

[0008] When the first model meets the preset initial training completion condition, the first model that meets the initial training completion condition is trained using the enhanced data to adjust the parameters of the encoder and the decoder of the first model that meets the initial training completion condition.

[0009] In the above method, optionally, the step of training the decoder in the first model using the navigation data in the training data set to adjust the parameters of the decoder in the first model includes:

[0010] Selecting target navigation data currently used for training from the training data set;

[0011] The target navigation data is segmented to obtain first sub-navigation data and second sub-navigation data; the first sub-navigation data is the first part of the target navigation data;

[0012] Inputting the first sub-navigation data into a first model to obtain a prediction result output by the first model;

[0013] updating the parameters of the decoder in the first model according to the prediction result and the gap between the second sub-navigation data;

[0014] When the first model after the updated parameters does not meet the preset initial training completion conditions, return to the step of selecting the target navigation data currently used for training in the training data set to iteratively update the parameters of the decoder of the first model until the first model after the updated parameters meets the initial training completion conditions.

[0015] In the above method, optionally, the navigation data includes: an action sequence of the robot;

[0016] The action sequence includes the robot's transition state, actions, and reward values ​​obtained within a preset time period.

[0017] The above method, optionally, after using the enhanced data to train the first model that meets the initial training completion condition, further includes:

[0018] In the case where the first model satisfying the initial training completion condition is trained using the enhanced data, using the trained first model as a target navigation model;

[0019] Get the robot's current navigation data;

[0020] Inputting the current navigation data of the robot into the target navigation model to obtain a navigation prediction result output by the target navigation model; the navigation prediction result includes the navigation data of the robot at the next moment;

[0021] The robot is controlled to operate according to the navigation prediction result.

[0022] A training device for a navigation model, comprising:

[0023] A first acquisition unit is used to acquire a first model to be trained, a training data set and enhanced data; the training data set includes a plurality of navigation data; the enhanced data is obtained by processing the failed navigation data in the training data set by a pre-trained second model; the first model includes an encoder and a decoder, and the encoder of the first model shares encoder parameters of the second model;

[0024] A first training unit, configured to train a decoder in the first model using navigation data in the training data set, so as to adjust parameters of the decoder in the first model;

[0025] The second training unit is used to train the first model that meets the preset initial training completion condition using the enhanced data to adjust the parameters of the encoder and the decoder of the first model that meets the initial training completion condition.

[0026] In the above device, optionally, the first training unit includes:

[0027] A selection subunit, used to select target navigation data currently used for training from the training data set;

[0028] The splitting subunit is used to split the target navigation data to obtain first sub-navigation data and second sub-navigation data; the first sub-navigation data is the first part of the target navigation data;

[0029] A prediction subunit, used for inputting the first sub-navigation data into a first model to obtain a prediction result output by the first model;

[0030] An updating subunit, used for updating the parameters of the decoder in the first model according to the prediction result and the gap between the second sub-navigation data;

[0031] An iterative subunit is used to trigger the selection subunit to re-execute the process of selecting the target navigation data currently used for training in the training data set when the first model after the parameter update does not meet the preset initial training completion condition, so as to iteratively update the parameters of the decoder of the first model until the first model after the parameter update meets the initial training completion condition.

[0032] The above device, optionally, the navigation data includes: the action sequence of the robot;

[0033] The action sequence includes the robot's transition state, actions, and reward values ​​obtained within a preset time period.

[0034] The above device may optionally further include:

[0035] A first execution unit is configured to, when the first model satisfying the initial training completion condition is trained by using the enhanced data, use the trained first model as a target navigation model;

[0036] A second acquisition unit is used to acquire the current navigation data of the robot;

[0037] A second execution unit is used to input the current navigation data of the robot into the target navigation model to obtain a navigation prediction result output by the target navigation model; the navigation prediction result includes the navigation data of the robot at the next moment;

[0038] A control unit is used to control the operation of the robot according to the navigation prediction result.

[0039] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned navigation model training method.

[0040] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the above-mentioned navigation model training method.

[0041] Based on the above-mentioned implementation of the present invention, a training method, device, storage medium and electronic device for a navigation model are provided, the method comprising: obtaining a first model to be trained, a training data set and enhanced data; the training data set comprises a plurality of navigation data; the enhanced data is obtained by processing the failed navigation data in the training data set by a pre-trained second model; the first model comprises an encoder and a decoder, and the encoder of the first model shares the encoder parameters of the second model; the decoder in the first model is trained using the navigation data in the training data set to adjust the parameters of the decoder in the first model; when the first model meets the preset initial training completion condition, the first model that meets the initial training completion condition is trained using the enhanced data to adjust the parameters of the encoder and the decoder of the first model that meets the initial training completion condition. By applying the method provided in the embodiment of the present invention, the training efficiency of the model can be effectively improved by configuring the encoder parameters in the trained second model to the first model, and the first model can be trained by the enhanced data so that the first model can achieve effective navigation without a large-scale network, and the model response reasoning time can be shortened to improve the navigation effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0043] Figure 1A method flow chart of a navigation model training method provided by the present invention;

[0044] Figure 2 A flowchart of the operation control process of a robot provided by the present invention;

[0045] Figure 3 A data processing flow chart of a diffusion model provided by the present invention;

[0046] Figure 4 An example diagram of a navigation strategy under the setting of preference weight ranges for various scenarios provided by the present invention;

[0047] Figure 5 An example diagram of a network structure of a diffusion model provided by the present invention;

[0048] Figure 6 A schematic diagram of the structure of a navigation model training device provided by the present invention;

[0049] Figure 7 The present invention provides a schematic structural diagram of an electronic device. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0052] With the rapid development of automated navigation and mobile control technologies, obstacle avoidance technology is one of the core technologies to ensure the safe and effective operation of mobile devices. Existing obstacle avoidance technologies usually use deep learning to achieve obstacle avoidance. However, the training efficiency of existing deep learning models is low, and the network scale is large, which makes the real-time reasoning response time long, resulting in poor navigation results.

[0053] In addition, traditional obstacle avoidance strategies often only focus on avoiding collisions with obstacles, while ignoring the smoothness and efficiency of the movement process. This obstacle avoidance method that lacks comprehensive optimization may cause the mobile platform to make unnecessary sudden stops, sudden turns and other unstable movements during the obstacle avoidance process, thereby affecting its overall performance and operating efficiency. In order to solve this problem, existing studies have proposed to regard obstacle avoidance and motion smoothness as a multi-objective optimization problem, and to find the optimal solution through various heuristic algorithms or meta-heuristic algorithms. This method improves the motion performance of the mobile platform to a certain extent, but due to the limitations of the multi-objective optimization algorithm, such as the easy fall into the local optimal solution and short-sightedness problem, it is difficult to achieve an ideal balance between obstacle avoidance and smoothness in practical applications.

[0054] Based on this, an embodiment of the present invention provides a method for training a navigation model, which can be applied to electronic devices, and the electronic devices can be computers, smart phones, tablet devices, smart wearable devices, server clusters or cloud computing centers, etc. The method flow chart of the method is as follows Figure 1 As shown, specifically including:

[0055] S101: Acquire a first model to be trained, a training data set and enhanced data; the training data set includes multiple navigation data; the enhanced data is obtained by processing the failed navigation data in the training data set by a pre-trained second model; the first model includes an encoder and a decoder, and the encoder of the first model shares the encoder parameters of the second model.

[0056] In this embodiment, the navigation data may be an action sequence of a mobile device, and the mobile device may be a robot, an intelligent driving vehicle, etc. The action sequence includes the transfer state, action, and reward value obtained by the mobile device within a preset time period. Specifically, the action sequence includes the position, speed, reward value obtained, and single-frame laser information of each step of the mobile device within the preset time period, and the single-frame laser information is collected by a laser sensor.

[0057] In this embodiment, the reward value of each step of movement may include the distance of the mobile device closer to the target point compared to the previous step, the distance of the mobile device away from the obstacle compared to the previous step, the inverse of the linear acceleration and the angular acceleration, etc.

[0058] In this embodiment, the second model can be pre-trained based on the navigation data in the training data set; after the second model is trained, the failed navigation data in the training data set is processed according to the trained second model to obtain enhanced data.

[0059] Optionally, the first model may be the planning part of the preset diffusion model, and the second model may be the world part of the diffusion model. The network scale of the decoder of the second model is larger than the network scale of the decoder of the first model, and the second model is used to enhance the prediction ability of the first model.

[0060] In this embodiment, the navigation data in the training data set may be historical navigation data of the mobile device, or may be navigation data collected using the PPO navigation algorithm in a simulation environment.

[0061] Optionally, the process of training the second model using the navigation data in the training data set can be: randomly selecting a navigation data from the training data set, then randomly truncating the selected navigation data, using the first part of the truncation as the input of the second model, and obtaining the prediction result of the output of the second model; obtaining the loss function value according to a preset loss function, the prediction result of the output of the second model, and the second part of the truncation, and updating the model parameters of the second model according to the loss function value; and then determining whether the second model after the model parameters are updated meets the stop training condition. If the stop training condition is not met, returning to execute the step of randomly selecting a navigation data from the training data set until the second model after the model parameters are updated meets the stop training condition.

[0062] Among them, the second model includes an encoder and a decoder; therefore, updating the model parameters of the second model may be updating the encoder parameters and decoder parameters of the second model, thereby realizing training of the second model.

[0063] In this embodiment, the encoder of the first model and the encoder of the second model can be the same encoder or different encoders. If they are different encoders, the encoder parameters in the second model can be configured in the first model, so that the first model shares the encoder parameters of the second model, which can effectively improve the inference speed of the first model.

[0064] S102: Train the decoder in the first model using the navigation data in the training data set to adjust parameters of the decoder in the first model.

[0065] In this embodiment, the encoder parameters in the first model can be fixed.

[0066] S103: When the first model satisfies a preset initial training completion condition, the first model that satisfies the initial training completion condition is trained using the enhanced data to adjust parameters of the encoder and decoder of the first model that satisfies the initial training completion condition.

[0067] Optionally, the initial training completion condition may be that the number of training times of the decoder of the first model is greater than a preset number threshold, the loss function of the first model converges, and the like.

[0068] In this embodiment, when the first model meets the initial training completion condition, the encoder in the first model can be released, and then the parameters of the encoder and decoder of the first model can be updated through the enhanced data.

[0069] Optionally, the process of training the first model using the enhanced data is consistent with the above-mentioned training process of training the second model using the navigation data, and will not be repeated here.

[0070] By applying the method provided in the embodiment of the present invention, the training efficiency of the model can be effectively improved by configuring the encoder parameters in the trained second model to the first model, and the first model can be trained by enhancing the data so that the first model can achieve effective navigation without a large-scale network, which can shorten the model response reasoning time and improve the navigation effect. In addition, the navigation data provided in this embodiment includes a reward value, which can enable the model to autonomously learn and optimize the obstacle avoidance strategy, thereby ensuring safe obstacle avoidance while achieving smooth and efficient operation of the mobile platform, effectively improving the navigation effect.

[0071] In an embodiment provided by the present invention, based on the above solution, optionally, the using the navigation data in the training data set to train the decoder in the first model to adjust the parameters of the decoder in the first model includes:

[0072] Selecting target navigation data currently used for training from the training data set;

[0073] The target navigation data is segmented to obtain first sub-navigation data and second sub-navigation data; the first sub-navigation data is the first part of the target navigation data;

[0074] Inputting the first sub-navigation data into a first model to obtain a prediction result output by the first model;

[0075] updating the parameters of the decoder in the first model according to the prediction result and the gap between the second sub-navigation data;

[0076] When the first model after the updated parameters does not meet the preset initial training completion conditions, return to the step of selecting the target navigation data currently used for training in the training data set to iteratively update the parameters of the decoder of the first model until the first model after the updated parameters meets the initial training completion conditions.

[0077] In this embodiment, the target navigation data may be divided into two parts, namely first sub-navigation data and second sub-navigation data. The first sub-navigation data is the first part of the target navigation data, and the second sub-navigation data is the second part of the target navigation data.

[0078] Optionally, the process of updating the parameters of the decoder in the first model according to the gap between the prediction result output by the first model and the second sub-navigation data can be performed by substituting the prediction result output by the first model and the second sub-navigation data into a preset loss function, calculating the loss function value, and then updating the decoder parameters in the first model according to the loss function value.

[0079] In an embodiment provided by the present invention, based on the above solution, optionally, Figure 2 As shown, after the first model that meets the initial training completion condition is trained using the enhanced data in S103, the following steps are also included:

[0080] S104: When the first model satisfying the initial training completion condition is trained using the enhanced data, the trained first model is used as a target navigation model.

[0081] S105: Obtain the robot's current navigation data.

[0082] S106: Inputting the current navigation data of the robot into the target navigation model to obtain a navigation prediction result output by the target navigation model; the navigation prediction result includes the navigation data of the robot at the next moment.

[0083] S107: Controlling the operation of the robot according to the navigation prediction result.

[0084] In this embodiment, the first action according to the navigation prediction result can be used as the next action to be performed by the robot.

[0085] By applying the method provided in the embodiment of the present invention, the model does not need to explicitly give the user preference weights in advance, but automatically generates the current optimal action sequence from the weight range acceptable to the user, while providing a network enhancement capability, which gives the capabilities of a large-scale network to a small-scale network, so that it can obtain better performance while ensuring the reasoning speed.

[0086] In some embodiments, the data processing flow of the diffusion model is as follows Figure 3As shown in the figure, it can be divided into two parts, specifically a large-scale, slow-reasoning world workflow and a smaller and faster planning workflow. The world part (second model) is used to enhance the capabilities of the planning part (first model), achieving faster reasoning and obtaining planning results of the same quality through data enhancement and shared encoders. First, the world part can be trained to model the navigation process, and enhanced data can be generated based on the failed navigation data in the training dataset; the navigation data in the training dataset contains the robot's pose, speed, reward function value obtained for each step of movement, and single-frame laser information obtained by the laser sensor. Then, the parameters of the world part encoder are copied and fixed to the planning part, and the planning part decoder is trained separately to generate high-quality future action sequences using the original dataset. After that, the parameters are unfixed, and the entire planning part is fine-tuned using the enhanced dataset. Finally, the trained planning part is used as the final navigation strategy. The specific process is as follows:

[0087] First, obtain an offline data set (training data set); in this embodiment, an offline data set can be collected, and both successful and failed data in the data set can be retained. Since it will be used for learning multi-target tasks in the future, a multi-dimensional vector reward (reward value) is additionally defined for each step of the robot's action. The multi-dimensional vector reward specifically includes the following information: the distance closer to the target point compared to the previous step, the distance away from the obstacle compared to the previous step, and the opposite of the linear acceleration and angular acceleration. The navigation data in the offline data set can be real data or simulated data.

[0088] Second, the data is processed through the world part; in this embodiment, the world part plays an important role in understanding the complexity of robot navigation, which models the entire multi-objective decision sequence. The navigation data in the training data set can be used as the input of the world part to automatically generate subsequent sequences by the world part, which include the robot's future state, action and corresponding reward vector, which can provide an understanding of the global process of navigation.

[0089] Specifically, during the training process, the world part obtains navigation data from the original offline data set, and predicts the future state (future transferred state, future action, and future reward) based on the robot's past action sequence (state, action, and reward). During the reasoning process, given any historical action sequence, the world part can generate predictions for future action sequences, and use the world part to regenerate the failure experience in the training data set to obtain new enhanced data. The enhanced data contains the world part's understanding of the global navigation process and is used to train the planning part.

[0090] Third, the data is processed through the planning part; in this embodiment, the planning part can be used to ensure that the generated action sequence meets the user's preferences. Since user preferences will change accordingly in different scenarios, a single preference weight is difficult to design and difficult to meet the needs of navigation tasks in multiple scenarios. Therefore, the planning part abandons the traditional single preference weight design and instead sets a preference weight range, discarding the weights that the user does not want to appear, and the network decides on its own which optimization goal should be favored in different scenarios. Figure 4 The changes in navigation strategies under different preference weight range settings for each scenario are shown.

[0091] Specifically, the planning part is trained first and then fine-tuned. First, the encoder structure parameters are shared with the world part and fixed. The decoder structure is trained using the training data set. In each round of training, a navigation data is randomly selected from the training data set and randomly truncated. The first part of the truncated navigation trajectory is used as the sequence input of the planning part, and the second part of the navigation trajectory is used to calculate the loss function of the sequence output predicted by the planning part. The model parameters are iteratively optimized using the gradient descent method according to the loss function. When the loss function is less than the preset threshold, the planning part can better predict the next action sequence based on the existing navigation data, and the training stops. The encoder and decoder of the planning part are then fine-tuned using the data set enhanced by the world part. During the reasoning process, the planning part can provide a high cumulative reward decision sequence within any weight range that represents the user's preference. The first action in the output sequence generated by the planning part is the next action that the robot will perform.

[0092] By applying the solution provided by the embodiment of the present invention, the diffusion model can be guided by the weight range, the multi-objective nature of robot navigation can be modeled, and long action sequences can be quickly output, which can solve multi-objective optimization problems and maintain excellent performance in high reach and generalization in various navigation environments. This provides a new solution for indoor robot navigation.

[0093] In some embodiments, Figure 5 As shown, a network structure of a diffusion model provided by this embodiment is shown; wherein τ is the action sequence, τ H is the historical action sequence, τ F / τ f is the future action sequence, τ i is the i-th frame data in the action sequence; i is the basic parameter of the diffusion model, referring to the i-th round of denoising; c is the guiding condition parameter of the diffusion model; K is the total number of rounds of diffusion model denoising; ∈ is the standard Gaussian noise, τ K (∈) refers to the standard Gaussian noise of the initial input superimposed K times; Predicted∈ is the noise data distribution predicted by the diffusion model; P θis the network structure parameter; “+ / -” is the addition / deletion of the token sequence; × is the aggregation of the token sequence.

[0094] and Figure 1 Corresponding to the method described above, the embodiment of the present invention also provides a navigation model training device for Figure 1 The specific implementation of the method is shown in the following diagram: Figure 6 As shown, specifically including:

[0095] The first acquisition unit 601 is used to acquire a first model to be trained, a training data set and enhanced data; the training data set includes a plurality of navigation data; the enhanced data is obtained by processing the failed navigation data in the training data set by a pre-trained second model; the first model includes an encoder and a decoder, and the encoder of the first model shares the encoder parameters of the second model;

[0096] A first training unit 602, configured to train a decoder in the first model using the navigation data in the training data set to adjust parameters of the decoder in the first model;

[0097] The second training unit 603 is used to train the first model that meets the preset initial training completion condition using the enhanced data to adjust the parameters of the encoder and the decoder of the first model that meets the initial training completion condition.

[0098] In an embodiment provided by the present invention, based on the above solution, optionally, the first training unit 601 includes:

[0099] A selection subunit, used to select target navigation data currently used for training from the training data set;

[0100] The splitting subunit is used to split the target navigation data to obtain first sub-navigation data and second sub-navigation data; the first sub-navigation data is the first part of the target navigation data;

[0101] A prediction subunit, used for inputting the first sub-navigation data into a first model to obtain a prediction result output by the first model;

[0102] An updating subunit, used for updating the parameters of the decoder in the first model according to the prediction result and the gap between the second sub-navigation data;

[0103] An iterative subunit is used to trigger the selection subunit to re-execute the process of selecting the target navigation data currently used for training in the training data set when the first model after the parameter update does not meet the preset initial training completion condition, so as to iteratively update the parameters of the decoder of the first model until the first model after the parameter update meets the initial training completion condition.

[0104] In an embodiment provided by the present invention, based on the above solution, optionally, the navigation data includes: an action sequence of the robot;

[0105] The action sequence includes the robot's transition state, actions, and reward values ​​obtained within a preset time period.

[0106] In an embodiment provided by the present invention, based on the above solution, optionally, it further includes:

[0107] A first execution unit is configured to, when the first model satisfying the initial training completion condition is trained by using the enhanced data, use the trained first model as a target navigation model;

[0108] A second acquisition unit is used to acquire the current navigation data of the robot;

[0109] A second execution unit is used to input the current navigation data of the robot into the target navigation model to obtain a navigation prediction result output by the target navigation model; the navigation prediction result includes the navigation data of the robot at the next moment;

[0110] A control unit is used to control the operation of the robot according to the navigation prediction result.

[0111] The specific principles and execution processes of each unit and module in the training device of the navigation model disclosed in the above embodiment of the present invention are the same as those of the training method of the navigation model disclosed in the above embodiment of the present invention. Please refer to the corresponding parts of the training method of the navigation model provided in the above embodiment of the present invention, and will not be repeated here.

[0112] An embodiment of the present invention further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned navigation model training method.

[0113] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 7As shown, it specifically includes a memory 701 and one or more instructions 702, wherein the one or more instructions 702 are stored in the memory 701 and are configured to be executed by one or more processors 703 to perform the following operations:

[0114] Acquire a first model to be trained, a training data set and enhanced data; the training data set includes a plurality of navigation data; the enhanced data is obtained by processing the failed navigation data in the training data set by a pre-trained second model; the first model includes an encoder and a decoder, and the encoder of the first model shares encoder parameters of the second model;

[0115] Training a decoder in the first model using the navigation data in the training data set to adjust parameters of the decoder in the first model;

[0116] When the first model meets the preset initial training completion condition, the first model that meets the initial training completion condition is trained using the enhanced data to adjust the parameters of the encoder and the decoder of the first model that meets the initial training completion condition.

[0117] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0118] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0119] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0120] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.

[0121] The training method of a navigation model provided by the present invention is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A training method for a navigation model, It is characterized in that include: Obtaining a first model to be trained, a training data set, and enhanced data; The training data set includes a plurality of navigation data; The enhanced data is obtained by processing the failed navigation data in the training data set by a pre-trained second model; The first model includes an encoder and a decoder, and the encoder of the first model shares encoder parameters of the second model; Training a decoder in the first model using the navigation data in the training data set to adjust parameters of the decoder in the first model; When the first model meets the preset initial training completion condition, the first model that meets the initial training completion condition is trained using the enhanced data to adjust the parameters of the encoder and the decoder of the first model that meets the initial training completion condition.

2. The method according to claim 1, It is characterized in that The using the navigation data in the training data set to train the decoder in the first model to adjust the parameters of the decoder in the first model includes: Selecting target navigation data currently used for training from the training data set; The target navigation data is segmented to obtain first sub-navigation data and second sub-navigation data; the first sub-navigation data is the first part of the target navigation data; Inputting the first sub-navigation data into a first model to obtain a prediction result output by the first model; updating the parameters of the decoder in the first model according to the prediction result and the gap between the second sub-navigation data; When the first model after the updated parameters does not meet the preset initial training completion conditions, return to the step of selecting the target navigation data currently used for training in the training data set to iteratively update the parameters of the decoder of the first model until the first model after the updated parameters meets the initial training completion conditions.

3. The method according to claim 1, It is characterized in that The navigation data includes: the action sequence of the robot; The action sequence includes the robot's transition state, actions, and reward values ​​obtained within a preset time period.

4. The method according to claim 1, It is characterized in that After the first model that meets the initial training completion condition is trained using the enhanced data, the method further includes: In the case where the first model satisfying the initial training completion condition is trained using the enhanced data, using the trained first model as a target navigation model; Get the robot's current navigation data; Inputting the current navigation data of the robot into the target navigation model to obtain a navigation prediction result output by the target navigation model; the navigation prediction result includes the navigation data of the robot at the next moment; The robot is controlled to operate according to the navigation prediction result.

5. A training device for a navigation model, It is characterized in that include: A first acquisition unit, used to acquire a first model to be trained, a training data set, and enhanced data; The training data set includes a plurality of navigation data; The enhanced data is obtained by processing the failed navigation data in the training data set by a pre-trained second model; The first model includes an encoder and a decoder, and the encoder of the first model shares encoder parameters of the second model; A first training unit, configured to train a decoder in the first model using navigation data in the training data set, so as to adjust parameters of the decoder in the first model; The second training unit is used to train the first model that meets the preset initial training completion condition using the enhanced data to adjust the parameters of the encoder and the decoder of the first model that meets the initial training completion condition.

6. The device according to claim 5, It is characterized in that The first training unit comprises: A selection subunit, used to select target navigation data currently used for training from the training data set; The splitting subunit is used to split the target navigation data to obtain first sub-navigation data and second sub-navigation data; the first sub-navigation data is the first part of the target navigation data; A prediction subunit, used for inputting the first sub-navigation data into a first model to obtain a prediction result output by the first model; An updating subunit, used for updating the parameters of the decoder in the first model according to the prediction result and the gap between the second sub-navigation data; An iterative subunit is used to trigger the selection subunit to re-execute the process of selecting the target navigation data currently used for training in the training data set when the first model after the parameter update does not meet the preset initial training completion condition, so as to iteratively update the parameters of the decoder of the first model until the first model after the parameter update meets the initial training completion condition.

7. The device according to claim 5, It is characterized in that The navigation data includes: the action sequence of the robot; The action sequence includes the robot's transition state, actions, and reward values ​​obtained within a preset time period.

8. The device according to claim 5, It is characterized in that Also includes: A first execution unit is configured to, when the first model satisfying the initial training completion condition is trained by using the enhanced data, use the trained first model as a target navigation model; A second acquisition unit is used to acquire the current navigation data of the robot; A second execution unit, used for inputting the current navigation data of the robot into the target navigation model to obtain the navigation prediction result output by the target navigation model; The navigation prediction result includes navigation data of the robot at the next moment; A control unit is used to control the operation of the robot according to the navigation prediction result.

9. A storage medium, It is characterized in that The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the training method of the navigation model according to any one of claims 1 to 4.

10. An electronic device, It is characterized in that The system comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the navigation model training method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Robot control method, device and equipment and computer storage medium

    CN112476424A

  • Student model training method and device, material processing method and device and electronic equipment

    CN117494762A