Unsupervised Deep Prediction Neural Network
Estimating object and camera motion in monocular video data through unsupervised learning and neural network systems solves the problems of insufficient accuracy and sensor dependence in existing technologies and achieves efficient depth and motion estimation in robot scenes.
Patent Information
- Application Number
- CN201980057913.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-09-05
- Filing Date
- 2019-09-05
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2039-09-05
Smart Images

Figure CN112639878B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. Provisional Application Serial No. 62 / 727,502 filed on September 5, 2018. The disclosure of the prior application is considered part of the disclosure of the present application and is incorporated by reference into the disclosure of the present application. Background Art
[0003] This specification relates to processing images using neural networks.
[0004] A machine learning model receives an input and generates an output, e.g., a predicted output, based on the received input. Some machine learning models are parametric models and generate an output based on the received input and based on the values of the model's parameters.
[0005] Some machine learning models are deep models that employ multiple layers of models to generate outputs for received inputs. For example, a deep neural network is a deep machine learning model that includes an output layer and one or more hidden layers, each of which applies a nonlinear transformation to the received input to generate an output. Summary of the invention
[0006] This specification describes a neural network system implemented as a computer program on one or more computers in one or more locations, the neural network system including a camera motion estimation neural network, an object motion estimation neural network, and a depth prediction neural network.
[0007] Specific embodiments of the subject matter described in this specification can be implemented so as to achieve one or more of the following advantages. The subject matter described in this specification generally relates to unsupervised learning techniques that allow neural network systems to predict depth and ego-motion directly from monocular video more accurately and efficiently than conventional methods. While accurate depth prediction and accurate ego-motion estimation for moving objects are critical for many odometry-based tasks, i.e., tasks that require using data from motion sensors to estimate position changes over time (e.g., robotic navigation in dynamic scenes), prior work has focused primarily on camera ego-motion, leaving object motion unresolved. In contrast, the described techniques explicitly model the motion of individual objects in 3D along with camera ego-motion, resulting in more accurate depth and ego-motion estimation results.
[0008] In addition, prior work that employs supervised learning methods requires expensive depth sensors, which may not be readily available in most robotic scenarios and may introduce their own sensor noise. In contrast, the subject matter described herein addresses unsupervised learning of scene depth, camera motion, and object motion, where supervision is provided by monocular video captured by a camera—the cheapest, least restrictive, and most ubiquitous sensor for robotics. No additional supervision or sensors are required. This ensures that training data for training depth, object motion, and camera motion neural networks is readily available, i.e., because large amounts of unlabeled monocular video can be easily collected during normal operation of a robotic agent. Therefore, the techniques described herein are applicable in most robotic scenarios.
[0009] In addition, the techniques described herein explicitly model the 3D motion of individual moving objects in the scene as depicted in the input image, as well as the camera ego-motion. By introducing the local structure of the input image into the learning process, these techniques enable the neural network system to adapt to new environments by learning using online refinement (also known as "online fusion") over multiple frames. During the online fusion mode, the neural network system can perform training and reasoning together. That is, the neural network system can run one or more optimization steps to update the current values of the parameters of the neural network as if it were in training mode before or after calculating the desired output. Online fusion allows these neural networks to understand the flight depth and ego-motion of unknown environments. For example, by transferring a model trained on data collected for robot navigation in an urban scene to an indoor navigation setting, this enables cross-environment transfer learning.
[0010] The details of one or more embodiments of the subject matter of this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 The architecture of an example neural network system is shown.
[0012] Figure 2 is a flowchart of an example process for constructing a loss function to jointly train a camera motion estimation neural network, an object motion estimation neural network, and a depth prediction neural network.
[0013] Figure 3 is a flow chart of an example process for training a camera motion estimation neural network, an object motion estimation neural network, and a depth prediction neural network.
[0014] Like reference numbers and designations throughout the various drawings refer to like elements. DETAILED DESCRIPTION
[0015] This specification describes a neural network system implemented as a computer program on one or more computers at one or more locations, which includes a camera motion estimation neural network, an object motion estimation neural network, and a depth prediction neural network.
[0016] Figure 1 An example architecture of a neural network system 100 is shown. Neural network system 100 is an example of a system implemented as a computer program on one or more computers in one or more locations, in which the systems, components, and techniques described below can be implemented. In general, neural network system 100 is configured to process a sequence of input images to generate depth and motion outputs for the input images.
[0017] like Figure 1 As shown, the neural network system 100 includes a camera motion estimation neural network 104 (also referred to as "camera motion NN 104" for simplicity), an object motion estimation neural network 106 (or "object motion NN 106"), and a depth prediction neural network 108 (or "depth NN 108"). Each of the camera motion NN 104, the object motion NN 106, and the depth NN 108 may include one or more convolutional neural network layers. In some implementations, the camera motion NN 104, the object motion NN 106, and the depth NN 108 are fully convolutional neural networks.
[0018] An example architecture for camera motion NN 104 is described in Zhou, T.; Brown, M.; Snavely, N.; and Lowe, D. 2017. “Unsupervised learning of depth and ego-motion from video.” Conference on Computer Vision and Pattern Recognition (CVPR).
[0019] Example architectures of deep NN 108 are described in Zhou, T.; Brown, M.; Snavely, N.; and Lowe, D. 2017, “Unsupervised learning of depth and ego-motion from video,” CVPR and in Godard, C.; Aodha, OM; and Brostow, GJ 2017, “Unsupervised monocular depth estimation with left-right consistency,” CVPR.
[0020] In some implementations, the architecture of the object motion NN 106 is the same as the camera motion NN 104 but has different parameters because the object motion NN 106 is configured to learn the motion of an object.
[0021] An example of an object motion NN 106 is a convolutional neural network having 7 convolutional neural network layers followed by a 1x1 convolution followed by the mean applied to the output of the 1x1 convolution. For example, the 1x1 convolution outputs 6 outputs and the mean is applied to the 6 outputs to obtain a 6-dimensional vector. Alternatively, the object motion NN 106 can have more or fewer neural network layers, can use fully connected layers, and can have other variations such as a smaller size.
[0022] System 100 is configured to receive an image sequence 102 and process image sequence 102 using each of neural networks 104, 106, and 108 to generate a corresponding depth or motion output.
[0023] The input image sequence 102 may include video frames captured by a camera of the robotic agent. As another example, the input image sequence 102 may include frames of monocular video captured by a camera of a mobile device (e.g., by a camera of a mobile phone when a user holding a commercial phone is riding a bicycle). Each of the input images includes one or more potential objects (e.g., cars, trucks, motorcycles, bicycles, pedestrians, and animals).
[0024] In some implementations, the image sequence 102 may include consecutive frames of a video. However, the sequence 102 does not necessarily have to include all frames from the video. For example, in some implementations, the sequence 102 may include every other frame of the video.
[0025] The deep NN 108 is configured to receive an image from the sequence 102 and process the image to generate a depth output for the image according to current values of parameters of the deep NN 108. In some implementations, the deep NN 108 is configured to process each of the images in the sequence 102 to generate a corresponding depth output for each image. Figure 1 In the example of , the system 100 receives a sequence of three images (I1, I2, I3). The deep NN 108 receives the image I2 as input and processes the image I2 to generate a deep output D2.
[0026] The depth output generated by the depth NN 108 for a given image is a depth map that includes a predicted depth value for each of a plurality of pixels in the given image, e.g., for all pixels or some predetermined appropriate subset of those pixels. The depth value of a pixel is a representation of the vertical distance between (i) the plane in which the given image is recorded and (ii) the scene depicted at the pixel (e.g., the actual or virtual location of an object or a portion of an object depicted by the pixel). The plane in which the image is recorded can be a focal plane, e.g., the focal plane of a camera of a robotic agent or the focal plane of a camera of a mobile device.
[0027] The camera motion NN 104 is generally configured to process a pair of images to generate a camera motion output that characterizes the motion of the camera between the two images based on the current values of the parameters of the camera motion NN 104. Because there are potential moving objects in the input images in the sequence 102, in order to accurately estimate the motion of the camera between the input images, the system 100 first masks out the object motion from the input images. To do so, the system 100 generates a corresponding background image for each of the input images, the corresponding background image including a portion of the input image that does not depict any of the potential objects in the input images. The system 100 then processes the background images using the camera motion NN 104 to generate a corresponding camera motion output for each pair of input images in the sequence 102, the corresponding camera motion output characterizing the motion of the camera between the two input images in the pair. The camera motion output is an ego motion vector that defines the rotation and translation of the camera from its viewpoint when the first image in the input image pair was taken to its viewpoint when the second image in the pair was taken. For example, the ego motion vector includes three translation components t x ,t y ,t z The three values and for the three rotation components r x 、r y 、r z The three values of .
[0028] To illustrate how the system 100 generates a corresponding background image for each of the input images in the sequence 102, let Denote an instance-aligned object segmentation mask for each potential object i in each sequence (I1, I2, I3), where HxW is the size of the input image, i∈{1, 2, ..., N} where N is the number of potential objects in each of the input images in the sequence. To account for camera motion, object motion is first masked out from the input images. More specifically, the system 100 performs this by taking a binary object segmentation mask S for each potential object in the input image. i The complement of the union of is used to generate the background segmentation mask as follows:
[0029] O0(S)=1-∪ i S i , (1)
[0030] Among them, j (S)=S j , j>0 returns the binary object segmentation mask only for object j. In particular, the binary segmentation mask S j comprises a matrix, wherein each element of the matrix corresponds to a corresponding pixel in the input image, and each element can have a value of 1 or 0. If an element of the matrix has a value of 1, then the corresponding pixel in the input image belongs to object j. If an element of the matrix has a value of 0, then the corresponding pixel in the input image does not belong to object j. To generate a background segmentation mask, the system 100 takes the union of all binary object segmentation masks and then determines the inverse of the union to obtain an area that does not contain any potential moving objects.
[0031] The system 100 generates a combined background segmentation mask V by taking the pixel-by-pixel product of the background segmentation masks generated for the input images in the sequence:
[0032] V=O0(S1)⊙O0(S2)⊙O0(S3), (2)
[0033] where ⊙ represents element-wise multiplication operation.
[0034] The system 100 generates a corresponding background image for each input image by taking the pixel-by-pixel product of the combined background segmentation mask and the input image. The resulting background image sequence is denoted as I1⊙VI2⊙V, I3⊙V.
[0035] The system 100 provides a background image sequence as input to the camera motion NN 104. The camera motion NN 104 is configured to process the background image sequence to generate a camera motion output as follows:
[0036] E 1→2 , E 2→3 =ψE(I1⊙V, I2⊙V, I3⊙V) (3)
[0037] where ψE represents the camera motion NN 104. The camera motion output comprises (i) a first camera motion estimate E representing the motion of the camera between the first input image I1 and the second input image I2 1→2 , and (ii) a second camera motion estimate E representing the motion of the camera between the second input image I2 and the third input image I3 2→3 More specifically, the first camera motion estimate E 1→2is the first transformation matrix that transforms the position and orientation of the camera from its viewpoint when taking the first input image to its viewpoint when taking the second input image. The second camera motion estimate E 2→3 is a second transformation matrix that transforms the position and orientation of the camera from its viewpoint when taking the second input image to its viewpoint when taking the third input image.
[0038] After processing the background images to generate the camera motion outputs, the system 100 uses the object motion NN 106 to generate corresponding object motion outputs for each of the potential objects based on the input image sequence and the camera motion outputs according to the current values of the parameters of the object motion NN 106. The corresponding object motion outputs characterize the motion of the potential objects between their positions as they appear in the input images.
[0039] In particular, the system 100 applies a warp operation on an input image sequence by using the camera motion output. The generated distorted image sequence is represented as More specifically, the twist operation is differentiable and can be expressed as follows:
[0040]
[0041] in By considering the input image I j The corresponding depth output D j and camera motion estimation E i→j The input image I i Twisted into I j The reconstructed jth image is generated. For each warped image in , the system 100 generates a corresponding warped segmentation mask, denoted as
[0042] For each of the potential objects, the object motion output M of the i-th object is (i) is calculated as:
[0043]
[0044] where ψ M denotes the object motion NN 106 and ⊙ denotes an element-wise multiplication operation. is a transformation matrix representing the motion of a potential object between its first position as it appears in the first input image I1 and its second position as it appears in the second input image I2. is a transformation matrix representing the motion of the potential object between its second position as it appears in the second input image I2 and its third position as it appears in the third input image I3.
[0045] Although represent object motion, but they are modeling how the camera would move in order to account for object appearance, rather than directly accounting for object motion. As an example, if a car is crossing an intersection from left to right, the transformation matrix would move the camera from right to left, making it appear that the car has in fact moved to the right when the observer is only looking at the car.
[0046] To efficiently generate depth and motion outputs for image sequences, the neural network system 100 includes a training engine 112, which is a software-based system, subsystem, or process programmed to jointly train the camera motion NN 104, the depth NN 108, and the object motion NN 106 using unsupervised learning techniques. Typically, the training engine 118 will be implemented as one or more software modules or components installed on one or more computers in one or more locations. In some cases, one or more computers will be dedicated to a specific engine; in other cases, multiple engines can be installed and run on the same one or more computers.
[0047] To jointly train the camera motion NN 104, the depth NN 108, and the object motion NN 106, the training engine 112 determines an estimate of the gradient of the loss function based on the sequence of warped images, the sequence of object segmentation masks, the combined background segmentation mask, the object motion output, the camera motion output, and the depth output generated by the system 100 and the neural networks 104, 106, and 108 as described above. The training engine 112 back-propagates the estimate of the gradient of the loss function to jointly adjust the current values of the parameters of the camera motion NN 104, the depth NN 108, and the object motion NN 106.
[0048] Reference below Figure 2 An example process for constructing a loss function for jointly training the camera motion NN 104, the depth NN 108, and the object motion NN 106 is described in detail.
[0049] After the values of the parameters of the neural networks 104, 106, and 108 have been updated, the system 100 can process one or more new input images using one or more of the neural networks 104, 106, and 108 to generate the desired output. For example, the system 100 can process the new input image using the deep NN 108 to generate a depth output 110 for the new input image according to the updated values of the parameters of the deep output 110.
[0050] Figure 22 is a flowchart of an example process for constructing a loss function for jointly training a camera motion estimation neural network, an object motion estimation neural network, and a depth prediction neural network. For convenience, process 200 will be described as being performed by a system of one or more computers located in one or more locations. For example, a neural network system appropriately programmed in accordance with the present specification, such as Figure 1 The neural network system 100 is capable of executing the process 200.
[0051] The system generates a first fully warped image by performing the following operations (step 202).
[0052] For each potential object in the one or more potential objects, the system applies an unwarping operation to a first warped image in the warped image sequence, where the operation is parameterized by the depth output D2 and a first object motion estimate of the potential object to obtain
[0053]
[0054] The system calculates for object i and the corresponding binary object segmentation mask O i (S2) to generate a first temporary warped object image, which is represented as
[0055] The system generates a first temporary warped background image by combining the first warped image in the warped image sequence and the combined background segmentation mask. The first temporary warped background image is represented as
[0056] The system generates a first fully warped image by combining the first temporarily warped background image and the first temporarily warped target image as follows, represented as
[0057]
[0058] Similarly, the system generates a second fully warped image by performing the following operations (step 204).
[0059] For each potential object i in the one or more potential objects, the system applies an inverse warping operation to a third warped image in the warped image sequence, where the operation is parameterized by the inverse of the depth output D2 and a second object motion estimate of the potential object to obtain
[0060]
[0061] The system calculates for object i and the corresponding binary object segmentation mask O i(S2) to generate a first temporary warped object image for each object i, which is represented as
[0062] The system generates a second temporary warped background image by combining the third warped image in the warped image sequence and the combined background segmentation mask. The second temporary warped background image is represented as
[0063] The system generates a second fully warped image, represented as
[0064]
[0065] After generating the first fully warped image and the second fully warped image, the system constructs components of the loss function used for training as follows.
[0066] The system constructs a reconstruction loss between the first fully warped image and the second fully warped image and the second input image (step 206). The reconstruction loss is calculated as the minimum reconstruction loss between warping from the first input image or the third input image to the second image (i.e., the middle image in the three-image sequence):
[0067]
[0068] to avoid penalties due to obvious occlusion / deocclusion effects.
[0069] The system constructs a structured similarity loss representing the dissimilarity between the first fully warped image and the second fully warped image and the second image (step 208). The system can construct the structured similarity loss as follows:
[0070]
[0071] Where SSIM(x,y) is an index representing the similarity between an image patch extracted from image x and an image patch extracted from image y. An example form of the SSIM(x,y) index is described in detail in Wang, Z.; Bovik, AC; Sheikh, HR; and Simoncelli, EP 2004. "Image quality assessment: from error visibility to structural similarity." Transactions on Image Processing.
[0072] The system constructs a depth smoothness loss defined by the depth output and the second input image (step 210). The depth smoothness loss is an image-perceptual smoothness loss for depth prediction. It enforces smoothness in uniform color regions while allowing depth to vary near image edges:
[0073]
[0074] Among them I i,j represents the image pixel at coordinate (i, j) of a given image I, Yes and I i,j The corresponding estimated depth, and is the gradient. By considering the gradient of image I, the depth smoothness loss allows for steep depth changes at pixel coordinates where there are steep changes in the image. Used to extract image edges in horizontal and vertical directions. They are applied to both the image and the depth map, allowing to have a smooth depth map, i.e. with smaller absolute values on the edges. If the image does have edges at certain locations, the depth is not expected to be as smooth as there, i.e. the depth will be penalized less for these areas.
[0075] The system constructs a loss function (step 214). The loss function is a weighted combination of (i) reconstruction loss, (ii) structural similarity loss, and (iii) deep smoothing loss. For example, the loss function can have the following form:
[0076]
[0077] where α i is a predetermined hyperparameter. The total loss L can be applied at 4 scales, i.e., the loss can be reapplied to the image and three subsampled versions of the image.
[0078] In some implementations, to improve the accuracy of depth prediction, the system includes an object size loss in the above loss function to enforce an object size constraint.
[0079] By imposing an object size constraint, the system is able to address a common problem noted in previous work, where objects such as cars in front moving at roughly the same speed often get projected into infinite depth. This is because objects in front show no apparent motion, and if the network estimates them as infinitely far away, the reprojection error is reduced to almost zero, which is preferable for the correct case. Previous work has pointed out this obvious limitation, but has not provided a solution other than augmenting the training dataset with stereo images. However, stereo images are not as common as monocular video, which will limit the applicability of this method.
[0080] It was observed that if the model has no knowledge of object scale, it might account for the same object motion by placing the object very far away and predicting very noticeable motion (assuming it is very large) or by placing the object very close and predicting very little motion (assuming it is very small). By imposing object size constraints, the system allows the deep prediction neural network to learn the scale of the object as part of the training process, enabling it to model the object in 3D. Assuming that the height prior of some objects, such as cars, is weak, it is possible to take into account object segmentation masks and use The camera inline function is used to obtain an approximate depth estimate of the object, where f y ∈R is the focal length, p∈R is the prior height in world units, and is the height of the corresponding segment block in pixels.
[0081] In practice, it is undesirable to estimate such constraints manually, and the scale of the depth predictions produced by the network is unknown. Therefore, the system allows the depth prediction neural network to learn all constraints simultaneously without additional input.
[0082] Considering the above, the system constructs an object size loss term at the scale of each object i (i=1, ..., N) in the input image. Let Define a category ID for any object i, and p j is the prior learnable height for each class ID j. Let D be the depth map describing the depth estimate of each potential object, and let S be the corresponding object silhouette template, and let is the mean of the depth map D. The system applies an object size loss that represents the difference between (i) the depth prediction for each potential object based on the output of the depth NN 108 and (ii) the approximate depth estimate at the location of the potential object based on its size in the real world as follows:
[0083]
[0084] The object size loss effectively prevents all segmented objects from degenerating to infinite depth and forces the network to produce not only reasonable depths but also matching object motion estimates.
[0085] After constructing the loss function with the loss components of the loss function, the system generates an estimate of the gradient of the loss function and back-propagates the estimate of the gradient to jointly adjust the current values of the depth parameters of the deep network and the current values of the motion parameters of the camera motion network (step 218). The system can jointly adjust the current values of the depth parameters and the motion parameters to minimize the loss function by using a minimal batch stochastic optimization or a stochastic gradient optimization method.
[0086] Figure 3is a flow chart of an example process 300 for training a camera motion estimation neural network, an object motion estimation neural network, and a depth prediction neural network. For convenience, process 300 is described as being performed by a system of one or more computers located in one or more locations. For example, a neural network system appropriately programmed according to this specification, such as, Figure 1 The neural network system 100 can perform process 300.
[0087] The system receives a sequence of input images depicting the same scene (step 302). The camera captures the input images at different time steps. Each input image includes one or more potential objects.
[0088] For each input image in the sequence of input images, the system generates a corresponding background image that includes portions of the input image that do not depict any potential objects in the input image (step 304).
[0089] In particular, the system generates, for each potential object in the input image, a corresponding object segmentation mask for the potential object. The system generates a background segmentation mask for the input image by taking the complement of the union of the object segmentation masks for the potential objects in the input image. The system generates a corresponding background image for the input image by taking the pixel-wise product of the combined background segmentation mask and the input image. The combined background segmentation mask is the pixel-wise product of the background segmentation masks generated for the input images in the sequence.
[0090] The system processes the background image using a camera motion estimation neural network to generate a camera motion output that characterizes the motion of the camera between the input images in the sequence (step 306). The camera motion estimation neural network is configured to process the background image to generate the camera motion output according to the current values of the parameters of the camera motion estimation neural network.
[0091] The camera motion output includes (i) a first camera motion estimate representing the motion of the camera between the first input image and the second input image, and (ii) a second camera motion estimate representing the motion of the camera between the second input image and the third input image. More specifically, the first camera motion estimate is a first transformation matrix that transforms the position and orientation of the camera from its viewpoint when the first input image was taken to its viewpoint when the second input image was taken. The second camera motion estimate is a second transformation matrix that transforms the position and orientation of the camera from its viewpoint when the second input image was taken to its viewpoint when the third input image was taken.
[0092] For each of the one or more potential objects, the system generates a corresponding object motion output for the potential object based on the input image sequence and the camera motion output using an object motion estimation neural network (step 308). The corresponding object motion output characterizes the motion of the potential object between its positions as it appears in the input images.
[0093] In particular, the corresponding object motion outputs for the potential objects include: (i) a first object motion estimate, which is a third transformation matrix that represents the motion of the potential object between its first position as it appears in the first input image and its second position as it appears in the second input image; and (ii) a second object motion estimate, which is a fourth transformation matrix that represents the motion of the potential object between its second position as it appears in the second input image and its third position as it appears in the third input image. More specifically, each of the third and fourth transformation matrices represents the motion of the potential object by describing the motion of the camera so that when applied and when the potential object is considered to be static, the potential object appears to have moved appropriately. For example, if a car is crossing an intersection from left to right, the transformation matrix will cause the camera to move from right to left so that when only looking at the car, the car appears to have in fact moved to the right.
[0094] The system processes a particular input image in the sequence of input images using a depth prediction neural network and according to current values of parameters of the depth prediction neural network to generate a depth output for the particular input image (step 310).
[0095] The depth output generated by the depth prediction neural network for a given image is a depth map that includes a predicted depth value for each of a plurality of pixels in the given image. The depth value of a pixel is a representation of the vertical distance between (i) the plane on which the given image is recorded and (ii) the scene depicted at the pixel (e.g., the actual or virtual location of an object or portion of an object depicted by the pixel). The plane on which the image is recorded can be a focal plane, such as the focal plane of a camera of a robotic agent or the focal plane of a camera of a mobile device.
[0096] The system updates current values of depth prediction neural network parameters based on (i) a particular depth output for a particular input image, (ii) a camera motion output, and (iii) an object motion output for one or more potential objects (step 312).
[0097] In particular, the system determines an estimate of the gradient of the loss function based on the input image sequence, the object motion output, the camera motion output, and the depth output. The system can use the above reference Figure 2The method described in detail constructs the loss function. The system back-propagates an estimate of the gradient of the loss function to jointly adjust the current values of the parameters of the camera motion estimation neural network, the object motion estimation neural network, and the depth prediction neural network.
[0098] This specification uses the term "configured" in conjunction with system and computer program components. For a system of one or more computers configured to perform a specific operation or action, it means that the system has installed thereon software, firmware, hardware, or a combination thereof that, in operation, causes the system to perform the operation or action. For one or more computer programs configured to perform a specific operation or action, it means that the one or more programs include instructions that, when executed by a data processing device, cause the device to perform the operation or action.
[0099] Embodiments of the subject matter and the functional operations described in this specification may be implemented in digital electronic circuits, in tangibly embodied computer software or firmware, in computer hardware (including the structures disclosed in this specification and their structural equivalents), or in a combination of one or more thereof. Embodiments of the subject matter described in this specification may be implemented as one or more computer programs (i.e., one or more modules of computer program instructions) encoded on a tangible, non-transitory storage medium for execution by a data processing device or for controlling the operation of a data processing device. A computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more thereof. Alternatively or in addition, program instructions may be encoded on an artificially generated propagation signal, such as a machine-generated electrical, optical, or electromagnetic signal, which is generated to encode information for transmission to a suitable receiver device for execution by a data processing device.
[0100] The term "data processing equipment" refers to data processing hardware and includes all kinds of equipment, devices and machines for processing data, including, for example, a programmable processor, a computer or multiple processors or computers. The equipment may also be or also include special-purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application-specific integrated circuits). In addition to hardware, the equipment may optionally include code that creates an execution environment for a computer program, such as code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
[0101] A computer program, which may also be referred to or described as a program, software, software application, app, module, software module, script, or code, may be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages; and it may be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A program may (but need not) correspond to a file in a file system. A program may be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing portions of one or more modules, subroutines, or code). A computer program may be deployed to execute on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a data communications network.
[0102] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by a dedicated logic circuit (e.g., FPGA or ASIC) or by a combination of a dedicated logic circuit and one or more programmed computers.
[0103] Computers suitable for executing computer programs can be based on general or special microprocessors or both, or any other kind of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a central processing unit for executing or implementing instructions and one or more memory devices for storing instructions and data. The central processing unit and the memory can be supplemented or incorporated into a special logic circuit by a special logic circuit. Typically, the computer will also include one or more large-capacity storage devices (e.g., magnetic disks, magneto-optical disks, or optical disks) for storing data, or be coupled in an operational manner to receive data from or transfer data to the one or more large-capacity storage devices, or both. However, the computer does not need to have such devices. In addition, the computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device, such as a universal serial bus (USB) flash drive, which is just a few examples.
[0104] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example: semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD ROM and DVD-ROM optical disks.
[0105] To provide interaction with a user, embodiments of the subject matter described in this specification may be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user, and a keyboard and pointing device, such as a mouse or trackball, through which the user can provide input to the computer. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and the input from the user may be received in any form, including acoustic, voice, or tactile input. In addition, the computer may interact with the user by sending documents to and receiving documents from a device used by the user; for example, by sending a web page to a web browser on a user's device in response to a request received from the web browser. Moreover, the computer may interact with the user by sending text messages or other forms of messages to a personal device (e.g., a smart phone running a messaging application) and in return receiving a response message from the user.
[0106] The data processing device used to implement the machine learning model may also include, for example, a dedicated hardware accelerator unit for processing the common and computationally intensive parts of machine learning training or generation, i.e., inference, workloads.
[0107] Machine learning models can be implemented and deployed using a machine learning framework, for example, the TensorFlow framework, the Microsoft Cognitive Toolkit framework, the Apache Singa framework, or the Apache MXNet framework.
[0108] Embodiments of the subject matter described in this specification may be implemented in a computing system that includes a back-end component (e.g., as a data server), or includes a middleware component (e.g., an application server), or includes a front-end component (e.g., a client computer with a graphical user interface, a web browser, or an app through which a user can interact with an implementation of the subject matter described in this specification), or any combination of one or more such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include local area networks (LANs) and wide area networks (WANs), such as the Internet.
[0109] A computing system may include a client and a server. The client and the server are usually remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the respective computers and having a client-server relationship with each other. In some embodiments, the server transmits data (e.g., an HTML page) to a user device (e.g., in order to display data to a user and receive user input from the user, the user interacts with a device acting as a client). Data generated at the user device (e.g., the result of the user interaction) can be received from the device at the server.
[0110] Although this specification contains many specific implementation details, these details should not be understood as limitations on the scope of any invention or the scope of what is claimed, but rather as descriptions of features that may be specific to a particular embodiment of a particular invention. Certain features described in this specification in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented in multiple embodiments or in any suitable sub-combination. In addition, although features may be described above as working in certain combinations and even initially claimed as such, in some cases, one or more features from a claimed combination may be deleted from the combination, and a claimed combination may be directed to a sub-combination or a variation of a sub-combination.
[0111] Similarly, although operations are depicted in the drawings and described in the claims in a particular order, this should not be construed as requiring that such operations be performed in the particular order shown or in a sequential order, or that all of the illustrated operations be performed, in order to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be construed as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged in multiple software products.
[0112] Specific embodiments of the subject matter have been described. Other embodiments are also within the scope of the appended claims. For example, the actions recited in the claims can be performed in a different order and still achieve the desired results. As an example, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous.
Claims
1. A system for processing an image using a neural network, the system comprising one or more computers in one or more locations and one or more storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to: A sequence of input images depicting the same scene is received, the input images being captured by a camera at different time steps, each of the input images comprising one or more potential objects, wherein: The input image sequence includes a first input image, a second input image and a third input image; For each of the input images, generating a corresponding background image, the background image comprising a portion of the input image that does not depict any potential object in the input image; processing the background image using a camera motion estimation neural network to generate a camera motion output characterizing the motion of the camera between the input images in the sequence; for each potential object of the one or more potential objects: generating, using an object motion estimation neural network, a corresponding object motion output for the potential object based on the input image sequence and the camera motion output, the corresponding object motion output characterizing motion of the potential object between locations of the potential object as it appears in the input image; Processing a particular input image in the sequence of input images using a depth prediction neural network and according to current values of parameters of the depth prediction neural network to generate a depth output for the particular input image; as well as updating current values of parameters of the depth prediction neural network based on (i) the particular depth output for the particular input image, (ii) the camera motion output, and (iii) the object motion output for the one or more potential objects; Features: After processing the background image to generate the camera motion output, generating a warped image sequence by applying a warping operation to the input image sequence using the camera motion output; and Wherein, for each potential object of the one or more potential objects, generating a corresponding object motion output of the potential object comprises: For each warped image in the warped image sequence: generating a corresponding warped segmentation mask of the potential object in the warped image, and generating a corresponding object image of the warped image by taking a pixel-by-pixel product of the warped image and the corresponding warped segmentation mask; and Processing (i) the object image of a first warped image in the sequence of warped images, (ii) the second input image, and (iii) the object image of a third warped image in the sequence of warped images using the object motion estimation neural network to generate the corresponding object motion output of the potential object.
2. The system according to claim 1, wherein: The input image sequence is video frames captured by the camera.
3. The system according to claim 1, wherein: The depth output includes an estimated depth value for each of a plurality of pixels in the second input image, the estimated depth value representing a respective distance of a scene depicted at the pixel from a focal plane of the second input image.
4. The system according to claim 1, wherein: For each input image in the input image sequence, generating a corresponding background image of the input image comprises: generating a corresponding object segmentation mask for each potential object in the input image, generating a background segmentation mask by taking the complement of the union of object segmentation masks of the potential objects in the input image, and generating the corresponding background image of the input image by taking a pixel-by-pixel product of a combined background segmentation mask and the input image, The combined background segmentation mask is a pixel-by-pixel product of the background segmentation masks generated for the input images in the sequence.
5. The system according to claim 1, wherein: The camera motion output comprises: (i) a first camera motion estimate representing the motion of the camera between the first input image and the second input image; and (ii) a second camera motion estimate representing the motion of the camera between the second input image and the third input image.
6. The system according to claim 5, wherein: The first camera motion estimate is a first transformation matrix that transforms the position and orientation of the camera from a viewpoint of the camera when the first input image was taken to a viewpoint of the camera when the second input image was taken.
7. The system according to claim 5, wherein: The second camera motion estimate is a second transformation matrix that transforms the position and orientation of the camera from the viewpoint of the camera when the second input image was taken to the viewpoint of the camera when the third input image was taken.
8. The system according to claim 1, wherein: The object motion output of the potential object includes: (i) a first object motion estimate, which is a third transformation matrix, which represents the motion of the potential object between a first position of the potential object as it appears in the first input image and a second position of the potential object as it appears in the second input image; and (ii) a second object motion estimate, which is a fourth transformation matrix, which represents the motion of the potential object between the second position of the potential object as it appears in the second input image and a third position of the potential object as it appears in the third input image.
9. The system according to claim 1, wherein: The deep prediction neural network includes one or more convolutional neural network layers.
10. The system according to claim 1, wherein: The camera motion estimation neural network includes one or more convolutional neural network layers.
11. The system according to claim 1, wherein: The object motion estimation neural network includes one or more convolutional neural network layers.
12. The system according to any one of claims 1 to 11, wherein: The camera motion estimation neural network, the object motion estimation neural network and the depth prediction neural network have been jointly trained using unsupervised learning techniques.
13. The system according to claim 4, wherein: Updating the current values of the parameters of the deep prediction neural network includes: determining an estimate of a gradient of a loss function based on the sequence of warped images, the sequence of object segmentation masks, the combined background segmentation mask, the object motion output, the camera motion output, and the depth output, and Back-propagating an estimate of the gradient of the loss function to jointly adjust current values of parameters of the camera motion estimation neural network, the object motion estimation neural network, and the depth prediction neural network.
14. The system according to claim 13, wherein: Determining an estimate of the gradient of the loss function includes: The first fully warped image is generated by performing the following operations: for each potential object of the one or more potential objects, applying an inverse warping operation to the first warped image in the sequence of warped images, wherein the inverse warping operation is parameterized by the depth output of the particular input image and a first object motion estimate for the potential object, and combining a result of the inverse warping operation with the corresponding object segmentation mask to generate a first temporary warped object image, generating a first temporary warped background image by combining the first warped image in the sequence of warped images with the combined background segmentation mask, generating the first fully distorted image by combining the first temporarily distorted background image with the first temporarily distorted object image; Generate a second fully warped image by doing the following: for each potential object of the one or more potential objects, applying the inverse warping operation to the third warped image in the sequence of warped images, wherein the inverse warping operation is parameterized by the depth output of the particular input image and a second object motion estimate of the potential object, and combining a result of the inverse warping operation with the corresponding object segmentation mask to generate a second temporary warped background image, generating a second temporary warped background image by combining the third warped image in the sequence of warped images with the combined background segmentation mask, generating the second fully distorted image by combining the second temporarily distorted background image with the second temporarily distorted object image; and The loss function includes (i) a first component representing a reconstruction loss between the first fully warped image and the second fully warped image and the second input image, (ii) a second component representing a dissimilarity between the first fully warped image and the second fully warped image and the second input image, and (iii) a third component representing a depth smoothness loss defined by the depth output and the second input image.
15. The system of claim 14, wherein: The loss function further includes an object size loss component, which represents the difference between: (i) a depth prediction for each potential object based on the output of the depth prediction neural network, and (ii) an approximate depth estimate at the location of the potential object based on the size of the potential object in the real world.
16. A method for processing an image using a neural network, the method comprising corresponding operations performed by a system according to any one of claims 1 to 15.
17. A method performed by a system for processing an image using a neural network according to any one of claims 1 to 15, wherein: The deep prediction neural network is configured to perform operations including: receiving an image as input; and The image is processed according to updated current values of parameters of the depth prediction neural network to generate an estimate of the depth of the input image.
18. One or more computer-readable storage media encoded with instructions that, when executed by one or more computers, cause the one or more computers to perform the method of claim 16 or claim 17.
