Small-sample viewpoint estimation
Through the neural network architecture of the category-specific viewpoint estimation block and the category-independent feature extraction block, meta-learning and supervised learning are used to solve the problem of viewpoint estimation of unknown category objects in the existing technology, and achieve accurate inference and low-efficiency reasoning for new object categories. Sample training reduces annotation workload.
Patent Information
- Application Number
- CN202110138466.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-02-03
- Filing Date
- 2021-02-01
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-02-01
AI Technical Summary
The existing convolutional neural network (CNN) used for viewpoint estimation requires a large amount of annotated data for retraining, making it difficult to effectively infer the viewpoint of unknown categories of objects and is labor-intensive.
Adopting a neural network architecture of a category-specific viewpoint estimation block and a category-independent feature extraction block, through meta-learning and standard supervised learning, a network is trained that can learn viewpoint estimation from a small number of examples, adapt to new object categories, and exploit category-specific feature extraction and key The point detection module calculates viewpoints.
It achieves the viewpoint estimation capability for new object categories, reduces the number of samples needed for retraining, improves the accuracy of inference for unknown categories of objects, and reduces labor-intensive annotation work.
Smart Images

Figure CN113204988B_ABST
Abstract
Description
[0001] Claiming priority
[0002] This application claims the benefit of U.S. Provisional Application No. 62 / 801,498, filed on February 5, 2019, entitled “FEW-SHOTVIEWPOINT ESTIMATION,” the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to generating object viewpoints for images. Background Art
[0004] Estimating the viewpoint (e.g., azimuth, elevation, and yaw) of a rigid object relative to a camera is a fundamental problem in three-dimensional (3D) computer vision. This is crucial for applications such as robotics, 3D model retrieval, and reconstruction. The estimation is necessary because a single image, as a 3D projection, will not have enough information to determine the viewpoint of each object in the image. While it is possible to manually provide viewpoint estimates for objects by humans, such work would be labor-intensive and prone to inaccuracy.
[0005] To date, techniques for providing viewpoint estimation have relied on convolutional neural networks (CNNs) trained to infer viewpoint estimation of objects in images. However, these networks have been limited to providing viewpoint estimates for known classes of objects (i.e., classes of objects for which the network has been trained with many labeled examples). Therefore, to address unknown classes of objects (i.e., classes of objects that the network has not encountered during training) requires retraining the network using new examples of the unknown class, which in turn requires annotating thousands of new examples for retraining, which is labor intensive.
[0006] There is a need to address these and / or other problems associated with the prior art. Summary of the invention
[0007] Methods, computer-readable media, and systems for few-shot viewpoint estimation are disclosed. In use, a category-specific viewpoint estimation block of a neural network is trained to learn a unique viewpoint estimation network capable of inferring viewpoint estimates for any new object category. Additionally, multiple images of the new category are processed by a category-agnostic feature extraction block of the neural network to extract features of the objects in each of the images. Furthermore, using these features, a unique viewpoint estimation network capable of inferring viewpoint estimates for the new object category is learned. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1A flow chart of a method for learning a unique viewpoint estimation network capable of reasoning about viewpoint estimates for new object categories is shown in accordance with an embodiment.
[0009] Figure 2 A block diagram of a neural network framework for learning a unique viewpoint estimation network capable of reasoning about viewpoint estimates for new object categories is shown, according to an embodiment.
[0010] Figure 3 According to an embodiment, Figure 2 Block diagram of the category-independent feature extraction block of our framework.
[0011] Figure 4 According to an embodiment, Figure 2 Block diagram of the class-specific viewpoint estimation block of our framework.
[0012] Figure 5A Inference and / or training logic according to at least one embodiment is shown;
[0013] Figure 5B Inference and / or training logic according to at least one embodiment is shown;
[0014] Figure 6 illustrates the training and deployment of a neural network according to at least one embodiment;
[0015] Figure 7 An example data center system is shown in accordance with at least one embodiment. DETAILED DESCRIPTION
[0016] Figure 1 A flow chart of a method 100 for learning a unique viewpoint estimation network capable of reasoning about viewpoint estimation for new object categories according to an embodiment is shown. The method 100 may be performed by a processing unit, a program, a custom circuit, or a combination thereof.
[0017] As shown in operation 102, the class-specific viewpoint estimation block of the neural network is trained to learn a unique viewpoint estimation network capable of inferring viewpoint estimation for new object classes. In one embodiment, meta-learning may be used to train the class-specific viewpoint estimation block to learn the unique viewpoint estimation network. Meta-learning is further described below with reference to additional embodiments.
[0018] In another embodiment, the class-specific viewpoint estimation block can be trained to be able to learn a unique viewpoint estimation network from a small number (e.g., 3) of example image inputs for new object classes. Thus, a unique viewpoint estimation network can be learned specifically for the purpose of inferring viewpoint estimates for new object classes. New object classes are classes of objects for which the class-specific viewpoint estimation block has not yet been trained.
[0019] Additionally, as shown in operation 104, the multiple images of the new category are processed by the class-independent feature extraction block of the neural network to extract features of the object in each image. In one embodiment, the features of the object extracted by the class-independent feature extraction block may include a multi-modal heat map for the locations of visible key points on the object. In another embodiment, the features of the object extracted by the class-independent feature extraction block may include a high-level convolutional feature set of the object.
[0020] Furthermore, using these features, a unique viewpoint estimation network is learned that is capable of inferring viewpoint estimates for new object categories, as shown in operation 104. In this manner, the unique viewpoint estimation network can be used to process example images of new object categories to infer viewpoint estimates for the new object categories.
[0021] Now, more illustrative information about various optional architectures and features that can be used to implement the aforementioned framework will be given according to the needs of the user. It should be particularly noted that the following information is set forth for illustrative purposes and should not be interpreted as limiting in any way. Any of the following features can be optionally incorporated into or not exclude other features described.
[0022] Figure 2 A block diagram of a neural network framework 200 for learning a unique viewpoint estimation network capable of inferring viewpoint estimates for new object categories is shown, according to an embodiment.
[0023] As shown, the framework includes two main components: a class-independent feature extraction block 202 and a class-specific viewpoint estimation block 204. The class-independent feature extraction block 202 operates to extract generic features from the image that help improve the accuracy of downstream viewpoint estimation tasks. The class-independent feature extraction block 202 outputs the extracted features, which are used as input to the class-specific viewpoint estimation block 204.
[0024] The class-specific viewpoint estimation block 204 operates to learn a unique viewpoint estimation network for a new object class, and further uses the unique viewpoint estimation network to compute the viewpoints of all objects of the new object class (e.g., a new object type). In one embodiment, the class-specific viewpoint estimation block 204 computes the viewpoint by detecting a unique set of semantic keypoints (e.g., containing 3D, 2D, and depth values) via a unique viewpoint estimation network that uses a class-specific feature extraction module (f θcat ) and category-specific keypoint detection module (f θkey ).
[0025] Initially, a training set S containing a finite set of object categories is used trainTo train the category-independent feature extraction block 202 and the category-specific viewpoint estimation block 204. In one embodiment, the category-independent feature extraction block 202 is trained using standard supervised learning, and its weights are fixed for all subsequent training stages. In another embodiment, the category-specific viewpoint estimation block 204 is trained using meta-learning. The meta-learning training process is designed to make the category-specific viewpoint estimation block 204 an effective "learner" capable of learning a unique viewpoint estimation network from a small number of images for a new object category, where the learned unique viewpoint estimation network is then able to calculate the viewpoints of all objects of the new object category. In other words, the trained category-specific viewpoint estimation block 204 can be further fine-tuned using a small number of image examples of unknown (new) categories to form a unique viewpoint estimation network that can generalize well to other examples of the category.
[0026] To this end, at inference time, when encountering a new object category (i.e., an object category that was not present during training) and a class from another set S test Given a small number of labeled image examples, we create a unique viewpoint estimation network for the new object category, whose weights use the best weights θ learned during meta-learning * cat and θ * key Initialize with , and fine-tune the unique viewpoint estimation network using its labeled image examples. This results in a category-specific viewpoint network that generalizes well to other examples of this new object category.
[0027] The following figures and associated description describe the neural network architecture 200 and the training process of each component in more detail.
[0028] Figure 3 According to an embodiment, Figure 2 The framework 200 includes a class-independent feature extraction block 202 .
[0029] The first stage of the pipeline is the class-independent feature extraction block 202, which is trained and used to receive images 302 as input, and then extract features from those images 302 that are independent of the class of the object. In one embodiment, the class-independent feature extraction block 202 consists of two ResNet-18 style networks: a first ResNet-18 style network trained to extract multimodal heatmaps for the locations of some or all visible universal keypoints, and a second ResNet-18 style network trained to detect 8 semantic keypoints for all classes by optimizing the loss (whose first four convolutional blocks compute a high-level convolutional feature set of the same size), as described in more detail below with reference to Equation 6. The multimodal heatmaps and high-level features are concatenated into extracted features 308 and then input to the class-specific viewpoint estimation block 204.
[0030] In one embodiment, the class-independent feature extraction block 202 is trained via standard supervised stochastic gradient descent (SGD) learning. After training, its weights are fixed in all subsequent steps.
[0031] Figure 4 According to an embodiment, Figure 2 200 of the framework 200. In particular, Figure 4 An instance of the class-specific viewpoint estimation block 204 during training time is shown, as well as a separate instance during inference time (otherwise referred to as a unique viewpoint estimation network).
[0032] The class-specific viewpoint estimation block 204 is specific to each object class. It computes the 3D canonical shape for each class, as well as its 2D image projection and depth value. It also relates these quantities to compute the viewpoint of objects within that object class. Furthermore, the class-specific viewpoint estimation block 204 is trained via meta-learning to act as the best small-sample "learner" for any new object class.
[0033] architecture
[0034] Viewpoint Estimation via Semantic Keypoints
[0035] It is assumed that the class-specific viewpoint estimation block 204 does not know the 3D shape of any object of the new object class. Therefore, in order to compute the viewpoint of objects in the new object class, the class-specific viewpoint estimation block 204 is trained to estimate the 3D point set {(x k ,y k ,z k )|k=1…N c}, which together represent the entire category T in the object-centered coordinate system c (e.g., for the object category “chair”, the 3D point set may include the corners of a stroke graphical representation of a prototype chair with a backrest, a seat, and 4 legs). In addition, for each 3D point k, the category-specific viewpoint estimation block 204 detects its 2D image projection (u k ,v k ) and estimate its associated depth d k The set value of point k (x k ,y k ,z k ),(u k ,v k ),d k are called “semantic keypoints”. Finally, the viewpoint (rotation) of the object is obtained via orthogonal Procrustes by solving a set of equations that transform the k rotated and projected 3D canonical points (x k,y k ,z k ) and its 2D image position and depth estimate (u k ,v k ,d k Note that the class-specific viewpoint estimation block 204 is able to detect the projections of all visible and invisible 3D canonical points, thereby providing more data for estimating the viewpoint.
[0036] Semantic keypoint estimation
[0037] In order to locate the 2D image projection (u k ,v k ), the output of the network is a 2D heat map h k (u,v), which predicts the probability that the point is located at (u,v). It is produced by the spatial softmax layer. We obtain the final image coordinate (u) by taking the weighted sum of the row (u) and column (v) values. k ,v k ), as follows:
[0038] Equation 1
[0039]
[0040] The network is similarly calculated with h k (u,v) have the same depth value c k 2D mapping of (u,v), and three additional mappings for each dimension of its 3D canonical keypoints The final depth estimate d k and 3D key points (x k ,y k ,z k ) is calculated as follows:
[0041] Equation 2
[0042]
[0043] Class-specific keypoint estimation
[0044] In a given category T c In the case of θcat This is followed by a set of category-specific semantic keypoint detectors {f θkeyk |k=1…N c} to detect its unique N c semantic key points. Each key point detector f θkeyk detects a unique category-specific semantic keypoint k, while the feature extractor fθcat The common features required for all unique class-specific semantic keypoints are computed. Since the class-specific viewpoint estimation block 204 must accommodate multiple different classes with different numbers of semantic keypoints, it cannot have a fixed number of predefined keypoint detectors. In order to flexibly change the number of keypoint detectors for each novel object class, a meta-Siamese architecture can be used, which works as follows. For each new class T c , the general pre-trained key point detector (f θkey )Copy N c times, and train each replica to detect a unique keypoint k of the new category, thereby creating a unique and different number of semantic keypoints {f θkeyk |k=1…N c}Dedicated keypoint detector.
[0045] train
[0046] The goal is to train the class-specific viewpoint estimation block 204 to be an effective few-shot learner. In other words, its learned feature extractor f θ * cat and semantic keypoint detector f θ * key After fine-tuning with a small number of examples of the new class, it should effectively extract features for the new class and detect each of its unique keypoints separately. To learn the optimal weights θ* = {θ* cat ,θ* key}, using the Model-Agnostic Meta-Learning (MAML) algorithm, the optimal weights make the category-specific viewpoint estimation block 204 suitable for small-shot fine-tuning without catastrophically overfitting to new object categories.
[0047] MAML uses a standard optimization algorithm (e.g., SGD) to optimize a special meta-objective. In standard supervised learning, the goal is to minimize only the training loss of the task during each optimization iteration. However, the meta-objective in MAML is to explicitly minimize the generalization loss of the task after training the network with some of its labeled examples during each training iteration. In addition, it samples random tasks from a set of many such related tasks that can be used for training during each iteration. The following describes the optimal weights θ*={θ* ... cat ,θ* key} specific meta-training algorithm.
[0048] For viewpoint estimation, each object category is a unique task. During each iteration of meta-training, trainThe tasks include support set D s c and query set D q c , which contain object categories T c The term “shot” refers to the support set D s c The number of examples in . c This category of semantic keypoints will be generalized as a keypoint detector (f θkey )Copy N c times, to construct a The unique element Siamese keypoint detector is used to detect the keypoints in the key Initialize each θ keyk A class-specific keypoint detector is used to estimate the semantic keypoints of the support set for this task, and given the ground truth values, the following loss is computed:
[0049] Equation 3
[0050]
[0051] in and are the average L2 regression losses for correctly estimating the 2D and 3D locations of semantic keypoints and depth estimation, respectively. The λ parameter controls the relative importance of each loss term. The loss L is calculated as s Tc Parameters relative to the network and use that gradient in a single step of SGD to transform Updated to
[0052] Equation 4
[0053]
[0054] Next, use the updated model parameters Calculate the query set D for this object category q c The loss of L q Tc To calculate the query loss, in addition to the loss term described in Equation 3 above, a weighted concentration loss term is used:
[0055] Equation 5
[0056]
[0057] This forces the 2D keypoint heatmap h k The distribution of (u,v) at the predicted position (u k ,v k ). This concentration loss term helps improve the accuracy of 2D keypoint detection. The final query loss is:
[0058] Equation 6
[0059]
[0060] Network L q Tc The generalization loss of after training with only a few examples of a specific class is used as the final meta-objective to minimize the generalization loss in each meta-training iteration, and the initial parameters θ of the network are calculated against its query loss L using the following equation q Tc To optimize:
[0061] Equation 7
[0062]
[0063] Equation 8
[0064]
[0065] Repeat the meta-training iterations until the viewpoint estimation block converges to f θ* As shown in Algorithm 1 below. Note that in Equation 1, the general keypoint detector θ key The optimal weight is obtained by averaging all repeated keypoints θ keyk This design feature of the network and its parameters θ cat The shared class-level feature extractors of help improve the accuracy. They can effectively utilize all available keypoints to learn θ during meta-training cat and θ key This is especially important when training data is scarce.
[0066] Algorithm 1
[0067]
[0068] reasoning
[0069] In one embodiment, a unique viewpoint estimation network is executed to infer a viewpoint estimate for a new object category. For example, executing the unique viewpoint estimation network may include: receiving a small number of example images of the new category as input to a category-independent feature extraction module; extracting features of objects of the new category using the small number of example images by a category-specific feature extraction module; receiving the features of the objects of the new category as input to a category-specific keypoint detection module; and processing the features of the objects of the new category by the category-specific keypoint detection module to infer a viewpoint estimate for the new object category.
[0070] With respect to the above specific embodiments, by way of example, the viewpoint estimation block f learned via meta-learning θ* Ability to perform the task of adapting to unseen (i.e., new) object categories. Similar to meta-training, new categories can be identified with the same or similar sample size as that used for training. A unique viewpoint estimation network can be constructed by minimizing the loss of Equation 3 and fine-tuning it with a small number of image examples of the new class. This results in a unique best few-shot trained network for the new class
[0071] To improve the performance of neural networks on unknown object categories, the above figures and related descriptions provide a category-level few-shot viewpoint estimation technique that uses a unique framework that successfully adapts to unknown categories with a small number of labeled examples and helps improve their performance without additional annotation work (i.e., annotation work required for a small number of examples).
[0072] Machine Learning
[0073] Deep neural networks (DNNs), including deep learning models, developed on the processors have been used in a variety of use cases, from self-driving cars to faster drug development, from automatic image annotation in online image databases to intelligent real-time language translation in video chat applications. Deep learning is a technology that mimics the neural learning process of the human brain, constantly learning, getting smarter, and providing more accurate results faster over time. Initially, adults teach children how to correctly identify and classify various shapes, and eventually they can recognize shapes without any guidance. Similarly, deep learning or neural learning systems need to be trained in object recognition and classification as it becomes smarter and more effective in identifying basic objects, occluded objects, etc., while also assigning context to objects.
[0074] At the simplest level, neurons in the human brain look at the various inputs they receive, assign a level of importance to each of these inputs, and pass outputs to other neurons to act on them. An artificial neuron, or perceptron, is the most basic model of a neural network. In one example, a perceptron may receive one or more inputs representing various features of an object that the perceptron is being trained to recognize and classify, and assign a weight to each of these features based on the importance of that feature in defining the shape of the object.
[0075] Deep neural network (DNN) models include multiple layers of many connected nodes (e.g., perceptrons, Boltzmann machines, radial basis functions, convolutional layers, etc.), which can be trained with large amounts of input data to solve complex problems quickly and with high accuracy. In one example, the first layer of a DNN model breaks down an input image of a car into its parts and looks for basic patterns such as lines and angles. The second layer assembles the lines to look for higher-level patterns such as wheels, windshields, and rearview mirrors. The next layer identifies the type of vehicle, and the last few layers generate labels for the input image to identify the model of a specific car brand.
[0076] Once trained, a DNN can be deployed and used to recognize and classify objects or patterns in a process known as inference. Examples of inference (the process by which a DNN extracts useful information from a given input) include recognizing handwritten numbers on a check deposited into an ATM, identifying images of friends in photos, providing movie recommendations to over 50 million users, recognizing and classifying different types of cars, pedestrians, and road hazards in a self-driving car, or translating human speech in real time.
[0077] During training, data flows through the DNN in a forward propagation phase until a prediction is produced indicating the label corresponding to the input. If the neural network does not label the input correctly, the error between the correct and predicted labels is analyzed and the weights of each feature are adjusted in a backpropagation phase until the DNN correctly labels the input and other inputs in the training dataset. Training complex neural networks requires a large amount of parallel computing performance, including floating-point multiplications and additions. Inference, which is less computationally intensive than training, is a latency-sensitive process in which the trained neural network is applied to new inputs that it has never seen before to classify images, translate speech, and generally reason about new information.
[0078] Reasoning and training logic
[0079] As mentioned above, a deep learning or neural learning system needs to be trained to generate inferences from input data. Figure 5A and / or Figure 5B Details are provided regarding the inference and / or training logic 515 for a deep learning or neural learning system.
[0080] In at least one embodiment, the inference and / or training logic 515 may include, but is not limited to, a data store 501 for storing forward and / or output weights and / or input / output data corresponding to neurons or layers of a neural network trained and / or used for inference in aspects of one or more embodiments. In at least one embodiment, the data store 501 stores weight parameters and / or input / output data for each layer of a neural network trained or used in conjunction with one or more embodiments during forward propagation of input / output data and / or weight parameters during inference and / or training using aspects of one or more embodiments. In at least one embodiment, any portion of the data store 501 may be included with other on-chip or off-chip data stores, including the processor's L1, L2, or L3 cache or system memory.
[0081] In at least one embodiment, any portion of data storage 501 may be internal or external to one or more processors or other hardware logic devices or circuits. In at least one embodiment, data storage 501 may be cache memory, dynamic random addressable memory ("DRAM"), static random addressable memory ("SRAM"), non-volatile memory (e.g., flash memory), or other storage device. In at least one embodiment, the choice of whether data storage 501 is internal or external to the processor, for example, or composed of DRAM, SRAM, flash memory, or other types of memory, depends on the available storage on-chip versus off-chip, the latency requirements for performing training and / or inference functions, the batch size of data used in inferencing and / or training neural networks, or some combination of these factors.
[0082] In at least one embodiment, the inference and / or training logic 515 may include, but is not limited to, a data store 505 for storing reverse and / or output weights and / or input / output data corresponding to the layers or neurons of the neural network trained and / or used for inference in aspects of one or more embodiments. In at least one embodiment, the data store 505 stores the weight parameters and / or input / output data of each layer of the neural network trained or used in conjunction with one or more embodiments during the back propagation of input / output data and / or weight parameters during training and / or inference using aspects of one or more embodiments. In at least one embodiment, any portion of the data store 505 may be included with other on-chip or off-chip data stores, including the L1, L2, or L3 cache or system memory of a processor. In at least one embodiment, any portion of the data store 505 may be internal or external to one or more processors or other hardware logic devices or circuits. In at least one embodiment, the data store 505 may be a cache memory, DRAM, SRAM, non-volatile memory (e.g., flash memory), or other memory. In at least one embodiment, the choice of whether data storage 505 is internal or external to the processor, e.g., still comprised of DRAM, SRAM, flash memory, or other storage types, depends on available on-chip versus off-chip storage, latency requirements for performing training and / or inference functions, batch sizes of data used in inferencing and / or training neural networks, or some combination of these factors.
[0083] In at least one embodiment, data store 501 and data store 505 may be separate storage structures. In at least one embodiment, data store 501 and data store 505 may be the same storage structure. In at least one embodiment, data store 501 and data store 505 may be partially the same storage structure and partially separate storage structures. In at least one embodiment, any portion of data store 501 and data store 505 may be included with other on-chip or off-chip data stores, including the processor's L1, L2, or L3 cache or system memory.
[0084] In at least one embodiment, the inference and / or training logic 515 may include, but is not limited to, one or more arithmetic logic units ("ALUs") 510 to perform logic and / or arithmetic operations based at least in part on or directed by training and / or inference code, the results of which may result in activations (e.g., output values from a layer or neuron within a neural network) stored in activation storage 520 as a function of input / output and / or weight parameter data stored in data store 501 and / or data store 505. In at least one embodiment, the activations stored in activation storage 520 are generated based on linear algebra and / or matrix-based mathematics performed by ALU 510 in response to executing instructions or other code, wherein weight values and / or data 501 stored in data store 505 are used as operands along with other values (e.g., bias values, gradient information, momentum values, or other parameters or hyperparameters), any or all of which may be stored in data store 505 or data store 501 or other on-chip or off-chip memory. In at least one embodiment, one or more ALUs 510 are included in one or more processors or other hardware logic devices or circuits, while in another embodiment, one or more ALUs 510 may be external to the processor or other hardware logic device or circuit (e.g., a coprocessor) that uses them. In at least one embodiment, ALUs 510 may be included within the execution unit of the processor, or otherwise included in an ALU library accessible to the execution unit of the processor, which may be within the same processor or distributed between different processors of different types (e.g., central processing unit, graphics processing unit, fixed function unit, etc.). In at least one embodiment, data storage 501, data storage 505, and activation storage 520 may be on the same processor or other hardware logic device or circuit, while in another embodiment, they may be in different processors or other hardware logic devices or circuits, or in some combination of the same and different processors or other hardware logic devices or circuits. In at least one embodiment, any portion of activation storage 620 may be included with other on-chip or off-chip data storage, including the processor's L1, L2, or L3 cache or system memory. Additionally, inference and / or training code may be stored with other code accessible to a processor or other hardware logic or circuitry and may be retrieved and / or processed using the processor's fetch, decode, schedule, execute, exit, and / or other logic circuitry.
[0085] In at least one embodiment, activation storage 520 may be cache memory, DRAM, SRAM, non-volatile memory (e.g., flash memory), or other memory. In at least one embodiment, activation storage 520 may be completely or partially within or external to one or more processors or other logic circuits. In at least one embodiment, the choice of whether activation storage 520 is internal or external to the processor, for example, or composed of DRAM, SRAM, flash memory, or some other storage type, depends on the available storage on-chip versus off-chip, the latency requirements for performing training and / or inference functions, the batch size of data used in inferencing and / or training neural networks, or some combination of these factors. In at least one embodiment, Figure 5A The inference and / or training logic 515 shown in FIG. 5 can be integrated with an application specific integrated circuit (“ASIC”) (e.g., an ASIC from Google) Processing unit, either the Inference Processing Unit (IPU) from GraphcoreTM or the Intel (e.g., "Lake Crest") processor). In at least one embodiment, Figure 5A The illustrated inference and / or training logic 615 may be used in conjunction with central processing unit (“CPU”) hardware, graphics processing unit (“GPU”) hardware, or other hardware such as a field programmable gate array (“FPGA”).
[0086] Figure 5B Inference and / or training logic 515 is shown in accordance with at least one embodiment. In at least one embodiment, the reasoning and / or training logic 515 may include, but is not limited to, hardware logic, where computing resources are dedicated or otherwise dedicated to use in conjunction with weight values or other information corresponding to one or more layers of neurons within a neural network. In at least one embodiment, Figure 5B The inference and / or training logic 515 shown in FIG. 5 can be integrated with an application specific integrated circuit (ASIC) (e.g., Google's Processing unit, Graphcore TM Inference Processing Unit (IPU) from Intel (e.g., "Lake Crest") processor). In at least one embodiment, Figure 5B The inference and / or training logic 515 shown may be used in conjunction with central processing unit (CPU) hardware, graphics processing unit (GPU) hardware, or other hardware (e.g., field programmable gate array (FPGA)). In at least one embodiment, the inference and / or training logic 515 includes, but is not limited to, data storage 501 and data storage 505, which may be used to store weight values and / or other information, including bias values, gradient information, momentum values, and / or other parameter or hyperparameter information. Figure 5B In at least one embodiment shown in , each of data store 501 and data store 505 is associated with a dedicated computing resource (e.g., computing hardware 502 and computing hardware 506), respectively. In at least one embodiment, each of computing hardware 506 includes one or more ALUs, and the one or more ALUs perform mathematical functions (e.g., linear algebraic functions) only on the information stored in data store 501 and data store 505, respectively, and the results are stored in activation storage 520.
[0087] In at least one embodiment, each of the data stores 501 and 505 and the corresponding computing hardware 502 and 506 corresponds to a different layer of the neural network, thereby providing the resulting activation of one "storage / compute pair 501 / 502" from the data store 501 and the computing hardware 502 as an input to the "storage / compute pair 505 / 506" of the next data store 505 and the computing hardware 506 to mirror the conceptual organization of the neural network. In at least one embodiment, each storage / compute pair 501 / 502 and 505 / 506 can correspond to more than one neural network layer. In at least one embodiment, additional storage / compute pairs (not shown) can be included in the inference and / or training logic 515 after or in parallel with the storage / compute pairs 501 / 502 and 505 / 506.
[0088] Neural network training and deployment
[0089] Figure 6 Another embodiment for training and deploying a deep neural network is shown. In at least one embodiment, an untrained neural network 606 is trained using a training data set 602. In at least one embodiment, the training framework 604 is a PyTorch framework, while in other embodiments, the training framework 604 is Tensorflow, Boost, Caffe, Microsoft Cognitive Toolkit / CNTK, MXNet, Chainer, Keras, Deeplearning4j, or other training frameworks. In at least one embodiment, the training framework 604 trains an untrained neural network 606 and enables it to be trained using the processing resources described herein to generate a trained neural network 608. In at least one embodiment, weights may be randomly selected or selected using a deep belief network. In at least one embodiment, training may be performed in a supervised, partially supervised, or unsupervised manner.
[0090] In at least one embodiment, supervised learning is used to train the untrained neural network 606, where the training data set 602 includes inputs paired with expected outputs of the inputs, or where the training data set 602 includes inputs with known outputs, and the outputs of the neural network are manually graded. In at least one embodiment, the untrained neural network 606 is trained in a supervised manner to process inputs from the training data set 602 and compare the resulting outputs to a set of expected or expected outputs. In at least one embodiment, errors are then propagated back through the untrained neural network 606. In at least one embodiment, the training framework 604 adjusts the weights that control the untrained neural network 606. In at least one embodiment, the training framework 604 includes tools for monitoring the condition that the untrained neural network 606 is converging towards a model such as a trained neural network 608, which is suitable for generating a correct answer such as an outcome 614 based on known input data such as new data 612. In at least one embodiment, the training framework 604 repeatedly trains the untrained neural network 606 while adjusting the weights to improve the output of the untrained neural network 606 using a loss function and an adjustment algorithm (e.g., stochastic gradient descent). In at least one embodiment, training framework 604 trains untrained neural network 606 until untrained neural network 606 reaches a desired accuracy. In at least one embodiment, trained neural network 608 can then be deployed to perform any number of machine learning operations.
[0091] In at least one embodiment, the untrained neural network 606 is trained using unsupervised learning, where the untrained neural network 606 attempts to train itself using unlabeled data. In at least one embodiment, the unsupervised learning training data set 602 will include input data without any associated output data or "ground truth" data. In at least one embodiment, the untrained neural network 606 can learn the groupings within the training data set 602 and can determine how the various inputs are related to the untrained data set 602. In at least one embodiment, unsupervised training can be used to generate a self-organizing map, which is a trained neural network 608 that is capable of performing operations useful for reducing the dimensionality of the new data 612. In at least one embodiment, unsupervised training can also be used to perform anomaly detection, which allows identification of data points in the new data set 612 that deviate from the normal pattern of the new data set 612.
[0092] In at least one embodiment, semi-supervised learning can be used, which is a technique in which the training data set 602 includes a mixture of labeled data and unlabeled data. In at least one embodiment, the training framework 604 can be used to perform incremental learning, such as through a transfer learning technique. In at least one embodiment, incremental learning enables the trained neural network 608 to adapt to new data 612 without forgetting the knowledge injected into the network during initial training.
[0093] Data Center
[0094] Figure 7 An example data center 700 is shown in which at least one embodiment may be used. In at least one embodiment, data center 700 includes a data center infrastructure layer 710, a framework layer 720, a software layer 730, and an application layer 740.
[0095] In at least one embodiment, Figure 7 As shown, the data center infrastructure layer 710 may include a resource coordinator 712, grouped computing resources 714, and node computing resources ("node CRs") 716(1)-716(N), where "N" represents any complete positive integer. In at least one embodiment, the node CRs 716(1)-716(N) may include, but are not limited to, any number of central processing units ("CPUs") or other processors (including accelerators, field programmable gate arrays (FPGAs), graphics processors, etc.), storage devices (e.g., dynamic read-only memories), memory devices (e.g., solid-state or disk drives), network input / output ("NW I / O") devices, network switches, virtual machines ("VMs"), power modules and cooling modules, etc. In at least one embodiment, one or more of the node CRs 716(1)-716(N) may be servers having one or more of the above-mentioned computing resources.
[0096] In at least one embodiment, the computing resources 714 of the grouping can include a separate grouping of node CRs housed in one or more racks (not shown), or a separate grouping of many racks housed in a data center at each geographical location (also not shown). The separate grouping of node CRs within the computing resources 714 of the grouping can include computing, networks, memory or storage resources that can be configured or allocated to support the grouping of one or more workloads. In at least one embodiment, several node CRs including a CPU or a processor can be grouped in one or more racks to provide computing resources to support one or more workloads. In at least one embodiment, one or more racks can also include any combination of any number of power modules, cooling modules and network switches.
[0097] In at least one embodiment, resource coordinator 722 may be configured to or otherwise control one or more nodes CR 716(1)-716(N) and / or grouped computing resources 714. In at least one embodiment, resource coordinator 722 may include a software design infrastructure ("SDI") management entity for data center 700. In at least one embodiment, resource coordinator 722 may include hardware, software, or some combination thereof.
[0098] In at least one embodiment, Figure 7 As shown, the framework layer 720 includes a job scheduler 732, a configuration manager 734, a resource manager 736, and a distributed file system 738. In at least one embodiment, the framework layer 720 may include a framework for supporting the software 732 of the software layer 730 and / or one or more applications 742 of the application layer 740. In at least one embodiment, the software 732 or the application 742 may include a web-based service software or application, such as a service or application provided by Amazon Web Services, Google Cloud, and Microsoft Azure. In at least one embodiment, the framework layer 720 may be, but is not limited to, a free and open source software network application framework, such as Apache Spark TM (hereinafter referred to as "Spark") that can utilize the distributed file system 738 for large-scale data processing (e.g., "big data"). In at least one embodiment, the job scheduler 732 may include a Spark driver to facilitate the scheduling of workloads supported by various layers of the data center 700. In at least one embodiment, the configuration manager 734 may be able to configure different layers (e.g., the software layer 730 and the framework layer 720 including Spark) and a distributed file system 738 for supporting large-scale data processing. In at least one embodiment, the resource manager 736 can manage clustered or grouped computing resources mapped to or allocated to support the distributed file system 738 and the job scheduler 732. In at least one embodiment, the clustered or grouped computing resources can include grouped computing resources 714 at the data center infrastructure layer 710. In at least one embodiment, the resource manager 736 can coordinate with the resource coordinator 712 to manage these mapped or allocated computing resources.
[0099] In at least one embodiment, software 732 included in software layer 730 may include software used by node CRs 716(1)-716(N), grouped computing resources 714, and / or at least a portion of distributed file system 738 of framework layer 720. One or more types of software may include, but are not limited to, Internet web page search software, email virus scanning software, database software, and streaming video content software.
[0100] In at least one embodiment, the applications 742 included in the application layer 740 may include one or more types of applications used by at least a portion of the node CRs 716(1)-716(N), the grouped computing resources 714, and / or the distributed file system 738 of the framework layer 720. The one or more types of applications may include, but are not limited to, any number of genomics applications, cognitive computing, and machine learning applications, including training or inference software, machine learning framework software (e.g., PyTorch, TensorFlow, Caffe, etc.), or other machine learning applications used in conjunction with one or more embodiments.
[0101] In at least one embodiment, any of the configuration manager 734, resource manager 736, and resource coordinator 712 can implement any number and type of self-modification actions based on any number and type of data acquired in any technically feasible manner. In at least one embodiment, the self-modification actions can relieve a data center operator of the data center 800 from making potentially bad configuration decisions and can avoid underutilization and / or poor performance of portions of the data center.
[0102] In at least one embodiment, the data center 700 may include tools, services, software, or other resources to train one or more machine learning models or use one or more machine learning models to predict or infer information according to one or more embodiments described herein. For example, in at least one embodiment, a machine learning model may be trained by calculating weight parameters according to a neural network architecture using the software and computing resources described above with respect to the data center 700. In at least one embodiment, by using weight parameters calculated by one or more training techniques described herein, information may be inferred or predicted using trained machine learning models corresponding to one or more neural networks using the resources described above with respect to the data center 700.
[0103] In at least one embodiment, the data center can use a CPU, an application-specific integrated circuit (ASIC), a GPU, an FPGA, or other hardware to use the above resources to perform training and / or reasoning. In addition, one or more of the above software and / or hardware resources can be configured as a service to allow users to train or perform reasoning information, such as image recognition, speech recognition, or other artificial intelligence services.
[0104] Reasoning and / or training logic 615 is used to perform reasoning and / or training operations associated with one or more embodiments. In at least one embodiment, reasoning and / or training logic 615 can be used in the system Figure 7to perform inference or prediction operations based at least in part on weight parameters computed using the neural network training operations, neural network functions and / or architectures, or neural network use cases described herein.
[0105] As described herein, methods, computer readable media, and systems for small sample viewpoint estimation are disclosed. Figure 1-Figure 4 , an embodiment may provide a neural network that can be used to perform inference operations and provide inferred data, wherein Figure 5A and Figure 5B , where the neural network is stored (partially or completely) in one or both of the data stores 501 and 505 in the inference / or training logic 515. The training and deployment of the neural network can be as follows Figure 6 as shown and described herein. Figure 7 As shown and described herein, distribution of the neural network may be performed using one or more servers in data center 700 .
Claims
1. A method for viewpoint estimation, comprising: At the device: training a class-specific viewpoint estimation block of a neural network using meta-learning to be able to learn a unique viewpoint estimation network capable of inferring viewpoint estimates for new object classes for which the class-specific viewpoint estimation block has not been trained; processing a plurality of images of the new object category by a class-independent feature extraction block of the neural network to extract features of the object in each of the plurality of images, wherein the class-independent feature extraction block is trained to extract common features from objects included in a finite set of object categories; Using the features, the unique viewpoint estimation network is learned that is capable of inferring viewpoint estimates for the new object class.
2. The method of claim 1, wherein the class-independent feature extraction block is trained using supervised learning and a training set of a finite set of the object categories.
3. The method according to claim 1, wherein the features of the object extracted by the class-independent feature extraction block include: a multimodal heatmap for the locations of visible keypoints on the object, and A set of high-level convolutional features for the object.
4. The method of claim 1 , wherein the unique viewpoint estimation network uses a category-specific feature extraction module trained to extract features from objects included in the new object category and a category-specific keypoint detection module trained to detect a unique set of semantic keypoints of target objects of the new object category. 5 . The method according to claim 4 , wherein the category-specific feature extraction module extracts the features from the objects included in the new object category from some example image inputs for the new object category.
6. The method of claim 5, wherein the category-specific keypoint detection module uses the features extracted from the objects included in the new object category to detect a unique set of semantic keypoints for the target object of the new object category for calculating the viewpoint of the target object.
7. The method according to claim 6, wherein the unique set of semantic key points comprises: a set of 3D points that represents the canonical shape for the new class of target objects, a 2D image projection of each of the 3D points, and The depth at which each 2D image is projected. The method according to claim 7 , wherein the 3D point set includes visible points and invisible points.
9. The method according to claim 1, further comprising: The unique viewpoint estimation network is executed to infer the viewpoint estimate for the new object class.
10. The method of claim 9, wherein executing the unique viewpoint estimation network comprises: receiving some example images of the new object category as input to a category-specific feature extraction module trained to extract features from objects included in the new object category; extracting features of objects of the new object category using the some of the example images by the category-specific feature extraction module; receiving the features of objects of the new object class as input to a class-specific keypoint detection module trained to detect a unique set of semantic keypoints of target objects of the new object class; The features of objects of the new object class are processed by the class-specific keypoint detection module to infer the viewpoint estimate for the new object class.
11. A system for viewpoint estimation, comprising: non-transitory memory storage including instructions; and one or more processors in communication with the memory, wherein the one or more processors execute instructions to: training a class-specific viewpoint estimation block of a neural network using meta-learning to be able to learn a unique viewpoint estimation network capable of inferring viewpoint estimates for new object classes for which the class-specific viewpoint estimation block has not been trained; processing a plurality of images of the new object category by a class-independent feature extraction block of the neural network to extract features of the object in each of the plurality of images, wherein the class-independent feature extraction block is trained to extract common features from objects included in a finite set of object categories; as well as Using the features, the unique viewpoint estimation network is learned that is capable of inferring viewpoint estimates for the new object class.
12. The system of claim 11, wherein the class-independent feature extraction block is trained using supervised learning and a training set of a finite set of the object classes.
13. The system of claim 11, wherein the features of the object extracted by the class-independent feature extraction block include: a multimodal heatmap for the locations of visible keypoints on the object, and A set of high-level convolutional features for the object.
14. The system of claim 11, wherein the unique viewpoint estimation network uses a category-specific feature extraction module trained to extract features from objects included in the new object category and a category-specific keypoint detection module trained to detect a unique set of semantic keypoints of target objects of the new object category.
15. The system of claim 14, wherein the category-specific feature extraction module extracts the features from the objects included in the new object category from some example image inputs for the new object category.
16. The system of claim 15, wherein the category-specific keypoint detection module uses the features extracted from the objects included in the new object category to detect a unique set of semantic keypoints for the target object of the new object category for computing the viewpoint of the target object.
17. The system of claim 16, wherein the unique set of semantic keypoints comprises: a set of 3D points that represents the canonical shape for the new class of target objects, a 2D image projection of each of the 3D points, and The depth at which each 2D image is projected. The system of claim 17 , wherein the 3D point set includes visible points and invisible points.
19. A non-transitory computer readable medium storing computer instructions that, when executed by one or more processors of a device, cause the one or more processors of the device to: training a class-specific viewpoint estimation block of a training neural network using meta-learning to be able to learn a unique viewpoint estimation network capable of reasoning about viewpoint estimates for new object classes for which the class-specific viewpoint estimation block has not been trained; processing a plurality of images of the new object category by a class-independent feature extraction block of the neural network to extract features of the object in each of the plurality of images, wherein the class-independent feature extraction block is trained to extract common features from objects included in a finite set of object categories; and Using the features, the unique viewpoint estimation network is learned that is capable of inferring viewpoint estimates for the new object class.
