Visual tracking through coloring
By using coloring machine learning models and embedding neural networks in the visual tracking system to process similarity measures of reference and target video frames, unsupervised visual tracking is achieved, solving the problem of tedious manual labeling of data, and improving tracking accuracy and resources. Utilization efficiency.
Patent Information
- Application Number
- CN201980014226.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-06-13
- Filing Date
- 2019-06-12
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-06-12
AI Technical Summary
Existing visual tracking systems require manual labeling of video data, which is a cumbersome and time-consuming process, and it is difficult to effectively utilize unlabeled color video data for training.
A coloring machine learning model is used to process reference video frames and target video frames by embedding neural networks to generate pixel similarity measures, automatically learn to track visual areas, and use unlabeled color video data to train the system to achieve unsupervised visual tracking.
It realizes visual tracking without manual supervision, improves tracking accuracy and efficiency, can make more effective use of computing resources, especially memory resources, and simplifies the training process.
Smart Images

Figure CN111742345B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to using machine learning models to process data. Background Art
[0002] A machine learning model receives 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 the values of the model's parameters.
[0003] Some machine learning models are deep models that employ multi-layer 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 non-linear transformation to a received input to generate an output. Summary of the invention
[0004] This specification describes a system implemented as a computer program that performs visual tracking on one or more computers in one or more locations.
[0005] According to a first aspect, a method is provided, comprising: receiving: (i) one or more reference video frames, (ii) a corresponding reference label for each of a plurality of reference pixels in the reference video frames, and (iii) a target video frame; processing the reference video frames and the target video frames using a colorization machine learning model to generate a corresponding pixel similarity measure between (i) a plurality of target pixels in the target video frame and (ii) each of the reference pixels in the reference video frame, wherein the colorization machine learning model is trained to generate the pixel similarity measure, wherein a corresponding estimated color for each of the target pixels in the target video frame is defined by combining: (i) an actual color of each of the reference pixels in the reference video frame, and (ii) a pixel similarity measure; and determining a corresponding target label for each target pixel in the target video frame, comprising: combining (i) the reference labels of the reference pixels in the reference video frame, and (ii) the pixel similarity measure.
[0006] The reference pixels in the reference video frame may include a suitable subset of the pixels in the reference video frame.
[0007] The reference video frames and the target video frames can be decolorized before being processed by the colorization machine learning model.
[0008] The colorization machine learning model may include an embedding neural network, and wherein processing a reference video frame and a target video frame using the colorization machine learning model to generate a corresponding pixel similarity measure between each of (i) a target pixel in the target video frame and (ii) a reference pixel in the reference video frame may include: providing the reference video frame and the target video frame as inputs to the embedding neural network; processing the inputs according to current values of parameters of the embedding neural network to generate a corresponding embedding for each of (i) the target pixel in the target video frame and (ii) the reference pixels in the reference video frame; and, using the embeddings to generate a corresponding pixel similarity measure between each of (i) the target pixel in the target video frame and (ii) the reference pixels in the reference video frame.
[0009] The embedded neural network may include one or more convolutional neural network layers.
[0010] Generating a corresponding pixel similarity measure between each of (i) a target pixel in a target video frame and (ii) a reference pixel in a reference video frame using the embedding may include generating a pixel similarity measure between the target pixel and the reference pixel using a similarity measure between the embedding of the target pixel and the embedding of the reference pixel.
[0011] The label for a pixel may include data indicating, for each of a plurality of possible classes, a respective likelihood that the pixel corresponds to that class.
[0012] The label for a pixel may include data indicating, for each of a plurality of possible keypoints, a respective likelihood that the pixel corresponds to the keypoint.
[0013] The colorization machine learning model can be trained by multiple operations, which include: obtaining multiple training examples, wherein each training example includes: (i) one or more training reference video frames, (ii) a training target video frame, and (iii) the actual color of each pixel in the training reference video frame and the training target video frame; processing the training reference video frame and the training target video frame using the colorization machine learning model to generate corresponding similarity measures between (i) each pixel in the training target video frame and (ii) each pixel in the training reference video frame; determining an estimated color for each pixel in the training target video frame by combining: (i) the actual color of each pixel in the training reference video frame, and (ii) the similarity measure; and adjusting current values of embedded neural network parameters based on the difference between: (i) the actual color of each pixel in the training target video frame, and (ii) the estimated color of each pixel in the training target video frame.
[0014] Adjusting the current value of the embedded neural network parameter may include: determining a gradient of a loss function, wherein the loss function depends on the difference between: (i) the actual color of each pixel in the training target video frame, and (ii) the estimated color of each pixel in the training target video frame; and, using the gradient to adjust the current value of the embedded neural network parameter.
[0015] The reference labels for the reference pixels in one or more reference video frames may have been previously determined using a colorization machine learning model.
[0016] The object label can be used to track the location of the object in the reference video frame to the target video frame.
[0017] According to a second aspect, a system is provided, comprising: a data processing device; and a memory, the memory being in data communication with the data processing device and storing instructions for causing the data processing device to execute the operations of the corresponding method of the first aspect.
[0018] According to a third aspect, one or more non-transitory computer storage media are provided, which store instructions that, when executed by one or more computers, cause the one or more computers to perform the operations of the corresponding method of the first aspect.
[0019] The subject matter described in this specification can be implemented in a specific embodiment to achieve one or more of the following advantages. The system described in this specification can be trained to perform visual tracking using raw unlabeled color video data. Therefore, a large amount of unlabeled color video data that is easily available (e.g., on a video sharing website) can be used to train the system described in this specification. In contrast, some conventional visual tracking systems must be trained using manually labeled video data (e.g., when a person has manually labeled the pixels of a video frame). Manually labeling video data is tedious, time-consuming, and difficult (e.g., because many video frame rates exceed 24 frames per second, it is necessary to manually label at least 24 video frames to obtain one second of manually labeled data). Therefore, the system described in this specification enables more efficient use of computing resources, particularly memory resources, by enabling unlabeled color video data stored in a memory to be used directly as training data (i.e., for training a coloring machine learning model to be used in visual tracking). In addition, compared with some conventional systems (e.g., systems based on optical flow methods), the system described in this specification can perform visual tracking more efficiently (e.g., with higher accuracy).
[0020] 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
[0021] Figure 1 An example visual tracking system is shown.
[0022] Figure 2 is an illustration of an example data flow for tracking the position of an object from a reference video frame to a target video frame using a visual tracking system.
[0023] Figure 3 Shown are graphs illustrating the performance of various tracking systems as a function of time when performing video segmentation.
[0024] Figure 4 The performance of various "unsupervised" and "supervised" tracking systems when performing video segmentation is shown.
[0025] Figure 5 is a flow chart of an example process for performing visual tracking.
[0026] Figure 6 is a flowchart of an example process for training a colorized machine learning model.
[0027] Like reference numbers and names throughout the various drawings refer to like elements. DETAILED DESCRIPTION
[0028] This specification describes a system implemented as a computer program on one or more computers in one or more locations that performs visual tracking in a sequence of video frames. Visual tracking refers to determining the position of an object (or other point of interest) in a video frame given the position of the object (or other point of interest) in one or more other video frames.
[0029] The system can learn to perform visual tracking without human supervision using unlabeled videos, i.e., without a human manually annotating pixel labels on video frames or tracking data on video frames. In particular, the system automatically learns to track visual regions by learning to colorize grayscale "target" video frames in a video by copying colors from one or more "reference" video frames in the video. By learning to perform colorization in this way, the system learns a "pointing" mechanism that points from pixels in the target video frame to corresponding pixels in the reference video frame to copy the correct color. Once the system is trained, the learned pointing mechanism can act as a tracker across time that can be used to perform visual tracking.
[0030] These and other features are described in more detail below.
[0031] Figure 1An example visual tracking system 100 is shown. Visual tracking system 100 is an example of a system implemented as a computer program on one or more computers in one or more locations that implement the systems, components, and techniques described below.
[0032] The visual tracking system 100 is configured to receive input including (i) one or more reference video frames 102, (ii) corresponding reference labels 104 for pixels from the reference video frames 102, and (iii) a target video frame 106. The system 100 processes the input to generate corresponding target labels 108 for pixels from the target video frame 106. The reference video frames 102 and the target video frames 106 may be consecutive video frames from a video (e.g., a video depicting the natural world or a computer-generated video).
[0033] In some embodiments, for each possible category in a plurality of possible categories, a label for a pixel (e.g., a reference label 104 or a target label 108) indicates a corresponding likelihood that the pixel corresponds to the category. For example, the categories may include a plurality of different objects (e.g., people, cars, animals, etc.) and background categories. The label may be represented as a numerical vector representing the likelihood that the pixel corresponds to each possible category in the possible categories. In some embodiments, for each possible key point in a plurality of possible key points, a label for a pixel indicates a corresponding likelihood that the pixel corresponds to the key point. For example, the key points may include human posture key points (e.g., the position of the head, shoulders, and elbows, etc.). The label may be represented as a numerical vector representing the likelihood that the pixel corresponds to each possible key point in the possible key points.
[0034] The system 100 may perform visual tracking by generating a target tag 108 for a target video frame 106 from a reference tag 104 for a reference video frame 102. Visual tracking refers to determining the location of an object (or other point of interest) in a target video frame 106 given the location of the object (or other point of interest) in the reference video frame 102. For example, the system 100 may perform visual tracking 104 by determining the location of a particular person in a target video frame 106 (e.g., as defined by the target tag 108) given the location of the particular person in the reference video frame 102 (e.g., as defined by the reference tag 104).
[0035] The reference label 104 can be generated by manual annotation, that is, by a person assigning individual labels to pixels of the reference video frame 102 (e.g., using a non-automatic or semi-automatic annotation process). In some cases, the system 100 receives a reference video frame and a corresponding reference label for an initial video frame of a video, and iteratively determines a target label for each subsequent video frame of the video. More specifically, after determining the target label 108 of the target video frame 106, the system can determine the target video frame as the reference video frame and the corresponding target label as the reference label. Thereafter, the system 100 can use the newly determined reference video frame and reference label to generate target labels for subsequent video frames. In this way, the system 100 can visually track the position of an object (e.g., a specific person as described above) through each video frame of the video.
[0036] Typically, the reference video frame 102 and the target video frame 106 can be color video frames, i.e., video frames in which each pixel is associated with data defining the color of the pixel. For example, the reference video frame 102 and the target video frame 106 can be RGB video frames in which each pixel is associated with a corresponding intensity of a red channel, a green channel, and a blue channel. Before processing the reference video frame 102 and the target video frame 106, the system 100 partially or completely "decolorizes" the reference video frame 102 and the target video frame 106, for example, by converting the reference video frame 102 and the target video frame 106 to a non-color format. For example, before processing the reference video frame 102 and the target video frame 106, the system 100 can convert them to a grayscale format.
[0037] To generate a target label 108 for the target video frame 106, the system 100 processes the decolorized reference video frame 102 and the decolorized target video frame 106 using a colorization machine learning model 110 to generate corresponding pixel similarity metrics 112 between pixels of the target video frame 106 and pixels of the reference video frame 102. The pixel similarity metrics 112 between the target pixels from the target video frame 106 and the reference pixels from the reference video frame 102 can be represented as a number. As will be described in more detail later, the system 100 includes a colorization training subsystem 114 that trains the colorization machine learning model 110 to generate the pixel similarity metrics 112 that can be used to "colorize" the decolorized target video frame 106 using the colors of the pixels from the reference video frame 102.
[0038] The colorization machine learning model 110 generates a pixel similarity metric 112 by providing the decolorized reference video frame 102 and the decolorized target video frame 106 as inputs to an embedding neural network 116. The embedding neural network 116 is configured to process the inputs according to the current values of the embedding neural network parameters to generate a corresponding embedding for each pixel from the reference video frame 102 (i.e., a reference pixel embedding 118) and an embedding for each pixel from the target video frame 106 (i.e., a target pixel embedding 120). An embedding of a pixel refers to a representation of a pixel as an ordered set of numerical values (e.g., as a vector or matrix of numerical values). The system 100 generates the pixel similarity metric 112 using the reference pixel embedding 118 and the target pixel embedding 120. For example, for a given target pixel from the target video frame 106 and a given reference pixel from the reference video frame 102, the system 100 can generate a pixel similarity metric 112 between the target pixel and the reference pixel based on a similarity metric (e.g., an inner product) between the reference pixel embedding 118 and the target pixel embedding 120.
[0039] The system 100 provides the pixel similarity metric 112 and the reference labels 104 as inputs to a label propagation engine 122, which is configured to generate a target label 108 using the pixel similarity metric 112 and the reference labels 104. For example, the label propagation engine 122 can generate a target label 108 for a target video frame 106 by “propagating” the reference labels 104 from the reference video frame 102 to the target video frame 106 according to the pixel similarity metric 112. More specifically, the label propagation engine 122 can generate a target label 108 for a given target pixel from the target video frame 106 as a linear combination of the reference labels 104, where the reference labels 104 are weighted by the pixel similarity metric 112.
[0040] refer to Figure 5 An example process for performing visual tracking by determining a target label 108 for a target video frame 106 is described in further detail.
[0041] In order to enable the system 100 to effectively generate the target label 108 for the target video frame 106, the system 100 includes a color training subsystem 114 configured to train the embedding neural network 116. The training subsystem 114 trains the embedding neural network 116 through a plurality of training iterations to determine training values of the embedding neural network parameters from the initial values of the embedding neural network parameters. The training subsystem 114 can train the embedding neural network 116 on a large amount of easily available unlabeled color video data without requiring human supervision (e.g., without requiring a human to manually annotate pixel labels on the video data).
[0042] In each training iteration, the training subsystem 114 obtains the reference video frame 102 and the target video frame 106 represented in a color format (e.g., as an RGB video frame). More specifically, each reference pixel from the reference video frame 102 is associated with a reference color 124, and each target pixel from the target video frame 106 is associated with a target color 130. For example, when the color format is an RGB color format, the reference color 124 associated with the reference pixel (or the target color 130 associated with the target pixel) can be represented as a three-dimensional vector whose different dimensions correspond to the red, green, and blue channels, respectively. The reference video frame 102 and the target video frame 106 obtained by the training subsystem 114 do not have to be associated with a pixel label (e.g., reference label 104 or target label 108).
[0043] The training subsystem 114 decolorizes the reference video frame 102 and the target video frame 106 (e.g., by converting them to grayscale) and processes them using the colorization machine learning model 110 to generate a pixel similarity metric 112. The training subsystem 114 provides the pixel similarity metric 112 and the reference color 124 as inputs to a color propagation engine 128, which is configured to process the inputs to generate an estimated target color 126 for pixels from the target video frame 106. The estimated target color 126 includes an estimated color (e.g., represented in RGB format as previously described) for each target pixel from the target video frame 106. The color propagation engine 128 is configured to operate similarly to the label propagation engine 122, that is, to "colorize" the target video frame 106 by propagating the reference color 124 from the reference video frame 102 to the target video frame 106 according to the pixel similarity metric 112. For example, the color propagation engine 128 may generate the estimated target color 126 for a given target pixel of the target video frame 106 as a linear combination of the reference colors 124 , where the reference colors 124 are weighted by the pixel similarity metric 112 .
[0044] After generating the estimated target color 126, the training subsystem 114 adjusts the current values of the embedded neural network parameters so that the system 100 more accurately colors the target video frame 106. More specifically, the training subsystem 114 adjusts the current values of the embedded neural network parameters based on the difference between: (i) the (actual) target color 130 of the target pixel in the target video frame 106, and (ii) the estimated target color 126 of the target pixel in the target video frame 106. The training subsystem 114 adjusts the current values of the embedded neural network parameters using a gradient 132 of a loss function 134 with respect to the current values of the embedded neural network parameters. The loss function 134 depends on the error between the actual target color 130 of the target pixel and the estimated target color 126 of the target pixel.
[0045] The pixel similarity metric 112 can operate as a “pointer” from a target pixel of the target video frame 106 to a reference pixel of the reference video frame 102, wherein the strength of the pointer from the target pixel to the reference pixel is determined by the magnitude of the corresponding pixel similarity metric 112. By training the system 100 to colorize the target video frame 106 from the reference video frame 102, the training subsystem 114 causes the colorization machine learning model 110 to learn to generate a pixel similarity metric 112 that “points” from the target pixel in the target video frame 106 to the right reference pixel in the reference video frame 102. Once the colorization machine learning model 110 is trained, the reference label 104 is propagated from the reference video frame 102 to the target video frame 106 using the learned “pointing” mechanism, thereby achieving visual tracking.
[0046] Reference Figure 6 An example process for training a colorization machine learning model is described in more detail.
[0047] Figure 2 is an illustration of an example data flow 200 for tracking the position of an object from a reference video frame 202 to a target video frame 204 using the visual tracking system 100 .
[0048] The system 100 begins by decolorizing the reference video frame 202 and the target video frame 204 (eg, by converting them to corresponding grayscale video frames).
[0049] The system 100 processes the reference video frame 202 and the target video frame 204 using an embedding neural network 206 to generate embeddings corresponding to pixels of the reference video frame 202 and the target video frame 204. The embedding neural network 206 is a convolutional neural network (CNN), i.e., a neural network that includes one or more convolutional neural network layers.
[0050] After processing an input video frame (e.g., reference frame 202 or target frame 204), the output of the embedding neural network 206 can be represented as a three-dimensional (3D) matrix of values, having two "spatial" dimensions and one "channel" dimension. An embedding corresponding to a pixel of the input video frame at a particular spatial location (e.g., defined by an (x, y) coordinate in the input video frame) is determined by extracting a portion of the embedding neural network output at the corresponding spatial location (i.e., along the channel dimension). In some cases, the spatial dimensions of the embedding neural network output can be the same as the input video frame, e.g., the input video frame can have a spatial dimension of 256×256, and the embedding neural network output can have a spatial dimension of 256×256 with 200 channels. In some other cases, the spatial dimensions of the embedding neural network output can be greater or less than the spatial dimensions of the input video frame, e.g., the input video frame can have a spatial dimension of 256×256, and the embedding neural network output can have a spatial dimension of 50×50 with 200 channels.
[0051] The embedding neural network 206 may have any suitable neural network architecture. In one example, the embedding neural network architecture may include a ResNet-18 neural network architecture followed by a five-layer 3D convolutional neural network. The spatial position of each pixel in the input video frame (e.g., represented as a corresponding 2D vector in the range [-1, 1]) may be provided as an intermediate input to the embedding neural network.
[0052] To track the object 208 from the reference frame 202 to the target frame 204 (i.e., Figure 2 204) and the embedding corresponding to the pixel from the reference frame 202. In this example, the system 100 may determine a corresponding similarity measure between the embedding corresponding to the pixel from the target frame 204 and the embedding corresponding to the pixel from the reference frame 202. i and the embedding f in the target frame 204 j The system 100 trains the embedding network 206 to generate an embedding 210 that can be used to colorize the target frame 204 by generating a predicted color 212 of the target frame 204 based on a reference color 214 of the reference frame 202.
[0053] Figure 3 and Figure 4 An example of performance improvement that can be achieved by using the visual tracking system described in this specification to perform a video segmentation task is shown. In the video segmentation task, a semantic segmentation of one or more initial video frames in a video is provided, and the tracking system propagates the semantic segmentation to the remaining video frames in the video. The semantic segmentation of the video frame specifies a label corresponding to each pixel of the video frame.
[0054] Figure 3 A graph 300 is shown, which illustrates the performance of various tracking systems as a function of time (i.e., video frame number) when performing video segmentation. Tracking system 302 refers to the tracking system described in this specification. Tracking system 304 uses optical flow techniques to perform tracking. Tracking system 306 performs tracking by associating each pixel in a video frame with a corresponding pixel at the same spatial position in the previous video frame. The horizontal axis of graph 300 identifies the frame number of the segmented video frame, while the vertical axis identifies the average performance of each tracking system in segmenting the video frame. The performance of the tracking system in segmenting the video frame can be determined as: (i) the actual segmentation of the video frame, and (ii) the overlap between the segmentation of the video frame determined by the tracking system. It can be understood that the tracking system 302 described in this specification outperforms each baseline tracking method.
[0055] Figure 4 The performance of various "unsupervised" and "supervised" tracking systems in performing video segmentation is shown. The performance is evaluated in the "Segmentation" column of Table 400 based on the overlap between the actual segmentation and the estimated segmentation of each video frame, and the performance is evaluated in the "Boundary" column based on the similarity between the boundaries of various regions in the actual segmentation and the estimated segmentation of each video frame. Supervised tracking methods refer to tracking methods that take advantage of labeled images (e.g., images associated with known tracking data or semantic segmentation) for training. Unsupervised tracking methods (such as the tracking methods described in this specification) are trained without the use of labeled images. In some cases, the performance of supervised tracking methods can be expected to be an upper bound on the performance of unsupervised tracking methods.
[0056] The "identity" tracking method 402 performs tracking by associating each pixel in a video frame with the corresponding pixel at the same spatial location in the previous video frame (as previously described). The "single image colorization" tracking method 404 performs tracking in a manner similar to the systems described in this specification, except that the pixel embeddings are generated as an intermediate output of a neural network trained to perform single image colorization (i.e., by processing grayscale images to generate color images). The "optical flow (coarse to fine)" tracking method 406 performs tracking using optical flow techniques and is described with reference to Liu, C. et al.: "Beyond pixels: exploring new representations and applications for motion analysis", MIT PhD thesis (2009). The "Optical Flow (FlowNet2)" tracking method 408 uses optical flow technology to perform tracking and is described with reference to Ilg, E. et al.: "Flownet 2.0: Evolution of optical flow estimation with deep networks", IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Volume 2 (2017). "Our" tracking method 410 refers to the tracking method described in this specification. The "fully supervised" tracking method 412 refers to the fully supervised tracking method described with reference to, for example, Yang, L. et al.: "Efficient video object segmentation via network modulation", arXiv:1802.01218 (2018). It will be understood that the tracking method described in this specification achieves performance that is closer to that of a fully supervised tracking method than any other unsupervised tracking method.
[0057] Figure 5 is a flow chart of an example process 500 for performing visual tracking. For convenience, process 500 is described as being performed by a system of one or more computers located in one or more locations. For example, a visual tracking system (e.g., Figure 1 The visual tracking system 100) can perform process 500.
[0058] The system receives: (i) one or more reference video frames, (ii) a corresponding reference label for each of a plurality of reference pixels in the reference video frames, and (iii) a target video frame (502). Typically, the reference video frame and the target video frame are taken from the same video. The reference video frame may precede the target video frame in the video, follow the target video frame in the video, or a combination of both, i.e., some reference video frames may precede the target video frame and the remaining reference video frames may follow the target video frame. The system may receive reference labels for each pixel in the reference video frame, or only for an appropriate subset of pixels in the reference video frame (e.g., only pixels corresponding to a particular object depicted in the reference video frame). The reference labels may have been determined by a person through manual annotation, or may have been previously generated using process 500. Typically, the system decolorizes the reference video frame and the target video frame by removing some or all of the data defining the color of the pixel (e.g., by converting the video frame to a grayscale format).
[0059] The system processes a reference video frame and a target video frame using a colorization machine learning model to generate a corresponding pixel similarity measure (504) between (i) a plurality of target pixels in the target video frame and (ii) each of a plurality of reference pixels in the reference video frame. In particular, the system provides the reference video frame and the target video frame as respective inputs to an embedding neural network configured to process the input video frame to generate an output defining a corresponding embedding for each pixel in the input video frame. The system may generate a pixel similarity measure A between a target pixel j from the target video frame and a reference pixel i from the reference video frame. ij Determined as:
[0060]
[0061] in, is the transpose of the embedding of reference pixel i, f j is the embedding of the target pixel j, T is a temperature parameter (e.g., T=0.5 or T=1), and the sum is over each reference pixel k. A colorization machine learning model (particularly an embedding neural network) is trained to generate a pixel similarity metric that has the following property: the color of each target pixel can be efficiently estimated by combining: (i) the actual color of the reference pixel, and (ii) the pixel similarity metric. Figure 6 Describe the training of the coloring machine learning model in more detail.
[0062] The system determines a corresponding target label for each target pixel in the target video frame based on (i) the reference label of the reference pixel and (ii) a pixel similarity measure between the reference pixel and the target pixel (506). For example, the system can determine the target label of the target pixel j in the target video frame as:
[0063]
[0064] Among them, A ij represents the pixel similarity measure between the target pixel j and the reference pixel i (as described in reference equation (1)), l i denotes the reference label of reference pixel i, and sums over every reference pixel i in the reference video.
[0065] In some embodiments, the reference label indicates whether each reference pixel is included in a particular object, and by determining the target label, the system "tracks" the object from the reference video frame to the target video frame. In some other embodiments, the reference label defines a semantic segmentation of the reference video frame by indicating a corresponding category (e.g., an object category) for each reference pixel, and the system propagates the semantic segmentation to the target video frame by determining the target label.
[0066] Figure 6 is a flow chart of an example process 600 for training a coloring machine learning model. For convenience, process 600 is described as being performed by a system of one or more computers located in one or more locations. For example, a visual tracking system (e.g., Figure 1 The visual tracking system 100) can perform process 600.
[0067] The system obtains one or more training examples (602). Each training example includes: (i) one or more training reference video frames, (ii) a training target video frame, and (iii) the actual color of each of the pixels in the training reference video frame and the training target video frame. The system can obtain the training examples, for example, by randomly sampling a predetermined number of training examples from a set of training data including a plurality of training examples.
[0068] The colors of pixels in training reference video frames and training target video frames may be represented in any of a variety of ways. In one example, the color of a pixel may be represented "continuously" as a 3D vector of red, green, and blue values, for example, which may assume values in a continuous range of possible values. In another example, the color of a pixel may be represented "discretely" as a single-hot vector indicating a specific "reference" color value from a predetermined set of possible reference color values. A set of possible reference color values may be determined by clustering a set of vectors representing the colors of pixels in a set of images or videos, for example using k-means or expectation-maximization clustering techniques. A pixel may be determined to correspond to a reference color that is closest to its actual color.
[0069] The system processes the training reference video frame and the training target video frame using the colorization machine learning model to generate a corresponding pixel similarity measure between (i) each pixel in the training target video frame and (ii) each pixel in the training reference video frame (604). Figure 5 Step 504 of , describes in more detail an example process for generating such a similarity measure using an embedded neural network of a coloring machine learning model.
[0070] The system determines the estimated color of each pixel in the training target video frame by combining: (i) the actual color of each pixel in the training reference video frame and (ii) a pixel similarity measure (606). For example, the system may calculate the estimated color of target pixel j in the training target video frame. Determined as:
[0071]
[0072] Among them, A ij represents the pixel similarity measure between target pixel j and reference pixel i, c i represents the color of reference pixel i, and the sum is over each reference pixel i in the training reference video frame.
[0073] The system adjusts current values of embedded neural network parameters of the colorization machine learning model based on the difference between: (i) the actual color of each pixel in the training target video frame and (ii) the estimated color of each pixel in the training target video frame (608). For example, the system can use the gradient of a loss function relative to the current value of the embedded neural network parameter to adjust the current value of the embedded neural network parameter. The loss function can be, for example, a cross entropy loss between the actual color and the estimated color of the pixel of the training target video frame. The system can use, for example, a back-propagation technique to determine the gradient. The system can use the gradient to adjust the current value of the embedded neural network parameter using an update rule of any suitable gradient descent optimization algorithm (e.g., RMSprop or Adam).
[0074] This specification uses the term "configured" 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 that, 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.
[0075] The embodiments of the subject matter and functional operations described in this specification can 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. The embodiments of the subject matter described in this specification can 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. The computer storage medium can 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 additionally, the program instructions can be encoded on an artificially generated propagation signal, for example, a machine-generated electrical signal, optical signal, or electromagnetic signal, which is generated to encode information for transmission to a suitable receiver device for execution by a data processing device.
[0076] The term "data processing apparatus" refers to data processing hardware, and includes all types 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 circuitry, for example, 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, for example, code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
[0077] 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 the computer program may be deployed in any form, including as a standalone program or as a module, component, subroutine, object 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 one or more modules, subroutines or code portions). A computer program may be deployed to execute on one computer or on multiple computers located at one site or distributed across multiple sites and interconnected by a data communications network.
[0078] 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.
[0079] The processes and logic flows described in this specification can be performed by one or more programmable processors 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 (e.g., an FPGA or ASIC) or by a combination of a special purpose logic circuit and one or more programmed computers.
[0080] Computers suitable for executing computer programs include, for example, central processing units that can be based on general and special microprocessors or both and any kind of microprocessors. Typically, the central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a central processing unit for executing or running 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 dedicated logic circuit. Typically, the computer will also include one or more large-capacity storage devices for storing data, such as a disk, a magneto-optical disk, or an optical disk, or the computer may also be operably coupled to the one or more large-capacity storage devices to receive data from it or to transmit data to it or both. However, the computer does not need to have such a device. In addition, the computer may 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 (e.g., a universal serial bus (USB) flash drive), to name just a few examples.
[0081] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and storage 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.
[0082] 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 a user; and a keyboard and a pointing device such as a mouse or trackball through which a user can provide input to the computer. Other types of devices may also be used to provide interaction with a 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 sound, voice, or tactile input. In addition, a computer may interact with a user by sending documents to and receiving documents from a device used by a user; for example, by sending a web page to a web browser in response to a request received from a web browser on a user's device. Moreover, a computer may interact with a user by sending a text message or other form of message to a personal device (e.g., a smartphone running a messaging application) and receiving a response message from the user in response.
[0083] The data processing apparatus for implementing a 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 production, i.e., inference, workloads.
[0084] You can use machine learning frameworks (for example, the TensorFlow framework, the Microsoft Cognitive Toolkit framework, the Apache Singa framework, or the Apache MXNet framework) to implement and deploy machine learning models.
[0085] Embodiments of the subject matter described in this specification may 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 app, or includes any combination of one or more such back-end, middleware, or front-end components through which a user can interact with an implementation of the subject matter described in this specification. The components of the system may be interconnected by any form or medium of digital data communication, such as a communication network. Examples of communication networks include local area networks ("LANs") and wide area networks ("WANs") (e.g., the Internet).
[0086] 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 means of computer programs running on each computer and having a client-server relationship with each other. In some embodiments, the server sends data (e.g., an HTML page) to a user device, for example, for the purpose of displaying data to a user interacting with the device as a client and receiving user input from the user. Data generated at the user device, such as the result of a user interaction, can be received from the device at the server.
[0087] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of any invention or the scope that can be claimed, but rather as descriptions of features specific to a particular embodiment of a particular invention. Certain features described in this specification in the context of a separate embodiment 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 individually 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, one or more features from the claimed combination may be cut out of the combination in some cases, and the claimed combination may be directed to a sub-combination or a variation of the sub-combination.
[0088] 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 the operations be performed in the particular order shown or in sequence, or that all of the illustrated operations 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 into a single software product or packaged into multiple software products.
[0089] 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 for visual tracking, comprising: receiving: (i) one or more reference video frames, (ii) a corresponding reference tag for each of a plurality of reference pixels in the reference video frames, and (iii) a target video frame; Processing the reference video frame and the target video frame using a colorization machine learning model to generate a corresponding pixel similarity measure between (i) a plurality of target pixels in the target video frame and (ii) each of the reference pixels in the reference video frame, comprising: providing the reference video frame and the target video frame as input to an embedded neural network included in the colorization machine learning model; processing the input according to current values of embedding neural network parameters to generate a respective embedding for each of (i) the target pixel in the target video frame and (ii) the reference pixel in the reference video frame; and generating the corresponding pixel similarity measure between each of (i) the target pixel in the target video frame and (ii) the reference pixel in the reference video frame using the embedding, wherein the colorization machine learning model is trained to generate a pixel similarity metric, wherein a corresponding estimated color of each target pixel in the target video frame is defined by combining (i) an actual color of each of the reference pixels in the reference video frame and (ii) the pixel similarity metric; and Determining a corresponding target label for each target pixel in the target video frame includes: Combining (i) the reference label of the reference pixel in the reference video frame and (ii) the pixel similarity measure.
2. The method according to claim 1, wherein: The reference pixels in the reference video frame include a proper subset of pixels in the reference video frame.
3. The method according to claim 1, wherein: The reference video frame and the target video frame are decolorized before being processed by the colorization machine learning model.
4. The method according to claim 1, wherein: The embedded neural network includes one or more convolutional neural network layers.
5. The method according to claim 1, wherein: Generating the corresponding pixel similarity measure between each of (i) the target pixel in the target video frame and (ii) the reference pixel in the reference video frame using the embedding includes: A pixel similarity measure between the target pixel and the reference pixel is generated using a similarity measure between the embedding of the target pixel and the embedding of the reference pixel.
6. The method according to any one of claims 1 to 5, wherein: The label for a pixel includes data indicating, for each of a plurality of possible classes, a respective likelihood that the pixel corresponds to the class.
7. The method according to any one of claims 1 to 5, wherein: The label for a pixel includes data indicating, for each of a plurality of possible keypoints, a respective likelihood that the pixel corresponds to the keypoint.
8. The method according to claim 1, wherein: The coloring machine learning model is trained by a plurality of operations, the plurality of operations comprising: Obtain a plurality of training examples, wherein each training example comprises: (i) one or more training reference video frames, (ii) a training target video frame, and (iii) an actual color of each pixel in the training reference video frame and the training target video frame; Processing the training reference video frame and the training target video frame using the colorization machine learning model to generate a corresponding similarity measure between (i) each pixel in the training target video frame and (ii) each pixel in the training reference video frame; determining an estimated color of each pixel in the training target video frame by combining (i) the actual color of each pixel in the training reference video frame and (ii) the similarity measure; and The current values of the embedded neural network parameters are adjusted based on a difference between (i) the actual color of each pixel in the training target video frame and (ii) the estimated color of each pixel in the training target video frame.
9. The method according to claim 8, wherein: Adjusting the current value of the embedded neural network parameter includes: determining a gradient of a loss function, wherein the loss function depends on a difference between (i) the actual color of each pixel in the training target video frame and (ii) the estimated color of each pixel in the training target video frame; and The gradient is used to adjust the current value of the embedded neural network parameter.
10. The method according to claim 1, wherein: The reference labels for the reference pixels in one or more of the reference video frames were previously determined using the shading machine learning model.
11. The method according to claim 1, further comprising: The object tag is used to track the location of the object in the reference video frame to the target video frame.
12. A system for visual tracking, comprising: Data processing equipment; as well as A memory that performs data communication with the data processing device and stores instructions that cause the data processing device to perform the operations of the corresponding method as claimed in any one of claims 1 to 11.
13. One or more non-transitory 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 corresponding method of any one of claims 1 to 11.
