Tracking query points in video using neural networks
The video sequence is processed through point tracking neural network, and the visual backbone and decoder neural network are used to generate feature grids and predicted positions, which solves the problem of tracking the position changes and occlusions of query points within the video frame, and realizes the surface deformation and deformation of objects in the video. Fine-grained detection of occlusions.
Patent Information
- Application Number
- CN202380025417.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-07
- Filing Date
- 2023-03-07
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology is difficult to effectively track the position changes and occlusion conditions of query points in video frames in different video frames. Especially in the case of occlusion, it is difficult to provide fine-grained occlusion tracking.
The point tracking neural network is used to process the query point in the video sequence, the feature grid is generated through the visual backbone neural network, and the decoder neural network is combined to calculate the cost and predict the position of the query point in other video frames, and provide an occlusion score, identifying the highest The spatial bits of the score are used to determine the predicted location.
Query point position tracking and occlusion score prediction across video frames are implemented, providing information about surface deformation and movement of objects in the video, and improving the fine-grainedness of occlusion tracking.
Smart Images

Figure CN118742925A_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority to U.S. Provisional Application No. 63 / 317,535, filed on March 7, 2022. The disclosure of the prior application is considered part of and incorporated by reference into the disclosure of the present application. Background Art
[0002] The present specification relates to processing inputs including video frames using a neural network.
[0003] A neural network is a machine learning model that uses one or more layers of nonlinear units to predict outputs from received inputs. Some neural networks include one or more hidden layers in addition to the output layer. The output of each hidden layer is used as the input to the next layer in the network, that is, the next hidden layer or output layer. Each layer of the network generates an output from the received inputs based on the current value inputs of the corresponding set of parameters. Summary of the invention
[0004] This specification describes a system implemented as a computer program on one or more computers in one or more locations that processes an input comprising (i) a video sequence comprising a plurality of video frames and (ii) a set of one or more query points.
[0005] Each query point is a point in a corresponding video frame among the video frames, ie, specifies a corresponding spatial position in a corresponding video frame among the plurality of video frames, ie, a corresponding pixel.
[0006] The system processes the set of one or more query points and the video sequence, i.e., intensity values of pixels of video frames in the video sequence, using a point tracking neural network to generate a network output that includes, for each query point, a corresponding predicted spatial position of the query point in other video frames in the sequence - i.e., in video frames other than the corresponding video frame for the query point.
[0007] In one aspect, a method includes obtaining a video sequence comprising a plurality of video frames; obtaining a set of one or more query points, each query point specifying a corresponding spatial location in a corresponding one of the plurality of video frames; and processing the set of one or more query points and the video sequence using a point tracking neural network to generate a network output, the network output comprising, for each query point, a corresponding predicted spatial location of the query point in each of the video frames in the sequence except the corresponding video frame for the query point.
[0008] In some embodiments, processing the set of one or more query points and the video sequence using a point tracking neural network to generate a network output, the network output including, for each query point, a corresponding predicted spatial position of the query point in each of the video frames in the sequence except the corresponding video frame of the query point, comprising: processing the video frames in the video sequence using a visual backbone neural network to generate a feature grid, the feature grid including corresponding visual features for each of a plurality of spatial locations in each of the video frames; for each query point: generating an extracted feature of the query point from the spatial position of the query point in the corresponding video frame and the corresponding visual features for one or more of the plurality of spatial locations in the corresponding video frame; and generating the corresponding predicted spatial position of the query point in each of the video frames except the corresponding video frame from the feature grid and the extracted features of the query point.
[0009] In some embodiments, generating extracted features of the query point from the spatial position of the query point in the corresponding video frame and the corresponding visual features for each of the multiple spatial locations in the corresponding video frame includes: performing interpolation of the visual features of the set of spatial locations within a local neighborhood of the corresponding spatial position of the query in the corresponding video frame.
[0010] In some embodiments, generating the corresponding predicted spatial position of the query point in each of the video frames other than the corresponding video frame from the feature grid and the extracted features of the query point includes: generating a cost volume from the feature grid and the extracted features of the query point; and processing the cost volume using a decoder neural network to generate the corresponding predicted position of the query point in the video frame for each of the video frames other than the corresponding video frame.
[0011] In some embodiments, processing the cost volume using the decoder neural network includes: processing the cost volume using the decoder neural network to generate, for each video frame in the plurality of video frames other than the corresponding video frame, a corresponding score for each spatial location in the video frame; and generating, for each video frame in the plurality of video frames other than the corresponding video frame, the predicted position from the corresponding score for the spatial location in the video frame.
[0012] In some embodiments, generating the predicted position from the corresponding scores includes: identifying the spatial location with the highest score; identifying each spatial location within a fixed-size window of the spatial location with the highest score; and determining the predicted position by calculating a weighted sum of the spatial locations within the fixed-size window of the spatial location with the highest score, wherein the weight of each spatial location is calculated based on the sum of the scores of the spatial locations within the fixed-size window and the score of the spatial location.
[0013] In some embodiments, the network output further includes, for each query point, a corresponding occlusion score for the query point for each of the video frames except the corresponding video frame, the corresponding occlusion score indicating a likelihood that the query point is occluded in the video frame.
[0014] In some implementations, processing the cost volume using a decoder neural network to generate the corresponding predicted position of the query point includes:
[0015] The cost volume is processed using the decoder neural network to generate, for each video frame except the corresponding video frame, the corresponding predicted position of the query point in the video frame and the corresponding occlusion score of the query point in the video frame.
[0016] In another aspect, a method for training a point tracking neural network includes: obtaining a batch of one or more training video sequences; for each training video sequence and each query point in a set of query points in the training video sequence, obtaining (i) a ground-truth spatial position of the query point in each of the video frames in the training video sequence and (ii) a corresponding ground-truth occlusion score for the query point in each of the video frames in the training video sequence; for each training video sequence, processing the set of one or more query points and the training video sequence using the point tracking neural network to generate, for each query point, a ground-truth spatial position of the query point in each of the video frames in the training video sequence; and a corresponding predicted spatial position of the query point in each of the video frames in the column and a corresponding occlusion score of the query point for each of the video frames in the training video sequence; and computing gradients of parameters of the point tracking neural network with respect to a loss function, the loss function comprising: (i) a first loss term measuring, for each training video sequence, an error between a true valued spatial position of the query point and a corresponding predicted spatial position of the query point, and (ii) a second loss term measuring, for each training video sequence, an error between a true valued occlusion score of the query point and a corresponding predicted occlusion score of the query point.
[0017] In some embodiments, the first loss term is the Huber loss.
[0018] In some implementations, the second loss term is a cross entropy loss.
[0019] In some embodiments, the loss function further includes: (iii) a contrastive learning loss term.
[0020] In some embodiments, the method further includes: for each of one or more of the training video sequences, generating the true value spatial position of the query point in each of the video frames in the training video sequence and the corresponding true value occlusion score of the query point for each of the video frames, including: obtaining another training video sequence that is a variation of the training video sequence; processing the set of one or more query points and the another training video sequence using the point tracking neural network to generate, for each query point, a corresponding predicted spatial position of the query point in each of the video frames in the another training video sequence and a corresponding occlusion score of the query point for each of the video frames in the another training video sequence; and generating, from data generated by the point tracking neural network when processing the set of one or more query points and the another training video sequence using the point tracking neural network, the true value spatial position of the query point in each of the video frames in the training video sequence and the corresponding true value occlusion score of the query point for each of the video frames.
[0021] In some embodiments, generating the true value spatial position of the query point in each of the video frames in the training video sequence and the corresponding true value occlusion score for the query point in each of the video frames from data generated by the point tracking neural network when processing the set of one or more query points and the other training video sequence using the point tracking neural network includes: processing the data generated by the point tracking neural network when processing the set of one or more query points and the other training video sequence using the point tracking neural network using a predictor neural network.
[0022] In some embodiments, the predictor neural network is a multilayer perceptron (MLP).
[0023] In some embodiments, the training video sequence and the another training video sequence have been generated from the same original training video sequence by applying different data augmentations to the original training video sequence.
[0024] In some embodiments, the data generated by the point tracking neural network when processing the set of one or more query points and the other training video sequence using the point tracking neural network includes: (i) the corresponding predicted spatial position of the query point in the video frames in the other training video sequence, and (ii) the corresponding occlusion score of the query point for each of the video frames in the other training video sequence.
[0025] In some embodiments, the method further comprises: using the calculated gradients to train the point tracking neural network.
[0026] The subject matter described in this specification can be implemented in specific embodiments to realize one or more of the following advantages.
[0027] This specification describes a neural network that performs tracking of arbitrary query points across a video. This processes low-level features (such as pixel attributes) within frames of the video. This can provide information about, for example, how object surfaces of objects depicted in the video deform and move during the video. Such information can be used for various downstream tasks, such as video understanding or robotics tasks. In addition, the neural network can predict when a point becomes occluded, providing more fine-grained occlusion tracking.
[0028] 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
[0029] Figure 1 is a diagram of an example video processing system.
[0030] Figure 2 is a flow chart of an example process for tracking query points through a video.
[0031] Figure 3 An example of the cost volume for generating a query point is shown.
[0032] Figure 4 An example of predicting position and occlusion from a cost volume for a given video frame is shown.
[0033] Figure 5 is a flow chart of an example process for training a point tracking neural network.
[0034] Like reference numbers and designations in the various drawings indicate like elements. DETAILED DESCRIPTION
[0035] Figure 11 is a diagram of an example video processing system 100. Video processing system 100 is an example of a system implemented as a computer program on one or more computers at one or more locations in which the systems, components, and techniques described below may be implemented.
[0036] The system 100 receives input including (i) a video sequence 102 including a plurality of video frames and (ii) a set of one or more query points 104 .
[0037] Each query point 104 is a point in a corresponding one of the video frames, that is, a point that specifies a corresponding spatial position, that is, a corresponding pixel, in a corresponding one of the plurality of video frames. Therefore, each query point 104 can be represented as a point ,in are the spatial coordinates of the query point 104, and is the index of the corresponding video frame in the video sequence 102 .
[0038] System 100 uses a point tracking neural network 110 to process a set of one or more query points 104 and a video sequence 102, i.e., intensity values of pixels of video frames in video sequence 102, to generate a network output 112, the network output 112 including: for each query point 104, the query point 104 in other video frames in sequence 102 - i.e., in the corresponding video frames other than query point 104; 14. Due to the architecture of neural network 110 or due to the design of a processing pipeline used to generate outputs using neural network 110, network output 112 may also include the predicted spatial position of the corresponding video frame. However, in some of these cases, system 100 may ignore the predicted spatial position of the corresponding video frame (because the actual position in the corresponding video frame is provided as input to the system).
[0039] That is, given a query point 104 in one of the video frames, point tracking neural network 110 may generate predictions of the spatial locations of query point 104 in other of the video frames.
[0040] The predicted position of a given query point in a given other video frame is a prediction of the location of the portion of the scene depicted at the given query point in the corresponding video frame. For example, if at the given query point the corresponding video frame depicts a particular point on the surface of an object in the scene, then the predicted position of the given query point identifies the predicted position of the same particular point on the surface of the object in the given other video frame. More generally, if the video is a video of the real world, each query point corresponds to a physical point in the world depicted at the query point in the corresponding video, and the predicted position of the given query point in the given video frame is a prediction of the location of the physical point in the world in the given video frame, i.e., a prediction of which pixel depicts the physical point in the world in the given video frame.
[0041] In some implementations, point tracking neural network 110 also generates, for each query point 104, a corresponding occlusion score 116 for query point 104 in each of the other video frames in sequence 102. That is, network output 112 includes both predicted position 114 and occlusion score 116.
[0042] The occlusion score 116 for a given query point in a given video frame represents the likelihood that the query point is occluded—e.g., not visible—in the given video frame, i.e., the portion of the scene depicted at the query point in the corresponding video frame is occluded in the given video frame (e.g., occluded by another object in the scene). For example, if the video is a video of the real world, the occlusion score for a given query point in a given video frame is the predicted likelihood that the corresponding physical point in the world is occluded in the given video frame (e.g., occluded by another object in the real world).
[0043] Due to the architecture of neural network 110 or due to the design of the processing pipeline, network output 112 may also include a predicted occlusion score 116 for the corresponding video frame. However, in some of these cases, system 100 may ignore the occlusion score for the corresponding video frame.
[0044] The predicted position 114 (and optionally the occlusion score 116 ) may be used for any of a variety of purposes.
[0045] For example, the predicted position 114 can be used to generate a reward signal for training a robot or other agent through reinforcement learning. For example, if the task performed by the agent requires moving a point in a scene from one location to another, the distance between the predicted position of the point in the last video frame in the sequence and the target location can be used to generate a reward.
[0046] As another example, the predicted position 114 (and optionally the occlusion score 116) can be provided as additional input to a policy neural network for controlling a robot or other agent interacting with an environment. In this example, the query point can be a point of interest in the last frame of a video sequence, and the predictions for earlier frames in the sequence can be provided as input to the policy neural network, for example, to provide a signal about the recent motion of the agent or other objects in the environment.
[0047] As another example, the predicted position 114 (and optionally the occlusion score 116 ) may be provided along with the video sequence 102 as input to a video understanding neural network, such as an action classification neural network or a topic classification neural network, to provide the video understanding neural network with additional information about the motion in the scene.
[0048] As another example, the predicted position 114 (and optionally the occlusion score 116 ) may be used for imitation learning, ie, enabling imitation of motion rather than appearance.
[0049] Figure 2 2 is a flow chart of an example process 200 for tracking a query point through a video sequence. 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 video processing system appropriately programmed according to the present specification, such as Figure 1 The video processing system 100 depicted in FIG. 1 may perform the process 200 .
[0050] The system obtains a video sequence including a plurality of video frames (step 202). For example, the video sequence may depict a real world or synthetic scene across a time window, wherein each video frame depicts the scene at a corresponding point in the time window. Each video frame may include a plurality of pixels, wherein each pixel has one or more intensity values, such as an RGB color value, a grayscale value, or one or more intensity values in a different color representation scheme. Each pixel may be associated with a corresponding spatial position within the video frame. Each pixel may represent a corresponding portion or point of a scene (e.g., a real world or synthetic scene) depicted by the video frame at a corresponding point in time of the video frame.
[0051] The system obtains a set of one or more query points (step 204). As described above, each query point specifies a corresponding spatial location in a corresponding video frame of the plurality of video frames.
[0052] The system processes a set of one or more query points and a video sequence using a point tracking neural network to generate a network output (step 206).
[0053] The network output includes, for each query point, the corresponding predicted spatial position of the query point in each of the video frames in the sequence except the corresponding video frame of the query point.
[0054] Optionally, the network output may further include, for each query point, a corresponding occlusion score of the query point for each of the video frames except the corresponding video frame, wherein the corresponding occlusion score indicates a possibility that the query point is occluded in the video frame.
[0055] The point tracking neural network may generally have any suitable architecture that allows the point tracking neural network to map a video sequence and a query point to a network output of the query point.
[0056] As a specific example, the point tracking neural network may include a vision backbone neural network. Typically, the vision backbone neural network is a feature extraction neural network, i.e., a neural network configured to extract features from an input (e.g., a video frame).
[0057] In this example, the system can process video frames in a video sequence using a visual backbone neural network to generate a feature grid including corresponding visual features for each of a plurality of spatial locations in each of the video frames.
[0058] The system can then generate, for each query point, extracted features of the query point from the spatial position of the query point in the corresponding video frame and corresponding visual features of one or more of the multiple spatial locations in the corresponding video frame, and then generate a corresponding predicted spatial position of the query point in each of the video frames other than the corresponding video frame and, optionally, an occlusion score from the feature grid and the extracted features of the query point.
[0059] As an example, the point tracking neural network may also include a decoder neural network.
[0060] In this example, the system can generate a cost volume from the feature grid and the extracted features of the query point, and then process the cost volume using a decoder neural network to generate a corresponding predicted position of the query point in the video frame for each of the video frames except the corresponding video frame, and optionally generate an occlusion score.
[0061] Reference below Figure 3 Describes an example of generating a cost amount.
[0062] Reference below Figure 4 An example of processing a cost volume using a decoder neural network to generate a corresponding predicted position of a query point in a given video frame and an occlusion score for the given video frame is described.
[0063] Figure 3 An example 300 of generating a cost volume for a query point is shown.
[0064] Specifically, in Figure 3 In the example, the system processes sequence of video frames and receive video frames The query point in .
[0065] As described above, the system processes video frames in a video sequence using a visual backbone neural network to generate a feature grid that includes corresponding visual features, i.e., feature vectors, for each of a plurality of spatial locations in each of the video frames. Typically, each of the spatial locations corresponds to a different region of the video frame. For example, the feature grid may be dimensional visual features grid, where each visual feature corresponds to an 8×8 grid of pixels from the corresponding video frame.
[0066] The visual backbone neural network can have any suitable architecture that allows the neural network to map a video sequence to a feature grid. Figure 3 In the example of , the visual backbone neural network is a 3D convolutional neural network (Conv Net), such as TSM-ResNet-18 or other suitable convolutional neural networks. In other examples, the visual backbone neural network can be a different type of neural network, for example, a visual Transformer neural network.
[0067] The system may then generate, for each query point, an extracted feature of the query point from the spatial position of the query point in the corresponding video frame and corresponding visual features of one or more of the plurality of spatial locations in the corresponding video frame.
[0068] like Figure 3 As shown, the system can execute The corresponding spatial location of the query The extracted features (“query features”) are generated by interpolation of visual features collected from the spatial locations within a local neighborhood of , such as bilinear interpolation.
[0069] The system then generates a cost volume from the extracted features of the feature mesh and the query points.
[0070] In some embodiments, to generate a cost volume from the feature grid and the extracted features of the query point, the system can divide the visual features in the feature grid and the extracted features into heads, that is, so that the extracted features include The corresponding dimensional features, and the feature grid includes the corresponding Dimensional visual features.
[0071] The system can then generate a corresponding initial cost volume for each head and concatenate the initial cost volumes to generate a final cost volume. By using multiple heads, i.e., by computing a multi-head cost volume, the system can generate substantially richer features for further processing, i.e., for predicting position and occlusion scores.
[0072] The initial cost volume for a given header has a corresponding cost value for each spatial bit in each of the video frames. That is, the initial cost volume for a given header includes the cost value for each video frame in the sequence. Grid.
[0073] To calculate the cost value for a given spatial position in a given video frame, the system calculates the dot product between the extracted features of the head and the visual features of the head at the given spatial position in the given video frame.
[0074] In some other embodiments, the system directly calculates the final cost volume by calculating the dot product between the extracted features and the visual features without dividing the extracted features and the visual features into heads. That is, the system uses In these embodiments, the system directly calculates a final cost volume with a corresponding cost value for each spatial location in each of the video frames. That is, the final cost volume includes the cost value for each video frame in the sequence. To compute the cost value for a given spatial location in a given video frame, the system computes the dot product between the extracted features and the visual features for the given spatial location in the given video frame.
[0075] As described above, the system can then process the cost volume using a decoder neural network to generate a corresponding predicted position of the query point in the video frame and optionally an occlusion score for each of the video frames except the corresponding video frame.
[0076] Figure 4 An example 400 of predicting position and occlusion from a cost volume for a given video frame is shown.
[0077] Typically, to generate the predicted position, the system can process the cost volume using a decoder neural network to generate a corresponding score for each spatial location in the video frame for each of the plurality of video frames except for the corresponding video frame.
[0078] For each video frame in the plurality of video frames except the corresponding video frame, the system may then generate a predicted position from the corresponding score of the spatial location in the video frame.
[0079] When the system also predicts occlusion, as in Figure 4In an example of , the system can process the cost volume using a decoder neural network to generate, for each video frame except the corresponding video frame, a corresponding predicted position of the query point in the video frame and a corresponding occlusion score of the query point in the video frame.
[0080] exist Figure 4 In the example of , the system performs this processing independently for each of the video frames. That is, for a given video frame, the system uses the decoder neural network to process the cost amount of the given video frame. part to generate the predicted position of the query point within a given video frame and the occlusion score of the query point in the video frame. When the system does not use the "head" when generating the cost volume, is equal to 1, and the cost portion is part.
[0081] In particular, Figure 4 In the example of , the decoder neural network includes a collection of shared layers and corresponding branches for position inference and occlusion inference.
[0082] The decoder neural network uses shared layers to process portions of the cost volume for a given video frame, e.g., using a convolutional layer followed by a rectified linear unit (ReLU) activation function layer, to produce a shared output.
[0083] For the occlusion inference branch, the decoder neural network processes the shared output using layers from the occlusion inference branch to generate a single occlusion score (“log-odds”) for a given video frame. For example, in Figure 4 In an example of , the occlusion inference branch includes a first set of layers that collapse the shared outputs into a vector, for example using spatial average pooling, followed by a second set of layers that regress the occlusion log-probability for a given video frame from a single vector. For example, the second set of layers may include a linear layer, a leaky ReLU, and another linear layer that produces a single log-probability. The leaky ReLU may be a ReLU activation function that has a slope (e.g., a relatively small slope, such as a slope of 0.01) for negative values (e.g., different from a flat slope for negative values).
[0084] For the location inference branch, the system can apply a collection of layers, such as a convolutional (Conv) layer with a single output, followed by a spatial softmax, to generate a corresponding score for each spatial location in the video frame.
[0085] The system can then compute a "soft argmax" to calculate the position based on the corresponding scores.
[0086] To compute the soft argmax, the system can identify the spatial location with the highest score, the "argmax" location, based on the corresponding scores of the spatial locations. The system can then identify a fixed-size window at the spatial location with the highest score, the argmax location. Each spatial location within the , and then the predicted position is determined by calculating the weighted average.
[0087] That is, the system determines the predicted position by calculating the weighted sum of the spatial locations within a fixed-size window of the argmax spatial location, where the weight of each spatial location is calculated based on, for example, equal to or directly proportional to the ratio between the score of the spatial location and the sum of the scores of the spatial locations within the fixed-size window.
[0088] Optionally, once the system has independently computed the predicted position and occlusion estimate for each video frame for a given query point as described above, the system can then iteratively refine the initial trajectory of the predicted position and occlusion estimate in the video frame using an iterative refinement technique to generate a final predicted position and occlusion estimate. For example, the system can apply an iterative refinement technique that searches a local neighborhood given an initialization and smoothes the trajectory, i.e., the trajectory of the position and occlusion estimate, over time. For example, the system can use the above predicted position and occlusion estimate as an initialization for a persistent independent particle (PIP) search. PIP is described in more detail in Adam W Harley, Zhaoyuan Fang, and Katerina Fragkiadaki. Particlevideo revisited: Tracking through occlusions using point trajectories. In Proceedings of European Conference on Computer Vision (ECCV), pages 59–75. Springer, 2022. Figure 5 is a flow chart of an example process 500 for training a point tracking neural network. For convenience, process 500 will be described as being performed by a system of one or more computers located in one or more locations. For example, a video processing system appropriately programmed according to the present specification, such as Figure 1 The video processing system 100 depicted in FIG. 1 may perform the process 500 .
[0089] The system may repeatedly perform iterations of process 500 on different batches of training videos to update the parameters of the point tracking neural network.
[0090] That is, in each iteration of process 500, the system obtains a batch of training videos, for example by sampling batches from a larger training data set, and uses a batch of one or more training videos to update the parameters of the neural network.
[0091] The system may continue to perform iterations of process 500 until a termination criterion for the training of the neural network has been met, e.g., until parameters have converged, until a threshold amount of wall clock time has elapsed, or until a threshold number of iterations of process 500 have been performed.
[0092] The system obtains a batch of one or more training video sequences (step 502 ).
[0093] For each training video sequence and each query point in a set of query points for the training video sequence, the system obtains (i) a ground-truth spatial location of the query point in each of the video frames in the training video sequence and (ii) a corresponding ground-truth occlusion score for the query point in each of the video frames in the training video sequence (step 504).
[0094] For each training video sequence, the system processes a set of one or more query points of the training video sequence and the training video sequence using a point tracking neural network to generate, for each query point, a corresponding predicted spatial position of the query point in each of the video frames in the training video sequence and a corresponding occlusion score of the query point in each of the video frames in the training video sequence (step 506), e.g., as described above with reference to Figures 1 to 4 as described.
[0095] The system calculates the gradients of the parameters of the point tracking neural network with respect to the loss function, such as by back-propagation (step 508).
[0096] Typically, the loss function consists of a collection of supervised learning terms that utilize the true spatial position and the true occlusion score.
[0097] In particular, the supervised learning term includes (i) a first loss term that measures, for each training video sequence, the error between a true-valued spatial position of a query point and a corresponding predicted spatial position of the query point, and (ii) a second loss term that measures, for each training video sequence, the error between a true-valued occlusion score of a query point and a corresponding predicted occlusion score of the query point.
[0098] For example, the first loss term may be based on the Huber loss, and the second term may be the cross entropy loss.
[0099] As a specific example, the loss function for a given query point in a given video sequence is Can satisfy:
[0100] ,
[0101] in, is the number of video frames in the video, is the video frame The true value occupancy rate, is the query point in the video frame The true value position in is the video frame The predicted occupancy rate, is the query point in the video frame The predicted position in yes and The Hubert loss between are weight values that can be provided as input to the system or determined through a hyperparameter sweep, and yes and The cross entropy loss between , and satisfies:
[0102] .
[0103] In some embodiments, the loss function also includes a set of auxiliary loss terms.
[0104] For example, the auxiliary loss term set may further include a contrast loss term. For example, the contrast term may encourage the similarity of features corresponding to the same query point and the dissimilarity between features not corresponding to the same query point.
[0105] The system uses the calculated gradients to train the neural network (step 510). That is, the system uses the gradients to update the current values of the network parameters.
[0106] Typically, the system updates the current values of the network parameters by applying an optimizer to the current values using gradients to generate updated values of the network parameters. The optimizer can be any suitable neural network training optimizer, such as Adam, Adafactor, rmsProp, etc. The optimizer can aim to adjust (optimize) the values of the network parameters to minimize the loss of the loss function.
[0107] In some embodiments, the system also uses self-supervised learning to train the point tracking neural network on an unlabeled training video sequence. In these embodiments, for some iterations of process 500, the system can use the neural network to generate true value occlusions and predicted point outputs (to provide a form of self-supervision) instead of obtaining true value outputs from an external source. For example, the system can use self-supervised learning to train an initial number of iterations of process 500 before training using supervised learning, can interleave self-supervised iterations among supervised iterations, or can repeatedly perform self-supervised iterations in parallel with supervised iterations and then use the average of the gradients calculated for the two iterations to update the current value of the parameter.
[0108] Specifically, in order to generate a true value output for a given training video sequence, the system can obtain another training video sequence that is a variation of the training video sequence. For example, the system can generate two training video sequences by applying different data augmentations to the original unlabeled training video sequence, for example, so that the two training sequences are different "views" of the same original training video sequence.
[0109] The system can then process a set of one or more query points and the other training video sequence using a point tracking neural network to generate, for each query point, a corresponding predicted spatial position of the query point in each of the video frames in the other training video sequence and a corresponding occlusion score for the query point in each of the video frames in the other training video sequence, e.g., as described above.
[0110] The system can then generate a true-valued spatial position of the query point in each of the video frames in the training video sequence and a corresponding true-valued occlusion score for the query point in each of the video frames based on data generated by the point tracking neural network when processing the set of one or more query points and the other training video sequence using the point tracking neural network.
[0111] For example, the system can process data generated by the point tracking neural network when processing a set of one or more query points and the other training video sequence using a predictor neural network to predict a true value spatial position and a true value occlusion score. The predictor neural network can be, for example, a multi-layer perceptron (MLP) or other suitable neural network architecture.
[0112] The data generated by the point tracking neural network when processing a set of one or more query points and the other training video sequence using the point tracking neural network may include (i) the corresponding predicted spatial position of the query point in the video frames in the other training video sequence and (ii) the corresponding occlusion score of the query point in each of the video frames in the other training video sequence. For example, the data may be (i) and (ii) concatenated into a single vector according to a predetermined order. Thus, the predictor neural network "projects" the predictions generated by the point tracking neural network to generate different projections of the true values for training.
[0113] The system may obtain a dataset for obtaining training video sequences and ground truth locations and occlusion scores in any of a variety of ways.
[0114] In some implementations, given a training video sequence, a user may manually mark the location of a given query point in all frames of the video.
[0115] In some other embodiments, the system can generate a data set using a hybrid approach in which a user provides the location of a query point at a subset of frames in a training video sequence, and the system uses optical flow estimation to generate the location of the query point in other video frames. The optical flow estimation between two frames in a video specifies the position of the pixel in the second frame for each pixel in the first frame. That is, the optical flow is a pixel-level estimate of the motion of a pixel in the first frame to the second frame. For example, the optical flow estimate may include an optical flow vector for each pixel in the first frame, which is an estimate of the motion of the pixel between the first frame and the second frame. The following is an example of using optical flow estimation to generate a training example, which includes a training video sequence and the location of an initial point in some or all frames in the training video sequence.
[0116] The system obtains a video sequence comprising a sequence of video frames.
[0117] The system generates an optical flow estimate for a video sequence. For example, the system can process the video sequence using an optical flow prediction neural network to generate the estimate. As described above, the optical flow estimate can specify, for each pair of multiple pairs of video frames in the video sequence, a predicted position in the second frame of the pair for each pixel in the first frame of the pair. For example, the optical prediction neural network can have been trained by unsupervised learning on a large dataset of training video sequences. An example of such a neural network is described in Teed, Z., Deng, J.: Raft: Recurrent all-pairs field transforms for optical flow. In: European conference on computer vision. pp. 402–419. Springer (2020).
[0118] The system obtains input specifying an initial point at an initial position in a first video frame of the sequence and a target position in a subsequent second video frame representing a spatial position of the initial point in the subsequent second video frame.
[0119] For example, the system may obtain a first user input specifying an initial point at an initial position in a first video frame of a sequence, and then obtain a second user input specifying a target position in a second subsequent video frame, the target position representing the spatial position of the initial point in the second subsequent video frame. In other words, a user may submit input annotating a video sequence to identify an initial position and a target position.
[0120] As a specific example, before obtaining the first and second user inputs, the system may obtain a third user input identifying a bounding box depicting an object within the first video frame, and then receive a user input selecting one of the points within the bounding box as the initial point.
[0121] The system uses optical flow estimation to generate corresponding target locations of initial points in each video frame between the first video frame and the second video frame in the sequence.
[0122] Specifically, the system can use optical flow estimation to generate a predicted path from an initial position in a first video frame to a final position in a second video frame using an optical flow path, wherein the predicted path includes corresponding positions in each of the video frames between the first video frame and the second video frame in the sequence. The system can then use the points in the path as target positions.
[0123] For example, to generate a predicted path, the system can generate a path from an initial position in a first video frame to a final position in a second video frame that minimizes a difference with an optical flow estimate. For example, the difference between a given path and an optical flow estimate can be a squared difference, i.e., for each of the video frames between a first video frame and a second video frame in a sequence, a sum of (i) a delta between a position in the path in the video frame and a position in the path in a previous video frame and (ii) a squared distance between an optical flow vector in the previous video frame.
[0124] In some embodiments, to find a path that minimizes the difference, the system can identify a shortest path from a first node representing an initial position in a first video frame to a second node representing a final position in a second video frame in a graph, the graph including (i) a corresponding node for each of a plurality of pixels in a plurality of frames including a first frame, a second frame, and each frame between the first frame and the second frame in the video sequence, and (ii) for each frame in the video sequence, a corresponding edge between each particular pixel in the plurality of pixels in the frame and each particular pixel in a plurality of pixels in a subsequent frame, the corresponding edge being weighted by a difference between the path from the particular pixel in the frame and the particular pixel in the subsequent frame and an optical flow estimate, the difference being, for example, a squared difference, a delta between (i) the particular pixel in the subsequent frame and the particular pixel in the frame and (ii) a squared distance between an optical flow vector for the particular pixel in the frame. For example, the system can efficiently identify the shortest path using a form of Dijkstra's algorithm.
[0125] Optionally, the user may be given the option to modify the target positions generated by the system, for example, the option to "split" an unsatisfactory path by adding more points that become the new endpoints of another iteration of optical flow estimate guide generation.
[0126]
[0127] Table 1
[0128] Table 1 shows the performance of the described technique (TAP-Net) relative to three baselines: a) a baseline based on COTR: Correspondence Transformer for Cross-image Matching, b) a baseline based on an extension of RAFT, c) a baseline based on VFS.
[0129] The performance is shown for four video datasets (Kinetic, Kubric, DAVIS, and RGB-Stacking) and for three metrics. As can be seen in Table 1, the described technique outperforms all three baselines on all four datasets, both predicting occlusions and, more generally, accurately tracking points.
[0130] This specification uses the term "configuration" in conjunction with system and computer program components. For a system of one or more computers to be configured to perform a particular operation or action, it is meant that the system has installed thereon software, firmware, hardware, or a combination thereof, which, in operation, causes the system to perform the operation or action. For one or more computer programs to be configured to perform a particular operation or action, it is meant 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. With reference to a particular neural network, a neural network may be configured to perform a particular action by being trained to perform that particular action.
[0131] Embodiments of the subject matter and 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 of them. Embodiments of the subject matter described in this specification may be implemented as one or more computer programs, for example, 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. The 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 of them. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagation signal, for example, a machine-generated electrical signal, an optical signal, or an electromagnetic signal, which is generated to encode information for transmission to a suitable receiver device for execution by a data processing device.
[0132] The term "data processing apparatus" refers to data processing hardware and covers all kinds of apparatus, devices and machines for processing data, including, for example, a programmable processor, a computer or multiple processors or computers. The apparatus may also be or further include special-purpose logic circuits, such as an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). In addition to hardware, the apparatus 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.
[0133] A computer program, which may also be referred to or described as a program, software, software application, application, 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 stand-alone 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, such as 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, such as files storing one or more modules, subroutines, or portions of code. A computer program may be deployed to execute on one computer located at one site or on multiple computers distributed across multiple sites and interconnected by a data communications network.
[0134] In this specification, the term "database" is used broadly to refer to any collection of data: the data need not be structured in any particular way or at all, and it may be stored on storage devices in one or more locations. Thus, for example, an index database may include multiple data collections, each of which may be organized and accessed differently.
[0135] Similarly, in this specification, the term "engine" is used broadly to refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions. Typically, an engine 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 computer or multiple computers.
[0136] 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 special purpose logic circuit such as an FPGA or ASIC, or by a combination of a special purpose logic circuit and one or more programmed computers.
[0137] 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 by or incorporated into a special logic circuit. Typically, the computer will also include or be operably coupled to receive data from or transmit data to or both of one or more large-capacity storage devices for storing data, such as disks, magneto-optical disks, or optical disks. However, the computer does not need to have such a device. 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, to name a few.
[0138] 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 disks.
[0139] 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 for displaying information to the user, such as a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, 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 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. In addition, the computer may interact with the user by sending a text message or other form of message to a personal device, such as a smart phone running a messaging application, and receiving a response message from the user in return.
[0140] The data processing apparatus for implementing the machine learning model may also include, for example, dedicated hardware accelerator units for processing common and computationally intensive parts of machine learning training or production, such as inference, workloads.
[0141] The machine learning model can be implemented and deployed using a machine learning framework such as the TensorFlow framework or the Jax framework. Embodiments of the subject matter described in this specification can be implemented in a computing system that includes a back-end component, such as a data server, or includes a middleware component, such as an application server, or includes a front-end component, such as a client computer with a graphical user interface, a web browser, or an application 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, middleware, or front-end components. The components of the system can be interconnected by digital data communication of any form or medium, such as a communication network. Examples of communication networks include local area networks (LANs) and wide area networks (WANs), such as the Internet.
[0142] The computing system may include a client and a server. The client and the server are usually remote from each other and typically interact through a communication network. The relationship between the client and the server is generated by computer programs running on respective computers and having a client-server relationship with each other. In some embodiments, the server transmits data such as HTML pages to a user device, for example, for the purpose of displaying data to a user of the device interacting as a client and receiving user input therefrom. Data generated at the user device, such as the result of a user interaction, can be received from the device at the server.
[0143] Although this specification contains many specific implementation details, these details should not be interpreted as limitations on the scope of any invention or the scope of the claimed protection, but should be interpreted 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 separately or in any suitable sub-combination. In addition, although features may be described above as working in certain combinations and even initially claimed, in some cases, one or more features from the claimed combination may be deleted from the combination, and the claimed combination may be directed to a sub-combination or a variation of the sub-combination.
[0144] Similarly, although operations are depicted in the drawings and recited in the claims in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in a sequential order, or that all of the operations shown be performed 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 understood 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 into multiple software products.
[0145] Specific embodiments of the subject matter have been described. Other embodiments are within the scope of the following 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 particular order shown or sequential order to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous.
Claims
1. A method executed by one or more computers, the method include: Obtaining a video sequence including a plurality of video frames; obtaining a set of one or more query points, each query point specifying a respective spatial location in a corresponding one of the plurality of video frames; as well as The set of one or more query points and the video sequence are processed using a point tracking neural network to generate a network output comprising, for each query point, a corresponding predicted spatial position of the query point in each of the video frames in the sequence except the corresponding video frame for the query point.
2. A method according to any preceding claim, in, processing the set of one or more query points and the video sequence using a point tracking neural network to generate a network output comprising, for each query point, a corresponding predicted spatial position of the query point in each of the video frames in the sequence except the corresponding video frame for the query point, comprising: processing the video frames in the video sequence using a visual backbone neural network to generate a feature grid comprising a corresponding visual feature for each of a plurality of spatial locations in each of the video frames; For each query point: generating an extracted feature for the query point from the spatial position of the query point in the corresponding video frame and the corresponding visual features for one or more of the plurality of spatial locations in the corresponding video frame; and The corresponding predicted spatial position of the query point in each of the video frames except the corresponding video frame is generated from the feature grid and the extracted features of the query point.
3. The method according to claim 2, in, Generating an extracted feature of the query point from the spatial position of the query point in the corresponding video frame and the corresponding visual feature for each of the plurality of spatial locations in the corresponding video frame comprises: Interpolation of the visual features aggregated from spatial locations within a local neighborhood of the corresponding spatial location of the query in the corresponding video frame is performed.
4. The method according to claim 2 or claim 3, in, Generating the corresponding predicted spatial position of the query point in each of the video frames except the corresponding video frame from the feature grid and the extracted features of the query point comprises: generating a cost volume from the feature grid and the extracted features of the query point; and The cost volume is processed using a decoder neural network to generate, for each of the video frames except the corresponding video frame, the corresponding predicted position of the query point in the video frame.
5. The method according to claim 4, in, Processing the cost volume using the decoder neural network includes: processing the cost volume using the decoder neural network to generate, for each video frame of the plurality of video frames other than the corresponding video frame, a respective score for each spatial location in the video frame; and For each video frame of the plurality of video frames other than the corresponding video frame, the predicted position is generated from the corresponding score of the spatial location in the video frame.
6. The method according to claim 5, in, Generating the predicted position from the corresponding scores comprises: identifying the spatial location having the highest score; identifying each spatial location within a fixed-size window of said spatial location having said highest score; and The predicted position is determined by calculating a weighted sum of the spatial locations within the fixed-size window of the spatial location with the highest score, wherein the weight of each spatial location is calculated based on the sum of the scores of the spatial locations within the fixed-size window and the score of the spatial location.
7. A method according to any preceding claim, in, The network output further includes, for each query point, a corresponding occlusion score for the query point for each of the video frames except the corresponding video frame, the corresponding occlusion score indicating a likelihood that the query point is occluded in the video frame.
8. The method according to claim 7, when dependent on any one of claims 5 or 6, in, Processing the cost volume using a decoder neural network to generate the corresponding predicted position of the query point includes: The cost volume is processed using the decoder neural network to generate, for each video frame except the corresponding video frame, the corresponding predicted position of the query point in the video frame and the corresponding occlusion score of the query point in the video frame.
9. A method for training a point tracking neural network according to any one of claims 7 or 8, the method include: Obtain a batch of one or more training video sequences; For each training video sequence and each query point in a set of query points in the training video sequence, obtain (i) a ground-truth spatial position of the query point in each of the video frames in the training video sequence and (ii) a corresponding ground-truth occlusion score for the query point in each of the video frames in the training video sequence; for each training video sequence, processing the set of one or more query points of the training video sequence and the training video sequence using the point tracking neural network to generate, for each query point, a corresponding predicted spatial position of the query point in each of the video frames in the training video sequence and a corresponding occlusion score for the query point in each of the video frames in the training video sequence; Calculating the gradient of the parameters of the point tracking neural network with respect to a loss function, the loss function comprising: (i) a first loss term that measures, for each training video sequence, the error between the true valued spatial position of the query point and the corresponding predicted spatial position of the query point, and (ii) a second loss term that measures, for each training video sequence, the error between the true valued occlusion score of the query point and the corresponding predicted occlusion score of the query point.
10. The method according to claim 9, in, The first loss term is the Huber loss.
11. The method according to claim 9 or claim 10, in, The second loss term is the cross entropy loss.
12. The method according to any one of claims 9 to 11, in, The loss function also includes: (iii) Contrastive learning loss term.
13. The method according to any one of claims 9 to 12, further comprising: include: Generating, for each of one or more of the training video sequences, the true value spatial position of the query point in each of the video frames in the training video sequence and the corresponding true value occlusion score for the query point in each of the video frames, comprising: obtaining another training video sequence that is a variation of the training video sequence; processing the set of one or more query points and the other training video sequence using the point tracking neural network to generate, for each query point, a corresponding predicted spatial position of the query point in each of the video frames in the other training video sequence and a corresponding occlusion score for the query point in each of the video frames in the other training video sequence; and The ground-truth spatial position of the query point in each of the video frames in the training video sequence and the corresponding ground-truth occlusion score for the query point in each of the video frames are generated from data generated by the point tracking neural network when processing the set of one or more query points and the other training video sequence using the point tracking neural network.
14. The method according to claim 13, in, Generating, from data generated by the point tracking neural network when processing the set of one or more query points and the other training video sequence using the point tracking neural network, the ground-truth spatial location of the query point in each of the video frames in the training video sequence and the corresponding ground-truth occlusion score for the query point in each of the video frames comprises: The data generated by the point tracking neural network when processing the set of one or more query points and the other training video sequence using the point tracking neural network is processed using a predictor neural network.
15. The method according to claim 14, in, The predictor neural network is a multi-layer perceptron (MLP).
16. The method according to any one of claims 13 to 15, in, The training video sequence and the further training video sequence have been generated from the same original training video sequence by applying different data augmentations to the original training video sequence.
17. The method according to any one of claims 13 to 16, in, The data generated by the point tracking neural network when processing the set of one or more query points and the further training video sequence using the point tracking neural network comprises: (i) the corresponding predicted spatial position of the query point in the video frame in the other training video sequence, and (ii) the corresponding occlusion score for the query point for each of the video frames in the another training video sequence.
18. The method according to any one of claims 9 to 17, further comprising: include: The point tracking neural network is trained using the computed gradients.
19. A method executed by one or more computers, the method include: obtaining a video sequence comprising a sequence of video frames; generating an optical flow estimate for the video sequence; Obtaining input specifying an initial point at an initial position in a first video frame of the sequence and a target position in a subsequent second video frame, the target position representing a spatial position of the initial point in the subsequent second video frame; as well as A corresponding target position of the initial point is generated in each video frame between the first video frame and the second video frame in the sequence using the optical flow estimate.
20. The method according to claim 19, further comprising: include: generating from the corresponding target position of the initial point in the video sequence and (i) the second video frame and (ii) each video frame between the first video frame and the second video frame in the sequence; and A point tracking neural network is trained on training data comprising the training examples.
21. The method according to claim 20, in, The point tracking neural network is a point tracking neural network according to any one of claims 1 to 8.
22. A method according to claim 20 or claim 21, in, Training the point tracking neural network includes performing the corresponding operations according to any one of claims 9 to 18.
23. The method according to any one of claims 19 to 22, in, Generating an optical flow estimate for the video sequence includes processing the video sequence using an optical flow prediction neural network.
24. The method according to claim 23, in, The optical flow prediction neural network has been trained by unsupervised learning.
25. The method according to any one of claims 19 to 24, in, Using the optical flow estimation to generate a corresponding target position of the initial point in each video frame between the first video frame and the second video frame in the sequence comprises: A predicted path is generated from the initial position in the first video frame to a final position in the second video frame using the optical flow estimate, wherein the predicted path includes a corresponding position in each of the video frames between the first video frame and the second video frame in the sequence.
26. The method according to claim 25, in, Generating a predicted path from the initial position in the first video frame to the final position in the second video frame using the optical flow estimate comprises: A path is generated from the initial position in the first video frame to the final position in the second video frame, the path minimizing a difference with the optical flow estimate.
27. The method according to claim 26, in, Generating a path from the initial position in the first video frame to the final position in the second video frame that minimizes a difference with the optical flow path estimate: A shortest path from a first node representing the initial position in the first video frame to a second node representing the final position in the second video frame is identified in a graph, the graph comprising: (i) a corresponding node for each of a plurality of pixels in a plurality of frames, the plurality of frames comprising the first frame, the second frame, and each frame between the first frame and the second frame in the video sequence, and (ii) for the first frame and each frame between the first frame and the second frame in the video sequence, corresponding edges between each particular pixel in the plurality of pixels in the frame and each particular pixel in the plurality of pixels in a subsequent frame, the corresponding edges being weighted by a difference between the path from the particular pixel in the frame to the particular pixel in the subsequent frame and the optical flow estimate.
28. The method according to any one of claims 19 to 27, in, Obtaining input specifying an initial point at an initial position in a first video frame of the sequence and a target position in a subsequent second video frame, the target position representing a spatial position of the initial point in the subsequent second video frame, comprising: obtaining a first user input specifying the initial point at the initial position in the first video frame of the sequence; and A second user input is obtained to specify the target position in the subsequent second video frame, where the target position represents the spatial position of the initial point in the subsequent second video frame.
29. The method according to claim 28, in, Obtaining input specifying an initial point at an initial position in a first video frame of the sequence and a target position in a subsequent second video frame, the target position representing a spatial position of the initial point in the subsequent second video frame, further comprising: Prior to obtaining the first user input and the second user input, obtaining a third user input identifying a bounding box depicting an object within the first video frame; and The first user input selects the initial point from a plurality of points within the bounding box.
30. A system comprising one or more computers and one or more storage devices storing instructions which, when executed by the one or more computers, cause the one or more computers to perform the operations of the respective methods of any one of claims 1 to 29.
31. One or more computer storage media storing instructions that, when executed by one or more computers, cause the one or more computers to perform the operations of the respective method of any one of claims 1 to 29.
