Information processing method and program
By iteratively refining depth maps and camera poses using machine learning models, the method enhances the accuracy of camera pose estimation in image processing, addressing limitations in existing DNN methods.
Patent Information
- Application Number
- JP2021122628
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-07-27
AI Technical Summary
Existing deep neural network (DNN) methods for camera pose estimation in image processing do not adequately improve accuracy through iterative calculations, limiting the precision of camera pose estimation.
An information processing method that involves inputting images into machine learning models to predict depth maps and camera poses, applying transformations based on predicted movements and rotations, calculating losses, and iteratively refining these predictions using gradient descent to enhance accuracy.
This approach significantly improves the accuracy of camera pose estimation by iteratively optimizing depth maps and camera poses, leading to more precise image transformations and reduced reliance on extensive training data.
Smart Images

Figure 0007565886000001 
Figure 0007565886000002 
Figure 0007565886000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing method and a program. [Background technology]
[0002] In recent years, a technique has been known in which an image captured by a camera is input to a deep neural network (DNN) and the depth in the image and the camera pose (the relative movement and rotation between the imaging devices that captured the two images) are estimated by the inference process of the DNN (Non-Patent Documents 1 and 2). In order to estimate the relative camera pose using a conventional (manual) estimation method that does not use DNN, it was necessary to estimate the correspondence between two images and then solve an optimization problem to find a camera pose and a depth map that match the correspondence between the images. However, the above-mentioned method using DNN makes it possible to obtain more accurate estimation results in estimating the correspondence between images and the depth.
[0003] On the other hand, the techniques proposed in Non-Patent Documents 1 and 2 have the problem that they do not achieve high performance when it comes to camera pose, compared to estimating relative camera pose using conventional (manual) estimation methods that do not use DNNs. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] Vitor Guizilini, 3 others, "3D Packing for Self-Supervised Monocular Depth Estimation", arXiv:1905.02693v4 [cs.CV] 28 Mar 2020 (https: / / arxiv.org / pdf / 1905.02693.pdf) [Non-Patent Document 2] Clement Godard, 3 others, "Digging Into Self-Supervised Monocular Depth Estimation", arXiv:1806.01260v4 [cs.CV] 17 Aug 2019 (https: / / arxiv.org / pdf / 1806.01260.pdf) [Non-Patent Document 3] John Flynn, 7 others, "DeepView: View Synthesis with Learned Gradient Descent", arXiv:1906.07316v1 [cs.CV] 18 Jun 2019 (https: / / arxiv.org / pdf / 1906.07316.pdf) Summary of the Invention [Problem to be solved by the invention]
[0005] Incidentally, in an inference process using a DNN, a technique is known in which a design related to parameter changes in a gradient descent method (such as a learning coefficient or normalization) is replaced with a DNN by inputting the gradient of a loss based on the output of the DNN to the DNN and performing repeated calculations. Non-Patent Document 3 proposes a technique for performing calculations to input the gradient of a loss to one DNN (CNN), generating multiple images (multi-plane images) for each depth from images captured from multiple viewpoints, and generating a synthetic image of a new viewpoint not present in the captured images. The techniques according to the above-mentioned Non-Patent Documents 1 and 2 are merely techniques for estimating a camera pose, etc., by performing a single DNN calculation, and the technique according to Non-Patent Document 3 does not take into consideration a configuration for estimating a camera pose.
[0006] The present invention has been made in consideration of the above-mentioned problems, and its purpose is to provide an estimation technique that can improve the accuracy of estimating a camera pose when estimating the camera pose using a machine learning model. [Means for solving the problem]
[0007] According to the present invention, An information processing method executed in an information processing device, inputting a first image or a second image paired with the first image into a first machine learning model to predict a depth map; inputting the first image and the second image into a second machine learning model to predict relative movement and rotation of an image capture device that captured the first image and the second image; applying an image transformation to the first image based on the predicted relative translation and rotation from the first image to the second image and the predicted depth map for the first image to generate a first transformed image; calculating a loss including an error between the first transformed image and the second transformed image; inputting a gradient of the loss related to the relative translation and rotation, the first transformed image, and the first and second images into the second machine learning model to iteratively predict the relative translation and rotation, and converging the loss including an error between a new first transformed image and the second image based on the newly predicted relative translation and rotation. Effect of the Invention
[0008] According to the present invention, when a camera pose is estimated using a machine learning model, it is possible to improve the accuracy of estimating the camera pose. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram showing an example of a functional configuration of an information processing server according to a first embodiment. [Diagram 2] FIG. 1 is a diagram for explaining depth map prediction and camera pose prediction in a model processing unit 114 according to the first embodiment. [Figure 3A] FIG. 1 is a diagram for explaining image conversion (from time t to time t+1) according to the first embodiment. [Figure 3B] FIG. 1 is a diagram for explaining inverse image transformation (from time t+1 to time t) according to the first embodiment. [Figure 4A]FIG. 1 is a diagram for explaining the loss of predicted camera pose according to the first embodiment. [Figure 4B] FIG. 1 is a diagram for explaining the loss of a predicted depth map according to the first embodiment; [Diagram 5] FIG. 1 is a diagram illustrating depth map prediction with iteration according to the first embodiment; [Figure 6] FIG. 1 is a diagram illustrating camera pose prediction with iteration according to the first embodiment. [Figure 7] 1 is a flowchart showing a series of operations of prediction processing (of camera pose and depth map) in a model processing unit according to the first embodiment. [Figure 8] FIG. 11 is a block diagram showing an example of a functional configuration of a vehicle according to a second embodiment. [Figure 9] FIG. 13 is a diagram showing a main configuration for controlling vehicle travel according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, the embodiments will be described in detail with reference to the accompanying drawings. Note that the following embodiments do not limit the invention according to the claims, and not all combinations of features described in the embodiments are essential to the invention. Two or more features among the multiple features described in the embodiments may be arbitrarily combined. In addition, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.
[0011] <Information processing server configuration> Next, an example of the functional configuration of the information processing server will be described with reference to Fig. 1. Each of the functional blocks described with reference to the following figures may be integrated or separated, and the functions described may be realized by another block. Also, what is described as hardware may be realized by software, and vice versa. The information processing server is disposed outside a moving body such as a vehicle.
[0012] The control unit 104 includes, for example, a CPU 110, a RAM 111, and a ROM 112, and controls the operation of each unit of the information processing server 100. The control unit 104 causes the CPU 110 to load a computer program stored in the ROM 112 into the RAM 111 and execute it, thereby causing each unit constituting the control unit 104 to exhibit its function. In addition to the CPU 110, the control unit 104 may further include a GPU or a dedicated circuit suitable for executing machine learning processing or neural network processing, and the GPU or the circuit may execute the processing of the model processing unit 114.
[0013] The image data acquisition unit 113 acquires image data transmitted from an external device such as a vehicle operated by a user. The image data acquisition unit 113 stores the acquired image data in the storage unit 103. The acquired image data is input to a machine learning model (also simply referred to as a learning model) in the inference stage to obtain an inference result for the acquired image data. In addition, the image data acquired by the image data acquisition unit 113 may be used to train a model in the model processing unit 114.
[0014] The model processing unit 114 includes a machine learning model according to this embodiment, and executes the learning stage process and the inference stage process of the learning model. The learning model, for example, inputs first and second image data, and predicts the relative camera pose between the camera 1 that captured the first image data and the camera 2 that captured the second image data. The relative camera pose includes, for example, the relative movement of one camera with respect to the other camera, and the relative rotation around three axes. The learning model also predicts depth maps corresponding to each of the first and second image data.
[0015] The first image data and the second image data may be image data taken at different times (for example, time t and the following time t+1) by a single camera mounted to face the front of the vehicle. In this case, the camera moves between time t and time t+1 due to the movement of the vehicle, so the camera poses of the cameras that took the respective image data are different. In addition, the first image data and the second image data may be two image data taken by two cameras mounted to face the front of the vehicle. In this case, the camera poses of the cameras that took the respective image data are also different. When the prediction process of this embodiment is used for image data taken by two fixed cameras, the camera calibration and camera abnormality detection can be performed from the estimated camera parameters.
[0016] The DNN becomes in a learned state by performing the processing of the learning stage, and by inputting new image data into the trained DNN, it is possible to perform camera pose prediction and depth map prediction (inference stage processing) for the new image data. The inference stage processing is performed when the inference processing using the trained model is performed in the information processing server 100. The information processing server 100 executes the trained model on the information processing server 100 side, and transmits the inference result to an external device such as a vehicle or an information processing device. The information processing server 100 can generally use abundant computational resources compared to a vehicle, etc., and is therefore suitable for performing repeated calculations such as the prediction processing described below. In addition, by receiving and storing image data captured by various vehicles, it is possible to collect image data in a wide variety of situations, making it possible to learn in a wider variety of situations.
[0017] The prediction result providing unit 115 provides the depth map and camera pose information predicted by the model processing unit 114 to an external device such as a vehicle that transmitted the image data.
[0018] The communication unit 101 is a communication device including, for example, a communication circuit, and communicates with an external device such as a vehicle or an information processing device through a network such as the Internet. The communication unit 101 receives real images transmitted from an external device such as a vehicle or an information processing device, and transmits camera parameters and a depth map predicted by a learning model to the vehicle. The power supply unit 102 supplies power to each unit in the information processing server 100. The storage unit 103 is a non-volatile memory such as a hard disk or a semiconductor memory. The storage unit 103 stores learned parameters and learning data of the DNN described later.
[0019] <Example of learning model in model processing unit> Next, an example of a learning model in the model processing unit 114 according to this embodiment will be described. In the following description, an example will be described in which two sets of image data taken by a single camera mounted on a vehicle at time t and the subsequent time t+1 are input to the model processing unit 114.
[0020] 2, the configuration of the model processing unit 114 and a processing example of the learning model included in the model processing unit 114 will be described. The model processing unit 114 includes a DNN_D201, a DNN_P202, an image conversion unit 203, a loss calculation unit 204, and an iteration control unit 205. The model processing unit 114 also includes a learning model. The learning model according to this embodiment includes, for example, DNN_D201, a DNN_P202, an image conversion unit 203, a loss calculation unit 204, and an iteration control unit 205.
[0021] The depth map prediction unit 201 (hereinafter, also referred to as DNN_D201) is composed of one or more deep neural networks (DNN) as an example of a machine learning model, and outputs a depth map 211 of input image data as a prediction result. For example, when image data at time t is input, the DNN_D201 outputs a depth map corresponding to the image data at time t, and when image data at time t+1 is input, the DNN_D201 outputs a depth map corresponding to the image data at time t+1. The depth map is, for example, information that represents a predicted depth (distance from the camera to an object) for each pixel value of an input image as an image, and is represented by white as it is closer to the camera and black as it is farther away. In addition, as described later, the DNN_D201 can perform iterations (repeated calculations) to output the depth map, thereby improving the accuracy of the predicted depth map. At this time, the DNN_D201 can input image data, a depth map predicted in the immediately preceding iteration, and a gradient of loss related to the depth map, which will be described later, to output a depth map in the current iteration. DNN_D201 may be composed of, for example, a Convolutional Neural Network (CNN) or an autoencoder.
[0022] The camera pose prediction unit 202 (also referred to as DNN_P202) is composed of one or more DNNs as an example of a machine learning model, and outputs a relative camera pose 212 between two input image data as a prediction result. For example, when two image data at time t and time t+1 are input, the DNN_P202 outputs a relative camera pose (e.g., the amount of movement of the camera and the amount of rotation around three axes) between the image data at time t and time t+1. In addition, as described later, the DNN_P202 can perform iterations to output the camera pose as a prediction result, thereby improving the accuracy of the predicted camera pose. At this time, the DNN_P202 can input two image data, the camera pose predicted in the immediately preceding iteration, and the gradient of the loss related to the camera pose, which will be described later, and output the camera pose in the current iteration. The DNN_P202 can output a relative camera pose P(I t , I t+1 ) can be output. In addition, the DNN_P202 can output the relative camera pose P(I t+1 , I t ) can be output. The DNN_P201 may be configured, for example, by a Convolutional Neural Network (CNN).
[0023] The image conversion unit 203 converts image data captured at one time using the predicted (relative) camera pose and depth map, and generates a converted image 213 corresponding to the other time. For example, as shown in Fig. 3A, the image conversion unit 203 inputs image data 301 captured at time t, a depth map 302 estimated for the image data 301 at time t, and a relative camera pose 303 from time t to time t+1. Then, the image conversion unit 203 generates a converted image 304 corresponding to time t+1 based on the input data.
[0024] Here, the image conversion by the image conversion unit 203 corresponds to applying image conversion based on the predicted relative camera pose and depth map to image data captured by one camera to reproduce virtual image data captured by the other camera. Therefore, the more accurate the (relative) camera pose (and depth map) predicted from the image data at time t and the image data at time t+1, the smaller the error between the image data at time t+1 and the converted image 304 corresponding to time t+1. On the other hand, if the error between the image data at actual time t+1 and the converted image 304 corresponding to time t+1 is large, the predicted camera pose or depth map is not accurate. Therefore, by repeating the prediction of the predicted camera pose or depth map so that the difference between the converted image corresponding to time t+1 and the image data at actual time t+1 becomes smaller, a highly accurate (relative) camera pose and depth map can be obtained.
[0025] The image conversion unit 203 converts the image data I t , the relative camera pose P(I t , I t+1 ), and the depth map D t In addition to image conversion using t+1 , the relative camera pose P(I t+1 , I t ) and depth map D t+1 For example, as shown in FIG. 3B, the image conversion unit 203 converts image data 311 captured at time t+1, a depth map 312 predicted based on the image data at time t+1, and a relative camera pose 313 (P(I t+1 , I t )) can be input to generate a transformed image 314 corresponding to time t. In this way, by constraining the optimization so that the error is small for image transformation in both directions, from time t to time t+1 and from time t+1 to time t, high prediction accuracy can be achieved. In addition, when training a DNN, one pair of images allows twice as much training, so training can be performed efficiently with a small amount of training data.
[0026] The loss calculation unit 204 calculates a loss 214 based on the error between the captured image and the converted image. For example, the loss calculation unit 204 calculates the loss 214 based on the error between the captured image and the converted image. t+1 The loss may include an error (for example, the sum of squares of differences between each pixel value) between the image data I and the converted image corresponding to time t+1 output by the image conversion unit 203. t The loss may further include an error (for example, the sum of squares of differences between each pixel value) between the image data I and the converted image corresponding to the time t output by the image conversion unit 203. t When a converted image corresponding to time t output by the image conversion unit 203 is used, as shown in FIG. 4A, image data I t Using image data 401 such that t is the time t, and a transformed image 402 corresponding to time t, a loss 403 regarding the camera pose is calculated.
[0027] The loss calculation unit 204 may calculate the loss using an error based on image features, a SSIM (structural similarity) index, etc., in addition to or instead of the error between the image data and the converted image. For example, the loss calculation unit 204 calculates the loss using another DNN that has been trained in advance to extract a predetermined feature amount. t+1 and the converted image corresponding to time t+1 may be extracted. In this case, an error based on image features may be calculated based on the difference between the extracted feature amounts. Of course, the loss calculation unit 204 may calculate the error based on the image features of the image data I t and a transformed image corresponding to time t may be calculated based on image features.
[0028] The loss calculation unit 204 may further calculate the loss by taking into account an error between a depth map predicted from a captured image and a depth map image-converted by the image conversion unit 203. For example, the loss calculation unit 204 calculates a loss 413 related to the depth map using a depth map 411 at time t and a converted image 412 of the depth map corresponding to time t. At this time, the loss calculation unit 204 takes into account, for example, a difference in each pixel value (depth value) of the two depth maps to be compared. In addition to this or instead of this, the loss calculation unit 204 may further take into account a difference in the gradient (depth smoothness) of each pixel value of the two depth maps to be compared.
[0029] In addition, the loss calculation unit 204 may mask the hidden area in the image conversion so that the hidden area is not used in the calculation of the error. For example, when a converted image corresponding to time t+1 is obtained from image data at time t, prediction accuracy is essentially not obtained for an area that appears in the image only at time t+1. For this reason, the loss calculation unit 204 identifies the hidden area using the depth map at time t and the depth map at time t+1, and stores mask information indicating the hidden area in the storage unit 103. The mask information indicating the hidden area may be, for example, binary data having 0 or 1, and may set an area in which an accurate prediction cannot be obtained in the converted image corresponding to time t+1 as 0, and other areas as 1.
[0030] For example, the loss calculation unit 204 can calculate the loss L as follows. L=(I t -I t ') 2 +(I t+1 -I t+1 ') 2 +(D t -D t ') 2 +(D t+1 -D t+1 ') 2 Where: I t ' is the transformed image corresponding to t, I t+1 ' is the transformed image corresponding to t+1, D tis the depth map predicted from the image data at time t, D t ' represents the transformed image of the depth map corresponding to time t. Also, D t+1 is the depth map predicted from the image data at time t+1, D t+1 ' represents the transformed image of the depth map corresponding to time t+1.
[0031] The iteration control unit 205 controls repeated calculations (i.e., iterations) to realize optimization by the DNN_D201 and the DNN_P202. As described above, the DNN_D201 improves the accuracy of the predicted depth map by repeated calculations. Specifically, as shown in FIG. 5, the DNN_D201 inputs, for example, image data at time t, a depth map 502 predicted in the immediately preceding iteration (e.g., N) for the image data at time t, and a gradient 503 of the loss for the depth map. Then, the DNN_D201 outputs a depth map 504 in the N+1th iteration. In the iterative calculation, the depth map 502 in the Nth iteration and the gradient 503 of the loss for the depth map are updated for each iteration. The gradient 503 of the loss for the depth map at time t is calculated by multiplying the depth map (D t ) gradient (e.g., the D t The gradient of the loss with respect to the depth map at time t+1 is the gradient of the loss with respect to the depth map at time t+1 (D t+1 ) gradient (e.g., the D t+1 (partial derivative by
[0032] As described above, the DNN_P202 improves the accuracy of the predicted camera pose by repeated calculation. Specifically, as shown in FIG. 6, the DNN_P202 inputs, for example, image data 601 at time t and time t+1, a camera pose 602 predicted in the immediately preceding (for example, N) iteration for the image data 601, and a gradient 603 of the loss related to the camera pose. Then, the DNN_P201 outputs a camera pose 604 in the N+1th iteration. In the calculation by iteration, the camera pose 602 in the Nth iteration and the gradient 603 of the loss related to the camera pose are updated for each iteration. The gradient 603 of the loss related to the camera pose (from time t to time t+1) is the gradient of the camera pose from time t to time t+1 in the loss (for example, a partial differential by the camera pose in the above loss L). Also, the gradient of the loss with respect to the camera pose (from time t+1 to time t) is the gradient of the camera pose in the loss from time t+1 to time t (e.g., the partial derivative of the loss L with respect to the camera pose).
[0033] The iteration control unit 205 repeats the iteration until the loss 214 converges. For example, when the calculated loss 214 is equal to or less than a threshold value for a predetermined number of times, the iteration control unit 205 determines that the loss 214 has converged and ends the iteration.
[0034] Next, a series of operations of prediction processing (of camera parameters and depth map) in the model processing unit 114 will be described with reference to Fig. 7. This processing is realized, for example, by the CPU 110 (or GPU) of the control unit 104 expanding a program stored in the ROM 112 into the RAM 111 and executing it. The learning model of the model processing unit 114 of the control unit 104 is executed in a learned state (i.e., the above-mentioned DNN_D201 and DNN_P202 are in a learned state).
[0035] In S701, the image data acquisition unit 113 of the control unit 104 acquires two sets of image data from an external device such as a vehicle. The two sets of image data are, for example, images captured by a camera mounted on the vehicle at time t and the subsequent time t+1.
[0036] In S702, the model processing unit 114 of the control unit 104 calculates image data (I t ) and image data at time t+1 (I t+1 ) for each of the depth maps (D t and D. t+1 Specifically, in the first iteration, DNN_D201 predicts the image data (I t ) to obtain the depth map (D t ) is predicted. Also, DNN_D201 predicts the image data (I t+1 ) to obtain the depth map (D t+1 Note that since the most recent iteration has not been executed at this step, the depth map 502 of the most recent iteration and the gradient 503 of the loss related to the depth map are not input to the DNN_D201.
[0037] In S703, the model processing unit 114 receives image data (I t ) to the image data at time t+1 (I t+1 ) relative camera pose P(I t , I t+1 ) The model processing unit 114 also predicts the image data (I t+1 ) to image data at time t (I t ) relative camera pose P(I t+1 , I t Specifically, in the first iteration, DNN_P202 predicts the image data (I t ) and image data (I t+1 ) and calculate the relative camera pose P(I t , I t+1 ) is predicted. Also, DNN_P202 predicts the image data (I t ) and image data (It+1 ) to obtain the relative camera pose P(I t+1 , I t Note that since the most recent iteration has not been executed at this step, the camera pose 602 of the most recent iteration and the gradient 603 of the loss related to the camera pose are not input to DNN_P202.
[0038] In S704, the image conversion unit 203 converts the image data (I t ) and image data at time t+1 (I t+1 Specifically, the image conversion unit 203 converts the image data (I t ) and the depth map at time t (D t ) and the relative camera pose P(I t , I t+1 ) to generate a converted image corresponding to time t+1. The image conversion unit 203 also uses the image data (I t+1 ) and the depth map at time t+1 (D t+1 ) and the relative camera pose P(I t+1 , I t ) to generate a transformed image corresponding to time t.
[0039] In addition, the image conversion unit 203 converts the relative camera pose P(I t , I t+1 ) and the depth map at time t (D t ) to obtain the depth transformation image (D t+1 Furthermore, the image conversion unit 203 generates a relative camera pose P(I t+1 , I t ) and the depth map at time t+1 (D t+1 ) and the transformed depth image (D t ').
[0040] In S705, the loss calculation unit 204 calculates a loss including a difference between the data before conversion and the converted image. The loss may be, for example, the loss L described above. That is, the loss calculation unit 204 includes the squared error of each image at time t and time t+1 and each converted image corresponding to time t and time t+1 in the loss. Furthermore, the loss calculation unit 204 includes the squared error of each depth map at time t and time t+1 and each depth map corresponding to time t and time t+1 in the loss. That is, the camera pose in both directions at time t and time t+1 and the depth maps at both time t and time t+1 are optimized to minimize the loss.
[0041] In S706, the iteration control unit 205 monitors the loss calculated by the loss calculation unit 204 and determines whether the loss satisfies the convergence condition. For example, when the calculated loss is equal to or less than the loss value threshold over a predetermined number of times, the iteration control unit 205 determines that the convergence condition is satisfied and ends this series of processes. On the other hand, when the iteration control unit 205 determines that the calculated loss is not equal to or less than the loss value threshold over a predetermined number of times, the iteration control unit 205 advances the process to S707.
[0042] In S707, the iteration control unit 205 calculates the gradient of the loss with respect to the depth map based on the loss calculated in S705. The gradient of the loss with respect to the depth map can be calculated with respect to each of the depth maps at time t and time t+1. t ) is, for example, the gradient of the D t Also, the depth map (D t+1 ) is, for example, the gradient of the D t+1 This is the partial derivative by
[0043] The iteration control unit 205 calculates the gradient of the loss with respect to the depth map, the current iteration (i.e., the prediction result of S702), and each image data (I t , I t+1 ) and the depth map (Dt , D t+1 ) to predict.
[0044] In S708, the iteration control unit 205 calculates the gradient of the loss with respect to the camera pose based on the loss calculated in S705. The gradient of the loss with respect to the camera pose is calculated by multiplying the relative camera pose P(I t , I t+1 ) and P(I t+1 , I t ) and the camera pose P(I t , I t+1 ) is, for example, the gradient of the camera pose P(I t , I t+1 ) is the partial derivative of the camera pose P(I t+1 , I t ) is, for example, the gradient of the camera pose P(I t+1 , I t ) is the partial derivative.
[0045] The iteration control unit 205 calculates the gradient of the loss with respect to the camera pose, the current iteration (i.e., the prediction result of S703), and each image data (I t , I t+1 ) and the relative camera pose (P(I t , I t+1 ) and P(I t+1 , I t )) to predict.
[0046] When the process of S708 ends, the iteration control unit 205 advances the process to S704 so as to continue the iteration process, and repeats the processes of S704 to S708.
[0047] In this way, in the prediction process in the model processing unit 114, the loss is calculated by comparing the original image data with the converted image obtained from the estimated camera parameters and depth map, and the depth map and the camera pose are optimized by repeated calculations using the gradient of the loss related to the depth map and the gradient of the loss related to the camera parameters. In this way, the camera parameters and the depth map predicted by the DNN are corrected according to the gradient, and the prediction accuracy can be improved compared to the results predicted by a single process by the DNN.
[0048] Although not explicitly stated in the above prediction process, the model processing unit 114 can transmit the finally obtained camera pose and depth map to an external device such as a vehicle. That is, the model processing unit 114 can receive two images to be processed from an external device such as a vehicle, and return a depth map and camera parameters predicted from the images to the external device. In this way, the external device such as a vehicle can perform driving control such as automatic driving while appropriately acquiring the inference result for the captured image from the information processing server 100.
[0049] The series of operations of the prediction process described above are operations performed when the learning model of the model processing unit 114 is in the inference stage (i.e., learned). When learning a learning model, the model processing unit 114 may add a process of updating the weight parameters of DNN_D201 and DNN_P202 in addition to the processes of S701 to S708 described above. Specifically, after calculating the loss in S705, backpropagation using the gradient of the loss may be performed to update the weight parameters of each DNN. Alternatively, the loss including the difference between the data before conversion and the converted image may be calculated in the same manner as in S705, using the final camera pose and depth map after it is determined in S706 that the convergence condition is satisfied (i.e., after the repeated calculation is completed). In this case, all the calculated losses may be accumulated over the learning data, and the backpropagation of the DNN may be performed based on the accumulated losses.
[0050] In the above example, the model processing unit 114 generates a depth map based on an acquired image. However, the model processing unit 114 may estimate camera parameters using a depth map generated by a Lidar (Light Detection and Ranging) or radar of a vehicle or the like.
[0051] (Embodiment 2) Next, a second embodiment of the present invention will be described. In the above embodiment, the prediction process by the learning model is executed in the information processing server 100. However, this embodiment is not limited to the case where the prediction process is executed in the information processing server, but can also be applied to the case where the prediction process is executed in a vehicle as an example of a moving body. That is, the learning model of the model processing unit operates in the vehicle, and the camera parameters and the depth map can be predicted in the vehicle. Below, an example of the functional configuration of the vehicle in such an embodiment will be described. Note that in the following example, the control unit 808 is a control means incorporated in the vehicle 800. However, the vehicle 800 may be equipped with an information processing device having the configuration of the control unit 808. That is, the vehicle 800 may be a vehicle equipped with an information processing device having the configuration of the CPU 810 and the model processing unit 814 included in the control unit 808.
[0052] When the inference stage processing of the learning model is performed in the vehicle, for example, the information processing server 100 provides information on the learned model (for example, weight parameters of the neural network after learning) to the vehicle 800. In this way, the vehicle 800 can use the latest learned model learned using various learning data collected by the information processing server 100.
[0053] <Vehicle configuration> An example of the functional configuration of a vehicle 800 according to this embodiment will be described with reference to Fig. 8. Each of the functional blocks described with reference to the following figures may be integrated or separated, and the functions described may be realized by another block. Also, what is described as hardware may be realized by software, and vice versa.
[0054] The sensor unit 801 includes a camera (imaging device) that outputs a captured image of the area ahead of the vehicle (or further rearward or surroundings). The sensor unit 801 may further include a Lidar (Light Detection and Ranging) that outputs a distance image obtained by measuring the distance ahead of the vehicle (or further rearward or surroundings). The captured image is used, for example, for prediction processing in the model processing unit 814. The sensor unit 801 may also include various sensors that output the acceleration, position information, steering angle, etc. of the vehicle 800.
[0055] The communication unit 802 is a communication device including, for example, a communication circuit, and communicates with the information processing server 100 and surrounding traffic systems via mobile communication standardized, for example, LTE, LTE-Advanced, or so-called 5G. The communication unit 802 acquires information on the learning model from the information processing server 100. In addition, the communication unit 802 receives part or all of map data, traffic information, and the like from other information processing servers and surrounding traffic systems.
[0056] The operation unit 803 includes operation members such as buttons and touch panels attached inside the vehicle 800, as well as members that receive inputs for driving the vehicle 800, such as a steering wheel and a brake pedal. The power supply unit 804 includes a battery such as a lithium-ion battery, and supplies power to each unit inside the vehicle 800. The power unit 805 includes, for example, an engine or a motor that generates power for running the vehicle.
[0057] The driving control unit 806 uses the results of the prediction process (e.g., camera pose and depth map) output from the model processing unit 814 to estimate the movement of the vehicle 800 and recognize the outside world, thereby controlling the driving of the vehicle 800. Note that the movement estimation, the recognition of the outside world, and the driving control can be performed using known methods. Note that, in the description of this embodiment, the driving control unit 806 is illustrated as having a configuration different from the control unit 808, but may be included in the control unit 808.
[0058] The storage unit 807 includes a non-volatile large-capacity storage device such as a semiconductor memory. It temporarily stores the actual image output from the sensor unit 801 and various other sensor data output from the sensor unit 801. It also stores parameters of the trained model received from the external information processing server 100 via the communication unit 802, for example.
[0059] The control unit 808 includes, for example, a CPU 810, a RAM 811, and a ROM 812, and controls the operation of each unit of the vehicle 800. The control unit 808 also acquires image data from the sensor unit 801 and executes the above-mentioned prediction processing. The control unit 808 causes each unit of the control unit 808, such as a model processing unit 814, to exhibit its functions by the CPU 810 loading a computer program stored in the ROM 812 into the RAM 811 and executing it.
[0060] The CPU 810 includes one or more processors. The RAM 811 is formed of a volatile storage medium such as a DRAM, and functions as a work memory for the CPU 810. The ROM 812 is formed of a non-volatile storage medium, and stores computer programs executed by the CPU 810 and setting values for operating the control unit 808. Note that, in the following embodiment, an example will be described in which the CPU 810 executes the processing of the model processing unit 814, but the processing of the model processing unit 814 may be executed by one or more other processors (e.g., GPUs) not shown.
[0061] The learning parameter acquisition unit 813 acquires information (learning parameters) of the trained model from the information processing server 100 and stores it in the memory unit 807.
[0062] The model processing unit 814 has a learning model having the same configuration as that shown in Fig. 2 in the first embodiment, and executes the inference stage processing of the learning model. The inference stage processing executed by the model processing unit 814 can be performed in the same manner as the prediction processing shown in the first embodiment.
[0063] <Main components for vehicle driving control> Next, referring to Fig. 9, a main configuration for driving control of the vehicle 800 will be described. The sensor unit 801 captures, for example, an image in front of the vehicle 800, and outputs the captured image data at a predetermined number of frames per second. The image data output from the sensor unit 801 is input to a model processing unit 814 of the control unit 808. The image data input to the model processing unit 814 is used for prediction processing of the camera pose and the depth map (processing in the estimation stage). The model processing unit 814 inputs the image data output from the sensor unit 801, executes the prediction processing, and outputs the camera pose and the depth map to the driving control unit 806.
[0064] The driving control unit 806 performs movement estimation, recognition of the outside world, and the like based on the prediction results of the camera pose and the depth map, and various sensor information such as the vehicle acceleration and steering angle obtained from the sensor unit 801, and also outputs a control signal to the power unit 805, for example, to perform vehicle control of the vehicle 800. Movement estimation, recognition of the outside world, and vehicle control using the camera pose and the depth map can be performed using known methods. The power unit 805 controls the generation of power in response to the control signal from the driving control unit 806.
[0065] The learning parameter acquisition unit 813 acquires information on the learning model transmitted from the information processing server 100. The acquired data is used to train the DNN of the model processing unit 814.
[0066] In this embodiment, the model processing unit 814 in the vehicle 800 executes a learning model that predicts the camera pose and the depth map. That is, the vehicle calculates the loss by comparing the original image data with the converted image obtained from the estimated camera parameters and the depth map, and optimizes the depth map and the camera pose by repeated calculations using the gradient of the loss related to the depth map and the gradient of the loss related to the camera parameters. In this way, the prediction accuracy can be improved in the learning model executed in the vehicle compared to the result predicted by one processing by the DNN.
[0067] <Summary of the embodiment> (1) In the above embodiment, there is provided an information processing method executed in an information processing device, inputting a first image or a second image paired with the first image into a first machine learning model to predict a depth map; inputting the first image and the second image into a second machine learning model to predict relative movement and rotation of an image capture device that captured the first image and the second image; applying an image transformation to the first image based on the predicted relative translation and rotation from the first image to the second image and the predicted depth map for the first image to generate a first transformed image; calculating a loss including an error between the first transformed image and the second transformed image; inputting a gradient of the loss related to the relative translation and rotation, the first transformed image, and the first and second images into the second machine learning model to iteratively predict the relative translation and rotation, and converging the loss including an error between a new first transformed image and the second image based on the newly predicted relative translation and rotation.
[0068] According to such an embodiment, by feeding the gradient of the loss related to relative translation and rotation to the machine learning model and performing repeated calculations, it is possible to improve the accuracy of estimating the camera pose when estimating the camera pose using the machine learning model.
[0069] (2) Furthermore, in the above embodiment, applying an image transformation to the second image based on the predicted relative translation and rotation from the second image to the first image and the predicted depth map for the second image to generate a second transformed image; and calculating the loss including an error between the second transformed image and the first image; Converging the loss includes inputting a gradient of the loss with respect to the relative translation and rotation, the second transformed image, the first image, and the second image into the second machine learning model to iteratively predict the relative translation and rotation.
[0070] According to this embodiment, since it is possible to compare the data with the correct answer in both directions of the transformation from the first image to the second image and the transformation from the second image to the first image, it is possible to further improve the estimation accuracy. Also, it is possible to reduce the amount of training data required for training a machine learning model.
[0071] (3) Furthermore, in the above embodiment, The loss includes both the error between the first transformed image and the second image and the error between the second transformed image and the first image.
[0072] According to this embodiment, the losses of both the first converted image and the second converted image are constrained to be low, so that the estimation accuracy of each can be improved.
[0073] (4) Furthermore, in the above embodiment, generating a depth map for the first transformed image; and calculating the loss including an error between a depth map for the first transformed image and a depth map for the first image; Converging the loss includes inputting a gradient of the loss with respect to the depth map, the depth map for the first transformed image, and the first image into the first machine learning model to iteratively predict the depth map.
[0074] According to such an embodiment, by applying iterative calculations using machine learning to the estimation of the depth map, it is possible to estimate the depth map with higher accuracy.
[0075] (5) Furthermore, in the above embodiment, The information processing device is an information processing server located outside the mobile body.
[0076] According to such an embodiment, the processing of the machine learning model can be executed on an information processing server with more abundant computational resources.
[0077] (6) Furthermore, in the above embodiment, The information processing device is a moving object including a vehicle.
[0078] By executing the above information processing method in a moving body including a vehicle, it is possible to perform calibration of an imaging device and movement prediction with high accuracy in the moving body.
[0079] The invention is not limited to the above-described embodiment, and various modifications and variations are possible within the scope of the gist of the invention. [Explanation of symbols]
[0080] 100: information processing server, 113: image data acquisition unit, 114: model processing unit, 201: depth map prediction unit, 202: camera pose prediction unit, 203: image conversion unit, 204: loss calculation unit, 205: iteration control unit
Claims
1. An information processing method executed in an information processing device, inputting a first image or a second image paired with the first image into a first machine learning model to predict a depth map; inputting the first image and the second image into a second machine learning model to predict relative movement and rotation of an image capture device that captured the first image and the second image; applying an image transformation to the first image based on the predicted relative translation and rotation from the first image to the second image and the predicted depth map for the first image to generate a first transformed image; calculating a loss including an error between the first transformed image and the second transformed image; inputting a gradient of the loss related to the relative translation and rotation, the first transformed image, the first image, and the second image into the second machine learning model to iteratively predict the relative translation and rotation, and converging the loss including an error between a new first transformed image and the second image based on the newly predicted relative translation and rotation.
2. applying an image transformation to the second image based on the predicted relative translation and rotation from the second image to the first image and the predicted depth map for the second image to generate a second transformed image; calculating the loss including an error between the second transformed image and the first image; 2. The information processing method of claim 1, wherein converging the loss includes inputting a gradient of the loss with respect to the relative translation and rotation, the second transformed image, the first image, and the second image into the second machine learning model to iteratively predict the relative translation and rotation.
3. 3. The information processing method according to claim 2, wherein the loss includes both an error between the first transformed image and the second image and an error between the second transformed image and the first image.
4. generating a depth map for the first transformed image; and calculating the loss including an error between a depth map for the first transformed image and a depth map for the first image; The information processing method according to claim 1 , wherein converging the loss includes inputting a gradient of the loss with respect to the depth map, a depth map for the first transformed image, and the first image into the first machine learning model to iteratively predict the depth map.
5. 5. The information processing method according to claim 1, wherein the information processing device is an information processing server located outside a mobile object.
6. 5. The information processing method according to claim 1, wherein the information processing device is a moving object including a vehicle.
7. 7. The information processing method according to claim 1, wherein the first image and the second image are images captured by a same image capture device at different times.
8. A program for causing a computer to execute each step of the information processing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Scene ego-motion deciding method
JP1997219814A
Localisation, mapping and network training
US20210049371A1
