Polygonal object annotation system and method and method for training object annotation system
Combining CNN and RNN through the polygon representation model, using reinforcement learning and graph neural networks, it solves the time-consuming problem of object instance segmentation and labeling, and achieves efficient and robust object labeling, which is suitable for fields such as autonomous driving, medicine, and aviation.
Patent Information
- Application Number
- CN201980021377.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-12-21
- Filing Date
- 2019-03-25
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2039-03-25
AI Technical Summary
The annotation process for object instance segmentation in the prior art is time-consuming and inefficient, especially since human annotators are required to manually annotate each object in the image, resulting in long data collection and annotation times.
The polygon representation model is used to combine the CNN encoder, RNN loop decoder and evaluator network to predict the polygon vertices of the object through image features, and use reinforcement learning and graph neural networks to improve the output resolution and labeling efficiency.
It significantly reduces the time for object labeling, improves labeling efficiency and resolution, can achieve high-quality object labeling in applications in fields such as autonomous driving, medicine, and aviation, and is robust to noise and out-of-domain data sets.
Smart Images

Figure CN111902825B_ABST
Abstract
Description
Technical Field
[0001] This specification relates generally to object annotation, and more particularly to object annotation of polygons. Background Art
[0002] Detailed reasoning about structures or objects in an image is helpful for many computer vision applications. For example, in the autonomous driving domain, it is often critical to locate and outline all cars, pedestrians, and various static and dynamic objects. For mapping, detailed footprints of buildings and roads are often required from aerial or satellite imagery, while the medical and healthcare domains often require automatic methods to accurately outline cells, tissues, and other relevant structures.
[0003] Neural networks are sometimes an effective way to infer semantic and object instance segmentation information in challenging imagery. Typically, the amount and variety of data a network sees during training greatly affects its performance at runtime. However, collecting ground truth instance masks can be a very time-consuming task, requiring a human annotator to spend 20-30 seconds on each object in an image.
[0004] Since manual annotation of object instance segmentation can be time consuming, some methods try to speed up this process using interactive techniques. In some methods, scribbles are used to model the appearance of foreground and background and segmented via graph-cuts. Some methods use multiple scribbles on both the object and the background and have been used to annotate objects in videos.
[0005] In some methods, a convolutional neural network ('CNN') is trained using scribbles for semantic image segmentation. In one method called GrabCut, 2D bounding boxes provided by annotators are utilized and pixel-wise foreground and background labeling is performed using the Expectation Maximum method ('EM'). In some methods, GrabCut is combined with a convolutional net to annotate structures in the imagery. In some methods, cars are segmented pixel-wise by utilizing a 3D point cloud within a 3D bounding box provided by the user.
[0006] Many methods for object instance segmentation work on the pixel level. Many methods rely on object detection and use convolutional nets on box schemes for labeling. Although in some works, polygons are generated around objects. Some methods first detect boundary fragments and then find the best loop linking the boundary to the object region. Some methods generate superpixels in the form of small polygons and further group them into objects.
[0007] In some approaches, polygonal object representation has been introduced as an alternative to labeling each individual pixel. One benefit of polygonal object representation is that it is sparse; large image regions are represented by only a few vertices in the polygon. This can allow the user to easily introduce any corrections by correcting erroneous vertices, for example. Recurrent Neural Networks ('RNN') can also provide a powerful model as it captures a non-linear shape representation, effectively capturing the typical shape of an object. This can be particularly important in ambiguous cases such as imagery containing shading and saturation.
[0008] For example, Polygon-RNN is a conceptual model for semi-automatic and interactive tagging to help speed up object annotation. Rather than producing pixel-level segmentations of objects as in some interactive tools such as Grabcut, Polygon-RNN predicts the vertices of polygons that outline the object. The polygonal representation can provide several benefits: it is sparse, representing areas with a large number of pixels with only a few vertices; it can interact more easily with annotators; and the model may be able to directly take annotator input to re-predict better polygons subject to correction constraints. In some embodiments, polygonal representation models have shown high annotation speedups on autonomous driving datasets.
[0009] Further improvements to the polygon representation model could also speed up labeling time, improve neural network learning of the polygon representation model, and increase the output resolution of the polygons. Summary of the invention
[0010] In an embodiment of the present invention, a method for labeling an object is provided, the method comprising: receiving an image depicting an object; generating an image feature set using a CNN encoder implemented on one or more computers; predicting a first vertex prediction set using the image feature set; generating a polygonal representation set of the object using a recurrent decoder utilizing the first vertex prediction set and the image feature set, the recurrent decoder comprising an RNN implemented on one or more computers; and selecting polygonal object labeling from the polygonal representation set using an evaluator network.
[0011] In an embodiment of the present invention, a system for object annotation is provided, the system comprising: a CNN encoder implemented by one or more computers to generate image features from a received image, the image features being used to predict a first vertex for object annotation; a recurrent decoder for generating a polygonal representation set of an object in the received image, the recurrent decoder comprising an RNN implemented by one or more computers; and an evaluator network for selecting polygonal object annotations from the polygonal representation set.
[0012] In an embodiment of the present invention, a method for training an object labeling system having a CNN encoder, an RNN recurrent decoder, and an evaluator network is provided, the method comprising: receiving a training dataset; using a managed learning environment training (such as maximum likelihood learning) to initiate a training sequence for setting one or more weight matrices of the object labeling system; and using reinforcement learning to fine-tune the one or more weight matrices of the object labeling system to produce a trained object labeling system.
[0013] In another embodiment of the present invention, a method for annotating an object is provided, the method comprising: receiving an image depicting an object, the image comprising an n-dimensional array-like data structure; generating an image feature set using a CNN encoder implemented on one or more computers; initializing a set of N nodes from the image feature set, the set of N nodes forming a closed curve along a circle centered on the image; using a graph neural network (GNN) to simultaneously predict the position offset of each node; iterating the prediction of each node by the GNN, each iteration defining a new position offset of each node based on the node position of each node from the previous iteration; and generating an object annotation based on a final iteration; wherein the object is parameterized using one of a polygon and a spline.
[0014] In another embodiment of the present invention, a system for object annotation is provided, the system comprising: a CNN encoder implemented by one or more computers for generating an image feature set from a received image, the image comprising an n-dimensional array-like data structure, and for initializing a set of N nodes from the image feature set, the set of N nodes forming a closed curve along a circle centered on the image; a graph neural network (GCN), implemented by one or more computers for simultaneously predicting the position offset of each node and iterating the prediction of each node through the GNN, each iteration defining a new position offset of each node based on the node position of each node from the previous iteration; and an output selector for generating an output based on a final iteration from the GNN.
[0015] In another embodiment of the present invention, a non-transitory computer-readable medium is provided, the non-transitory computer-readable medium including instructions for a method for labeling an object, the method including: receiving an image depicting an object, the image including an n-dimensional array-like data structure; generating an image feature set using a CNN encoder implemented on one or more computers; predicting a first vertex prediction set using the image feature set; generating a polygon prediction set for the object using a loop decoder using the first vertex prediction set and the image feature set, the loop decoder being implemented on one or more computers; and selecting a polygon object label from the polygon prediction set.
[0016] In another embodiment of the present invention, a non-transitory computer-readable medium is provided, the non-transitory computer-readable medium comprising instructions for a method for annotating an object, the method comprising: receiving an image depicting an object, the image comprising an n-dimensional array-like data structure; generating an image feature set using a CNN encoder implemented on one or more computers; initializing a set of N nodes from the image feature set, the set of N nodes forming a closed curve along a circle centered on the image; using a graph neural network (GNN) to simultaneously predict the position offset of each node; iterating the prediction of each node by the GNN, each iteration defining a new position offset of each node based on the node position of each node from the previous iteration; and generating an object annotation based on a final iteration; wherein the object is parameterized using one of a polygon and a spline.
[0017] In another embodiment of the present invention, a non-transitory computer-readable medium is provided, the non-transitory computer-readable medium including instructions for a method for training an object labeling system having a CNN encoder, an RNN recurrent decoder, and an evaluator network, the method comprising: receiving a training data set; using a managed learning environment training to initiate a training sequence for setting one or more weight matrices of the object labeling system; and fine-tuning the one or more weight matrices of the object labeling system to produce a trained object labeling system. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The principles of the present invention may be better understood with reference to the accompanying drawings, which are provided by illustrating one or more exemplary embodiments in conjunction with the principles and aspects of the present invention, and in which:
[0020] Figure 1 Examples of four dataset images are shown;
[0021] Figure 2 Schematic diagrams showing aspects of the embodiments;
[0022] Figure 3 Schematic diagrams showing aspects of the embodiments;
[0023] Figure 4 Schematic diagrams showing aspects of the embodiments;
[0024] Figure 5 Schematic diagrams showing aspects of the embodiments;
[0025] Figure 6 shows a representation of experimental results of an embodiment;
[0026] Figure 7shows a representation of experimental results of an embodiment;
[0027] Figure 8 shows a representation of experimental results of an embodiment;
[0028] 9A to 9D shows a representation of experimental results of an embodiment;
[0029] Fig.10 An example of an image annotated with an implementation scheme is shown;
[0030] Fig.11 An example of an image annotated with an implementation scheme is shown;
[0031] Fig.12 An example of an image annotated with an implementation scheme is shown;
[0032] Fig.13 shows an example of an image annotated with an implementation scheme;
[0033] Fig.14 A flow chart showing an implementation scheme is shown;
[0034] Fig.15 A schematic diagram of an implementation scheme is shown;
[0035] Fig.16 A flow chart showing an implementation scheme is shown;
[0036] Fig.17 Schematic diagrams showing aspects of the embodiments;
[0037] Fig.18 A representation of one aspect of an embodiment is shown;
[0038] Fig.19 Schematic diagrams showing aspects of the embodiments;
[0039] Fig. 20 An example of an image annotated with an implementation scheme is shown;
[0040] Fig.21 shows an example of an image annotated with an implementation scheme;
[0041] Fig. 22 An example of an image annotated with an implementation scheme is shown;
[0042] Fig.23A and Fig. 23B shows a representation of experimental results of an embodiment;
[0043] Fig.24 shows a representation of experimental results of an embodiment;
[0044] Fig.25An example of an image annotated with an implementation scheme is shown;
[0045] Fig.26 An example of an image annotated with an implementation scheme is shown;
[0046] Fig. 27 The method of the present invention according to an alternative embodiment is shown; and
[0047] Fig.28 A system of the present invention according to an alternative embodiment is shown. DETAILED DESCRIPTION
[0048] The following description and the embodiments described therein are provided by illustrating one or more examples of specific embodiments having the principles of the present invention. These examples are provided to explain rather than to limit these principles and the purpose of the present invention. In the following description, the same parts are marked with the same corresponding reference numerals throughout the specification and the drawings. The drawings are not necessarily drawn to scale, and in some cases the scale may be exaggerated to more clearly depict certain features of the present invention.
[0049] This description relates to improvements to polygonal representation models for object recognition, such as improvements to the polygon-RNN model disclosed in D1 (L. Castrejon, K. Kundu, R. Urtasun, and S. Fidler, Annotating Object Instances with Polygon-RNNs, in CVPR, 2017), which is incorporated by reference in its entirety. In particular, it relates to changes to the neural network architecture, a new learning algorithm for training the polygonal model using reinforcement learning, and improving the output resolution of polygons using a graph neural network. This description also relates to the robustness of the polygonal model with respect to noise and its ability to generalize to out-of-domain imagery.
[0050] This description relates to a fully automatic mode where the annotator is not in the loop and a semi-automatic mode where the annotator is in the loop. In the fully automatic mode, where the annotator is not in the loop, the changes disclosed herein to the existing polygonal model may result in improved "intersection over union" (IoU). In the interactive mode, where the annotator is in the loop, the changes to the existing polygonal model can significantly reduce human annotator clicks.
[0051] This description deals with online fine-tuning to achieve higher annotation speedup, such as on out-of-domain dataset annotations.
[0052] like Figure 1As shown at 1000 in FIG. 1 , the polygonal object recognition model can be applied to various dataset domains including autonomous driving images, medical images, and aerial images, and can also be applied to other general scenarios. In this sense, the image is an n-dimensional array-like data structure provided as system input. This input can be received as sensor data in an appropriate format, and known image types that can be input include RGB images, thermal images, depth images, and hyperspectral images.
[0053] 1. Current Model
[0054] The embodiment of the present application is an improved version of the polygon-RNN model disclosed in D1: polygon-RNN++. Polygon-RNN++ expects the annotator to provide a bounding box around the object of interest in the image. The polygon object recognition model then extracts an image crop surrounded by an enlarged box, where the enlarged box is enlarged by 15% from the bounding box provided by the annotator.
[0055] In some embodiments, the polygon model utilizes a CNN and RNN architecture, where the CNN is used as an image feature extractor and the RNN decodes one polygon vertex at a time. The output vertex can be represented as a position in a mesh.
[0056] exist Figure 2 In the embodiment schematically depicted in FIG, the encoder 2100 generates image features for predicting a first vertex 2200. The first vertex 2200 and the image features are used by a recurrent decoder 2300. This uses visual attention 2400 at each time step to generate polygons, one vertex 2600 at a time. The learned evaluator network 2500 selects the best polygon from the candidates proposed by the decoder 2300. Finally, the graph neural network 2700 generates a higher resolution polygon defined by the vertices 2800.
[0057] This model naturally incorporates humans in the loop, allowing the annotator to correct an incorrectly predicted vertex. This vertex is then fed back into the model, helping the model correct its prediction at the next time step.
[0058] 1.1. Residual Encoder with Skip Connections
[0059] Many networks perform repeated downsampling operations at successive layers of a CNN, which affects the effective output resolution in tasks such as image segmentation. However, in some implementations, such as Figure 3 The architecture depicted in 3000 modifies the ResNet-50 architecture by reducing the stride of the network and introducing a dilation factor, which increases the resolution of the output feature maps without reducing the receptive field of individual neurons. The original average pooling and fiber channel ('FC') layers are also removed.
[0060] Some embodiments of the present invention also include a skip layer architecture designed to capture low-level details such as edges and corners as well as high-level semantic information. In some models, downsampling is performed in a skip layer architecture built on top of the Visual Geometry Group ('VGG') before splicing features from different layers. However, in an embodiment of the present invention, all outputs of the skip layers are spliced at the highest possible resolution, and a combination of convolutional layers and maximum pooling operations is used to obtain the final feature map. For example, a convolutional filter with a 3×3 kernel size, batch normalization, and ReLU (rectified nonlinear unit) nonlinearity can be employed. In the case where the skip connections have different spatial dimensions, bilinear upsampling can be used before splicing. Figure 3 A representative architecture 3000 is depicted in FIG, where the final feature map is referred to as skip features 3200 .
[0061] 1.2. Loop Decoder
[0062] As in D1, embodiments of the present application use a recurrent neural network to model the sequence of 2D vertices of a polygon outlining an object. In some embodiments, a convolutional long short-term memory ('LSTM') is also used to preserve spatial information and reduce the number of parameters to learn.
[0063] The embodiment of the present application uses a two-layer ConvLTSM with a 3×3 kernel with 64 and 16 channels, respectively. The batch norm is applied to each time step without sharing the mean or variance estimates across time steps. The output at time step t is represented as a one-hot encoding of (D×D)+1 elements, where D is the resolution of the prediction. For example, D can be set to 28. The first D×D dimensions represent possible vertex positions, and the last dimension corresponds to the end-of-sequence marker, which indicates that the polygon is closed.
[0064] Attention-weighted features: A mechanism similar to attention can be utilized in RNNs. For example, at time step t, the weighted feature map can be calculated according to equation (1), where ○ is the Hadamard product, x is the skip feature tensor, and h 1,t and h 2,t is the hidden state tensor from the two-layer ConvLSTM. f1 and f2 use a fully connected layer to transform h 1,t and h 2,t Mapping to R D×D×128 .f att Take the sum of its inputs and map that sum to D×D through a fully connected layer, giving each position an "attention" weight.
[0065]
[0066] In some embodiments, the previous RNN hidden state is used to gate certain locations in the image feature map, allowing the RNN to focus only on relevant information in the next time step. The gated feature map F is then t With the two previous vertices y t-1 ,y t-2 It is concatenated with the one-hot encoding of the first vertex y0 and passed to the RNN at time step t.
[0067] First Vertex: In some embodiments, the next vertex of a polygon other than the first vertex is always uniquely defined given the previous vertex and an implicit direction. The first vertex can be treated as a special case. In some embodiments, a separately trained additional architecture can be used to predict it. In some embodiments, another branch can be added from the skip layer architecture, consisting of two layers, each of dimension D×D, the first layer predicting the edges and the second layer predicting the vertices of the polygon, where the first vertex is sampled from the last layer of this branch.
[0068] 1.3. Training using reinforcement learning
[0069] Training the model using cross entropy loss at each time step can have two limitations: the managed learning environment ('MLE') over-penalizes the model (e.g., when the predicted vertex is on the edge of the GT polygon but is not one of the GT vertices), and it optimizes a metric that is very different from the final evaluation metric (i.e., IoU). Training the model using 'teacher forcing', where the model is trained following a typical training scheme where the GT vertices are fed to the next time step instead of the model's predictions, can create a mismatch between training and testing, known as the exposure bias problem.
[0070] While this training technique may be used in some embodiments, in other embodiments, MLR training may be used only as an initialization phase. The polygon prediction task is reformulated as a reinforcement learning problem, and the network is fine-tuned using reinforcement learning ('RL'). During this phase, the network is allowed to discover a strategy that optimizes the desired, but non-differentiable evaluation metric (IoU), while also being exposed to its own predictions during training.
[0071] 1.3.1 Problem Statement
[0072] In an embodiment, the recurrent decoder is viewed as a sequential decision-making agent. The parameters θ of the encoder-decoder architecture define its choice of the next vertex v t Strategy p θAt the end of the sequence, the agent observes a reward r. The reward r is calculated as the IoU between the mask enclosed by the generated polygon and the ground truth mask. To maximize the expected reward, the loss function becomes function (2).
[0073]
[0074] in and is the vertex sampled from the model at time t. Here, m is the ground truth mask for a given object instance, and r = IoU(mask(v s ),m).
[0075] 1.3.2. Self-critical training with policy gradients
[0076] Some embodiments use the REINFORCE method to compute the gradient of the desired result in function (3).
[0077]
[0078] Some embodiments use Monte Carlo sampling with a single sample to compute the expected gradient. Without proper context-dependent normalization, this approach can exhibit high variance and can be very unstable. In some embodiments, a learned baseline can be used and the learned baseline can be subtracted from the reward. In some embodiments, a self-critical approach can be followed and the model's test-time inference reward is used as the baseline. Therefore, the gradient of the loss function can be restated as function (4).
[0079]
[0080] in is the reward obtained by the model using greedy decoding.
[0081] To control the level of randomness in the vertices explored by the model, in some embodiments, a temperature parameter τ is introduced in the softmax operation to obtain the probability distribution of the strategy. This ensures that the sampled vertices lead to well-behaved polygons. For example, τ can be set to 0.6.
[0082] 1.4. Evaluator Network
[0083] A carefully chosen first vertex can be important when the model does not have a strong history to reason about the object to be annotated, as it biases the RNN's initial predictions. This is especially important in the case of occluded objects. It may be desirable for the first vertex to be far away from the occlusion boundary so that the model follows the object of interest. In RNNs, beam search can be used to prune away impossible sequences (such as when the model starts following an occluded object). However, since classic beam search uses log-probability to evaluate beams, it may not be directly applicable to models designed to optimize IoU. Points on occlusion boundaries may exhibit strong edges and therefore may have high log-probability during prediction, reducing the likelihood that they will be pruned by beam search.
[0084] A solution to this problem might be to use an evaluator network at inference time, aiming to efficiently choose between multiple candidate polygons. The evaluator network takes as input the skip features, the last state tensor of the ConvLSTM, and the predicted polygons, and tries to assess their quality by predicting their IoU using a gamma test ('GT'). This network might have two 3×3 convolutional layers followed by a FC layer, forming another branch in the model. Figure 4 The architecture of an embodiment evaluator network is depicted in . While the full model can be trained end-to-end during the RL step, in some embodiments, the evaluator network can be trained separately after RL fine-tuning converges.
[0085] During training, the mean square error of function (5) can be minimized.
[0086]
[0087] Where p is the network’s predicted IoU, is the mask of sampled vertices and m is the ground truth mask. To ensure diversity of the vertices seen, the polygons may be sampled with τ = 0.3. In an embodiment, this network is not used as a baseline estimator during the RL training step, as the self-critical method may produce better results.
[0088] Inference: At test time, the K highest scoring first vertex predictions can be taken. For each of these, polygons are generated via a classic beam search (using log probabilities). This will produce K different polygons, one for each candidate first vertex. An evaluator network can be used to select the best polygon. For example, K=5 can be used. Although it is possible to use an evaluator network instead of a beam search at each time step, this may result in impractically long inference times. For example, it may be necessary to run the model at 36ms per object instance on a Titan XP.
[0089] Annotators in the loop: In the case of annotators in the loop, the annotator can correct the vertices in sequence. Each correction can then be fed back into the model, which can re-predict the rest of the polygon.
[0090] 1.5. Scaling up with graph neural networks
[0091] The model disclosed above can generate polygons with a resolution of D×D. For example, D can be set to 28 to meet the memory boundary and keep the cardinality of the output space unchanged. In other embodiments, a gated graph neural network (GGNN) can be used to generate polygons at higher resolutions. When training the RNN decoder, the GT polygons can be simplified (removing colinear vertices) at their target resolution to alleviate the ambiguity of the prediction task. Therefore, at higher resolutions, objects can have additional corners (vertices), effectively changing the topology of the polygon.
[0092] Some implementations are built on top of the sequence of polygon vertices generated by the RNN decoder. These vertices are considered nodes in a (cyclic) graph. To account for changes in geometry with higher resolution, a node is added between two consecutive nodes, at the middle of their corresponding edges. The last vertex is also connected to the first vertex, effectively converting the sequence into a cycle. Figure 5 As shown, three different types of edges are used to connect adjacent nodes. GGNN then defines a propagation model that extends RNN to arbitrary graphs, effectively propagating information between nodes and then producing output at each node. Here, the goal is to predict the relative offset of each node (vertex) at a higher resolution. In this way, GGNN can improve the prediction of the initial vertices of polygons that are less affected by the RNN history, and effectively scale up new and old vertices. Figure 5 The model is visualized in .
[0093] Gated Graph Neural Network: For completeness, the GGNN model is summarized. GGNN uses a graph {V,E}, where V and E are sets of nodes and edges, respectively. It includes a propagation model that performs message passing in the graph, and an output model for prediction tasks. The initial state of a node v is denoted by x v , and the hidden state of node v at time step t is expressed as The basic loop of the propagation model is listed in function (6).
[0094]
[0095] where the matrix A∈R |V|×2N|V|Determine how the nodes in the graph communicate with each other, where N represents the number of different edge types. The message is propagated T steps. The output of node v is then defined in function (7).
[0096]
[0097] where f1 and f2 are MLPs, and out v is the desired output of v.
[0098] Polygonal RNN++ with GGNN: To obtain the initial observations of the GGNN model, another branch can be added on top of the skip layer architecture, specifically from a 112×112×256 feature map (such as Figure 4 A concatenated feature map of ( ) can be added. A convolutional layer with 256 filters of size 15×15 can be used, giving a feature map of size 112×112×256. For each node v in the graph, the scaled (v x ,v y ) position, giving the observation vector x v The output of a node v is a position in the D′×D′ space grid. It can be compared with the position (v x ,v y ) to make this grid, so that the prediction task becomes a relative displacement relative to its initial position. This prediction is treated as a classification task and the model is trained with a cross entropy loss. In particular, the prediction from the RNN model can be taken, and if it deviates from the GT vertex by more than a threshold, the wrong prediction can be corrected. The goal at training time is then the relative displacement of each of these vertices relative to the GT.
[0099] Implementation details: In the implementation scheme, S is set to 1 and D′ is set to 112. Although the model can support higher output resolutions, a larger D′ may not reasonably improve the results. The hidden state of the GRU in the GGNN has a dimension of 256. T=5 propagation steps can be used. In the output model, f1 is a 256×256 FC layer, and f2 is a 256×15×15 MLP. In training, the predictions from the RNN are taken, and the vertex is replaced with a GT vertex if it deviates by more than 3 cells.
[0100] 1.6. Annotating New Domains via Online Fine-tuning
[0101] To simulate the annotation of a completely new dataset, based on a model trained on another model, an online fine-tuning scheme can be used, which uses humans in the loop to perform the annotation. Where C is the number of chunks the new data is divided into, CS is the chunk size, and N EV is the number of training steps of the estimator, and NMLE 、N RL are the number of training steps per block with MLE and RL, respectively. An example online fine-tuning is described in Algorithm 1, where PredictAndCorrect involves a (simulated) annotator in the loop. In the case of training on corrected data, the objective for MLE training can be smoothed by a Manhattan distance transform truncated at distance 2.
[0102]
[0103] 2. Experimental results
[0104] This paper presents an evaluation of an implementation of the above model. Automatic and interactive examples of annotation results on the Cityscapes dataset proposed in D2 (M. Cordts, M. Omran, S. Ramos, T. Rehfeld, M. Enzweiler, R. Benenson, U. Franke, S. Roth, and B. Schiele, Cityscapes Dataset for Semantic Urban Scene Understanding, in CVPR, 2016) are discussed and compared with strong pixel-level methods. The generalization ability of the models is then characterized by evaluating on: the KITTI dataset proposed in D3 (A. Geiger, P. Lenz, and R. Urtasun, Ready for Autonomous Driving? The KITTI Vision Benchmark Program Group, in CVPR, 2012) and four out-of-domain datasets spanning general scenarios proposed in D4 (B. Zhou, H. Zhao, X. Puig, S. Fidler, A. Barriuso, and A. Torralba, Scene Parsing via the ade20k Dataset, in CVPR, 2017); D5 for aerial scenarios presented in (X. Sun, CM Christoudias, and P. Fua, Localization of polygonal objects with free-form shapes, in ECCV, 2014); and for medical images presented in D6 (AH Kadish, D. Bello, JP Finn, RO Bonow, A. Schaechter, H. Subacius, C. Albert, JP Daubert, CG Fonsca, and JJ Goldberger, Principles and Design of Defibrillators for Risk Reduction through Evaluation by Magnetic Resonance Imaging (DETERMINE) trial, J Cardiovasc Electrophysiol, 20(9):982–7, 2009) and D7 (S. Gerhard, J. Funke, J. Martel, A. Cardona, and R. Fetter, Segmented Anisotropic ssTEM Dataset of Neural Tissue, figshare, 2013). Finally, an online fine-tuning scheme is evaluated, showing a significant reduction in annotation time for novel datasets. Given a user-provided ground truth box around the object, it is assumed. The robustness of the model to noise is further analyzed relative to these boxes, mimicking a noisy annotator.
[0105] 2.1. Domain annotation
[0106] The above models are first evaluated using the same domain in training and evaluation. This mimics the scenario of taking an existing dataset and using it to annotate novel images from the same domain. Currently, the Cityscapes dataset is one of the most comprehensive benchmarks for instance segmentation. It contains 2975 training, 500 validation, and 1525 test images with 8 semantic categories. To ensure a fair comparison, the same alternative splitting proposed in D1 is followed. The ground truth polygons can contain occluded parts of the instance, which are removed from the pixel-level labels using depth sorting. Following D1, the polygons are pre-processed according to the depth sorting to obtain polygons of only the visible area of each instance.
[0107] Evaluation Metrics: Models are evaluated using two quantitative measures: 1) the Intersection over Union ('IoU') metric is used to assess the quality of the generated polygons, and 2) counting the number of annotator clicks required to correct the predictions made by the model. The correction protocol is described in detail below.
[0108] Baselines: Following D1, the performance is compared to: DeepMask published in D8 (P.O. Pinheiro, R. Collobert, and P. Dollar, Learning to Segment Candidate Objects, in NIPS, pp. 1990–1998, 2015), SharpMask published in D9 (P.O. Pinheiro, T.-Y. Lin, R. Collobert, and P. Dollár, Learning to Refine Object Segmentation, 2016), and Polygon-RNN published in D1 as a state-of-the-art baseline. The first two methods are pixel-level methods, and the errors in their output may not be easily corrected by the annotator. Compare the automatic mode of the model disclosed in this paper. In their original methods, D8 and D9 exhaustively sample surface patches at different scales across the image. Here, we evaluate D8 and D9 by providing their models with accurate ground truth boxes.
[0109] As in D1, two additional baselines are also used, namely SquareBox as disclosed in D1 and Dilation10 as disclosed in D10 (F. Yu and V. Koltun, Multi-scale Context Aggregation via Dilated Convolutions, ICLR, 2016). SquareBox considers the provided bounding box as its prediction. Dilation10 is obtained from the segmentation results of D10 according to the model trained on the Cityscapes dataset.
[0110] Automatic Models: The current model, Polygon-RNN++, is compared to the baselines in Table 1, and the results are shown as a series of sub-models whose components are added to the basic Polygon-RNN model, and GGNN is added to other components to form the complete Polygon-RNN++. Here, the residual Polygon-RNN refers to the original Polygon-RNN model disclosed in D1, which has a novel image architecture instead of VGG. The results of other aspects of the added model are provided below the results of the residual Polygon-RNN. The full method performs nearly 10% higher than the best performer (i.e., the Polygon-RNN disclosed in D1) by IoU and achieves the best performance in each category. Polygon-RNN++ also exceeds the average human agreement of 78.6% IoU reported in D1 for cars. Using human agreement on cars as a proxy, the model also achieves human-level performance for truck and bus categories.
[0111]
[0112] Table 1
[0113] Interactive Mode: The interactive mode aims to minimize annotation time while obtaining high-quality annotations. Following the simulation proposed in D1, the number of annotator clicks required to correct a prediction from the model is calculated. The annotator corrects the prediction if it deviates from the corresponding ground-truth vertex by a minimum distance T, where a hyperparameter T controls the quality of the resulting annotations. For fair comparison, distances are computed using Manhattan distance at the model output resolution using a distance threshold T∈[1,2,3,4], as in D1.
[0114] In addition, a second threshold T2 is introduced, which is defined as the IoU between the predicted polygon and the GT mask, where polygons that achieve above T2 consistency are considered to not require annotator interference. This threshold is utilized because the correction simulation above is somewhat unsatisfactory: for example, if a predicted vertex falls along a GT polygon edge, this vertex is actually correct and should not be corrected. Note that in the extreme case of T2=1, the simulator assumes that every predicted polygon needs correction. In this case, the simulation is equivalent to the one proposed in D1.
[0115] exist Figure 6In , the average number of clicks per instance required to annotate all categories on the Cityscapes validation set (500 images) with different values of T2 is compared with D1's polygon-RNN when T2=1. With T2=1, our model outperforms D1's model, requiring fewer clicks to achieve the same IoU. At T2=0.8, the current model is still more accurate than D1's exposed polygon-RNN with T2=1.0. At T2=0.7, an average of only 5 clicks per object are required to achieve more than 80% mIoU, which is more than 50% lower than D1. As shown in Table 3, the hired human annotators require approximately 96 clicks to achieve an mIoU of 78.6, while our model only needs 3.75 clicks to achieve an mIoU of 88.3. Figure 7 The correction frequency required for different T when T2=0.8 is shown.
[0116]
[0117] Table 3
[0118] Robustness to bounding box noise: To simulate the effect of a lazy annotator, the effect of noise in the bbox provided to the model is analyzed. The bbox is randomly expanded by a percentage of its width and height. The results in Table 5 show that the model is very robust to a certain amount of noise (0-5%). Even in the presence of moderate and extreme noise (5-10%, 10-15%), it performs better than the performance reported by previous baselines using perfect bboxes.
[0119]
[0120] Table 5
[0121] 2.2. Cross-domain evaluation
[0122] In this section, the performance of the proposed model is evaluated on different datasets that capture the shift in environment (KITTI, as publicly available in D3) and domains (general scenes, aerial, medical). The used models were trained on Cityscapes without any fine-tuning on these datasets.
[0123] KITTI: Polygon-RNN++ is used to annotate 741 instances of KITTI. Results in automatic mode are reported in Table 4, and Figure 8Performance with human-in-the-loop is shown in . Our method outperforms all baselines, showing its robustness to environmental changes when in similar domains. With the annotator in the loop, our model requires an average of 5 fewer clicks than D1 to achieve the same IoU. Our model achieves 85% human-level agreement as reported in D11 (L.-C. Chen, S. Fidler, A. Yuille, and R. Urtasun, Beating mTurkers: Automatic Image Labeling from Weak 3D Supervision, in CVPR, 2014) with an average of only 2 clicks from the annotator.
[0124]
[0125] Table 4
[0126] 2.2.1 Overseas images
[0127] Datasets that exhibit different levels of domain shift from Cityscapes are considered to evaluate the generalization ability of our model.
[0128] ADE20K: ADE20K, released in D4, is a general scene parsing dataset containing 20,210 images in the training set, 2,000 images in the validation set, and 3,000 images in the test set. A subset of the following categories is selected from the validation set: TV receiver, bus, car, oven, person, and bicycle in our evaluation.
[0129] Aerial Imagery: The Aerial Rooftops dataset publicly available in D5 consists of 65 aerial images of rural scenes containing several building roofs, most of which exhibit fairly complex polygonal geometry. Performance on this dataset is reported for the test set.
[0130] Medical imaging [14, 31, 10]: Two medical segmentation datasets were used; one publicly available in D6 and D12 (A. Suinesiaputra, BR Cowan, A. O. Al-Agamy, M. A. Elattar, N. Ayache, A. S. F. Ahmy, A. M. Khalifa, P. Medrano-Gracia, M.-P. Jolly, A. H. Kadish, D. C. Lee, J. Margeta, S. K. Warfield, and A. A. Young, A collaborative resource to build consensus for automatic left ventricle segmentation from cardiac magnetic resonance images, Medical Image Analysis, 18(1):50–62, 2014) and the other publicly available in D7 for our experiments. The former (used for the left ventricle segmentation challenge in D12) splits the data of 200 patients equally into training and validation sets. The performance of our model is reported on a subset of the validation set that includes only the outer contours of the segmented epicardium. The latter provides two image stacks (training and testing), each containing 20 slices from serial section transmission electron microscopy (ssTEM) images of the ventral nerve cord. Mitochondria and synapses were segmented from this data for the present model. Since ground truth instances for the test stack are not publicly available, evaluation was performed on the training set.
[0131] Quantitative Results: For out-of-domain datasets, a baseline named Ellipse is introduced that makes an ellipse fit into the ground-truth bounding box. Since many instances in D12 are ellipses, this method is used in this test. Results are shown for square boxes and ellipses with perfect and extended bounding boxes (similar to the extension of our model). DeepMask and SharpMask are evaluated with perfect bounding boxes, where the threshold is suggested by the authors. Table 2 depicts some results, indicating the high generalization ability of our model.
[0132]
[0133] Table 2
[0134] Online Fine-tuning: In these experiments, the parameters of the simulated annotator were T=1 and T2=0.8. Figure 9 reports the percentage of clicks saved on the GT polygons relative to the Cityscapes model and the online fine-tuned model. The adaptive method overcomes the significant domain shift with only a single data block (40 Sunnybrook images, 3 ssTEM images, 200 ADE images, and 20 aerial images), showing strong generalization. Overall, the number of clicks is reduced by at least 65% overall for all datasets, with almost 100% for the Sunnybrook cardiac MRI dataset. These results suggest that the annotation tool may be able to learn together with the annotator and significantly reduce the human effort.
[0135] Qualitative results
[0136] Fig.10 An example forecast obtained in automatic mode based on Cityscapes is shown. Fig.11 Improvements from specific parts of the model are demonstrated in Figure 2. As shown, using RL and the estimator leads to cleaner predictions, while the GGNN can scale up, add points, and build polygons similar to human annotations. Fig.12 Demonstrated automatic predictions from polygon RNN++ on an out-of-domain dataset. Fig.12 The labeling results shown are obtained by leveraging the GT bounding boxes without fine-tuning.
[0137] Fig.13 Shows visualization of the attention maps in this model, where T is set to various levels.
[0138] 3. Method implementation plan
[0139] Fig.14 An embodiment of method 14000 is depicted in . Method 14000 is a method for annotating an object by representing the object as a polygonal outline. Method 14000 includes a step 14001 of receiving an image depicting an object. The object so received can then be processed by a CNN encoder at step 14002 to generate one or more image features. Then at step 14003, one or more first vertex predictions are generated using the one or more image features, wherein the first vertex predictions are used by a subsequent neural network as a basis for generating a polygonal representation of the image object.
[0140] One or more polygonal representations are then generated by the loop decoder at step 14004. The loop decoder can take one or more first vertex predictions and use each first vertex prediction to create a polygonal representation, which together can form a set of possible polygonal representations. At step 14005, the evaluator network can select an object annotation selection from the set of possible polygonal representations.
[0141] Then, at step 14006, the selected object annotation is fed into the provided gated graph neural network to increase the resolution of the polygonal representation. The GGNN can generate higher resolution polygons by adding a supplementary vertex prediction set to a primary vertex prediction set that defines the selected object annotation, defining a propagation model, and applying the model to adjust the positions of the vertices of the supplementary vertex prediction set and the vertices of the primary vertex prediction set. The gated graph neural network can use inputs from the CNN encoder and the recurrent decoder.
[0142] According to the implementation, the model generates an end-of-sequence marker when it considers the polygon complete, so the number of vertices is determined by the model itself.
[0143] The resulting higher resolution polygonal object annotations can then be applied, for example, to automated systems, such as those used for autonomous driving, map annotation, or medical image annotation.
[0144] 4. System implementation plan
[0145] In some embodiments, such as Fig.15 As depicted in , a system 15000 is provided to annotate one or more objects, such as to locate an object in an image. The system 15000 includes an input unit 15010 for receiving an image or other object carrying items for annotation. The system 15000 includes a system processor 15020 for processing the input. The system 15000 also includes an output or application unit 15030, such as a computer monitor or other display or an output unit for sending the annotated objects to a system, such as an autonomous driving system, a medical imaging system, or a mapping system.
[0146] In some embodiments, object annotation is applied to guide an automated system. For example, object annotation is applied to guide the operation of an autonomous driving system or to guide automated aspects or features of a driving system.
[0147] like Fig.15 As depicted, the system processor 15020 may include a CNN encoder 15021 for generating image features from a received image. The image features may then be used to predict the first vertex of an object annotation for use by a loop decoder 15022. The loop decoder 15022 may include an attention unit 15023 for visual attention, and an evaluator network 15024 for selecting a preferred polygonal representation from the polygonal representations generated by the loop decoder 15022.
[0148] The system processor 15020 may also include a gated graph neural network 15025 for generating a scaled-up polygonal representation of an object. The GGNN 15025 may include a propagation block 15026 and an output block 15027. The GGNN 15025 may receive outputs from the CNN encoder 15021, such as edge information, and may receive information from the loop decoder 15022, such as vertex information defining a polygon, such as a preferred polygon selected by the evaluator network 15024.
[0149] Although various elements, blocks, or units are depicted or described as being separate or as components of other elements, blocks, or units, in other embodiments, other arrangements of elements, blocks, or units may be employed.
[0150] 5. Other methods and implementation plans
[0151] like Fig.16 As depicted, another embodiment of the present invention may be a method 16000 for training an object annotation system. The method 16000 includes: receiving a training data set at step 16001; initiating a training sequence for setting one or more weight matrices of an object annotation system using a managed learning environment training at step 16002; and fine-tuning one or more weight matrices of an object annotation system using reinforcement learning at step 16003 to produce a trained object annotation system.
[0152] Method 16000 may also include: generating object annotation predictions for images of the training data set at step 16004; submitting the object annotation predictions for manual correction at step 16005; and generating manual corrections of the object annotation predictions at step 16006 and feeding the manual corrections back into the object annotation system to further train the object annotation system.
[0153] Method 16000 may also include fine-tuning the object annotation system using online fine-tuning at step 16007. Online fine-tuning involves training the prediction system as the user interacts with the annotation tool or platform. As the user interacts and creates new labeled data, the model can be trained on it to produce better annotations in subsequent use, thereby reducing future manual interactions.
[0154] It should be understood that although method steps have been described in a particular order and depicted as sequential to one another, one or more method steps may be performed simultaneously and, in some embodiments, method steps may be performed in an order different from that described and depicted.
[0155] All neural networks (such as the neural networks of system 15000), including the CNN of CNN encoder 15021 and the RNN of recurrent decoder 15022, can be implemented by one or more computers executing computer-readable instructions found on a computer-readable medium.
[0156] Alternative Implementation
[0157] As described above, vertices are predicted sequentially, however, additional speed may be gained via an implementation that predicts all vertices simultaneously.
[0158] In an alternative embodiment, object annotation is formulated as a regression problem, where the positions of all vertices are predicted simultaneously. Objects can be represented as graphs with fixed topology, and predictions are performed using graph neural networks (GNNs) such as graph convolutional networks (GCNs). The model can be used for interactive annotation and can be optimized. The framework can also allow objects to be parameterized using polygons or splines, thereby adding additional flexibility and efficiency to the interactive annotation process. This embodiment is referred to herein as Curve-GCN, and is end-to-end differentiable and runs in real time.
[0159] Object Annotation via Curve-GCN
[0160] The Curve-GCN framework annotates object instances with polygons or (closed) splines. To approximate curved contours, polygons with a large number of vertices may need to be drawn, which can be handled efficiently using splines with a few control points. The framework aims to achieve polygonal and spline representation of object contours.
[0161] A typical labeling scenario is followed, where the annotator is assumed to have selected the object of interest by placing a bounding box around it (see Acuna and Castreion). The image is cropped around this box and the object labeling within this crop is formulated as a regression problem to simultaneously predict the locations of all control points (vertices) from an initialization with a fixed topology. The model is first described from representation to inference, then training is discussed, and finally the model using human-in-the-loop labeling is analyzed by formulating the inference and training methods under an interactive scheme.
[0162] Polygon-GCN / Spline-GCN
[0163] It is assumed that the shape of the target object can be well represented using N control points, which are connected to form a cycle. The induced shape is presented by connecting the control points with straight lines (thus forming polygons) or with higher-order curves (forming splines). The position of each control point is treated as a continuous random variable and predicted by a graph neural network that takes image evidence as input. In Acuna, the authors use a gated graph neural network (GGNN) [Y. Li, D. Tarlow, M. Brockschmidt, and R. Zemel, Gated Graph Sequence Neural Networks, ICLR, 2016] as a polygon refinement step to scale up the vertices output by the RNN to a higher resolution. Similarly, Pixel2Mesh [N. Wang, Y. Zhang, Z. Li, Y. Fu, W. Liu, and Y.-G. Jiang, Pixel2mesh: Generating 3D Mesh Models from a Single RGB Image, ECCV, 2018] uses a graph convolutional network (GCN) to predict the vertex positions of a 3D mesh. The key difference between GGNN and GCN is the graph information propagation; GGNN shares the propagation matrix through time, similar to the gated recurrent unit (GRU), while the propagation step of GCN is implemented as a non-shared "layer", similar to the typical CNN architecture. GCN is adopted in this model due to its higher capacity. Therefore, the reference name of this model is curve-GCN, including polygon-GCN or spline-GCN.
[0164] Notation: Initialize the nodes of the GCN to be located at static initial center positions in a given image crop ( Fig.17 ). GCN predicts the position offset of each node, aiming to move the node correctly to the boundary of the object. Let cp i =[x i ,y i ] T represents the position of the i-th control point and V = {cp0, cp1, ···, cp N-1} is the set of all control points. Define a graph as G = (V, E), where V defines the nodes and E defines the edges in the graph. E is formed by connecting each vertex in V to its four neighboring vertices. This graph structure defines how information propagates in a GCN. Connecting 4-ways allows for faster information exchange between nodes in the graph.
[0165] Extract features: Given a bounding box, crop the corresponding region of the image and encode it using a CNN, the specific choice is determined by the user. The feature map obtained from the last convolutional layer of the CNN encoder applied to the image crop is denoted as F c To help the model see the image boundaries, the feature map F cTwo additional branches, edge branch and vertex branch, are supervised on top of GCN, both consisting of a 3×3 convolutional layer and a fully connected layer. These branches are trained to predict the likelihood of object edges / vertices existing on a 28×28 grid. Both branches are trained with binary cross entropy loss. The predicted edge and vertex outputs are concatenated with Fc to create an enhanced feature map F. i The input feature is the current coordinate of the node (x i ,y i ), where the upper left corner of the cropped image is (0,0) and the image length is 1, and features are extracted from the corresponding positions in F: Here, F(x i ,y i ) is calculated using bilinear interpolation.
[0166] GCN model: Multi-layer GCN is used. Node cp at layer l i The graph propagation step is expressed as:
[0167]
[0168] Among them, N(cp i ) indicates the connection to the cp in the diagram i Nodes, and is the weight matrix. Following the approach of Bronstein [MM Bronstein, J. Bruna, Y. LeCun, A. Szlam, and P. Van-dergheynst, Geometric Deep Learning: Beyond Euclidean Data, CVPR, 2017], we use Graph-ResNet as a residual function to propagate information between nodes in the graph. Then, the propagation step for a full iteration at layer l takes the following form:
[0169]
[0170]
[0171]
[0172] in is the residual weight matrix. On top of the last GCN layer, a single fully connected layer is applied to obtain the output features and predict the relative position offset (Δx) of each node. i ,Δy i ), thus placing it at position [x′ i , y′ i ]=[x i +Δx i ,y i +Δyi ]. Also perform the same 35 ] is similar to the iterative reasoning from coarse to fine prediction in . More specifically, the position of the new node [x i ,y i ] is used to re-extract features of the nodes, and another GCN uses these features to predict a new set of offsets. This mimics the process of the initial polygon / spline iteratively "walking" towards the object boundary.
[0173] Spline parameterization: The choice of spline is important, especially for the annotator's experience. The two most common splines, cubic Bézier splines and uniform B-splines [e.g., H. Prautzsch, W. Boehm, and M. Paluszny, Bézier and B-spline techniques, Springer Science & Business Media, 2013], are defined by control points that are not on the actual curve, which can confuse the annotator who needs to make edits. Following Tan [JH Tan and U R Acharya, Active spline models: interactive segmentation of shape-based models, Digital Signal Processing, 35:64–74, 2014], centripetal Catmull-Rom splines (CRS) are used [e.g., C. Yuksel, S. Schaefer, and J. Keyser, Parameterization and applications of catmull-rom curves, Computer-Aided Design, 43(7):747–755, 2011], which have control points along the curve. Yuksel et al., incorporated herein by reference, provides detailed visualization of different types of splines.
[0174] For the curve segment S i , which is controlled by the control point cp i-1 、cp i 、cp i+1 、cp i+2 and the sequence t i-1 ,t i ,t i+1 ,t i+2 Definition, interpolation of CRS is done in the following way:
[0175]
[0176] in,
[0177]
[0178]
[0179]
[0180]
[0181]
[0182] and Here, α ranges from 0 to 1. Following Tan, α = 0.5 is chosen, which in theory produces a spline with no cusps or self-intersections [see Yuskel et al., infra]. To make the spline a closed C 1 Continuous curve, adding three additional control points:
[0183] cp N =cp0
[0184]
[0185]
[0186] train
[0187] The model is trained with two different loss functions. First, the model is trained with point matching loss, and then fine-tuned with differentiable accuracy loss. More specific details and ablations are provided in the experimental data.
[0188] Point matching loss
[0189] Typical point set matching losses (such as chamfer loss) assume unordered point sets (i.e., they are permutation invariant). However, polygons / splines have a well-defined ordering, and the ideal point set matching loss can respect this ordering. The prediction and ground truth point sets are assumed to be of equal size and similarly ordered (clockwise or counterclockwise) as p = {p0, p1, ···, p K-1} and p′={p′0,p′1,…,p′ K-1} (K is the number of points), the matching loss is defined as:
[0190]
[0191] Note that this loss explicitly ensures the order of vertices in the loss computation. Training with an unordered point set loss while maintaining the topology of polygons can lead to catastrophic self-intersections, which are avoided with an ordered loss.
[0192] Sample sets of points of equal size. Since the number of annotated vertices may vary, and the model always assumes N, additional points are sampled along the boundary of the ground truth polygon and our predictions. For polygon-GCN, K points are sampled uniformly along the edge of the predicted polygon, and for spline-GCN, K points are sampled uniformly along the edge of the predicted polygon, ranging from t i toi+1 K points are sampled along the spline while t varies uniformly. The same number of points are sampled uniformly along the edge of the ground truth polygon. K = 1280 is used in the experiments detailed below. Sampling more points will have a higher computational cost, while sampling fewer points will make the curve approximation less accurate. Note that sampling only involves interpolating the control points, thus ensuring differentiability.
[0193] Differentiable precision loss
[0194] To perfectly align the predicted polygons and the ground truth contours, a differentiable rendering loss is employed, which encourages the masks rendered from the predicted control points to be consistent with the ground truth masks. It has been used previously to optimize 3D mesh vertices to render correctly onto 2D images [e.g., H. Kato, Y. Ushiku, and T. Harada, Neural 3D Mesh Renderer, ECCV, 2018 and M. M. Operar and M. J. Black, Opendr: A Nearly Differentiable Renderer, ECCV, pp. 154-169, 2014, D. Fleet, T. Pajdla, B. Schiele, and T. Tuytelaars, editors].
[0195] The rendering process can be described as a function R; M(θ) = R(p(θ)), where p is a sequence of sample points on the curve and M is the corresponding mask rendered from p. The predicted mask and the ground truth mask can be compared by computing their difference with the L1 loss:
[0196] L render (θ)=||M(θ)-M gt ||1
[0197] Note that L render It is exactly the predicted mask M(θ) relative to the ground truth M gt Next, we will describe the method used to obtain M in the forward pass and in the backward pass by arrive The rendering process R is a method to propagate gradients back.
[0198] Forward pass: Render p as a mask using OpenGL. Fig.18 As shown, the shape is decomposed into triangle fans f j, and assign positive or negative values to the regions based on their orientation. Each face is rendered with the assigned value, and the renderings of all triangles are summed to get the final mask. Note that this works for both convex and concave polygons [e.g., D. Shreiner and T. K. O. A. Group, OpenGL Programming Guide: The Official Guide to Learning OpenGL, Versions 3.0 and 3.1, Addison-Wesley Professional, 7th edition, 2009].
[0199] Backward pass: The rendering process is not differentiable in OpenGL due to rasterization, which truncates all floating point values to integers. However, following Loper et al., below, the gradient is computed using a first-order Taylor expansion. The triangle fan is then reused according to the decomposition in the forward pass (see Fig.18 ), and analyze each triangle fan separately. Take fan f j The gradient relative to the j-th triangle is calculated as:
[0200]
[0201] Among them, M j Is with fan j Here, Δt can be in the x or y direction. For simplicity, let Δt be a 1 pixel offset, which alleviates the need to render twice and allows the gradient to be calculated by subtracting adjacent pixels. Next, the gradient Passed to its three vertices f j,0 、f j,1 and f j,2 :
[0202]
[0203] This is summed over all pixels i. For the rendered image M j The i-th pixel in Calculate its relative to the surface f j The weight of the vertex as its barycentric coordinates. For more details, see Loper et al.
[0204] Tagger in the loop
[0205] A potential drawback of polygon-RNN is that once the annotator corrects a point, all subsequent points are affected due to the recurrent structure of the model. This is generally undesirable because the changes may be drastic. Alternatively, it is desirable to have the flexibility to change any point, and further restrict that only neighboring points can be changed. As in polygon-RNN, corrections are assumed to be in the form of drag-and-drop of points.
[0206] To make the model interactive, another GCN is trained that consumes the corrections of the annotator and predicts the relative offsets of other control points. This GCN is referred to as the interactive GCN in this paper. The architecture of the network is the same as the original GCN, except that two additional dimensions are now appended to the input features of the corrected node (e.g., node i) to represent the corrections of the annotator:
[0207]
[0208] where (Δxi, Δyi) is the offset given by the annotator. For all other nodes, (Δxi, Δyi) is set to zero. No iterative reasoning is performed here. Interactive GCN allows the radius to be influenced by simply masking the predictions of nodes outside the radius to 0. In particular, let the k neighbors on both sides of node i be predicted, i.e., cp (i-k)%N 、......、cp (i-1)%N 、cp (i+1)%N 、......、cp (i+k)%N We set k = 2 in the experiments described in this paper, while noting that in principle the annotator can vary k at test time.
[0209] The interactive GCN is trained by imitating an annotator that iteratively moves erroneous control points to their correct locations. This assumes that the annotator always chooses to correct the worst predicted point. This is computed by first aligning the predicted polygon to the ground truth and then finding the minimum of our point matching loss (Section 3.2.1). The point with the largest maximum Manhattan distance to the corresponding ground truth point is then found. The network is trained to move neighboring points to their corresponding ground truth locations. It then iterates between the annotator choosing the worst prediction and training to correct its neighbors. In each iteration, the GCN first predicts the correction of the neighbors based on the correction of the previous annotator, and then the annotator corrects the next worst point. The gradients are then backpropagated through the iterative process, helping the interactive GCN learn to incorporate many possible user interactions. The training process is summarized in Algorithm 1, where c represents the number of iterations.
[0210]
[0211] Experimental Results
[0212] Curve-GCN is tested for both in-domain and cross-domain instance annotations. The Cityscapes dataset from Cordts et al. [M. Cordts, M. Omran, S. Ramos, T. Rehfeld, M. Enzweiler, R. Benenson, U. Franke, S. Roth, and B. Schiele, Cityscapes Dataset for Semantic Urban Scene Understanding, CVPR, 2016] is used as the main benchmark for training and testing Curve-GCN models. Both automatic and interactive scenarios are analyzed and compared to state-of-the-art baselines for both. For cross-domain experiments, the generalization ability of the models trained on Cityscapes is evaluated on the following: The KITTI dataset from the KITTI Visual Benchmark Program Suite, CVPR, 2012] and four out-of-domain datasets ADE20K from Zhou et al. [B. Zhou, H. Zhao, X. Puig, S. Fidler, A. Barriuso, and A. Torralba, Scene Parsing via the ADE20K Dataset, CVPR, 2017]; aero-rooftops from Sun et al. [X. Sun, CM Christoudias, and P. Fua, Polygonal Object Localization with Free-form Shapes, in European International Conference on Computer Vision, pp. 317-332, Springer, 2014]; and a collaborative resource for building consensus for automatic left ventricle segmentation in cardiac magnetic resonance images from Suinesiaputra et al. [A. Suinesiaputra, B. R. Cowan, A. O. Al-Agamy, M. A. Elat-tar, N. Ayache, A. S. F. Ahmy, A. M. Khalifa, P. Medrano-Gracia, M.-P. Jolly, A. H. Kadish et al., Collaborative Resource for Building Consensus for Automatic Left Ventricle Segmentation in Cardiac Magnetic Resonance Images, Medical Image analysis, 18(1):50–62, 2014]; and ssTEM from Gerhard et al. [S. Gerhard, J. Funke, J. Martel, A. Cardona, and R. Fetter, Segmentation of anisotropic ssTEM datasets of neural tissue, 11 2013], following those used for polygon-RNN++ as described previously. To indicate whether the model uses polygons or splines, they are named polygon-GCN and spline-GCN, respectively.
[0213] Image Encoder: Following the Polygon-RNN++ as described previously, a ResNet-50 backbone architecture is used as the image encoder.
[0214] Training details: The model is first trained via a matching loss, and then fine-tuned with a differentiable accuracy loss. Matching loss is significantly faster, but less flexible, i.e., points are forced to exactly match ground truth points along the boundary. Differentiable accuracy loss offers a remedy as it directly optimizes for accuracy. However, since it requires considerable training time, differentiable accuracy loss is only employed during the fine-tuning phase. For speed concerns, matching loss is used to train the interactive GCN. A learning rate of 3e-5 is used, which is decayed every 7 epochs.
[0215] In detail, note that the Cityscapes dataset contains a large number of occluded objects, which causes many objects to be divided into discrete components. Since the matching loss acts on a single polygon, the model is first trained on a single component instance and then fine-tuned on all instances with a differentiable accuracy loss.
[0216] Baselines: Since Curve-GCN operates in two different schemes, it is compared with relevant baselines in each scheme. For the automatic mode, it is compared with Polygon-RNN++ [1] and PSP-DeepLab [7, 38]. The provided DeepLab-v2 model is from Maninis et al. [K.-K. Maninis, S. Caelles, J. Pont-Tuset, and L. Van Gool, Deep Extreme Cuts: From Extreme Points to Object Segmentation, in CVPR, 2018], which is pre-trained on ImageNet and fine-tuned on PASCAL for semantic segmentation. Pyramid Scene Parsing [H. Zhao, J. Shi, X. Qi, X. Wang, and J. Jia, Pyramid Scene Parsing Networks, in CVPR, 2017] is stacked to enhance the performance. For the interactive mode, the benchmarks are based on Polygon-RNN++ and DEXTR [Maninijs et al.]. Both PSP-DeepLab and DEXTR are fine-tuned on the Cityscapes dataset. Cross-validation was also performed on the threshold for deciding foreground / background on the validation set.
[0217] Evaluation Metrics: As with Polygon-RNN, performance is evaluated by computing the Intersection over Union (IoU) of the predicted and ground truth masks. However, as mentioned above, IoU focuses on the entire region and is less sensitive to inaccuracies along object boundaries. For the purpose of object annotation, boundaries are particularly important and even small deviations may not escape the annotator's eyes. Therefore, following Perazzi et al. [Perazzi, J. Pont-Tuset, B. McWilliams, LV Gool, M. Gross, and A. Sorkine-Hornung, Benchmark Datasets and Evaluation Methods for Video Object Segmentation, In IEEE International Conference on Computer Vision and Pattern Recognition (CVPR), 2016], a boundary F-score is also computed, which calculates the precision / recall between the predicted and ground truth boundaries by allowing some misalignment relaxation. Given that Cityscapes is finely annotated, results are reported with strict thresholds (relaxed) of 1 and 2 pixels.
[0218] In-domain annotation
[0219] The model is first evaluated when training and inference are performed on Cityscapes. This dataset contains 2975 / 500 / 1525 images for training, validation, and testing, respectively. For fair comparison, the same segmentation and data preprocessing process as above polygon-RNN++ is followed.
[0220] Automatic Mode: Table 6 reports the results for Polygon-GCN and Spline-GCN and compares them with the baselines. The performance metric used is IoU. Note that PSP-DeepLab uses a more powerful image encoder that has been pre-trained on PASCAL for segmentation. Spline-GCN outperforms Polygon-RNN++ and is comparable to PSP-DeepLab. It also performs well on Polygon-GCN, probably because most Cityscapes objects are curved. The results also show the importance of the differentiable accuracy loss (diffAcc), which produces a large improvement over the model trained with matching loss alone (expressed as MLoss in the table). On the train class, the models mostly underperform PSP-DeepLab, which is believed to be due to the fact that the train in Cityscapes is often occluded and split into multiple components. Since GCN methods only predict a single connected component, they may have difficulties in this case.
[0221]
[0222] Table 6
[0223] Table 2 compares the models with respect to the F-boundary metric. It can be observed that while Spline-GCN is comparable to PSP-DeepLab under the IoU metric, it is significantly better on the more precise F-score. This means that the model aligns more accurately with the object boundaries than PSP-DeepLab. Fig. 20 , Fig.21 and Fig. 22 Qualitative results are shown in .
[0224]
[0225] Table 7
[0226] Ablation studies: Each component of the model is studied and the recorded results for polygon-GCN and spline-GCN are provided in Table 8. Performing iterative inference brings significant improvements, and adding boundary branches to the CNN further improves the performance.
[0227] Model Spline Polygon GCN 68.55 67.79 +Iterative Reasoning 70.00 70.78 +Boundary Prediction 72.09 71.19 +DiffAcc 73.70 72.66
[0228] Table 8
[0229] Additional Artificial Input: In DEXTR by Maninis et al. [K.-K. Maninis, S. Caelles, J. Pont-Tuset, and L. Van Gool, Deep Extreme Cuts: From Extreme Points to Object Segmentation, in CVPR, 2018], the authors proposed using 4 extreme points on the object boundary as valid information provided by the annotator. The extreme points require 2 additional clicks compared to just one box. In this scheme, the GCN model is compared to DEXTR and follows their strategy in how this information is provided to the model. Specifically, the points (in the form of heatmaps) are stacked with the image and passed to the CNN. For comparison with DEXTR, DeepLab-v2 is used as in the method of Maninis et al. The model is referenced with such input by attaching EXTR.
[0230] Note that the image cropping used in the polygon-RNN is obtained by extracting the image within a square box (rather than the actual box provided by the annotator). However, due to significant occlusion in Cityscapes, doing so can lead to ambiguity as multiple objects can easily fall into the same box. By providing 4 extreme points, the annotator is more accurate in pointing to the target object. To verify the accuracy due to the two additional clicks, an instantiation of the model was tested to which the four corners of the bounding box were provided as input. This is still a two-click (box) interaction from the user, however, it reduces ambiguity about the object to be annotated. This paper refers to this model by appending the BOX.
[0231] Since DEXTR labels pixels and is therefore easier to handle multiple component instances, another instantiation of the model is proposed that still utilizes 4 clicks on average, but collects these clicks in a different way. Specifically, the annotator is required to provide a box around each component instead of just one box around the entire object. On average, this results in 2.4 clicks per object. This model is referenced using MBOX. In order to match the 4-click budget, the annotator clicks the worst predicted boundary point of each component, which results in an average of 3.6 clicks per object.
[0232] Table 9 shows that in the extreme point scenario, the proposed model is already better than DEXTR, while the alternative strategy is even better, with an overall improvement of 0.8% and fewer clicks on average. The performance of the proposed method on the boundary indicators is also significantly better than that of DEXTR ( Fig.26 ).
[0233]
[0234] Table 9
[0235] Interactive Mode: For interactive mode, the protocol discussed above for polygon-RNN++ is followed to simulate the annotator correcting vertices. In particular, the annotator iteratively makes corrections until the IoU is greater than a threshold T, or the model stops improving its predictions. Prediction curves that achieve consistency above T are considered satisfactory annotations.
[0236] Fig.23A , Fig. 23B and Fig.24 The relationship between IoU and the number of clicks for different thresholds T is shown. The results are compared with Polygon-RNN++. The results show a significant improvement over the baseline, highlighting this model as a more efficient annotation tool. The performance is further analyzed when using 40 vs. 20 control points. The version with fewer control points is slightly worse in automatic mode, but is almost equivalent in interactive mode. This may indicate that interactive correction from coarse to fine may be the best approach.
[0237] Inference Time: Timings are reported in Table 10. This model is an order of magnitude faster than Polygon-RNN++, running in 28.4ms, while Polygon-RNN++ requires 298.0ms. In interactive mode, the model reuses the computed image features computed in the forward pass and thus only takes 2.6ms to incorporate each correction. On the other hand, Polygon-RNN needs to run the RNN after each correction, so it still takes 270ms.
[0238]
[0239] Table 10
[0240] Cross-domain evaluation
[0241] The model’s ability to generalize to new datasets is evaluated. Generalization is critical in order to effectively annotate a variety of different image types. This shows that fine-tuning on only a small set (10%) of the new dataset leads to rapid adaptation to the new domain.
[0242] We followed Polygon-RNN++ and used a model trained on Cityscapes and tested it on KITTI (in-domain driving dataset), ADE20k (general scenes), Rooftops (aerial imagery), and the two medical datasets as mentioned before.
[0243] Quantitative Results. Table 11 provides the results. A simple baseline from polygon-RNN++ is used. The model is further fine-tuned using 10% of randomly sampled training data from the new domain (using dif-fAcc). Note that ssTEM has no training splits and is therefore omitted in this dataset. The results show that the model has better generalization ability than PSP-DeepLab, and fine-tuning based on very little annotated data allows the model to effectively adapt to new domains. Fig.25 Some qualitative results before and after fine-tuning are shown.
[0244]
[0245] Table 11
[0246] Therefore, the Curve-GCN model can both provide faster speed than previous models and enable interactive corrections that are limited to local effects, providing more control to the annotator.
[0247] Alternative Method Implementation
[0248] like Fig. 27 As shown, an implementation scheme of the alternative method 27000 may include the following steps: receiving an image depicting an object, the image comprising an n-dimensional array-like structure 27001; and generating one or more image features 27002 using a CNN encoder implemented on one or more computers; initializing a set of N nodes from the image feature set, the set of N nodes forming a closed curve along an ellipse centered on the image 27003; using a graph convolutional network (GCN) to simultaneously predict the position offset of each node 27004; iterating the prediction of each node by the GCN, each iteration defining a new position offset of each node based on the node position of each node from the previous iteration 27005; and generating an object annotation based on the final iteration, wherein the object is parameterized 27006 using one of a polygon and a spline.
[0249] According to an embodiment, the method includes training and testing with a fixed number of iterations. The number can be arbitrarily changed according to the user's choice.
[0250] Alternative system implementation
[0251] Fig.28 An embodiment of a system for performing an alternative method is shown in . In a sample system 28000, an input unit 28010 receives an image depicting an object, the image comprising an n-dimensional array-like structure at a computer, the computer comprising a system processor 28020, which may include processing elements and other necessary elements distributed on one or more computers for processing the input. At the system processor 28020, a CNN encoder 28021 generates one or more image features and initializes a set of N nodes from the image feature set, wherein the set of N nodes forms a closed curve along an ellipse centered on the image, and simultaneously predicts the position offset of each node using a GCN 28023. The prediction of each node is iterated through the GCN, where each iteration is a separate set of layers of the neural network and each iteration defines a new position offset for each node based on the node position of each node from the previous iteration, ultimately producing an object annotation selected by an output selector 28024 based on the final iteration, where the object is parameterized using one of a polygon and a spline and provided to an output or application unit 28030, such as a computer monitor or other display or an output unit for sending the annotated object to another system for a specific application or use.
[0252] Potential use cases for this alternative method and system embodiment may include delineating 3D objects from multiple views to generate coarse mesh annotations. In addition, household objects or other specified related objects (clothing, people, etc.) may be annotated for use in robotic perception or other people-related software. Other applications may include annotation and object selection to complete partial drawings for photo editing software.
[0253] Although various elements, blocks, or units are depicted or described as being separate or as components of other elements, blocks, or units, in other embodiments, other arrangements of elements, blocks, or units may be employed.
[0254] Various embodiments of the present invention have been described in detail. Since changes and / or additions may be made to the best mode described above without departing from the essence, spirit or scope of the present invention, the present invention is not limited to these details, but is limited only by the appended claims. The section headings herein are provided as organizational cues. These headings should not limit or characterize the invention set forth in the appended claims.
Claims
1. A method for marking an object, comprising: receiving an image depicting an object, the image comprising an n-dimensional array-like data structure; generating a set of image features using a CNN encoder implemented on one or more computers; Predicting a vertex prediction set using the image feature set; generating a polygon prediction set for the object using a loop decoder utilizing the vertex prediction set and the image feature set, the loop decoder being implemented on one or more computers; as well as A polygonal object annotation is selected from the set of polygonal predictions.
2. The method of claim 1, wherein the selection of polygonal object annotations is performed using an evaluator network.
3. The method of claim 1 further comprising generating higher resolution polygons from the polygonal object annotations using a graph neural network implemented on one or more computers.
4. The method of claim 3, wherein generating higher resolution polygons comprises: adding a supplementary set of vertex predictions to a primary set of vertex predictions defining the polygonal object annotation; Define the propagation model; as well as The propagation model is applied to adjust positions of vertices in the supplementary vertex prediction set and vertices in the primary vertex prediction set.
5. The method of claim 3, wherein the recurrent decoder applies an attention unit at each time step.
6. The method of claim 1, wherein generating a set of polygonal representations of an object using a recurrent decoder comprises generating a weighted feature map.
7. The method of claim 2, wherein the evaluator network predicts an intersection over union (IoU) of each polygon prediction in the set of polygon predictions using a gamma test, and the polygon object annotation is the polygon prediction with the largest IoU in the set of polygon predictions.
8. The method of claim 2, wherein generating each polygon prediction in the set of polygon predictions comprises a series of time steps for generating a set of vertex predictions defining the polygon predictions, and applying the evaluator network at each time step in the series of time steps.
9. The method of claim 1, wherein the image is selected from one of the following: an RGB image, a thermal image, a depth image, and a hyperspectral image.
10. The method of claim 1, wherein the recurrent decoder is one of: a recurrent neural network, a graph neural network, and a gated graph neural network.
11. The method of claim 1, wherein the polygon prediction set includes one or more manual corrections to the vertex prediction set.
12. The method of claim 1, wherein the polygonal object annotation is selected by selecting each vertex according to a highest log probability of the vertex.
13. A system for object annotation, comprising: A CNN encoder implemented by one or more computers for generating image features from a received image, the image comprising an n-dimensional array-like data structure, and the image features are used to predict one or more vertices of an object annotation; a loop decoder for generating a set of polygonal predictions of objects in the received image, the loop decoder being implemented by one or more computers; as well as A selector is used to select a polygon object annotation from the polygon prediction set.
14. The system of claim 13, wherein the recurrent decoder comprises a recurrent neural network (RNN).
15. The system of claim 13, wherein the recurrent decoder includes an attention unit at each time step to generate each polygon in the polygon prediction set one vertex at a time.
16. The system of claim 13, further comprising a gated graph neural network for generating higher resolution polygons from the selected polygon predictions.
17. The system of claim 16, wherein the gated graph neural network comprises a propagation box and an output box.
18. The system of claim 13, further comprising an application unit for receiving the resulting object annotations.
19. The system of claim 18, wherein the application unit is one of an autonomous driving system, a medical imaging system, and a mapping system.
20. The system of claim 13, wherein the CNN encoder comprises a skip layer architecture.
21. The system of claim 13, further comprising a manual input interface for receiving one or more manual corrections to the set of polygon predictions.
22. The system of claim 13, wherein the selector selects the polygonal object annotation based on selecting each vertex according to a highest log probability of the vertex.
23. A method for marking an object, comprising: receiving an image depicting an object, the image comprising an n-dimensional array-like data structure; generating a set of image features using a CNN encoder implemented on one or more computers; Initializing a set of N nodes from the image feature set, the set of N nodes forming a closed curve along a circle centered on the image; Use graph neural network GNN to simultaneously predict the position offset of each node; Iterating the prediction of each node by the GNN, each iteration defining a new position offset of each node based on the node position of each node from the previous iteration; as well as Generate object annotations based on the final iteration; The object is parameterized using one of a polygon and a spline.
24. The method of claim 23, further comprising applying one or more simulated manual corrections to one or more nodes during the iterating step.
25. The method of claim 23, further comprising applying one or more manual corrections to one or more nodes during the iterating step.
26. The method of claim 23, wherein the GNN is trained via a point matching loss.
27. The method of claim 26, wherein the GNN is further trained and fine-tuned via a differentiable accuracy loss.
28. The method of claim 23, wherein for the spline, a centripetal Catmull-Rom spline is applied.
29. The method of claim 23, wherein the image is selected from one of the following: an RGB image, a thermal image, a depth image, and a hyperspectral image.
30. The method of claim 23, wherein the final iteration is based on running a preselected number of iterations.
31. The method of claim 23, wherein the GNN is a graph convolutional network.
32. A system for object annotation, comprising: a CNN encoder implemented by one or more computers for generating an image feature set from a received image, the image comprising an n-dimensional array-like data structure, and for initializing a set of N nodes from the image feature set, the set of N nodes forming a closed curve along a circle centered on the image; A graph neural network GNN implemented by one or more computers for simultaneously predicting a position offset of each node and iterating the prediction of each node by the GNN, each iteration defining a new position offset of each node based on the node position of each node from the previous iteration; as well as An output selector for producing output based on the final iteration from the GNN.
33. The system of claim 32, further comprising a manual input interface for receiving one or more manual corrections to one or more nodes during an iteration.
34. The system of claim 32, further comprising a training system implemented by one or more computers for training the GNN.
35. The system of claim 34, wherein the training system applies a point matching loss training method.
36. The system of claim 34, wherein the training system applies a differentiable loss of precision method.
37. The system of claim 34, wherein the training system applies simulated manual corrections.
38. The system of claim 34, wherein the training system applies manual correction.
39. The system of claim 34, wherein the final iteration is based on running a preselected number of iterations.
40. The system of claim 32, wherein the GNN is a graph convolutional network.
41. A non-transitory computer readable medium comprising instructions for a method of annotating an object, the method comprising: receiving an image depicting an object, the image comprising an n-dimensional array-like data structure; generating a set of image features using a CNN encoder implemented on one or more computers; Predicting a first vertex prediction set using the image feature set; generating a set of polygon predictions for the object using a loop decoder utilizing the first set of vertex predictions and the set of image features, the loop decoder being implemented on one or more computers; as well as A polygonal object annotation is selected from the set of polygonal predictions.
42. The non-transitory computer readable medium of claim 41, wherein the selection of the polygonal object annotations is performed using an evaluator network.
43. The non-transitory computer-readable medium of claim 41, further comprising instructions for generating higher resolution polygons from the polygonal object annotations using a graph neural network implemented on one or more computers.
44. The non-transitory computer readable medium of claim 43, wherein generating higher resolution polygons comprises: adding a supplementary set of vertex predictions to a primary set of vertex predictions defining the polygonal object annotation; Define the propagation model; as well as The propagation model is applied to adjust positions of vertices in the supplementary vertex prediction set and vertices in the primary vertex prediction set.
45. The non-transitory computer readable medium of claim 43, wherein the recurrent decoder applies an attention unit at each time step.
46. The non-transitory computer-readable medium of claim 41, wherein generating a set of polygonal representations of an object using a loop decoder comprises generating a weighted feature map.
47. The non-transitory computer-readable medium of claim 42, wherein the evaluator network predicts an intersection-over-union (IoU) for each polygon prediction in the set of polygon predictions using a gamma test, and the polygon object label is the polygon prediction in the set of polygon predictions having the largest IoU.
48. The non-transitory computer-readable medium of claim 42, wherein generating each polygon prediction in the set of polygon predictions comprises a series of time steps for generating a set of vertex predictions defining the polygon predictions, and applying the evaluator network at each time step in the series of time steps.
49. The non-transitory computer readable medium of claim 41, wherein the image is selected from one of the following: an RGB image, a thermal image, a depth image, and a hyperspectral image.
50. The non-transitory computer-readable medium of claim 41, wherein the recurrent decoder is one of: a recurrent neural network, a graph neural network, and a gated graph neural network.
51. The non-transitory computer readable medium of claim 41, wherein the polygon prediction set includes one or more manual corrections to the first vertex prediction set.
52. The non-transitory computer readable medium of claim 41, wherein the polygonal object annotation is selected by selecting each vertex according to a highest log probability of the vertex.
53. A non-transitory computer readable medium comprising instructions for a method of annotating an object, the method comprising: receiving an image depicting an object, the image comprising an n-dimensional array-like data structure; generating a set of image features using a CNN encoder implemented on one or more computers; Initializing a set of N nodes from the image feature set, the set of N nodes forming a closed curve along a circle centered on the image; Use graph neural network GNN to simultaneously predict the position offset of each node; Iterating the prediction of each node by the GNN, each iteration defining a new position offset of each node based on the node position of each node from the previous iteration; as well as Generate object annotations based on the final iteration; The object is parameterized using one of a polygon and a spline.
54. The non-transitory computer readable medium of claim 53, further comprising applying one or more simulated manual corrections to one or more nodes during the iterating step.
55. The non-transitory computer readable medium of claim 53, further comprising applying one or more manual corrections to one or more nodes during the iterating step.
56. The non-transitory computer-readable medium of claim 53, wherein the GNN is trained via a point matching loss.
57. The non-transitory computer-readable medium of claim 56, wherein the GNN is further trained and fine-tuned via a differentiable loss of accuracy.
58. The non-transitory computer readable medium of claim 53, wherein for the spline, a centripetal Catmull-Rom spline is applied.
59. The non-transitory computer readable medium of claim 53, wherein the image is selected from one of the following: an RGB image, a thermal image, a depth image, and a hyperspectral image.
60. The non-transitory computer readable medium of claim 53, wherein the final iteration is based on running a preselected number of iterations.
61. The non-transitory computer-readable medium of claim 53, wherein the GNN is a graph convolutional network.
Citation Information
Patent Citations
Self-adaptive cascade classifier training method based on online learning
CN101814149A
Method for labeling three-dimensional (3D) dynamic geometric figure data information in computer system
CN102163340A
Method of training a neural network
US20160162781A1
Method of training a neural network
WO2015011688A2
