A training method to enhance the robustness of robot grasping detection models
By using the lightweight VGG network and the AdaIN module in the robot grabbing detection model for natural image style migration, the problem of low grabbing success rate in the existing technology is solved, the resistance to the influence of external factors is achieved, and the model's performance is improved. Robustness and crawling success rate.
Patent Information
- Application Number
- CN202210419907.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-20
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-04-20
AI Technical Summary
Existing robot grasping detection models have a low grasping success rate under realistic manipulation backgrounds. They are affected by external factors such as lighting conditions, ambient temperature, and camera micro-shake, resulting in changes in image quality. Neural networks are easily affected by these subtle changes, resulting in Mispredictions and crawling failures.
The Encoder-Decoder model based on the lightweight VGG network is used, combined with the adaptive instance normalization layer (AdaIN) and the adversarial generation network, to change the texture and color information of the training image through natural image style transfer, forcing the network to form a grabbing shape preference, Improve the robustness of the model.
It significantly improves the grasping success rate of the robot grasping detection network, enhances the robustness of the model, and can better resist image quality changes in practical applications without adding additional time overhead.
Smart Images

Figure CN114819075B
Abstract
Description
[Technical field]
[0001] The invention belongs to the field of computer vision and robotics, and in particular relates to a training method for enhancing the robustness of a robot grasping detection model. [Background technology]
[0002] With the development of information technology and control technology, robots are not only widely used in education and entertainment, medical health, and home services, but also play a very important role in the aerospace field, such as space teleoperation robots and the Yutu lunar rover. Grasping objects is the most critical step in the many functions required by robots to complete these tasks, and it is also the basis for robots to interact with the environment and complete complex tasks. By installing various operating fixtures at the end of the robotic arm, the robot can realize the grasping operation of various objects, which brings great help to human life.
[0003] To implement target grasping, the grasping detection model inputs RGB information and Depth information, outputs grasping points and corresponding grasping vectors, and maps the grasping vectors in the pixel coordinate system to the robot coordinate system through the transformation matrix to complete the final grasping. However, existing neural network-based grasping detection methods are mainly trained and verified on high-quality clean data with the same distribution. Even if a high success rate is achieved in public datasets, these results are difficult to show that the model also has a high success rate in reality. Due to the interference of various external factors, it is difficult to avoid changes in data distribution in practical applications, such as lighting conditions, ambient temperature, camera micro-shake, etc., which directly affect the image quality and lead to grasping failure. Even if these interferences are very subtle, they will not change the data structure and semantic information, and even the human eye is difficult to detect. But in fact, neural networks are easily affected by these data changes, and are easily ignored by the human eye, and in many cases, they will provide high confidence scores for wrong predictions. At the same time, many studies have shown that neural network-based visual algorithms show a preference for color and texture. When the shape and texture conflict in the input image, convolutional neural networks prefer to use color and texture for prediction rather than shape. This is also the fundamental reason why some interferences only change the subtle texture of the image, thereby reducing the performance of the grasp detection model. [Summary of the invention]
[0004] The purpose of the present invention is to provide a training method for enhancing the robustness of a robot grasping detection model, so as to solve the shortcoming of low grasping success rate of the existing robot grasping model in a realistic manipulation background.
[0005] The technical solution of the present invention is a training method for enhancing the robustness of a robot grasping detection model, comprising the following contents:
[0006] Step S1, construction of a crawling detection network model: using an Encoder-Decoder model based on a lightweight VGG network;
[0007] Step S2, training and testing the grasping detection network model: input the grasped original image and the randomly selected natural image, and then use the generated style image as the input of the grasping detection network for training;
[0008] Step S3: Establish a grasp detection real interference benchmark data set to test the improved grasp detection network.
[0009] Furthermore, the specific content of step S1 is:
[0010] The structure of the network model includes encoder f, adaptive instance normalization layer AdaIN module and decoder g. Encoder f adopts the shallow convolution structure before the Relu4_1 layer of the VGG network.
[0011] After obtaining the encoding information of the captured image c and the natural image s, the AdaIN module is used to align the two styles of the captured image c and the natural image s; the formula is as follows:
[0012]
[0013] Where σ is the feature mean, μ is the standard deviation, f(c) and f(s) represent the captured and natural image features respectively;
[0014] Through the AdaIN module, a target feature t is obtained that can align the mean and variance of the captured image and the natural image:
[0015] t=AdaIN(f(c),f(s)) (9),
[0016] After obtaining the target feature t, the decoder g is used to map the encoded information back to the image space to obtain an imitation image p:
[0017] p=g(t) (10),
[0018] After obtaining the imitation image p, the encoder f is used to re-extract the features of p, and the mean square error between the features is used to calculate the content loss
[0019]
[0020] The encoder f is divided into L stages to extract features, and e i Represents the feature extractor of each stage, and obtains the style loss of each stage i
[0021]
[0022] The style loss of each stage Add together to get the overall style loss
[0023]
[0024] Among them, L = 4, indicating that the features of each stage are the features obtained after passing through VGG's relu1_1, relu2_1, relu3_1, and relu4_1;
[0025] Finally, the overall loss function that needs to be optimized is:
[0026]
[0027] β is a hyperparameter used to balance content loss and style loss.
[0028] Furthermore, the specific content of the training in step S2 is: when training the adversarial generative network, Cornell crawled public data is used as crawled images, and another set of natural image data comes from WikiArt for training;
[0029] During training, the images were scaled to 256x256, the initial learning rate was 0.001, the total training epochs were 60, and the learning rate was reduced to 1 / 10 when the loss did not decrease for 10 consecutive batches.
[0030] Furthermore, during the network training process, the VGG network trained on ImageNet is used as the encoder and its parameters are fixed.
[0031] Compared with the prior art, the present invention has the following beneficial effects: the present invention can arbitrarily transfer styles from natural images through an improved adversarial generative network, so as to change the texture and color information of the training image data in an indeterminate manner, and force the network to form a shape preference for grasping. The grasping success rate of various existing robot grasping detection networks can be improved without adding extra time overhead.
Brief Description of the Drawings
[0032] Figure 1 A network framework diagram of a training method for enhancing the robustness of a robot grasping detection model according to the present invention;
[0033] Figure 2-1 This is an example diagram of test data with brightness interference added in the present invention;
[0034] Figure 2-2 This is an example diagram of test data with Gaussian noise added in the present invention;
[0035] Figure 2-3This is an example diagram of test data with current interference added in the present invention;
[0036] Figure 2-4 This is an example diagram of test data with pulse noise added in the present invention;
[0037] Figure 2-5 This is an example diagram of test data with jitter interference added in the present invention. [Specific implementation method]
[0038] The present invention is described in detail below in conjunction with the accompanying drawings. It should be noted that the described embodiments are only intended to facilitate the understanding of the present invention and do not have any limiting effect on it.
[0039] The present invention proposes a training method for enhancing the robustness of a robot grasping detection model, which mainly consists of two parts: main network model construction and model training / testing. The method specifically includes the following steps:
[0040] 1. Construction of crawling detection network model:
[0041] The Encoder-Decoder model adopted by our method is based on a lightweight VGG network to achieve image knowledge conversion under the spatial grasping dataset while ensuring the real-time performance of the algorithm, such as Figure 1 Our input is the original grasped image and a randomly selected natural image, and the generated style image is then used as the input to the grasp detection network for training.
[0042] The network structure mainly consists of three parts: the generation network (encoder f), the adaptive instance normalization layer (AdaIN), and the decoder g. In order to obtain detailed information such as image texture in the image data, the encoder module only uses the shallow convolution structure before the Relu4_1 layer of the VGG network. After obtaining the encoding information of the captured image c and the natural image s, we use the AdaIN module to align the two styles; the formula is as follows:
[0043]
[0044] Among them, σ is the feature mean, μ is the standard deviation, f(c) and f(s) represent the captured and natural image features respectively. Through the AdaIN module, we can obtain a target feature t that can align the mean and variance of the captured image and the natural image:
[0045] t=AdaIN(f(c),f(s)) (16)
[0046] After obtaining the target feature t, we need to use the decoder g to map the encoded information back to the image space to obtain a simulated image p:
[0047] p=g(t) (17)
[0048] It should be noted that during the network training process, we use the VGG network trained on ImageNet as the encoder and fix its parameters. This is because the encoder trained from large-scale image data can effectively extract the edge features of the underlying texture in the data. Therefore, during the training process, we only need to update the weight parameters of the decoder.
[0049] After obtaining the imitation image p, we use the encoder f to re-extract the features of p and calculate the content loss using the mean squared error between the features
[0050]
[0051] For the style loss, we divide the encoder f into L stages to extract features, using e i represents the feature extractor of each stage. For each stage i, we can get the style loss of each stage
[0052]
[0053] The style loss of each stage Adding together gives the overall style loss
[0054]
[0055] Here L=4, which means that the features of each stage are obtained after passing through VGG's relu1_1, relu2_1, relu3_1, and relu4_1.
[0056] Finally, the overall loss function we need to optimize is:
[0057]
[0058] β is a hyperparameter used to balance content loss and style loss. We set it to 10 in the experiment.
[0059] 2. Model training / testing:
[0060] Because the improved adversarial generative network module is not complementary to the feature information of the capture model, we choose to train the adversarial generative network first and then use it in the capture module. The experimental environment is pytorch1.5.0. The experimental platform is set to NVIDIA TITAN-X (Pascal architecture, video memory is 24G), Ubuntu 16.04 operating system. In order to achieve the purpose of transferring its texture information from random natural images, we use Cornell's public data as the captured images when training the adversarial generative network, and another set of natural image data comes from WikiArt for training. In the experiment, we use the Adam optimizer and a batch size of 8 image pairs. During the training process, we scale the image to 256x256, initialize the learning rate to 0.001, and the total training cycle is 60. When the loss does not decrease for 10 consecutive batches, the learning rate is reduced to 1 / 10 of the original.
[0061] 3. Establish a real-world interference benchmark dataset for grasp detection and test the improved grasp detection network.
[0062] In order to test the improved method, the present invention established a real-world interference benchmark dataset for grasp detection, that is, five common image interference types were added to the Cornell public dataset, namely "brightness interference", "Gaussian noise", "pixelate interference", "elastic transform" and "motion blur". The example images are shown in Figure 2. Figure 2-1 to Figure 2-5 It should be noted that the grab interference dataset will not be used for model training, but only for testing the model.
[0063] In order to verify the effect of the knowledge transfer model on improving the robustness of the network, we combined it with previous excellent methods (such as Kumra et al, Chen et al, Redmon et al.) and compared them on the grasp detection real interference benchmark dataset. Table 1 is a comparison of the results of the grasp detection original model and the model trained by the method of the present invention. As shown in Table 1, the accuracy of the grasp detection model trained by the method of the present invention is greatly improved compared with the original model, and no additional reasoning time is added.
[0064]
[0065] Table 1
[0066] The present invention can arbitrarily transfer styles from natural images through an improved adversarial generative network, so as to change the texture and color information of the training image data in an indeterminate manner, and force the network to form a shape preference for grasping. It can improve the grasping success rate of various existing robot grasping detection networks without adding extra time overhead. This method can be applied to any robot grasping detection network model.
[0067] The present invention proposes a training method for enhancing the robustness of a robot grasping detection model, which is a simple and efficient adversarial generative network. The network can be used to transfer texture knowledge from any other natural image to achieve the purpose of indefinitely changing the texture style of the grasped data, thereby guiding the network to focus on the shape of the object rather than the color texture during the training process. Our method is of great significance to improving the success rate of robot grasping detection in reality. Existing grasping detection methods based on neural networks are mainly trained and verified for performance on high-quality clean data with the same distribution. However, if used in actual robot grasping detection, due to the interference of various external factors, such as lighting conditions, ambient temperature, camera micro-shake, etc., the image quality is directly affected, resulting in grasping failure. Even if these interferences are very subtle, they will not change the data structure and semantic information, and even the human eye is difficult to detect. Therefore, in order to improve the robustness of the grasping model in reality, the present invention proposes a training method for enhancing the robustness of the robot grasping detection model, which is a simple and efficient adversarial generative network, applicable to any grasping detection model, and does not change any settings of the original model, nor does it increase additional training and testing time.
Claims
1. A training method for enhancing the robustness of a robot grasping detection model, characterized in that: Includes the following: Step S1, construction of a crawling detection network model: using an Encoder-Decoder model based on a lightweight VGG network; The specific content of step S1 is: The structure of the network model includes an encoder f, an adaptive instance normalization layer AdaIN module and a decoder g, wherein the encoder f adopts a shallow convolution structure before the Relu4_1 layer of the VGG network; After obtaining the encoding information of the captured image c and the natural image s, the AdaIN module is used to align the two styles of the captured image c and the natural image s; the formula is as follows: Where σ is the feature mean, μ is the standard deviation, f(c) and f(s) represent the captured and natural image features respectively; Through the AdaIN module, a target feature t is obtained that can align the mean and variance of the captured image and the natural image: t=AdaIN(f(c),f(s))(2), After obtaining the target feature t, the decoder g is used to map the encoded information back to the image space to obtain an imitation image p: p=g(t)(3), After obtaining the imitation image p, the encoder f is used to re-extract the features of p, and the mean square error between the features is used to calculate the content loss The encoder f is divided into L stages to extract features, and e i Represents the feature extractor of each stage, and obtains the style loss of each stage i The style loss of each stage Add together to get the overall style loss Among them, L = 4, indicating that the features of each stage are obtained after passing through VGG's relu1_1, relu2_, relu3_1, and relu4_1; Finally, the overall loss function that needs to be optimized is: β is a hyperparameter used to balance content loss and style loss Step S2, training and testing the grasping detection network model: inputting the grasped original image and the randomly selected natural image, and then using the generated style image as the input of the grasping detection network for training; Step S3: Establish a grasp detection real interference benchmark data set to test the improved grasp detection network.
2. A training method for enhancing the robustness of a robot grasping detection model as claimed in claim 1, characterized in that: The specific content of the training in step S2 is: when training the adversarial generative network, Cornell crawled public data is used as crawled pictures, and another set of natural picture data comes from WikiArt for training; During training, the images were scaled to 256x256, the initial learning rate was 0.001, the total training epochs were 60, and the learning rate was reduced to 1 / 10 when the loss did not decrease for 10 consecutive batches.
3. A training method for enhancing the robustness of a robot grasping detection model as described in claim 1 or 2, characterized in that: During network training, the VGG network trained on ImageNet is used as the encoder and its parameters are fixed.
