Training neural networks for vehicle re-identification

By training deep neural networks using contrastive loss or triplet loss functions, combined with batch sampling variants and pre-trained networks, optimizing embedding dimensions and learning rates, the accuracy and efficiency issues of vehicle re-identification in complex traffic environments are solved, achieving for efficient and accurate vehicle identification.

CN118609067APending Publication Date: 2024-09-06NVIDIA CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410820837.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2018-09-20
Filing Date
2019-09-20
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing vehicle re-identification technology is difficult to accurately identify the same vehicle in complex traffic environments, especially in the case of multi-camera or multi-frame image capture, and the training of conventional methods such as deep neural networks has computational resource and efficiency issues.

Method used

Efficient prediction and recognition of vehicle embeddings is achieved by training deep neural networks (DNNs) to use contrastive loss or triplet loss functions, combined with batch sampling variants and pre-trained networks, to optimize embedding dimensions and learning rates.

Benefits of technology

It achieves efficient and accurate vehicle re-identification in complex traffic environments, reduces computing resource requirements, improves real-time prediction capabilities, and reduces training time and inference costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609067A
    Figure CN118609067A
Patent Text Reader

Abstract

Embodiments of the invention relate to training neural networks for vehicle re-identification. In various examples, a neural network may be trained for use in vehicle re-identification tasks in a camera network (e.g., matching the appearance and classification of vehicles across frames). The neural network may be trained to learn the embedding space such that embedding of vehicles corresponding to the same identity is projected closer to each other within the embedding space than vehicles representing different identities. To accurately and efficiently learn the embedding space, a neural network may be trained using a contrast loss function or a triple loss function. Furthermore, in order to further improve accuracy and efficiency, sampling techniques (hereinafter referred to as batch samples) may be used to identify the embedding that is most meaningful to update the parameters of the neural network during training.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Information about divisional applications

[0002] This application is a divisional application of an invention patent application with an application date of September 20, 2019, application number "201980076264.6", and invention name "Training Neural Networks for Vehicle Re-identification". Technical Field

[0003] Embodiments of the present application relate generally to vehicle identification, and more particularly to training a neural network for vehicle re-identification. Background Art

[0004] Matching the appearance of a vehicle or other object across multiple cameras or across multiple frames from a single camera is an integral task for vehicle or object tracking applications. The goal of vehicle re-identification is to identify the same vehicle across a network of cameras, an increasingly complex problem presented by the proliferation of cameras in cities and other highly congested traffic areas. For example, re-identifying the same vehicle from a variety of different orientations across multiple frames captured by any number of cameras becomes increasingly challenging due to the increasing number of vehicles in the environment, in addition to any number of permanent or transient objects that potentially obstruct the camera's view of a particular vehicle.

[0005] Conventional methods have been developed to perform re-identification tasks on people, such as by training deep neural networks (DNNs) for person classification tasks using various loss functions. According to one approach, the DNN can be trained using a cross-entropy loss, but because each identity is treated as a separate category and the number of categories is equal to the number of identities in the training set, learning becomes computationally prohibitive. Other conventional methods have used DNNs that are trained using contrastive loss or triplet loss to learn embeddings for an embedding space - for example, facial embeddings for face verification. However, these conventional methods do not provide sufficiently accurate results for tasks such as vehicle re-identification.

[0006] Other conventional approaches include vehicle classification, which is a closely related problem to vehicle re-identification. For example, vehicle classification may identify the make, model, and / or year of a vehicle. However, vehicle re-identification is a more fine-grained problem than vehicle classification, as re-identification should be able to extract visual differences between two vehicles belonging to the same model class, such as subtle trim or color differences. Furthermore, unlike vehicle classification, vehicle re-identification is expected to work without any prior knowledge of possible vehicle model classes in a certain geographic area. As such, vehicle classification approaches are unable to provide accurate and usable results for vehicle re-identification tasks. Summary of the invention

[0007] Embodiments of the present disclosure are directed to training a deep neural network (DNN) for vehicle re-identification. Systems and methods for training a DNN to re-identify vehicles or other objects at any number of different orientations and locations and captured by any number of different cameras are disclosed.

[0008] Compared to conventional systems such as those described above, one or more DNNs of the present disclosure may be trained to predict embeddings corresponding to vehicles represented in multiple images captured by any number of cameras. One or more DNNs may compute multiple embeddings corresponding to vehicles with the same identity as being very close to each other in the embedding space, and may compute multiple embeddings corresponding to vehicles with different identities as being further apart—all requiring only identity-level annotations for training while maintaining a small embedding dimension for efficient reasoning. In addition to contrastive loss or triplet loss (e.g., in an embodiment, the margin α is replaced with a SoftPlus function), one or more DNNs may also use multiple batches for training, where only one or more embeddings corresponding to one or more more meaningful samples from the batch may be used to calculate the loss. In order to determine meaningful samples, a batch sampling variant (referred to herein as a “batch sample”) may use a multinomial distribution to identify embeddings corresponding to meaningful samples. In addition, some embodiments may use a pre-trained network, while other embodiments may be trained end-to-end (e.g., from scratch), and the learning rate may be adjusted, such as to make the pre-trained model have a learning rate less than that of the end-to-end model, depending on the embodiment. Thus, one or more DNNs of the present disclosure may be trained more effectively and efficiently, reducing computational resources compared to conventional solutions, while maintaining efficient inference for real-time or near real-time predictions in deployments of vehicle re-identification tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] A system and method for training a neural network for vehicle re-identification is described in detail below with reference to the accompanying drawings, wherein:

[0010] Figure 1 is a data flow diagram of a process of training a deep neural network (DNN) to predict embeddings for object re-identification according to some embodiments of the present disclosure;

[0011] Figure 2A is a table including equations for calculating weights for various sampling variants according to some embodiments of the present disclosure;

[0012] Figure 2B is a graph including distances of embeddings from anchor embeddings according to some embodiments of the present disclosure;

[0013] Figure 2C including a chart showing weights of various sampling variations according to some embodiments of the present disclosure;

[0014] Figure 3 is an illustration of training a DNN to predict embeddings using triplet loss according to some embodiments of the present disclosure;

[0015] Figure 4A is a table including test results of a data set using contrast loss or triplet loss and normalization or no normalization layer according to some embodiments of the present disclosure;

[0016] Figure 4B is a table including test results of a data set using various sampling variants according to some embodiments of the present disclosure;

[0017] Figure 4C is a table including test results of a data set using various sampling variants according to some embodiments of the present disclosure;

[0018] Figure 4D is a table including test results of a data set using various sampling variants according to some embodiments of the present disclosure;

[0019] Figure 5 is a flowchart illustrating a method for training a deep neural network to predict embeddings for object re-identification according to some embodiments of the present disclosure; and

[0020] Figure 6 is a block diagram of an example computing device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0021] Systems and methods are disclosed that involve training a neural network for vehicle re-identification. Although the present disclosure is primarily described with respect to vehicle re-identification, this is not intended to be limiting, and the systems and methods described herein may be used to identify other object types, such as humans, animals, drones, watercraft, aircraft, construction vehicles, military vehicles, etc., without departing from the scope of the present disclosure.

[0022] Vehicle re-identification involves matching the appearance of an object (and specifically a vehicle) across different cameras and / or across multiple frames such as captured by one or more cameras. This challenge is compounded in the use case of vehicle re-identification for various reasons, including: multiple views of the same vehicle are visually diverse and semantically related, meaning that the same identity must be inferred regardless of a given viewpoint; accurate vehicle re-identification requires extraction of subtle physical clues, such as the presence of dust, written marks, or dents on the vehicle surface, to distinguish different vehicles of the same year, color, make, and / or model; and given the limited number of years, colors, makes, and models of vehicles in a given dataset (e.g., less than half or less than the diversity represented in a person or face training dataset), vehicle labels are not as fine-grained as person or face, identity labels.

[0023] In order to match the appearance of objects, an embedding (or feature vector or signature) can be generated for each object. A distance metric can then be used to determine the proximity of the embeddings to each other in the embedding space. The proximity of the embeddings in the embedding space can specify a relationship or match between two or more objects in the plurality of objects. For example, the same object across multiple frames may have embeddings that are determined to be close to each other (e.g., within a threshold distance), while the embeddings of different objects may be further apart (e.g., outside a threshold distance).

[0024] As described herein, effective embeddings should be lighting, scale, and viewpoint invariant, so that even if lighting, scale, viewpoint, and / or other differences in the appearance of an object are depicted on multiple frames captured from any number of cameras, the same object has a similar embedding position across frames in the embedding space. In order to train a deep neural network (DNN) to accurately and efficiently predict the embedding of an object, the DNN can be trained so that the embedding is invariant to the various factors described herein. The embedding dimension of the embedding can be a direct factor in the efficiency and accuracy of the DNN in predicting the embedding space. For example, the larger the embedding dimension, the more contextual information can be represented in each embedding, while reducing efficiency and increasing the running time of the system. As such, the goal of the system can be to determine the minimum possible embedding dimension that still allows for acceptable or optimal accuracy with respect to the embedding in the embedding space predicted by the DNN. In a non-limiting example, as verified by testing (described herein), an embedding dimension of 128 units (or 256 units or less in the example) can be used for some embodiments of the present disclosure while still producing accurate results. For example, some conventional systems use embedding dimensions of 1024 units or 2048 units and produce less accurate results with longer runtimes than the systems of the present disclosure. These conventional systems also require significantly greater computational resources during inference and training because predicting or being trained to predict embeddings with dimensions of 1024 or more units is computationally more complex than 128 units (as non-limiting examples). By using relatively small embedding dimensions combined with effective training parameters (e.g., triplet loss, batch sampling, etc.), as described herein, smaller embedding dimensions still produce accurate and usable results for predicting embedding spaces by DNNs. In addition, computational costs and training times are reduced.

[0025] For example, the loss function used during training can be selected so that embeddings of the same object are closer in the embedding space than embeddings of different objects. In some examples, a contrastive loss or a triplet loss can be used to train the DNN to compute the embeddings of the objects. The contrastive loss uses two instances of sensor data (e.g., images represented by image data) at each training instance, each instance depicting the same object or a different object, where each instance is applied to an instantiation of the DNN. For example, a first image I a It can be an anchor image representing the first object, and the second image I n or I p It can be a negative image I representing the second object n Or the positive (p) image I representing the first object pAs such, the DNN may output an embedding corresponding to an object in each instance of the sensor data, and a contrastive loss may be used to train the distance between the same object across two instances to be 0 (or another value within a threshold distance) and the distance between two different objects (e.g., a first object and a second object) across two instances to be above a predefined threshold or margin α. In some examples, the margin α used for the contrastive loss may be a difficulty margin of 1.0.

[0026] The triplet loss uses three instances of sensor data (e.g., images represented by image data) at each training instance, each instance depicting the same object or a different object, where each instance is applied to an instantiation of the DNN. a It can be an anchor image representing the first object, and the second image I n may be a negative image representing the second object, and the third image I p It can be a positive image that also represents the first object. In this way, the DNN can output embeddings corresponding to the first object in the anchor image, the first object in the positive image, and the second object in the negative image. The DNN can then be trained using a triplet loss function so that the distance between the same objects is less than the distance between different objects. In this way, each iteration of the triplet loss factor in the matching and non-matching pairs of objects leads to more accurate results than other loss functions with respect to learning the embedding space. In some examples, the margin α in the triplet loss can be replaced by a SoftPlus function (e.g., ln(1+exp(·))), which can avoid the need to adjust the margin α. In addition, in some embodiments, when using triplet loss, a normalization layer for normalizing the embedding may not be used, because the use of a normalization layer may destroy the embedding.

[0027] However, when applied to a dataset of N samples, both contrastive loss and triplet loss have high computational complexity. For example, contrastive loss has a training complexity of O(N 2 ), while the triplet loss has a training complexity of O(N 3 ). As such, contrastive and triplet losses may be computationally prohibitive for some datasets, and may be prohibitive for datasets that are large enough to train a DNN to predict accurate embeddings in the embedding space. For example, computing losses only on trivial data points may impair the convergence of the DNN. In the context of vehicles, sampling from different views of the vehicle (e.g., side, front, back, top, etc.) for the same identity as represented in the robust dataset rather than repeatedly considering samples of similar views as represented in the minimal dataset can provide information for the loss function.

[0028] To address this computational complexity, sampling methods can be used to capture subsets of robust datasets that are more difficult for DNNs to accurately compute (e.g., subsets of the dataset for which DNNs are less accurate in predicting embeddings). For example, some conventional methods use hard data mining (or sampling), where at each iteration, the DNN is applied to a validation set to mine hard data on which the DNN performs poorly. Only the mined hard data is then used by an optimizer (e.g., a training component) to increase the ability of the DNN to learn efficiently and converge faster to an acceptable or optimal accuracy. However, because hard data mining tends to capture primarily outliers in the data, and because the DNN is presented only with this hard data (e.g., outliers), the DNN's ability to distinguish outliers from normal data is impaired.

[0029] As such, in order to account for (and not just rely on) outliers, semi-hard sampling can be used to mine moderate subsets of data that are neither too difficult (e.g., difficult for the DNN to execute accurately) nor too trivial to establish meaningful gradients during the training of the DNN. Some conventional methods for semi-hard sampling use offline methods on a central processing unit (CPU) that hinder DNN convergence. As such, in some embodiments, samples of a data set may be mined in a semi-hard manner directly on a graphics processing unit (GPU). For example, a batch including P identities from a data set X may be generated from the data set, and then K images are randomly sampled for each identity P. Thus, in some non-limiting embodiments, each batch may include PK images. In some examples, P may be equal to 18 and K may be equal to 4, such that each batch is 72 (PK) images. The samples may be selected so that the entire training data set is iterated during the course of the training epoch.

[0030] Once the batches are determined, sampling methods such as hard batches (BH), batches as a whole (BA), batch samples (BS), or batch weighted (BW), each of which is described in more detail herein, can be used to determine a subset of samples from each batch that is to be used by the optimizer to increase the ability of the DNN to learn efficiently and converge to acceptable or optimal accuracy more quickly. During testing and validation, as described in more detail herein, BS and BW perform more efficiently by producing more accurate results as calculated using mean-average precision (mAP) and top-k precision. However, BS can perform with similar or better accuracy than BW on some datasets and according to some evaluation metrics, while requiring fewer samples to be used by the optimizer (e.g., a single sample from each batch can be used for BS, while BW can use some or all of the samples with different weights).

[0031] The data set may also undergo augmentation (e.g., online augmentation) using one or more GPUs (e.g., NVIDIA's VOLTA GPUs) as hardware and a machine learning platform (e.g., TENSORFLOW) for software. In some embodiments, data augmentation may include an image flip operation. However, this is not intended to be limiting, and any other data augmentation operation may be performed in addition to or in lieu of image flipping, such as rotation, scaling, color augmentation, zooming in and out, cropping, etc.

[0032] In some embodiments, the DNN may be trained from scratch (e.g., end-to-end) or may be trained from a pre-existing or pre-trained DNN. Different learning rate schedules may be employed depending on whether the training is done from scratch or fine-tuned using a pre-trained DNN. For example, in the case of training from scratch, a first learning rate may be used that is greater than a second learning rate used when training from a pre-trained DNN. Once the DNN architecture is determined, which in a non-limiting embodiment may be a convolutional neural network (CNN), the DNN may be trained on batches of one or more datasets (or subsets thereof determined using sampling or mining as described herein) using contrastive loss or triplet loss. An optimizer may be used, such as, but not limited to, the Adam optimizer (e.g., with default parameters, ε=10 in a non-limiting example). -3 , β1=0.9, β2=0.999).

[0033] Furthermore, using the DNN architecture and training methods described herein, spatiotemporal information (a staple of conventional systems) is not required for accurate object re-identification (and specifically, vehicle re-identification) across frames. However, in some embodiments, spatiotemporal information may be utilized to further improve accuracy or for redundancy.

[0034] Once trained according to the training process described herein, the DNN of the present disclosure can accurately and efficiently (e.g., in real time or near real time) compute embeddings of objects in an environment. The embeddings can then be compared relative to the embedding space to determine the same or different objects, so that objects can be re-identified and / or tracked on frames captured from any number of cameras. For example, a network of cameras (such as in a city, parking garage, etc.) can be utilized to track objects as they travel through the field of view of the camera. In this way, object movement and behavior can be tracked, and the information can be used for anomaly detection, pattern recognition, traffic monitoring, and / or the like.

[0035] See now Figure 1 , Figure 1A data flow diagram of a process 100 for training a deep neural network (DNN) to predict an embedding for object re-identification according to some embodiments of the present disclosure is included. Image data 102 representing images (e.g., still or video) captured by any number of cameras may be received and / or generated. For example, the image data 102 may represent images captured sequentially by a single camera, images captured simultaneously by multiple cameras, or images captured by multiple cameras over time. The image data 102 used to train the DNN 108 may include images of vehicles (or other object types), such as multiple images of multiple different vehicle types or identities (e.g., different viewpoints, lighting levels, directions, etc.). For example, there may be multiple images of a first car, multiple images of a second car, etc., where each different image represents a different viewpoint, lighting level, occlusion level, direction, and / or other capture parameters of the vehicle. In some non-limiting examples, the image data 102 may include images from a pre-organized dataset—such as the VeRi dataset, the Vehicle ID dataset, or the PKU-VD dataset described in more detail herein.

[0036] The images represented by the image data 102 may undergo batch creation 104 to generate multiple batches of images. For example, in some non-limiting embodiments, multiple batches including P identities from a data set may be generated, and X and K images may be randomly sampled for each identity P. Therefore, in some non-limiting embodiments, each batch may include P*K images. In some non-limiting examples, P may be equal to 18 and K may be equal to 4, so that each batch is 72 (PK) images. By using this number of images, diversity in the batch may be effectively generated while still maintaining a relatively small batch size for training, thereby reducing overall training time and reducing computing resources. Other examples may include using other batch sizes for a total batch size of 288 (PK) images, such as where P is equal to 18 and K may be equal to 16. In the case of using a BW sampling variant, such an example batch size may be used because more samples may be applied to the optimizer, thereby benefiting from greater diversity in the samples. These example batch sizes are provided as examples of producing accurate and effective results during testing and validation. However, these example batch sizes are not intended to be limiting, and any batch size may be used without departing from the scope of the present disclosure.In a non-limiting embodiment, the samples may be selected such that the entire training data set is iterated over the course of a training epoch.

[0037] Batches of images (as represented by image data 102) may be provided as input to a deep neural network (DNN) 108. In some examples, the DNN 108 may be pre-trained before being used as the DNN 108 for learning embeddings 110. For example, the pre-trained DNN 106 may be trained on one or more additional datasets (e.g., on other image data) to predict embeddings. In some examples, the pre-trained DNN 106 may be trained to predict embeddings for a re-identification task. In other examples, the pre-trained DNN 106 may be trained to predict embeddings for other tasks, and the training described with respect to process 100 may be used to update the pre-trained DNN 106 to generate a DNN 108 for predicting embeddings 110 for a re-identification task (such as a vehicle re-identification task). In embodiments where a pre-trained DNN is used, the learning rate may be different from the learning rate used when the DNN 108 is not trained from a pre-trained DNN 106. For example, in the case of training the DNN 108 from a pre-trained DNN 106, a first learning rate that is smaller than a second learning rate used when training the DNN 108 from scratch (e.g., end-to-end) may be used. As a non-limiting example, the first learning rate may preferably be between 0.0002 and 0.0004, more preferably between 0.00025 and 0.00035, and most preferably 0.0003. As another non-limiting example, the second learning rate may preferably be between 0.002 and 0.0005, more preferably between 0.0015 and 0.0008, and most preferably 0.001.

[0038] The pre-trained DNN 106 and / or DNN 108 may include any type of machine learning model. For example, although examples are described herein with respect to using a neural network, particularly a convolutional neural network (CNN), this is not intended to be limiting. As such, but not limited to, the pre-trained DNN 106 and / or DNN 108 may include one or more machine learning models using linear regression, logistic regression, decision trees, support vector machines (SVMs), naive Bayes, k-nearest neighbors (Knn), K-means clustering, random forests, dimensionality reduction algorithms, gradient boosting algorithms, neural networks (e.g., autoencoders, convolutions, recursion, perceptrons, long / short term memory (LSTM), Hopfield, Boltzmann, deep belief, deconvolution, generative adversarial, liquid machines, etc.), and / or other types of machine learning models.

[0039] In embodiments where the pre-trained DNN 106 and / or DNN 108 include a CNN, one or more of the layers of the CNN may include an input layer. The input layer may maintain values ​​associated with the image data 102. For example, when the image data 102 is one or more images, the input layer may maintain values ​​representing raw pixel values ​​of the one or more images as a volume (e.g., width W, height H, and color channels C (e.g., RGB), such as 32x32x3), and / or a batch size B (e.g., after batch creation 104).

[0040] One or more layers may include a convolutional layer. A convolutional layer may compute the output of neurons connected to local regions in an input layer (e.g., an input layer), with each neuron computing a dot product between their weights and a small region in the input volume to which they are connected. The result of a convolutional layer may be another volume, where one dimension is based on the number of filters applied (e.g., width, height, and number of filters, such as 32x32x12 if 12 is the number of filters).

[0041] One or more layers may include a rectified linear unit (ReLU) layer. One or more ReLU layers may apply an element-wise activation function, such as max(0, x), such as zero thresholding. The resulting volume of the ReLU layer may be the same as the volume of the input to the ReLU layer.

[0042] One or more of these layers may include a pooling layer. The pooling layer may perform a downsampling operation along the spatial dimensions (e.g., height and width), which may result in a smaller volume than the input of the pooling layer (e.g., 16x16x12 from a 32x32x12 input volume). In some examples, the pre-trained DNN 106 and / or DNN 108 may not include any pooling layers. In such examples, strided convolutional layers may be used instead of pooling layers. In some examples, the DNN may include alternating convolutional layers and pooling layers.

[0043] One or more of these layers may include fully connected layers. Each neuron in one or more fully connected layers may be connected to each neuron in the predecessor. In some examples, fully connected layers may not be used in an effort to increase processing time and reduce computing resource requirements. In such examples, without using fully connected layers, the pre-trained DNN 106 and / or DNN 108 may be referred to as a fully convolutional network.

[0044] In some examples, one or more of these layers may include one or more deconvolution layers. However, the use of the term deconvolution may be misleading and is not intended to be limiting. For example, a deconvolution layer may alternatively be referred to as a transposed convolution layer or a partially strided convolution layer. One or more deconvolution layers may be used to perform upsampling on the output of a previous layer. For example, one or more deconvolution layers may be used to upsample to a spatial resolution equal to the spatial resolution of an input image (e.g., represented by image data 102), or to upsample to the input spatial resolution of a next layer.

[0045] Although input layers, convolutional layers, pooling layers, ReLU layers, deconvolutional layers, and fully connected layers are discussed herein, this is not intended to be limiting. For example, additional or alternative layers may be used in, for example, normalization layers, SoftMax layers, SoftPlus layers, and / or other layer types. As described herein, in some embodiments, a normalization layer for normalizing embedding 110 may not be used in an effort to reduce the collapse of embedding 110. For example, Figure 4A As shown in and during testing, the performance of DNN 108 when using triplet loss without normalization is better than when using normalization.

[0046] At least some of the layers of the CNN may include parameters (e.g., weights and / or biases), while other layers may not, such as ReLU layers and pooling layers. In some examples, the parameters may be learned by pre-trained DNN 106 and / or DNN 108 during training. Further, some of these layers may include additional hyperparameters (e.g., learning rate, stride, epoch, kernel size, number of filters, pooling type for pooling layers, etc.), such as one or more convolutional layers, one or more deconvolutional layers, and one or more pooling layers, while other layers may not include additional hyperparameters, such as one or more ReLU layers. Various activation functions may be used, including but not limited to ReLU, leaky ReLU, sigmoid, hyperbolic tangent (tanh), exponential linear unit (ELU), etc. Parameters, hyperparameters and / or activation functions are not limited and may vary depending on the embodiment.

[0047] The image data 102 within each batch may be applied to the DNN 108, and the DNN may compute or predict embeddings 110. The embedding may represent a feature vector having an embedding dimension, wherein the embedding represents a location corresponding to a particular object (e.g., a vehicle) in the embedding space 112. The goal of training the DNN 108 may be to predict embeddings 110 for the same object to be closer together, while embeddings 110 for different objects are further apart. As such, in the case where the embeddings 110 are closer together (e.g., within a threshold distance) within the embedding space 112, it may be determined that the two embeddings 110 belong to the same object. As such, in the case where two or more embeddings 110 for the same object are close to each other, and the embeddings 110 are computed from two or more different images (e.g., from different cameras, viewpoints, perspectives, directions, lighting levels, etc.), the same object may be re-identified in each of the images for performing one or more operations (e.g., tracking an object, detecting anomalies, etc.).

[0048] The DNN 108 may be trained to compute an embedding 110 having an embedding dimension. For example, as described herein, the larger the embedding dimension, the more context that may exist in the embedding 110 for distinguishing between the same and different objects. However, a larger embedding dimension results in a longer training time for the DNN 108 and an increase in computational resources during training and inference. For example, an embedding dimension exceeding 256 units may limit the DNN 108 to non-real-time deployments because the DNN 108 may not be able to compute the embedding 110 for use in real-time or near real-time. As such, in some non-limiting embodiments, the embedding dimension of the DNN 108 may preferably be equal to or less than 256 units, and more preferably may be 128 units. Figures 4A-4D As indicated in , testing and validation of the DNN 108 have demonstrated that the DNN 108 has acceptable accuracy even when the embedding dimension is 128 units. As such, due to the use of batch sampling variants (e.g., BS and / or BW), the use of triplet loss to train the DNN 108, and / or other training parameters described herein, the DNN 108 can be trained to compute embeddings 110 having an embedding dimension of 128 units while producing accurate and efficient results that enable real-time deployment of the DNN 108 for re-identification tasks.

[0049] The embeddings 110 may be applied to an embedding space 112, where the embedding space 112 may be used to detect clusters or groups of embeddings 110 that belong to the same object. The embedding space 112 may be the space in which the data is embedded after dimensionality reduction of the DNN 108. During inference, the position of the embeddings 110 in the embedding space 112 may be used to re-identify the object and / or determine that two or more objects are not the same object. Similarly, during training, when it is known that two or more embeddings 110 belong to the same object or different objects (as represented in a ground truth 116), the position of the embeddings 110 in the embedding space 112 may be used to determine the accuracy of the DNN 108, and to update the parameters of the DNN 108 using one or more loss functions 118 (e.g., in some examples, a triplet loss function). For example, in the case where the prediction of the DNN 108 indicates that two embeddings 110 corresponding to the same object are far apart in the embedding space 112, this information can be used to update the DNN 108 so that the two embeddings 110 are predicted to be closer to each other. Similarly, in the case where the prediction of the DNN 108 indicates that two embeddings 110 corresponding to different objects are close together in the embedding space 112, this information can be used to update the DNN 108 so that the two embeddings 110 are predicted to be farther apart from each other.

[0050] The embeddings 110 computed by the DNN 108 for the batch of image data 102 may be sampled using a batch sampling variant during batch sampling 114. For example, a triplet loss or a contrastive loss may be computationally prohibitive for a real dataset, so batch sampling 114 may be used to reduce the data points used to compute the loss (e.g., to identify embeddings 110 that are more useful for training the DNN 108). This may be valuable because computing the loss relative to trivial or inaccurate data points (e.g., outliers, abnormal values, etc.) may harm the convergence of the DNN 108. In the context of vehicle re-identification, sampling from different views (e.g., side view and front view) for the same identity may be more informative than repeatedly considering samples from the same view.

[0051] For non-limiting example, as at least with respect to Figures 2A-2C As described, various batch sampling variants may be used. For example, batch-wide (BA), batch-hard (BH), batch-weighted (BW), batch-sample (BS), or another sampling variant may be used. In one or more non-limiting examples, Figures 4A-4D As shown, BW and BS may provide the most accurate results regarding the prediction of DNN 108 after training.

[0052] BA is a uniform sampling technique that gives uniform weight to all samples in the batch. Figure 2A , each sample can be used (e.g., by the optimizer using the loss function 118), and each sample can be given a uniform weight (e.g., 1). However, a uniform weight distribution can ignore the contribution of important tricky (or difficult) samples because these tricky samples are often outweighted by the trivial (or easy) samples. BH is characterized by difficult data mining for each batch, where only the most difficult positive and negative samples (e.g., the most difficult for the DNN 108 to calculate accurately) are used for each anchor sample. However, the most difficult samples are often outliers, and outliers can cause inaccuracies. For example, when in fact the calculation is accurate and the labeling is incorrect, incorrectly labeled data (e.g., incorrect ground truth 116) can cause a sample to be diagnosed as difficult, resulting in inaccurate data being used for training.

[0053] In order to compensate for the shortcomings of BA and BH, BW and / or BS can be used. BW adopts a weighting scheme, in which samples are weighted based on the distance between the sample and the corresponding anchor, thereby giving more importance to information and more difficult samples compared to ordinary samples. BS uses the distribution of anchor to sample distance to mine positive and negative data for the anchor. For example, BS regards all distances as probabilities, and these probabilities are given to a multinomial distribution generator (or a categorical distribution generator). Then, the output indication of the generator should be used for negative samples and / or positive samples in the sample for training. The sample can be a single sample of each of the positive and negative. In this way, similar to BH, all weights can be given to a single sample, or the weight is 1. In some examples, the value of the distance may not be added to 1 (as generally assumed for distribution), but there is no problem, because the underlying implementation inherently solves this problem. Using BS also avoids deterministic sampling by using a probabilistic sampling method, thereby providing outlier protection for wrongly labeled data or for other outliers or abnormal values ​​in the data.

[0054] refer to Figure 2A , Figure 2A is a table including example equations for calculating weights for various sampling variants according to some embodiments of the present disclosure. Table 100 summarizes different ways of sampling positive p and negative n using different batch sampling variants. In Table 100, a is an anchor sample, N(a) is a subset of negative samples corresponding to anchor a, P(a) is a subset of positive samples corresponding to anchor a, w n represents the weight (importance) of the negative sample n, and w p Represents the weight (importance) of the positive sample p.

[0055] Figure 2B202 includes example distances of embeddings from anchor embeddings according to some embodiments of the present disclosure. For example, graph 202 includes distances of nine different samples from the anchor (in embedding space 112). Graph 202 may represent distances for positive samples, and similar graphs may be used for negative samples (except that shorter distances for negative samples will be penalized more). In some examples, the distances may be normalized (as in graph 202), while in other examples, the distances may not be normalized.

[0056] Figure 2C Included are diagrams 204A-204D, showing weights of various sampling variants according to some embodiments of the present disclosure. For example, diagram 204A includes an illustration of using BA on the distance from diagram 202. In such an example, each sample will be given the same weight (e.g., 0.1 in this non-limiting example). Diagram 204B contains an illustration of using BH, in which the hardest sample (e.g., predicted as the positive sample farthest from the anchor, even if they belong to the same object) is given full weight (e.g., 1.0 in this non-limiting example). Diagram 204C includes an illustration of using BW, in which samples are each weighted based on their distance from the anchor, so that the farther distance of the positive sample is more heavily weighted than the closer distance. This weighting will be reversed for negative samples, in which the closer samples will be more heavily weighted than the negative samples. Diagram 204D includes an illustration of using BS, in which each distance is converted into a probability, and the multinomial distribution generator generates an output indicating that sample 7 is the most effective sample for training. This may be because there is a higher probability for a distance of 0.8 corresponding to sample 7, thereby getting rid of the potential outlier of sample 9 captured using BH. As such, the BS sampling variant can be used to capture the most relevant samples due to the probabilistic nature of the sampling technique.

[0057] Reference again Figure 1 Once the positive and / or negative samples are mined using batch sampling 114, the mined samples can then be used by the optimizer using the loss function 118 to train the DNN 108. As such, because the samples used for training have already been mined (e.g., using BW and / or BS in a preferred embodiment), computational resources are reduced compared to conventional systems because the training set is fine-tuned and thus results in faster convergence. Additionally, the DNN 108 may be more accurate after training because outliers are pruned from the training set and more informative data points are used (or more heavily weighted relative to BW) to replace more mundane data points.

[0058] In some embodiments, the loss function 118 may include a contrastive loss function or a triplet loss function. However, as described herein, the triplet loss has been shown to be an effective loss function for training the DNN 108 (e.g., at least in Figure 4A). This accuracy of the DNN 108 using triplet loss may be a result of the additional context provided by using both positive and negative samples in the same term. The triplet loss forces data points from the same class to be closer to each other than data points from any other class. In a non-limiting example, the triplet loss function may be represented by the following equation (1):

[0059] l triplet (a,p,n)=[D ap -D an +α] + (1)

[0060] Another representation of the triplet loss includes the following equation (2):

[0061] l triplet (a) = [α + ∑ p∈p(a) w p D ap -∑ n∈N(a) w n D an ] + (2)

[0062] As such, the total loss in a training epoch can be obtained according to the following equation (3):

[0063]

[0064] In some embodiments, the margin α in the triplet loss function can be replaced by the SoftPlus function ln(1+exp(·)) to avoid the need to adjust the margin.

[0065] refer to Figure 3 , Figure 3is an illustration of training a DNN to predict embeddings using a triplet loss according to some embodiments of the present disclosure. For example, first image data representing anchor image 202A may be applied to an instantiation of DNN 108A to generate embedding 110A, second image data representing positive image 202B may be applied to an instantiation of DNN 108B to generate embedding 110B, and third image data representing negative image 202C may be applied to an instantiation of DNN 108C to generate embedding 110C. Ground truth 116 may indicate that positive image 202B includes the same vehicle as anchor image 202A, and negative image 202C includes a different vehicle than anchor image 202A. As such, as part of an optimizer or training machine for DNN 108, embeddings 110A, 110B, and 110C may be applied to a triplet loss function 204 to update parameters (e.g., weights and biases) of DNN 108. For example, in the case where the vehicle in the positive image 202B is far away from the vehicle of the anchor image 202A in the embedding space 112, the triplet loss function 204 can be used to update the DNN 108 to predict that the embedding 110B is closer to the embedding 110A in subsequent iterations. Similarly, in the case where the vehicle in the negative image 202C is close to the vehicle of the anchor image 202A in the embedding space 112, the triplet loss function 204 can be used to update the DNN 108 to predict the embedding 110C to be farther away from the embedding 110A in subsequent iterations. In some examples, as described herein, batch sampling variants (such as BS or BW) can be used to select and / or weight the positive image 202B and the negative image 202C.

[0066] In order to test and validate different combinations of training, batch sampling variants, hyperparameters, and DNN architectures, different evaluation metrics are used. For example, mean AP (mAP) and top k accuracy are used to evaluate and compare different methods. For example, in a re-identification evaluation setting, there may be a query set and a gallery set. For each vehicle in the query set, the goal or objective may be to retrieve similar identities from the gallery set. As such, the AP (q) for a query image q may be defined according to the following equation (4):

[0067]

[0068] Where k is the rank, P(k) is the precision at rank k, and N gt (q) is the total number of true retrievals of q, when the match between the query image q and the gallery image is correct at rank ≤ k, δ k is 1. mAP is then calculated as the average of all query images according to the following equation (5):

[0069]

[0070] Where Q is the total number of query images.

[0071] Reference now Figure 4A , Figure 4A 4 is a table 400 according to some embodiments of the present disclosure, which includes the results of testing a dataset using contrastive loss or triplet loss and normalization or no normalization layer. For example, table 400 includes example results for the VeRi dataset, which includes 1678 query images and 11579 images in a gallery collection. For each query image, the gallery collection contains images with the same query identity but taken from different cameras (a key evaluation criterion) because the same vehicle captured by different cameras includes visually dissimilar samples. Table 400 includes the results of using triplet loss and contrastive loss on the VeRi dataset, and using a normalization layer on the embedding and not using a normalization layer on the embedding. As shown, the combination of BS, triplet loss and no normalization layer produces the most accurate results relative to mAP, top-1 and top-5, while BA, triplet loss and no normalization produces the most accurate results relative to top-2 (although BS is only slightly less effective).

[0072] See now Figure 4B , Figure 4B 4 is a table 402 including test results on a dataset using different sampling variants according to some embodiments of the present disclosure. For example, table 402 includes results using a PKU-VD training set, which includes two sub-datasets VD1 and VD2. Both training sets include approximately 400,000 training images, and the test set of each sub-dataset is divided into three reference sets: small (VD1: 106,887 images; VD2: 105,550 images), medium (VD1: 604,432 images; VD2: 457,910 images), and large (VD1: 1,097,649 images; VD2: 807,260 images). Due to the size of the PKU-VD dataset, DNN 108 can be trained from scratch. In addition, due to the number of in-class samples, the batch size for triplet loss can be increased in some embodiments. Table 402 shows the mAP of different batch sampling variants on two sub-datasets of the PKU-VD dataset. As indicated, for VD1, BW outperforms the other sampling variants on the small training set, and BH outperforms the other sampling variants on the medium and large datasets of VD1. However, for VD2, BW outperforms every other sampling variant in each of the small, medium, and large datasets. In addition, for all datasets, each of the sampling variants outperforms BA.

[0073] See now Figure 4C and Figure 4D , Figure 4C and Figure 4DTables 404 and 406 are respectively according to some embodiments of the present disclosure, including test results of data sets using various sampling variants. For example, Tables 404 and 406 include the results of a vehicle ID training set with a front view and a rear view of a vehicle. The vehicle ID training set includes small (800 identities), medium (1600 identities), large (2400 identities) and extra large (13164 identities). For each reference set, examples or anchors for each identity are randomly selected, and a gallery set is constructed. The process is repeated ten times to obtain an average evaluation metric. The results in Tables 404 and 406 include the results of embedding DNN without using a normalization layer. Table 404 uses a batch size (PK) of 18x16, and Table 406 uses a batch size (PK) of 18x4. As indicated in Tables 404 and 406, BS and BW outperform other sampling variants.

[0074] See now Figure 5 , each block of the method 500 described herein includes a computing process that can be performed using any combination of hardware, firmware, and / or software. For example, different functions can be performed by a processor executing instructions stored in a memory. The method 500 can also be embodied as computer usable instructions stored on a computer storage medium. To name a few, the method 500 can be provided by a stand-alone application, a service or a hosted service (standalone or in combination with another hosted service), or a plug-in for another product. In addition, by way of example, Figure 1 The method 500 is described with reference to the process 100 of FIG. However, this method may additionally or alternatively be performed by any system or any combination of systems, including but not limited to the systems or any combination of systems described herein.

[0075] Figure 5 is a flow chart illustrating a method 500 for training a deep neural network to predict an embedding for object re-identification according to some embodiments of the present disclosure. At block B502, the method 500 includes computing data representing an embedding corresponding to an embedding space. For example, the DNN 108 may compute the embedding 110 corresponding to the embedding space 112.

[0076] At block B504, method 500 includes computing a first set of distances between the anchor embedding and each positive embedding and a second set of distances between the anchor embedding and each negative embedding. For example, where triplet loss is used, a first distance in embedding space 112 may be determined for each positive embedding and anchor embedding, and a second distance in embedding space 112 may be determined for each negative embedding and anchor embedding.

[0077] At block B506, method 500 includes determining a first distribution corresponding to the first distance and a second distribution corresponding to the second distance. In one or more embodiments, one or both of these distributions may be a multinomial distribution, a categorical distribution, or both. For example, BS may be used to calculate a first multinomial distribution for positive samples and a second multinomial distribution for negative samples.

[0078] At block B508, method 500 includes selecting a positive embedding associated with a first highest probability and a negative embedding associated with a second highest probability. For example, a positive embedding with a highest probability from among a plurality of positive embeddings in the batch may be selected, and a negative embedding with a highest probability from among a plurality of negative embeddings in the batch may be selected.

[0079] At block B510, method 500 includes training a neural network using positive embeddings and negative embeddings. For example, positive embeddings and negative embeddings may be applied to an optimizer or training machine to update parameters of DNN 108.

[0080] Figure 6 6 is a block diagram of an example computing device 600 suitable for implementing some embodiments of the present disclosure. The computing device 600 may include a bus 602 that directly or indirectly couples the following devices: a memory 604, one or more central processing units (CPUs) 606, one or more graphics processing units (GPUs) 608, a communication interface 610, an input / output (I / O) port 612, an input / output component 614, a power supply 616, and one or more presentation components 618 (e.g., a display).

[0081] although Figure 6 The various blocks of are shown as being connected via bus 602, but this is not intended to be limiting and is provided for clarity only. For example, in some embodiments, presentation components 618 such as a display device may be considered I / O components 614 (e.g., if the display is a touch screen). As another example, CPU 606 and / or GPU 608 may include memory (e.g., memory 604 may represent a storage device in addition to the memory of GPU 608, CPU 606, and / or other components). In other words, Figure 6 The computing devices described herein are illustrative only. No distinction is made between such categories as "workstations," "servers," "laptops," "desktops," "tablets," "client devices," "mobile devices," "handheld devices," "game consoles," "electronic control units (ECUs)," "virtual reality systems," "vehicle computers," and / or other device or system types, as all are considered Figure 6 within the range of computing devices.

[0082] The bus 602 may represent one or more buses, such as an address bus, a data bus, a control bus, or a combination thereof. The bus 602 may include one or more bus types, such as an Industry Standard Architecture (ISA) bus, an Extended Industry Standard Architecture (EISA) bus, a Video Electronics Standards Association (VESA) bus, a Peripheral Component Interconnect (PCI) bus, a Peripheral Component Interconnect Express (PCIe) bus, and / or another type of bus.

[0083] Memory 604 may include any of a variety of computer-readable media. Computer-readable media may be any available media that can be accessed by computing device 600. Computer-readable media may include volatile and non-volatile media, as well as removable and non-removable media. By way of example and not limitation, computer-readable media may include computer storage media and communication media.

[0084] Computer storage media may include volatile and nonvolatile media and / or removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules, and / or other data types. For example, memory 604 may store computer-readable instructions (e.g., representing programs and / or program elements, such as an operating system). Computer storage media may include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, cassettes, magnetic tape, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by computing device 600. As used herein, computer storage media does not include the signals themselves.

[0085] Communication media may contain computer readable instructions, data structures, program modules, and / or other data types in a modulated data signal such as a carrier wave or other transmission mechanism, and include any information transport medium. The term "modulated data signal" may refer to a signal that has one or more of its characteristics set or changed in such a way that information is encoded into the signal. By way of example and not limitation, communication media may include wired media such as a wired network or a direct wired connection, and wireless media such as sound, RF, infrared, and other wireless media. Any combination of the above should also be included within the scope of computer readable media.

[0086] One or more CPUs 606 may be configured to execute computer-readable instructions to control one or more components of the computing device 600 to perform one or more of the methods and / or processes described herein. The CPU 606 may be used to perform one or more of the functions described herein at least with respect to the process 100. For example, the one or more CPUs 606 may be used to calculate embeddings, perform batch sampling, etc. during training and / or reasoning with respect to the DNN 108. Each of the one or more CPUs 606 may include one or more cores (e.g., one, two, four, eight, twenty-eight, seventy-two, etc.) capable of processing a large number of software threads simultaneously. The one or more CPUs 606 may include any type of processor, and may include different types of processors, depending on the type of computing device 600 implemented (e.g., a processor with fewer cores for a mobile device and a processor with more cores for a server). For example, depending on the type of computing device 600, the processor may be an ARM processor implemented using reduced instruction set computing (RISC) or an x86 processor implemented using complex instruction set computing (CISC). The computing device 600 may include one or more CPUs 606 in addition to one or more microprocessors or supplemental coprocessors such as math coprocessors.

[0087] One or more GPUs 608 may be used by the computing device 600 to render graphics (e.g., 3D graphics) and / or perform processing (e.g., parallel processing, general processing as a general purpose GPU (GPGPU), etc.). One or more GPUs 608 may be used to perform one or more of the functions described herein at least with respect to the process 100. For example, one or more GPUs 608 may be used to calculate embeddings, perform batch sampling, etc. during training and / or reasoning about the DNN 108. One or more GPUs 608 may include hundreds or thousands of cores capable of processing hundreds or thousands of software threads simultaneously. One or more GPUs 608 may generate pixel data for outputting an image in response to a rendering command (e.g., a rendering command received from one or more CPUs 606 via a host interface). One or more GPUs 608 may include graphics memory, such as display memory, for storing pixel data. The display memory may be included as part of the memory 604. One or more GPUs 708 may include two or more GPUs operating in parallel (e.g., via a link). When combined together, each GPU 608 can generate pixel data for a different portion of an output image or for a different output image (e.g., a first GPU for a first image and a second GPU for a second image). Each GPU can include its own memory, or can share memory with other GPUs.

[0088] In examples where computing device 600 does not include one or more GPUs 608 , one or more CPUs 606 may be used to render graphics and / or perform other tasks within process 100 .

[0089] The communication interface 610 may include one or more receivers, transmitters, and / or transceivers that enable the computing device 700 to communicate with other computing devices via an electronic communication network including wired and / or wireless communications. The communication interface 610 may include components and functionality for enabling communication over any of a number of different networks, such as a wireless network (e.g., Wi-Fi, Z-wave, Bluetooth, Bluetooth LE, ZigBee, etc.), a wired network (e.g., communicating over Ethernet), a low power wide area network (e.g., LoRaWAN, SigFox, etc.), and / or the Internet.

[0090] The I / O ports 612 can enable the computing device 600 to be logically coupled to other devices including I / O components 614, one or more presentation components 618, and / or other components, some of which can be built into (e.g., integrated into) the computing device 600. Illustrative I / O components 614 include microphones, mice, keyboards, joysticks, gamepads, game controllers, satellite dishes, scanners, printers, wireless devices, and the like. The I / O components 614 can provide a natural user interface (NUI) that processes air gestures, voice, or other physiological inputs generated by a user. In some instances, the input can be transmitted to an appropriate network element for further processing. The NUI can implement any combination of voice recognition, stylus recognition, facial recognition, biometric recognition, gesture recognition on and near the screen, air gestures, head and eye tracking, and touch recognition associated with the display of the computing device 600 (as described in more detail below). The computing device 600 may include a depth camera for gesture detection and recognition, such as a stereo camera system, an infrared camera system, an RGB camera system, touch screen technology, and combinations of these. Additionally, computing device 600 may include an accelerometer or gyroscope that enables detection of motion (e.g., as part of an inertial measurement unit (IMU)). In some examples, computing device 600 may use the output of the accelerometer or gyroscope to render an immersive augmented reality or virtual reality.

[0091] The power supply 616 may include a hardwired power supply, a battery power supply, or a combination thereof. The power supply 616 may provide power to the computing device 600 to enable the components of the computing device 600 to operate.

[0092] The one or more presentation components 618 may include a display (e.g., a monitor, a touch screen, a television screen, a head-up display (HUD), other display types, or combinations thereof), speakers, and / or other presentation components. The one or more presentation components 618 may receive data from other components (e.g., one or more GPUs 608, one or more CPUs 606, etc.) and output data (e.g., as images, video, sound, etc.).

[0093] The present disclosure may be described in the general context of computer code or machine-usable instructions, including computer-executable instructions (such as program modules) executed by a computer or other machine (such as a personal data assistant or other handheld device). In general, program modules, including routines, programs, objects, components, data structures, etc., refer to code that performs a specific task or implements a specific abstract data type. The present disclosure may be practiced in a variety of system configurations, including handheld devices, consumer electronics, general-purpose computers, vehicle computers, cloud-based computers, client / server architectures, distributed computer architectures, more specialized computing devices, etc. The present disclosure may also be practiced in a distributed computing environment in which tasks are performed by remote processing devices linked through a communication network.

[0094] As used herein, the description of "and / or" about two or more elements should be interpreted as referring to only one element or a combination of elements. For example, "element A, element B and / or element C" can include only element A, only element B, only element C, element A and element B, element A and element C, element B and element C, or elements A, B and C. In addition, "at least one of element A or element B" can include at least one of element A, at least one of element B, or at least one of element A and at least one of element B. Further, "at least one of element A and element B" can include at least one of element A, at least one of element B, or at least one of element A and at least one of element B.

[0095] The subject matter of the present disclosure is described in detail herein to meet statutory requirements. However, the description itself is not intended to limit the scope of the present disclosure. On the contrary, the inventors have contemplated that the claimed subject matter may also be embodied in other ways to include steps different from the steps described herein in conjunction with other current or future technologies or combinations of similar steps. Moreover, although the terms "step" and / or "frame" may be used herein to imply different elements of the method employed, these terms should not be interpreted as implying any particular order among or between the various steps disclosed herein, unless the order of the various steps is explicitly described.

Claims

1. A method comprising: Tracking an object between a first sensor data instance and a second sensor data instance, the tracking comprising: computing a first embedding in an embedding space using a neural network and based on at least the first sensor data instance; computing a second embedding in the embedding space using the neural network and based on at least the second sensor data instance; and Based at least on a calculated distance between the first embedding and the second embedding in the embedding space, it is determined that the first embedding and the second embedding correspond to the object.

2. The method according to claim 1, further comprising: computing a third embedding in the embedding space using the neural network and based at least on at least one of the first sensor data instance, the second sensor data instance, or a third sensor data instance; as well as Based at least on a second calculated distance between the third embedding and at least one of the first embedding or the second embedding, it is determined that the third embedding does not correspond to the object. The method of claim 2 , wherein the second calculated distance is greater than the calculated distance.

4. The method according to claim 1, further comprising: Determining that the calculated distance is less than a threshold distance, wherein determining that the first embedding and the second embedding correspond to the object is based at least on the calculated distance being less than the threshold distance.

5. The method of claim 1 , wherein tracking the object comprises at least one of: spatially tracking the object with respect to sensor data generated using one or more sensors; or The object is tracked in time with respect to the sensor data generated using the one or more sensors.

6. The method of claim 1, wherein the embedding space comprises a dimension less than or equal to 128 units.

7. The method according to claim 1, wherein: The first sensor data instance is associated with at least one of a first illumination, a first scale, or a first viewpoint; the second sensor data instance being associated with at least one of a second illumination, a second scale, or a second viewpoint; as well as Based at least on a training process of the neural network, the neural network calculates the first embedding and the second embedding such that the first embedding and the second embedding are determined to correspond to the object even when at least one of the second illumination is different from the first illumination, the second scale is different from the first scale, or the second viewpoint is different from the first viewpoint.

8. The method according to claim 1, wherein: During training, one or more parameters of the neural network are updated by at least: computing a third embedding in the second embedding space using the neural network and based on at least a third sensor data instance; computing a fourth embedding in the second embedding space using the neural network and based on at least a fourth sensor data instance; as well as The one or more parameters of the neural network are updated based on at least a second calculated distance between the third embedding and the fourth embedding in the second embedding space and ground truth data indicating whether the third embedding and the fourth embedding correspond to the same object.

9. The method according to claim 1, wherein: During training, one or more parameters of the neural network are updated by at least: computing a third embedding in the second embedding space using the neural network and based on at least a third sensor data instance; computing a fourth embedding in the second embedding space using the neural network and based on at least a fourth sensor data instance; computing a fifth embedding in the second embedding space using the neural network and based on at least a fifth sensor data instance; determining a second computed distance between the fourth embedding and the third embedding in the second embedding space; determining a third computed distance between the fifth embedding and the third embedding in the second embedding space; as well as The one or more parameters of the neural network are updated based at least on the second calculated distance, the third calculated distance, and ground truth data, the ground truth data indicating that the third embedding corresponds to a second object, the fourth embedding corresponds to the second object, and the fifth embedding corresponds to a third object.

10. A system comprising: One or more processing units for: computing a first embedding in an embedding space using a neural network and based on at least a first sensor data instance; computing a second embedding in the embedding space using the neural network and based on at least a second sensor data instance; determining that the first embedding and the second embedding correspond to the object based at least on a calculated distance between the first embedding and the second embedding in the embedding space; The object is tracked between the first sensor data instance and the second sensor data instance based at least on the first embedding and the second embedding corresponding to the object.

11. The system according to claim 10, wherein the one or more processing units are further configured to: computing a third embedding in the embedding space using the neural network and based at least on at least one of the first sensor data instance, the second sensor data instance, or a third sensor data instance; and Based at least on a second calculated distance between the third embedding and at least one of the first embedding or the second embedding, it is determined that the third embedding does not correspond to the object.

12. The system of claim 11, wherein the second calculated distance is greater than the calculated distance.

13. The system of claim 11, wherein the one or more processing units are further configured to: A determination is made that the second calculated distance is greater than a threshold distance, wherein the third embedding is determined to correspond to the object based at least on the second calculated distance being greater than the threshold distance.

14. The system of claim 10, wherein the one or more processing units are further configured to: A determination is made that the calculated distance is less than a threshold distance, wherein the first embedding and the second embedding are determined to correspond to the object based at least on the calculated distance being less than the threshold distance.

15. The system of claim 10, wherein tracking the object comprises at least one of: spatially tracking the object between the first sensor data instance and the second sensor data instance; or The object is tracked in time between the first sensor data instance and the second sensor data instance.

16. The system of claim 10, wherein: The first sensor data instance indicates that the object is associated with at least one of a first illumination, a first scale, or a first viewpoint; the second sensor data instance indicating that the object is associated with at least one of a second illumination, a second scale, or a second viewpoint; as well as Based at least on a training process of the neural network, the neural network calculates the first embedding and the second embedding such that the first embedding and the second embedding are determined to correspond to the object even when at least one of the second illumination is different from the first illumination, the second scale is different from the first scale, or the second viewpoint is different from the first viewpoint.

17. The system according to claim 10, wherein: During training, one or more parameters of the neural network are updated by at least: computing a third embedding in the second embedding space using the neural network and based on at least a third sensor data instance; computing a fourth embedding in the second embedding space using the neural network and based on at least a fourth sensor data instance; as well as The one or more parameters of the neural network are updated based on at least a second calculated distance between the third embedding and the fourth embedding in the second embedding space and ground truth data indicating whether the third embedding and the fourth embedding correspond to the same object.

18. The system of claim 10, wherein: During training, one or more parameters of the neural network are updated by at least: computing a third embedding in the second embedding space using the neural network and based on at least a third sensor data instance; computing a fourth embedding in the second embedding space using the neural network and based on at least a fourth sensor data instance; computing a fifth embedding in the second embedding space using the neural network and based on at least a fifth sensor data instance; determining a second computed distance between the fourth embedding and the third embedding in the second embedding space; determining a third computed distance between the fifth embedding and the third embedding in the second embedding space; as well as The one or more parameters of the neural network are updated based at least on the second calculated distance, the third calculated distance, and ground truth data, the ground truth data indicating that the third embedding corresponds to a second object, the fourth embedding corresponds to the second object, and the fifth embedding corresponds to a third object.

19. A processor comprising: One or more processing units for tracking an object between a first sensor data instance and a second sensor data instance based at least on a calculated distance in an embedding space between a first embedding and a second embedding, the first embedding and the second embedding being calculated using a neural network.

20. The processor of claim 19, wherein the one or more processing units are further configured to determine that the first embedding and the second embedding correspond to the object based at least on the calculated distance between the first embedding and the second embedding in the embedding space.

21. The processor of claim 19, wherein the processor is included in at least one of: control systems for autonomous or semi-autonomous machines; Perception systems for autonomous or semi-autonomous machines; Object tracking systems for autonomous or semi-autonomous machines; Object tracking systems for geographic areas or physical locations; Systems for performing deep learning operations; Systems for virtual reality applications or augmented reality applications; Systems implemented using edge devices; A system implemented at least in part in a data center; or A system implemented at least in part using cloud computing resources.