Masked autoencoder trained for image inpainting

By combining momentum encoder and feature injection process, the encoder network is trained independently, which solves the problem of information memory that varies depending on the target in self-supervised representation learning and achieves more efficient image restoration effect.

CN117693754BActive Publication Date: 2026-11-20MICROSOFT TECHNOLOGY LICENSING LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280049250.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-19
Publication Date
2026-11-20
Estimated Expiration
2042-05-19

AI Technical Summary

Technical Problem

Existing self-supervised representation learning methods in image inpainting are limited by pixel-level prediction targets, causing the model to memorize information in the training data that varies depending on the target, thus wasting training effort and model capabilities.

Method used

By employing a momentum encoder and a feature injection process, the encoder network is trained independently through pixel regression and feature prediction branches. The momentum encoder provides dynamic prediction targets, and the feature injection process provides contextual information, reducing the information pressure on the model learning due to target differences and improving semantic modeling capabilities.

Benefits of technology

The encoder network improves the accuracy and efficiency of image inpainting by focusing on semantic modeling, reducing the learning of information that varies depending on the target, and enhancing the predictive performance of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117693754B_ABST
    Figure CN117693754B_ABST
Patent Text Reader

Abstract

The disclosures herein describe training an encoder network to inpaint an image having masked portions. A main encoding process is used to encode visible portions of a masked input image into encoded token data. The encoded token data is then decoded into both a pixel regression output and a feature prediction output, where both of these outputs include inpainted image data associated with masked portions of the masked input image. A pixel regression loss is determined using the pixel regression output and pixel data of an unmasked version of the masked input image. A feature prediction loss is determined using the feature prediction output and ground truth encoding output of the unmasked version of the masked input image. The main encoding process is then trained using the pixel regression loss and the feature prediction loss, whereby the main encoding process is trained to encode structural features of an input image into encoded token data.
Need to check novelty before this filing date? Find Prior Art

Description

Background Technology

[0001] Self-supervised representation learning (whose aim is to learn transferable representations from unlabeled data) has been a long-standing problem in computer vision. Recent advances have shown that large-scale self-supervised representation learning significantly improves upon supervised learning on challenging datasets. In particular, masked image modeling (MIM) in self-supervised pre-training of visual transformers has demonstrated improved performance on computer vision tasks. However, some of these techniques are limited by pixel-level target prediction, which causes the model to "memorize" target-dependent information from the training data, thus wasting training effort and model capacity. Summary of the Invention

[0002] This summary is provided to introduce, in a simplified form, a selection of concepts also described in the detailed description. This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to help determine the scope of the claimed subject matter.

[0003] A computerized method for training an encoder network to repair images with masked portions is described. A master encoding process encodes the visible portions of a masked input image into encoded token data. This encoded token data is then decoded into both pixel regression output and feature prediction output, both of which include repaired image data associated with the masked portions of the masked input image. A pixel regression loss is determined using the pixel regression output and pixel data from an unmasked version of the masked input image. A feature prediction loss is determined using the feature prediction output and a benchmark ground truth encoding output from an unmasked version of the masked input image, where the benchmark ground truth encoding output is generated by a benchmark ground truth momentum encoding process. The master encoding process is then trained using the pixel regression loss and the feature prediction loss, thereby training the master encoding process to encode structural features of the input image into encoded token data. Attached Figure Description

[0004] This specification will be better understood by referring to the following detailed description in conjunction with the accompanying drawings, in which:

[0005] Figure 1 This is a block diagram illustrating the process of training an encoder network to repair a partially masked image using a baseline ground truth momentum coding process that is dynamically updated as the main coding process is trained.

[0006] Figure 2 This is a block diagram illustrating the process of training an encoder network to use a feature injection process to repair partially masked images to enhance the decoding process (including pixel regression and feature prediction).

[0007] Figure 3 This is a block diagram illustrating a system configured to train an encoder network to inject momentum encoder and features into the decoder part of the network to repair a masked portion of the input image.

[0008] Figure 4 This is a flowchart illustrating a method for training the main encoding process to repair partially masked images using pixel regression and feature prediction;

[0009] Figure 5 This is a flowchart illustrating a method for training an encoder network to repair partially masked images during decoding using feature injection; and

[0010] Figure 6 An example computing device is illustrated in the form of a functional block diagram.

[0011] Throughout the accompanying drawings, corresponding reference numerals indicate the corresponding parts. Figures 1 to 6 In the diagram, the system is illustrated. The accompanying figures may not be drawn to scale. Detailed Implementation

[0012] This disclosure provides a computerized method and system for training an encoder network to repair an image with masked portions. In some examples, image repair involves predicting and / or estimating image information suitable for masked or otherwise damaged portions of the image based on analysis of image data of other, unmasked portions of the image. This disclosure processes an input image into training data for non-overlapping patches, where patches containing only portions of masked regions are masked patches, while patches containing only unmasked regions are visible patches. The input image is first divided into multiple patches, and then some of these patches are masked while others remain visible. The visible patches are then fed to an encoding process that encodes the image data of the visible patches into encoded token data representing structural features. The encoded token data is then decoded using two decoding process branches, including a pixel regression process and a feature prediction process. The pixel regression process generates an output of pixel-level image data including the masked patches based on the encoded token data, and the feature prediction process generates an output of image feature data including the masked patches. A loss is determined that is associated with the output of the decoding process, and this loss is used to train the encoding process to improve its accuracy in generating encoded token data. In some examples, determining the loss for the feature prediction process involves using momentum-encoded token data as the baseline ground truth target data, where the momentum-encoded token data is generated by a momentum encoding process configured to be dynamically updated as the encoding process is adjusted during training. Additionally or alternatively, feature data independent of the output of the encoding process is provided to the decoding process, and the decoding process uses the provided feature data as context data throughout the decoding process.

[0013] This disclosure operates in an unconventional manner by predicting or otherwise identifying different aspects and / or features of masked portions or patches of input image data using at least two decoding processing branches. The pixel regression process is configured and tuned to specifically predict and / or identify pixel-level features (e.g., repaired image pixel data), while the feature prediction process is configured and tuned to specifically predict and / or identify larger features of the image spanning multiple pixels (e.g., repaired image feature data). Each decoding process can be trained and tuned to perform its specific task, independent of the tasks performed by the other decoding processes, resulting in a decoder with improved accuracy. Furthermore, in some examples, this disclosure operates in an unconventional manner by providing dynamic prediction targets for the feature prediction process, at least by using a momentum encoding process (e.g., a momentum encoding process updated based on the exponential moving average (EMA) of the parameters of a trained encoding process). These dynamic prediction targets provide a deeper dynamic semantics than static prediction targets in other implementations. Additionally or alternatively, this disclosure operates in an unconventional manner by using the feature injection process in conjunction with the decoding process to form a target-aware decoder, rather than learning structural features representing the input image in encoded token data. This reduces the training pressure on the encoding process in terms of learning target-specific information. For example, in one example, low-level feature data is obtained from the encoding process and fed to the pixel regression process in a manner independent of the encoding process's output, and high-level feature data is obtained from the encoding process and fed to the feature prediction process. By passing feature data to the decoding process independently of the encoding process's output, this disclosure explicitly and continuously provides the decoding process with target-specific contextual information that does not affect the encoding process in order to learn such target-specific details.

[0014] In some examples, this disclosure includes a masked autoencoder (MAE) guided by a momentum encoder as described herein. This guided MAE (BootMAE) is configured with a momentum encoder and an object-aware decoder. The momentum encoder provides online features as additional bidirectional encoder representations (BERT) from the transformer to predict the target, while the object-aware decoder reduces the pressure on the encoder to memorize target-specific information during BERT pre-training. Using a pre-trained MAE to extract features as BERT prediction targets for mask tokens achieves good pre-training performance, but using the momentum encoder in parallel with the original MAE encoder improves training performance by using its own dynamic representation as the training target. Additionally or alternatively, target-specific information, such as pixel values ​​of visible patches, is directly introduced into the decoder to reduce the pressure on the encoder to learn target-specific information. Therefore, the encoder is configured to focus on semantic modeling, which is the goal of BERT pre-training. By using the described feature injection process, the wasted capacity of the generated model when learning target-specific information can be avoided.

[0015] Furthermore, in some examples, this disclosure operates only on visible patches and provides the output representation from the encoder along with masked tokens to a lightweight decoder. Moving the masked tokens to the decoder instead of processing them with the encoder primarily results in a reduction of the required contention and improves the efficiency of the encoding process.

[0016] Furthermore, in some examples, this disclosure uses both pixel-level decoding and more advanced feature-based decoding, which increases the accuracy of the resulting encoder network in tasks such as classification. Using a feature prediction branch and a momentum encoding process to generate dynamic prediction targets improves accuracy, while using a pixel regression branch in parallel provides accurate pixel-by-pixel prediction and regularization in discriminative images.

[0017] Figure 1 This is a block diagram illustrating a process 100 for training an encoder network (e.g., main encoding process 110 and feature prediction process 118) to repair a partially masked image using a benchmark ground-momentum encoding process 122, which is dynamically updated as the main encoding process 110 is trained. In some examples, process 100 consists of processes such as those described below. Figure 3 The process 100 may be performed by a system such as system 300 or otherwise. Alternatively, in other examples, without departing from the description, the process 100 may be performed using an arrangement of other systems and / or components.

[0018] Process 100 includes providing an input image 102 (e.g., a masked input image as described herein) to a main encoding process 110. In some examples, providing the input image 102 to the main encoding process 110 includes applying one or more masks to the input image 102 such that some portions of the input image 102 (e.g., masked portions) are blank, or otherwise include corrupted or unusable image data. Additionally, or alternatively, in some examples, only the unmasked or visible portions of the input image 102 are provided to the main encoding process 110, such that applying a mask to the input image 102 is performed by assigning some portions of the input image 102 to a masked state and other portions of the input image to a visible state.

[0019] Furthermore, in some examples, the input image 102 is divided into patches (e.g., non-overlapping portions of the input image 102 that are generally of the same shape and / or size), and masks are applied to these patches such that some patches are masked while others are visible. The following is about... Figure 3 The system 300 describes the process in more detail.

[0020] The main encoding process 110 encodes the image data of the input image 102 received as input, and provides the resulting encoded image data or encoded token data (e.g., in the form of feature vectors and / or tokens) to the feature prediction process 118. The feature prediction process 118 decodes the encoded image data in such a way that the predicted features of the masked portion in the input image 102 are generated based on the structure and / or other features present in the image data of the visible portion of the input image 102 and reflected in the encoded image data generated by the main encoding process 110.

[0021] The feature prediction output 120 of the feature prediction process 118 includes predicted features (e.g., repaired image feature data) of the masked portion of the input image 102. Furthermore, in some examples, the feature prediction output 120 includes predicted features of the visible portion of the input image 102 generated based on the encoded image data from the main encoding process 110. However, in most examples, the main encoding process 110 and the feature prediction process 118 are trained specifically to generate predicted features of the masked portion of the input image, and therefore no further predicted features of the visible portion of the input image are used during the described training process.

[0022] Feature prediction output 120 is used to determine feature prediction loss 121, which is further used during training process 134 to tune and / or adjust the main encoding process 110 and feature prediction process 118. Feature prediction loss 121 also depends on benchmark ground value encoding output 132 from benchmark ground value momentum encoding process 122. In some examples, benchmark ground value momentum encoding process 122 runs in parallel with main encoding process 110.

[0023] In some examples, the entire input image 102 is provided to a ground truth momentum encoding process 122 such that all image data from the input image 102 is encoded by process 122, and no input image 102 is considered masked. Therefore, the encoding process 122 (e.g., in the form of feature vectors) generates encoded image data of the entire input image as a ground truth encoding output 132, and this encoded image data is used as the prediction target when determining the feature prediction loss 121. For example, the feature prediction output 120 associated with the masked portion of the input image 102 is compared with the ground truth encoding output 132 for the same portion of the input image 102, and the difference between the two is used to determine the feature prediction loss 121, where a larger difference indicates a larger loss 121.

[0024] Furthermore, in some such examples, the benchmark ground momentum encoding process 122 is updated based on changes made to the main encoding process 110 during the training process 134. For example, the momentum encoding process 122 is configured by parameterizing the weights of the main encoding process 110 using an exponential moving average (EMA). Additionally, or alternatively, in other examples, without departing from the description, other methods are used to update the benchmark ground momentum encoding process 122 based on changes to the main encoding process 110. As training progresses, the momentum encoding process 122, guided by this momentum encoding process, provides a deeper dynamic semantics than a fixed target.

[0025] In some examples, as described herein, the feature prediction loss 121 is used during training process 134 to adjust and / or tune the parameters of the main encoding process 110 and / or the feature prediction process 118. It should be understood that in some examples, one or more machine learning techniques are used to perform training process 134 without departing from the description.

[0026] Furthermore, in some examples, a trained master encoding process 110 is subsequently used to generate a repaired output image from the masked input image. For example, in some such examples, the trained master encoding process 110 and at least one decoding process (such as the feature prediction process 118 described herein) are used to encode data from the masked input image into encoded token data, and then decode the encoded token data into repaired image data (such as repaired image feature data). The repaired image data is combined with the visible portion of the masked input image to generate the repaired output image.

[0027] Figure 2 This is a block diagram illustrating process 200 used to train an encoder network to insulate a partially masked image using a feature injection process to enhance the decoding process (including pixel regression and feature prediction). In some examples, process 200 consists of procedures such as those described below. Figure 3 The process 200 may be performed by a system such as system 300 or otherwise. Alternatively, in other examples, without departing from the description, process 200 may be performed using an arrangement of other systems and / or components.

[0028] Process 200 includes providing an input image 202 to an encoding process 210. In some examples, providing the input image 202 to the encoding process 210 includes applying one or more masks to the input image 202 such that some portions of the input image 202 (e.g., masked portions) are blank, or otherwise include corrupted or unusable image data. Additionally, or alternatively, in some examples, only the unmasked or visible portions of the input image 202 are provided to the encoding process 210, such that applying a mask to the input image 202 is performed by assigning some portions of the input image 202 to a masked state and other portions of the input image to a visible state.

[0029] Furthermore, in some examples, the input image 202 is divided into patches (e.g., non-overlapping portions of the input image 202 that are generally of the same shape and / or size), and masks are applied to these patches such that some patches are masked while others are visible. The following is about... Figure 3 The system 300 describes the process in more detail.

[0030] Encoding process 210 encodes the image data of the input image 202 received as input, and provides the resulting encoded image data or encoded token data (e.g., in the form of feature vectors and / or tokens) to pixel regression process 214 and feature prediction process 218. In some examples, pixel regression process 214 decodes the encoded image data such that predicted pixel values ​​and / or other pixel-level features (e.g., repaired image pixel data) of the masked portion of the input image 202 are generated based on pixel values ​​and / or pixel-level features present in the image data of the visible portion of the input image 202 and reflected in the encoded image data generated by encoding process 210. Furthermore, in some examples, feature prediction process 218 decodes the encoded image data such that predicted features (e.g., repaired image feature data) of the masked portion of the input image 202 are generated based on structures and / or other features present in the image data of the visible portion of the input image 202 and reflected in the encoded image data generated by encoding process 210.

[0031] Furthermore, in some examples, low-level feature data (e.g., pixel values ​​of the visible portion of the input image 202) is provided to the pixel regression process 214 via a low-level feature injection process 224, and high-level feature data (e.g., multi-pixel structural features of the input image 202) is provided to the feature prediction process 218 via a high-level feature injection process 224. The pixel regression process 214 and the feature prediction process 218 merge the injected feature data into contextual data used when generating the pixel regression output 216 and the feature prediction output 220, respectively. The use of these feature injection processes 224 and 226 reduces the pressure on the encoding process 210 to “memorize” or otherwise learn target-specific information about the input image 202 during training and encourages the encoding process 210 to focus on semantic modeling that benefits from pre-training. The feature injection processes 224 and 226 continuously provide target-specific contextual information to processes 214 and 218, respectively, effectively decoupling this contextual information from the encoding process 210, allowing the training of the encoding process 210 to be directed towards structural learning.

[0032] Additionally or alternatively, the low-level feature injection process 224 provides low-level feature data from early stages or shallow layers of the encoding process 210 (e.g., before processing by transformer blocks in the encoding process 210), such that the entire pixel-level data is provided as contextual information to the pixel regression process 214. Alternatively, in some examples, the high-level feature injection process 226 provides high-level feature data from later stages or deeper layers of the encoding process 210 (e.g., layers after processing by at least some transformer blocks).

[0033] In some examples, the pixel regression output 216 of pixel regression process 214 includes predicted pixel values ​​and / or related features of the masked portion of input image 202. Furthermore, in some examples, pixel regression output 216 includes predicted pixel values ​​and / or related features of the visible portion of input image 202 generated based on the encoded image data from encoding process 210. However, in most examples, encoding process 210 and pixel regression process 214 are trained specifically to generate predicted pixel values ​​and / or related features of the masked portion of the input image, and therefore no further predicted features of the visible portion of the input image are used during the described training process.

[0034] Furthermore, in some examples, pixel regression output 216 is used to determine pixel regression loss 217, which is further used to tune and / or adjust encoding process 210 and pixel regression process 214. It should be understood that in some such examples, pixel regression loss 217 is used in conjunction with at least the information described herein. Figure 1 Process 100 and / or Figure 3 The system 300 describes machine learning techniques used to train the encoding process 210 and the pixel regression process 214.

[0035] In some examples, the feature prediction output 220 of the feature prediction process 218 includes predicted features of the masked portion of the input image 202. Furthermore, in some examples, the feature prediction output 220 includes predicted features of the visible portion of the input image 202 generated based on the encoded image data from the encoding process 210. However, in most examples, the encoding process 210 and the feature prediction process 218 are trained specifically to generate predicted features of the masked portion of the input image, and therefore no further predicted features of the visible portion of the input image are used during the described training process.

[0036] Furthermore, in some examples, the feature prediction output 220 is used to determine the feature prediction loss 221, which is further used to tune and / or adjust the encoding process 210 and the feature prediction process 218. It should be understood that in some such examples, the feature prediction loss 221 is used in conjunction with, as described herein at least regarding... Figure 1 Process 100 and / or Figure 3 The system 300 describes machine learning techniques used to train the encoding process 210 and the feature prediction process 218.

[0037] Furthermore, in some examples, a trained encoding process 210 is subsequently used to generate a repaired output image from the masked input image. For example, in some such examples, the trained encoding process 210 and at least one decoding process (such as the pixel regression process 214 and / or feature prediction process 218 described herein) are used to encode data from the masked input image into encoded token data, and then decode the encoded token data into repaired image data (such as repaired image pixel data and / or repaired image feature data). The repaired image data is combined with the visible portion of the masked input image to generate the repaired output image.

[0038] Figure 3 This is a block diagram illustrating a system 300 configured to train an encoder network (e.g., encoder 310, pixel regressor 314, and feature predictor 318) to (e.g., at 324 and 326) inject momentum encoder 322 and features into the decoder portion (pixel regressor 314 and feature predictor 318) to repair the masked portion of the input image (e.g., predict and / or estimate the masked image structure and fill it). In some examples, the input image 302 is divided into patches, such as by dividing the image into a set of non-overlapping squares or other shapes based on the dimensions of the input image 302 (e.g., dividing the input image into 64 patches by dividing each of the image's height and width into eight equal-sized portions). Some of the resulting patches are then masked, transforming them into masked patches 306 of the masked image 304, while other patches are left as visible patches 308. For the purposes of system 300, the image data of the masked patch 306 in the masked image 304 is transformed to be empty or at least considered to be empty. The masked patch 306 represents a portion of the input image 302 that the encoder network is trained to repair and / or otherwise predict or estimate.

[0039] In some examples, system 300 includes one or more computing devices (e.g., Figure 6 (Computing devices). In an example where system 300 includes multiple computing devices, the computing devices are configured to communicate with each other using one or more communication networks (e.g., a private intranet, the Internet, etc.). It should be understood that in such examples, without departing from the description, the components of system 300 are distributed among the multiple computing devices in any arrangement.

[0040] In some examples, the parts of system 300 can be represented as follows. The input image 302 is... Where H and W represent the image height and image width (e.g., in pixels or other units), respectively, and C represents the number of color channels in the image (e.g., a color image includes three channels for red, green, and blue). The input image 302 is segmented into non-overlapping patches, resulting in N = H × W / P. 2 There are multiple patches, where P represents the resolution of each patch (e.g., the length of one side of a square patch, expressed in pixels or other units). Therefore, the input image 302 consists of multiple patches X = {x...} 1 ,x 2 ,...,x N} represents, and the vector reshaped from one of the image patches is... This indicates that... Subsequently, some N... m One patch is randomly or pseudo-randomly sampled to be masked (e.g., masked patch 306), and the remaining N v A set of tiles is left as visible (e.g., visible tile 308), where the tile set consists of N = N m +N v The proportion of masksed patches is defined before the process begins and can be defined based on the effectiveness of the training process observed during previous iterations. In some such examples, the proportion of masksed patches is relatively large (e.g., 75% of the patches are masked, while 25% remain visible). If M is the set of indices of the masked patches 306, then the visible patches 308 are represented by... It is indicated that the masked patch 306 is made of In addition, the masked image 304 is represented by X = X v ∪X m and This is indicated. In some such examples, each patch is associated with a location embedding or other indicator that indicates the location of each patch. Such location embeddings include those represented as P. v The position embedding set of the visible patch 308 is represented as P. m The location embedding set of the masked patch.

[0041] To initiate the iteration of training for the encoder network of system 300, a visible patch 308 is provided to encoder 310. Furthermore, in some examples, data is included that associates the location of the visible patch 308 within the masked image 304 with the location of the masked patch 306 (e.g., encoder 310 has information indicating which patches are adjacent to each other and on which side, etc.). Encoder 310 uses a series of image encoder blocks 311 to encode the data of the visible patch 308 into visible patch tokens 312.

[0042] In some examples, encoder 310 includes hardware, firmware, and / or software configured to perform or otherwise execute encoding processes (such as encoding processes 110 and / or 210). Encoder 310 is configured to focus on learning structural knowledge about the input image 302. Furthermore, encoder 310 is configured to output a latent representation modeling the image structure in the form of feature vectors, which are then converted into visible path tokens 312. For example, in some such examples, each visible patch (e.g., image data of the visible patch) is initially projected into an image embedding or vector, and a positional embedding is added to the image embedding to ensure awareness of the position of each patch, thus forming a combined embedding. This combined embedding is then processed by a series of encoding blocks 311 of encoder 310 (e.g., a stack of standard visual transformer blocks based on self-attention). Formally, in one example, the encoding process performed by encoder 310 is defined by Z... v =Enc(X v ,P v ) indicates that Z v It is a latent representation of the image structure in the form of feature vectors, and Enc(.,.) is the encoding function. Furthermore, in some examples, the output of encoder 310 is normalized (e.g., ...). in It is a set of normalized feature vectors, and norm(.) is a normalization function in the form of capturing image structure (e.g., visible patch token 312).

[0043] In the example where only the visible patch 308 is provided to the encoder 310, computational and memory usage is very efficient, even for large-scale models, because the encoder 310 only processes a small fraction of the image patch (e.g., 25%). Furthermore, the removal of the masked patch allows the described training process for the encoder 310 to pre-train and fine-tune the encoder 310, as fine-tuning in other similar training processes enables the encoder 310 to see the visible patch without any masking.

[0044] While the described training process primarily focuses on the use of patch-by-patch masking (e.g., randomly masking the entire patch), other types of masking strategies are employed in other examples. Different masking strategies are favored by different prediction objectives, thus the choice of masking strategy to use can be determined based on the prediction objective of the model being trained.

[0045] Visible patch token 312 is provided to each of the pixel regressor 314 and the feature predictor 318. The pixel regressor 314 uses the data from the visible patch token 312 to predict pixels present in the masked patch 306 of the masked image 304. The pixel regressor 314 uses a series of pixel regressor blocks 315 to perform the regression process. Each of the pixel regressor blocks 315 is provided with an injection of “low-level feature data” (e.g., pixel data from the visible patch 308 before being encoded by the encoder 310), as shown in 324. Feature injection 324 reduces the pressure on the encoder 310 to “memorize” target-specific information during training.

[0046] The feature injection process, represented by 324 and 326, provides contextual information to the pixel regressor 314 and the feature predictor 318, respectively, where the contextual information is provided to each block 315 of the pixel regressor 314 and each block 319 of the feature predictor 318. The contextual information is low-level feature contextual information for each block 315 and high-level feature contextual information for each block 319, respectively. The decoder portion of the encoder network, the pixel regressor 314 and the feature predictor 318, makes predictions based on the structural knowledge provided by the visible patch token 312 and the contextual information of the visible patches provided by the feature injection processes 324 and 326. By feeding this contextual information into each block of the pixel regressor 314 and the feature predictor 318, the encoder 310 is better trained to capture the structural features of the visible patch 308 without learning contextual information specific to the training images used.

[0047] In some examples, pixel regressor 314 includes hardware, firmware, and / or software configured to perform or otherwise execute decoding processes (such as pixel regression process 214). The pixel-level prediction process performed by pixel regressor 314 focuses on low-level details (e.g., pixel-specific data). These processes are enabled and / or improved by providing low-level contextual information to each block 315 of pixel regressor 314 in the form of pixel data values ​​at 324. Alternatively, the feature-level prediction process performed by feature predictor 318 focuses on high-level details (e.g., multi-pixel semantic feature representations). These processes are enabled and / or improved by providing high-level contextual information to each block 319 of feature predictor 318 in the form of encoded feature data at 326. Thus, pixel-based contextual information is provided to pixel regressor 314 from shallow layers of encoder 310 (e.g., layers before processing by transformer blocks), while high-level contextual information is provided to feature predictor 318 from deep layers of decoder 310 (e.g., layers after processing by at least some transformer blocks). In some examples, Used to represent deep or high-level features provided to the feature predictor 318 at position 326, and Used to represent shallow or low-level features of encoder 310 provided to pixel regressor 314 at 324.

[0048] Furthermore, in some examples, a cross-attention operator is used to incorporate the contextual information provided to the pixel regressor 314 and the feature predictor 318 into the blocks of those components. In such examples, features provided from the encoder 310 are used as keywords and values, and features from the regressor 314 or predictor 318 are used as queries for performing cross-attention. The use of the cross-attention operator leverages low-level information for better pixel reconstruction and high-level information for better feature prediction. In some such examples, the cross-attention operator is applied after the self-attention operation in each transform block of the regressor 314 and predictor 318.

[0049] In some examples, the pixel regressor 314 is configured to focus on predicting missing pixels of the masked patch 306, as described herein, given structural knowledge provided by the encoder 310 and contextual information from the visible patch (e.g., low-level feature data and / or pixel values ​​at 324). Pixel-level regression / prediction helps prevent model crashes and guides the model to learn reasoning about the low-level texture of the image. The input to the pixel regressor 314 includes the normalized latent representation output of the encoder 310 in the form of visible patch tokens 312 and shallow or low-level features provided by the feature injection process 324.

[0050] In some examples, the operation of pixel regressor 314 includes adding mask tokens containing a learnable vector associated with the location of a masked patch 306 in the masked image 304. To ensure that the mask tokens are associated with the correct locations, location embeddings are added to each mask token. In some such examples, the regression process performed on the visible patch token 312 and the mask tokens includes two visual transformer blocks and a fully connected layer to predict missing pixels in the mask tokens. However, in other examples, other types of blocks and / or their arrangements are used to predict missing pixels in the mask tokens without departing from the description.

[0051] Furthermore, in some examples, the regression process can be represented as in It is the output of the regression process. It is the normalized output of encoder 310 (e.g., visible patch token 312). The low-level or shallow context information provided by the feature injection process 324, R m It's a masked token, P m It is the positional data associated with the position of the masked patch 306, and Reg(.,.,.,.) is the regression function.

[0052] In some examples, the pixel regression output 316 is compared with pixel data 328 from the input image 302 (e.g., pixel data of pixels in the masked block 306) to determine the pixel regression loss 317. The pixel regression loss 317 is used to tune or otherwise adjust the encoder 310 and the pixel regressor 314 to improve their performance in predicting pixels in the masked portion of the future input image.

[0053] In some such examples, the pixel regression output 316 includes predicted image pixel data (e.g., repaired image pixel data as described herein) at the locations of the masked patch 306 and the visible patch 308. However, in determining the pixel regression loss 317, only the predicted image pixel data associated with the masked patch 306 is used. Each element of the output 316 is a vector representing the pixel values ​​of a patch, such that there exist elements of the output 316 for each patch of the masked image 304. Additionally, in some examples, the objective function for calculating the loss 317 of the pixel regressor 314 is expressed as... in It uses a patch The patch is represented by a normalized version of the average and standard deviation calculated from all pixels in the patch, and... yes The representation of the mask patch after reconstruction.

[0054] In some examples, feature predictor 318 includes hardware, firmware, and / or software configured to perform or otherwise execute decoding processes (such as feature prediction processes 118 and / or 218). Feature predictor 318 uses data from visible patch token 312 to predict high-level features, shape, etc., of the masked patch 306 of the masked image 304. Feature predictor 318 uses a series of feature predictor blocks 319 to perform the prediction process. Each of the feature predictor blocks 319 is provided with an injection of “high-level feature data” (e.g., structural features, contextual data from visible patch 308, etc.), as illustrated in 326. Feature injection 326 reduces the pressure on encoder 310 to “memorize” target-specific information during training.

[0055] In some examples, the feature predictor 318 is configured to predict features of the masked patch 306 based on structural knowledge from the encoder 310 and contextual information from the visible patch 308 (e.g., high-level feature data at 326), as described herein. The high-level feature prediction objective guides the encoder network or model to learn reasoning about high-level semantics. The input to the feature predictor 318 includes a normalized latent representation from the encoder 310 in the form of visible patch tokens 312 and deep features providing contextual information from the feature injection process 326. A set of mask tokens representing the masked patch 306 of the masked image 304 is added, and they are associated with positional embeddings, as described above with respect to the pixel regressor 314. In some such examples, the feature prediction process consists of two transformer blocks with multilayer perceptron (MLP) layers for prediction. In other instances, other types of blocks and / or their arrangements are used without departing from the specification.

[0056] The feature prediction process is trained and configured to predict high-level features in the mask token based on data from the visible patch token 312 and contextual information from feature injection 326. In such an example, the resulting feature prediction output 320 includes predicted feature image data at the location of the masked patch 306 and image data of the input image at the location of the visible patch 308.

[0057] Furthermore, in some examples, the feature prediction process is represented as in It is the output of the feature prediction process. It is the normalized output of encoder 310 (e.g., visible patch token 312). The high-level or deep contextual information provided by the feature injection process 326, S m It's a masked token, P m It is the positional data associated with the position of the masked patch 306, and Pre(.,.,.,.) is the feature prediction function.

[0058] In some examples, the feature prediction output 320 is compared with the encoded feature data 332 from the automatic encoder 322 to determine the feature prediction loss 321. The feature prediction loss 321 is used to tune or otherwise adjust the encoder 310 and the feature predictor 318 to improve their performance in predicting high-level features in the masked portion of a future input image.

[0059] In some such examples, the feature prediction output 320 includes predicted feature image data (e.g., repaired image feature data as described herein) at the locations of the masked patch 306 and the visible patch 308. However, in determining the feature prediction loss 321, only the predicted feature image data associated with the masked patch 306 is used. The feature prediction output 320 is compared with ground truth prediction feature data, which is the latent representation of the input image 302 obtained by passing the input image 302 data through the momentum encoder 322 to obtain encoded feature data 332. In some such examples, the momentum encoder 322 is configured by using the weights of the EMA parameterized encoder 310. Furthermore, in some examples, the objective function for calculating the loss 321 of the feature predictor 318 can be expressed as... Where #dim is the feature dimension of the token. It is a token in the base truth token set of encoded feature data 332, and These are the tokens in the token set of the feature prediction output 320. In some such examples, the overall loss of the encoder network can be expressed as... in It is a pixel regression loss of 317. λ is the feature prediction loss of 321, while λ is the hyperparameter tuning value of the loss weights (e.g., set to 1 by default, but can also be set to other values).

[0060] A momentum encoder 322 is used at 330 to encode image data from input image 302 so that encoded feature data 332 can be used when determining feature prediction loss 321. The momentum encoder 322 is updated based on encoder 310, such that adjustments made to encoder 310 are reflected in the momentum encoder 322, providing a dynamic and accurate objective for training feature predictor 318 and encoder 310, thus providing richer and deeper semantics than other implementations using fixed objectives. In some examples, the momentum encoder 322 is a temporal set of encoder 310, where weights are parameterized by an exponential moving average (EMA) of encoder 310 parameters. For each iteration, the complete input image 302 is passed to the momentum encoder 322 via 330 and processed by layers or blocks 323 of the momentum encoder 322 to provide a baseline ground truth representation for the masked patch 306 when evaluating the output 320 of feature predictor 318 and calculating loss 321, as described herein.

[0061] After the encoder network of system 300 is considered to be sufficiently trained (e.g., the determined losses 317 and 321 are small enough), the encoder network is then used for downstream tasks such as repairing parts of the input image including masked or defective regions, classification, object detection, and segmentation.

[0062] For example, in some examples, a trained encoder 310 is then used to generate a repaired output image from the masked input image. For example, in some such examples, the trained encoder 310 and at least one decoder (such as a pixel regressor 314 and / or feature predictor 318 as described herein) are used to encode data from the masked input image into encoded token data, and then decode the encoded token data into repaired image data (such as repaired image pixel data and / or repaired image feature data). The repaired image data is combined with the visible portion of the masked input image to generate the repaired output image.

[0063] Figure 4 This is a flowchart illustrating method 400 used to train a main encoding process to repair a partially masked image using pixel regression and feature prediction. In some examples, method 400 consists of, for example, Figure 1 And / or 2 processes, such as 100 and / or 200, are performed or otherwise executed, and / or in processes such as Figure 3 It is executed in systems such as 300.

[0064] At 402, the visible portion of the masked input image is encoded into encoded token data using the main encoding process. In some examples, the encoding is performed by encoding processes such as encoding processes 110 and / or 210 and / or encoder components such as encoder 310.

[0065] Furthermore, in some examples, method 400 includes receiving an unmasked version of a masked input image, dividing the received unmasked version of the masked input image into a set of non-overlapping patches, applying a mask to a first subset of the non-overlapping patch set, wherein the first patch subset is the masked patch set, and a second subset of the non-overlapping patch subset is the visible patch set, wherein the visible portion of the masked input image includes the visible patch set, and wherein encoded token data includes an encoded token for each visible patch in the visible patch set.

[0066] At 404, the token data is decoded into pixel regression output (e.g., pixel regression output 216 and / or 316), where the pixel regression output includes repaired image pixel data associated with the masked portion of the masked input image. In some examples, this decoding of the token data is performed via a pixel regression process such as process 214 and / or via a pixel regressor component such as pixel regressor 314.

[0067] At 406, the token data is decoded into feature prediction outputs (e.g., feature prediction outputs 120, 220, and / or 320), wherein the feature prediction outputs include repaired image feature data associated with the masked portion of the masked input image. In some examples, this decoding of the token data is performed via feature prediction processes such as processes 118 and / or 218 and / or via feature predictor components such as feature predictor 318.

[0068] At 408, pixel regression loss (e.g., pixel regression loss 217 and / or 317) is determined using pixel data from the pixel regression output and the unmasked version of the masked input image.

[0069] At 410, the feature prediction output and the benchmark truth encoding output (e.g., benchmark truth encoding output 132 and / or 332) of the benchmark truth momentum encoding process (e.g., benchmark truth momentum encoding process 122 and / or momentum encoder 322) applied to the unmasked version of the masked input image (e.g., input image 102 and / or 302) are used to determine the feature prediction loss (e.g., feature prediction loss 121, 221 and / or 321).

[0070] In section 412, the determined pixel regression loss and the determined feature prediction loss are used to train the main encoding process. In some examples, machine learning techniques are used to train the main encoding process. Furthermore, in some such examples, training the encoding process involves changing the process parameters to improve the encoding process's ability to generate encoded token data that reflects the features of the input image.

[0071] Furthermore, in some examples, a trained master encoding process is then used to generate a restored output image from the masked input image. For example, in some such examples, a trained master encoding process and at least one decoding process (such as the pixel regression process and / or feature prediction process described herein) are used to encode the data of the masked input image into encoded token data, and then decode the encoded token data into restored image data (such as restored image pixel data and / or restored image feature data). The restored image data is then combined with the visible portion of the masked input image to generate the restored output image.

[0072] Additionally or alternatively, method 400 includes updating the parameters of the benchmark ground-momentum coding process based on changes made to it during training of the main coding process. In some such examples, updating the parameters of the benchmark ground-momentum coding process includes updating the parameters of the EMA based on the parameters of the main coding process.

[0073] In some examples, training the main encoding process includes pre-training the encoding process and / or model using a training dataset. Additionally or alternatively, training the main encoding process includes training and / or tuning the encoding process and / or model using other types of data as training data. For example, in some examples, the described systems and methods are configured such that the encoding process and / or model can be trained at the edge of the training system and / or on other devices outside the client device or pre-training system. In some such examples, the data used to train the process and / or model includes client- or other entity-specific image data, and the trained process and / or model will be used by the client or other entity (e.g., providing a pre-trained encoder model to the client entity, which then further tunes the pre-trained encoder model using image data associated with the client entity's operations, such that the model is tuned to work with image types specific to the client entity).

[0074] Figure 5 This is a flowchart illustrating method 500 for training an encoder network to repair a partially masked image during decoding using feature injection. In some examples, method 500 consists of, for example, Figure 1 And / or 2 processes, such as 100 and / or 200, are performed or otherwise executed, and / or in processes such as Figure 3 It is executed in systems such as 300.

[0075] At 502, the visible portion of the masked input image is encoded into encoded token data using an encoding process and / or an encoder. In some examples, the encoding is performed by an encoding process such as encoding process 110 and / or 210 and / or an encoder component such as encoder 310.

[0076] At 504, encoded token data and low-level feature data are provided to the pixel regression process (e.g., pixel regression process 214) and / or the pixel regressor component (e.g., pixel regressor 314). In some examples, the low-level feature data includes pixel values ​​and / or pixel data from the visible portion of the masked input image. Additionally or alternatively, the low-level feature data is provided to the pixel regressor from shallow or early stages of the encoder process, such as before the data is transformed by the encoder's transform block or layer. Furthermore, in some examples, the pixel regressor includes multiple layers that serially operate on the data, and provides low-level feature data to each of the multiple layers, thereby providing a consistent context for decoding encoded tokens that are not derived from the encoded token itself.

[0077] At 506, encoded token data and high-level feature data are provided to a feature prediction process (e.g., feature prediction process 218) and / or a feature predictor component (e.g., feature predictor 318). In some examples, the high-level feature data includes data reflecting multi-pixel structures from the visible portion of a masked input image. Additionally or alternatively, the high-level feature data is provided to the feature predictor from deeper or later stages of the encoding process, such as after the data has been transformed by a transformer block or layer of the encoder. Furthermore, in some examples, the feature predictor includes multiple layers that perform operations on concatenated data, and provides high-level feature data to each of the multiple layers, thereby providing a consistent context for decoding an encoded token that is not derived from the encoded token itself.

[0078] At 508, the encoded token data is decoded into a pixel regression output using a pixel regression process and / or a pixel regressor component, and at 510, the encoded token data is decoded into a feature prediction output using a feature prediction process and / or a feature predictor component. At 512, the pixel regression loss is determined using the pixel regression output and pixel data from the input image, and at 514, the feature prediction loss is determined using the feature prediction output and encoded data from an automotive encoder (e.g., a baseline ground truth momentum encoding process 122 and / or a momentum encoder 322) (using image data from the input image).

[0079] In section 516, a pixel regressor is trained using pixel regression loss; in section 518, an encoder is trained using both pixel regression loss and feature prediction loss; and in section 520, a feature predictor is trained using feature prediction loss. In some examples, machine learning techniques are used to perform the training of these components. In some such examples, the encoder is trained to improve its ability to generate encoded token data that reflects features of the input image, the pixel regressor is trained to improve its ability to repair pixel-level image data into masked portions of the input image, and the feature predictor is trained to improve its ability to repair multi-pixel-level structural feature data into masked portions of the input image.

[0080] Additional examples

[0081] In some examples, a trained encoder network (e.g., trained encoding processes 110, 220, and / or encoder 310, and decoding processes and / or decoders, such as pixel regression process 214, pixel regressor 314, feature prediction process 219, and / or feature predictor 318) is provided to an entity (such as a client), which will use the trained encoder network to generate a repaired output image (e.g., an image based on a masked input image, comprising the visible portion of the masked input image and repaired image data replacing the masked portion in the masked input image). The entity receiving the trained encoder network is able to provide the masked input image to the trained encoder network and obtain the generated repaired output image from it.

[0082] Furthermore, in some such examples, the entity can further train and / or fine-tune a trained encoder network using training data in the form of masked input images for which full image data is available (e.g., image data of the masked portion of the masked input image is known). For example, the entity can be enabled to provide a masked input image of the training data to a trained encoder network and generate a repaired output image using the trained encoder network. The repaired output image can then be compared to the full image data of the masked input image, and the trained encoder network can be tuned based on this comparison (e.g., adjusting or otherwise changing the parameters of the encoder and / or decoder processes). The entity can also perform such fine-tuning iteratively using multiple masked input images from the training data. In some such examples, the entity uses an image set reflecting image patterns, against which the entity uses the trained encoder network, such that the trained encoder network is fine-tuned to generate a repaired output image from an entity-specific masked input image.

[0083] Exemplary operating environment

[0084] This disclosure can be made by means of an embodiment. Figure 6The computing device 618 is operated by the functional block diagram 600 herein. In one example, the components of the computing device 618 are implemented as part of an electronic device according to one or more embodiments described herein. The computing device 618 includes one or more processors 619, which may be microprocessors, controllers, or any other suitable type of processor for processing computer-executable instructions to control the operation of the electronic device. Alternatively or additionally, the processor 619 is any technology (such as a hard-coded machine) capable of executing logic or instructions. In some examples, platform software, including an operating system 618 or any other suitable platform software, is provided on the device 620 to enable application software 621 to be executed on the device. In some examples, the restoration of an image including occluded portions is accomplished by software, hardware, and / or firmware, as described herein, by training an encoder network using a momentum encoder for training the target and feature injection for context-aware decoding.

[0085] In some examples, any computer-readable medium accessible to computing device 618 is used to provide computer-executable instructions. Computer-readable media include, for example, computer storage media such as memory 622 and communication media. Computer storage media such as memory 622 include volatile and non-volatile, removable and non-removable media implemented using any method or technique for storing information such as computer-readable instructions, data structures, program modules, etc. Computer storage media include, but are not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), permanent memory, phase-change memory, flash memory or other storage technologies, optical disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, cassette tape, magnetic tape, disk storage, stacked disc storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information for access by computing device. In contrast, communication media can embody computer-readable instructions, data structures, program modules, etc., as modulated data signals such as carrier waves or other transmission mechanisms. As defined herein, computer storage media does not include communication media. Therefore, the computer storage medium itself should not be understood as a propagating signal. A propagating signal is not itself an example of a computer storage medium. Although the computer storage medium (memory 622) is shown as being within the computing device 618, those skilled in the art will appreciate that in some examples, the storage is distributed or located remotely and accessed via a network or other communication link (e.g., using communication interface 623).

[0086] Furthermore, in some examples, the computing device 618 includes an input / output controller 624 configured to output information to one or more output devices 625 (e.g., displays or speakers) that are separate from or integrated with electronic devices. Additionally or alternatively, the input / output controller 624 is configured to receive and process input from one or more input devices 626 (e.g., keyboards, microphones, or touchpads). In one example, the output device 625 also acts as an input device. An example of such a device is a touch-sensitive display. The input / output controller 624 may also output data to devices other than the output devices (e.g., locally connected printing devices). In some examples, a user provides input to the input devices 626 and / or receives output from the output devices 625.

[0087] The functionality described herein can be implemented, at least in part, by one or more hardware logic components. According to one embodiment, computing device 618 is configured by program code that executes embodiments of the described operations and functionality when executed by processor 619. Alternatively or additionally, the functionality described herein can be implemented, at least in part, by one or more hardware logic components. Illustrative types of hardware logic components that may be used, by way of example and not limitation, include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), program-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and graphics processing units (GPUs).

[0088] At least some of the functions of the various elements in the accompanying drawings may be performed by other elements in the accompanying drawings or entities not shown in the accompanying drawings (e.g., processors, web services, servers, applications, computing devices, etc.).

[0089] Although described in conjunction with an exemplary computing system environment, the various examples of this disclosure can be implemented with a wide range of other general-purpose or special-purpose computing system environments, configurations, or devices.

[0090] Examples of well-known computing systems, environments, and / or configurations applicable to various aspects of this disclosure include, but are not limited to: mobile or portable computing devices (such as smartphones), personal computers, server computers, handheld devices (e.g., tablets) or laptop devices, multiprocessor systems, game consoles or controllers, microprocessor-based systems, set-top boxes, programmable consumer electronics, mobile phones, mobile computing and / or communication devices with wearable or accessory form factors (e.g., watches, glasses, headphones, or earphones), network PCs, minicomputers, mainframe computers, distributed computing environments including any of the systems or devices described above, and so on. In general, this disclosure can be operated by any device having processing power that enables it to execute instructions such as those described herein. Such systems or devices accept input from users in any manner, including from input devices such as keyboards or pointing devices, gesture input, proximity input (such as by hovering), and / or voice input.

[0091] The examples of this disclosure can be described in the general context of computer-executable instructions (such as program modules) that are executed by one or more computers or other devices, including software, firmware, hardware, or combinations thereof. Computer-executable instructions can be organized into one or more computer-executable components or modules. Generally, program modules include, but are not limited to, routines, programs, objects, components, and data structures that perform a particular task or implement a particular abstract data type. Any number of such components or modules and any organization thereof can be used to implement aspects of this disclosure. For example, aspects of this disclosure are not limited to the specific computer-executable instructions or specific components or modules illustrated in the accompanying drawings and described herein. Other examples of this disclosure include different computer-executable instructions or components having more or fewer functions than those shown and described herein.

[0092] In examples involving general-purpose computers, aspects of this disclosure transform a general-purpose computer into a special-purpose computing device when configured to execute the instructions described herein.

[0093] An example system includes: at least one processor; and at least one memory including computer program code, the at least one memory and the computer program code being configured together with the at least one processor to cause the at least one processor to: encode a visible portion of a masked input image into encoded token data using a main encoding process, wherein the masked input image includes the visible portion and the masked portion; decode the encoded token data into a pixel regression output, the pixel regression output including repaired image pixel data associated with the masked portion of the masked input image; decode the encoded token data into a feature predictor output, the feature predictor output including repaired image feature data associated with the masked portion of the masked input image; and train the main encoding process using the repaired image pixel data of the pixel regression output and the repaired image feature data of the feature predictor output, whereby the main encoding process is trained to encode structural features of the input image into encoded token data.

[0094] An example computerized method includes: encoding a visible portion of a masked input image into encoded token data by a processor using a main encoding process, wherein the masked input image includes the visible portion and the masked portion; decoding the encoded token data into a pixel regression output by the processor, the pixel regression output including repaired image pixel data associated with the masked portion of the masked input image; decoding the encoded token data into a feature predictor output by the processor, the feature predictor output including repaired image feature data associated with the masked portion of the masked input image; and training the main encoding process by the processor using the repaired image pixel data from the pixel regression output and the repaired image feature data from the feature predictor output, thereby training the main encoding process to encode structural features of the input image into encoded token data.

[0095] One or more computer storage media having computer-executable instructions that, when executed by a processor, cause the processor to perform at least the following operations: receiving a masked input image to be repaired by a trained encoder network, wherein the masked input image includes a visible portion and a masked portion; encoding the visible portion of the masked input image into encoded token data using a main encoding process of the trained encoder network; decoding the encoded token data into a pixel regression output using a pixel regression process of the trained encoder network, the pixel regression output including repaired image pixel data associated with the masked portion of the masked input image; decoding the encoded token data into a feature predictor output using a feature prediction process of the trained encoder network, the feature predictor output including repaired image feature data associated with the masked portion of the masked input image; and generating a repaired output image using the repaired image pixel data from the pixel regression output and the repaired image feature data from the feature predictor output.

[0096] As an alternative to or supplement to other examples described herein, examples include any combination of the following:

[0097] - Further includes: using the pixel regression output and pixel data of the unmasked version of the masked input image to determine the pixel regression loss; using the feature prediction output and the benchmark ground momentum encoding output applied to the unmasked version of the masked input image to determine the feature prediction loss; and updating the parameters of the benchmark ground momentum encoding process by the processor based on the exponential moving average (EMA) of the parameters of the trained master encoding process.

[0098] - wherein the pixel regression output is decoded from encoded token data by a pixel regressor, and the feature prediction output is decoded from encoded token data by a feature predictor; and the computerized method further includes: training the pixel regressor by the processor using a determined pixel regression loss; and training the feature predictor by the processor using a determined feature prediction loss; wherein training the main encoding process using the repaired image pixel data from the pixel regression output and the repaired image feature data from the feature predictor output includes training the main encoding process using the determined pixel regression loss and the determined feature prediction loss.

[0099] - Further includes: obtaining low-level feature data by the processor based on the visible portion of the masked input image from the main encoding process; providing the obtained low-level feature data to the pixel regressor by the processor, wherein the provided low-level feature data is used to decode the encoded token data into the pixel regression output; obtaining high-level feature data by the processor based on the visible portion of the masked input image from the main encoding process; and providing the obtained high-level feature data to the feature predictor by the processor, wherein the provided high-level feature data is used to decode the encoded token data into the feature prediction output.

[0100] - wherein the low-level feature data is obtained from a portion of the main encoding process before the transform subprocess of the main encoding process; wherein the low-level feature data is provided to each block of the pixel regressor; wherein the high-level feature data is obtained from a portion of the main encoding process after the transform subprocess of the main encoding process; and wherein the high-level feature data is provided to each block of the feature predictor.

[0101] -The low-level feature data includes pixel value data associated with each pixel of the visible portion of the masked input image.

[0102] - Further includes: receiving an unmasked version of the masked input image by the processor; dividing the received unmasked version of the masked input image into a set of non-overlapping patches by the processor; and applying a mask to a first subset of the set of non-overlapping patches by the processor, wherein the first subset of patches is a set of masked patches, and a second subset of the set of non-overlapping patches is a set of visible patches; wherein the masked portion of the masked input image includes the set of masked patches, and the visible portion of the masked input image includes the set of visible patches; and wherein the encoded token data includes an encoded token for each visible patch in the set of visible patches.

[0103] -The trained encoder network is trained using at least the following: using the pixel regression output and pixel data of the unmasked version of the masked input image to determine the pixel regression loss; and using the feature prediction output and the benchmark ground momentum encoding output applied to the unmasked version of the masked input image to determine the feature prediction loss, wherein the parameters of the benchmark ground momentum encoding process are updated based on the exponential moving average (EMA) of the parameters of the trained master encoding process.

[0104] The trained encoder network is trained to: obtain low-level feature data based on the visible portion of the masked input image from the main encoding process; provide the obtained low-level feature data to the pixel regression process, wherein the provided low-level feature data is used to decode the encoded token data into the pixel regression output; obtain high-level feature data based on the visible portion of the masked input image from the main encoding process; and provide the obtained high-level feature data to the feature prediction process, wherein the provided high-level feature data is used to decode the encoded token data into the feature prediction output.

[0105] - wherein the low-level feature data is obtained from a portion of the main encoding process before the transform subprocess of the main encoding process; wherein the low-level feature data is provided to each block of the pixel regression process; wherein the high-level feature data is obtained from a portion of the main encoding process after the transform subprocess of the main encoding process; and wherein the high-level feature data is provided to each block of the feature prediction process.

[0106] - wherein the masked input image includes image data associated with the masked portion of the masked input image for use as training data; and wherein the computer-executable instructions, when executed by a processor, further cause the processor to train at least the trained encoder network based on the image data associated with the masked portion of the masked input image and the generated restored output image, whereby the trained encoder network is further trained to generate the restored output image based on the masked input image.

[0107] - wherein the masked input image comes from a training dataset of masked input images associated with an entity to which the trained encoder network is provided; and wherein the trained encoder network is further trained based on other masked input images from the training dataset of masked input images, thereby training the trained encoder network to generate a repaired output image from the masked input image associated with the entity.

[0108] - Further includes: receiving a second masked input image; and generating a repaired output image from the received second masked input image using a trained master encoding process and at least one decoding process.

[0109] As will be apparent to those skilled in the art, any range or device value given herein may be extended or altered without losing the desired effect.

[0110] Examples have been described with reference to data monitored and / or collected from users (e.g., user identification data about profiles). In some examples, users are notified about data collection (e.g., via dialog boxes or preferences) and given the opportunity to consent to or refuse to consent to the monitoring and / or collection. This consent takes the form of opting in or opting out of consent.

[0111] Although the subject matter of the invention has been described using language specific to structural features and / or methodological actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are disclosed as examples of implementing the claims.

[0112] It will be understood that the benefits and advantages described above may relate to one embodiment or several embodiments. The embodiments are not limited to those embodiments that solve any or all of the problems set forth, or those embodiments that have any or all of the benefits and advantages set forth. It will be further understood that a reference to “one” means one or more of those items.

[0113] The embodiments illustrated and described herein, as well as embodiments not specifically described herein but within the scope of the claims, constitute: exemplary means for encoding the visible portion of a masked input image into encoded token data by a processor using a main encoding process, wherein the masked input image includes the visible portion and the masked portion; exemplary means for decoding the encoded token data into a pixel regression output by the processor, the pixel regression output including repaired image pixel data associated with the masked portion of the masked input image; and exemplary means for decoding the encoded token data into a feature predictor output by the processor, the feature predictor output including... The following are examples of the following: repaired image feature data associated with the masked portion of a masked input image; exemplary means for determining pixel regression loss using the pixel regression output and pixel data of the unmasked version of the masked input image; exemplary means for determining feature prediction loss by the processor using the feature prediction output and the benchmark truth encoding output of the benchmark truth momentum encoding process applied to the unmasked version of the masked input image; and exemplary means for training the master encoding process by the processor using the determined pixel regression loss and the determined feature prediction loss, whereby the master encoding process is trained to encode structural features of the input image into encoded token data.

[0114] The term "comprising" is used in this specification to mean including (one or more) features or (one or more) actions that subsequently accompany it, without excluding the presence of one or more additional features or actions.

[0115] In some examples, the operations illustrated in the figures are implemented as software instructions encoded on a computer-readable medium to be programmed or designed to perform the operations in hardware, or both. For example, aspects of this disclosure are implemented as a system-on-a-chip or other circuitry comprising multiple interconnected conductive elements.

[0116] The order in which the operations in the examples of this disclosure are performed or completed is not required unless otherwise specified. That is, unless otherwise specified, the operations may be performed in any order, and the examples of this disclosure may include additional operations or fewer operations than those disclosed herein. For example, it is also contemplated that another operation be performed or completed before, simultaneously with, or after an operation, which is also within the scope of various aspects of this disclosure.

[0117] When describing elements or examples of aspects of this disclosure, the articles “a,” “an,” “the,” and “the” are intended to mean one or more such elements. The terms “comprising,” “including,” and “having” are intended to be inclusive and mean that additional elements may exist in addition to the listed elements. The term “exemplary” is intended to mean “an example of.” One or more of the phrases “A, B, and C” mean “at least one of A and / or at least one of B and / or at least one of C.”

[0118] Various aspects of this disclosure have been described in detail, and it will be apparent that various modifications and variations may be made without departing from the scope of the aspects of this disclosure as defined in the appended claims. Various changes may be made to the above constructions, products, and methods without departing from the scope of the aspects of this disclosure, and it is intended that all subject matter contained in the above description and shown in the accompanying drawings should be interpreted as illustrative rather than restrictive.

Claims

1. A system comprising: At least one processor; as well as At least one memory including computer program code, the at least one memory and the computer program code being configured together with the at least one processor to cause the at least one processor to perform the following operations: The visible portion of a masked input image is encoded into encoded token data using a main encoding process, wherein the masked input image includes both the visible portion and the masked portion; The encoded token data is decoded into a pixel regression output, which includes repaired image pixel data associated with the masked portion of the masked input image; The encoded token data is decoded into a feature predictor output, which includes repaired image feature data associated with the masked portion of the masked input image; The pixel regression loss is determined using the pixel regression output and the pixel data of the unmasked version of the masked input image; The feature prediction loss is determined using the feature prediction output and the benchmark ground value encoding output of the benchmark ground value momentum encoding process applied to the unmasked version of the masked input image; as well as The master encoding process is trained using the repaired image pixel data output by the pixel regression and the repaired image feature data output by the feature predictor, thereby training the master encoding process to encode the structural features of the input image into encoded token data.

2. The system as described in claim 1, characterized in that, The at least one memory and the computer program code are configured, together with the at least one processor, to further cause the at least one processor to perform the following operations: The parameters of the baseline truth momentum encoding process are updated based on the exponential moving average (EMA) of the parameters of the trained master encoding process.

3. The system as described in claim 2, characterized in that, The pixel regression output is decoded from the encoded token data by the pixel regressor, and the feature prediction output is decoded from the encoded token data by the feature predictor. as well as The at least one memory and the computer program code are configured, together with the at least one processor, to further cause the at least one processor to perform the following operations: The pixel regressor is trained using a determined pixel regression loss; as well as The feature predictor is trained using a determined feature prediction loss. The process of training the main encoding process using the repaired image pixel data output by the pixel regression and the repaired image feature data output by the feature predictor includes training the main encoding process using the determined pixel regression loss and the determined feature prediction loss.

4. The system as described in claim 3, characterized in that, The at least one memory and the computer program code are configured, together with the at least one processor, to further cause the at least one processor to perform the following operations: Low-level feature data is obtained based on the visible portion of the masked input image from the main encoding process; The obtained low-level feature data is provided to the pixel regressor, wherein the provided low-level feature data is used to decode the encoded token data into the pixel regression output; High-level feature data is obtained based on the visible portion of the masked input image from the main encoding process; as well as The obtained high-level feature data is provided to the feature predictor, wherein the provided high-level feature data is used to decode the encoded token data into the feature prediction output.

5. The system as described in claim 4, characterized in that, The low-level feature data is obtained from a portion of the main encoding process prior to the transformation subprocess of the main encoding process; The low-level feature data is provided to each block of the pixel regressor; The high-level feature data is obtained from a portion of the main encoding process after the transformation subprocess of the main encoding process; and The high-level feature data is provided to each block of the feature predictor.

6. The system as described in claim 1, characterized in that, The at least one memory and the computer program code are configured, together with the at least one processor, to further cause the at least one processor to perform the following operations: Receive the second masked input image; as well as The repaired output image is generated from the received second masked input image using a trained master encoding process and at least one decoding process.

7. The system as described in claim 1, characterized in that, The at least one memory and the computer program code are configured, together with the at least one processor, to further cause the at least one processor to perform the following operations: Receive the unmasked version of the masked input image; The unmasked version of the received masked input image is divided into a set of non-overlapping patches; as well as A mask is applied to a first subset of the non-overlapping patch set, wherein the first subset of the non-overlapping patch set is a masked patch set, and a second subset of the non-overlapping patch set is a visible patch set; The masked portion of the masked input image includes the masked patch set, and the visible portion of the masked input image includes the visible patch set; and The encoded token data includes an encoded token for each visible patch in the set of visible patches.

8. A computerized method, comprising: The processor uses a main encoding process to encode the visible portion of a masked input image into encoded token data, wherein the masked input image includes both the visible portion and the masked portion; The processor decodes the encoded token data into a pixel regression output, the pixel regression output including repaired image pixel data associated with the masked portion of the masked input image; The processor decodes the encoded token data into a feature predictor output, which includes repaired image feature data associated with the masked portion of the masked input image; The pixel regression loss is determined using the pixel regression output and the pixel data of the unmasked version of the masked input image; The feature prediction loss is determined using the feature prediction output and the benchmark ground value encoding output of the benchmark ground value momentum encoding process applied to the unmasked version of the masked input image; as well as The processor uses the repaired image pixel data output by the pixel regression and the repaired image feature data output by the feature predictor to train the main encoding process, thereby training the main encoding process to encode the structural features of the input image into encoded token data.

9. The computerized method as described in claim 8, characterized in that, Further includes: The processor updates the parameters of the baseline truth momentum encoding process based on the exponential moving average (EMA) of the parameters of the trained master encoding process.

10. The computerized method as described in claim 9, characterized in that, The pixel regression output is decoded from the encoded token data by the pixel regressor, and the feature prediction output is decoded from the encoded token data by the feature predictor. as well as The computerized method further includes: The processor trains the pixel regressor using a determined pixel regression loss; and The processor trains the feature predictor using a determined feature prediction loss. The process of training the main encoding process using the repaired image pixel data output by the pixel regression and the repaired image feature data output by the feature predictor includes training the main encoding process using the determined pixel regression loss and the determined feature prediction loss.

11. The computerized method as described in claim 10, characterized in that, Further includes: The processor obtains low-level feature data based on the visible portion of the masked input image from the main encoding process; The processor provides the obtained low-level feature data to the pixel regressor, wherein the provided low-level feature data is used to decode the encoded token data into the pixel regression output; The processor obtains high-level feature data based on the visible portion of the masked input image from the main encoding process; as well as The processor provides the acquired high-level feature data to the feature predictor, wherein the provided high-level feature data is used to decode the encoded token data into the feature prediction output.

12. The computerized method as described in claim 11, characterized in that, The low-level feature data is obtained from a portion of the main encoding process prior to the transformation subprocess of the main encoding process; The low-level feature data is provided to each block of the pixel regressor; The high-level feature data is obtained from a portion of the main encoding process after the transformation subprocess of the main encoding process; and The high-level feature data is provided to each block of the feature predictor.

13. The computerized method as described in claim 11, characterized in that, The low-level feature data includes pixel value data associated with each pixel of the visible portion of the masked input image.

14. The computerized method as described in claim 8, characterized in that, Further includes: The processor receives an unmasked version of the masked input image; The processor divides the unmasked version of the received masked input image into a set of non-overlapping patches; as well as The processor applies a mask to a first subset of the non-overlapping patch set, wherein the first subset of the non-overlapping patch set is a masked patch set, and the second subset of the non-overlapping patch set is a visible patch set; The masked portion of the masked input image includes the masked patch set, and the visible portion of the masked input image includes the visible patch set; and The encoded token data includes an encoded token for each visible patch in the set of visible patches.

15. One or more computer storage media having computer-executable instructions, which, when executed by a processor, cause the processor to perform at least the following operations: A trained encoder network receives a masked input image to be repaired, wherein the masked input image includes a visible portion and a masked portion; The main encoding process of the trained encoder network encodes the visible portion of the masked input image into encoded token data. The encoded token data is decoded into a pixel regression output using the pixel regression process of the trained encoder network, the pixel regression output including repaired image pixel data associated with the masked portion of the masked input image; The encoded token data is decoded into a feature predictor output using the feature prediction process of the trained encoder network, the feature predictor output including repaired image feature data associated with the masked portion of the masked input image; as well as The repaired image pixel data output by the pixel regression and the repaired image feature data output by the feature predictor are used to generate the repaired output image; The trained encoder network is trained using at least the following: The pixel regression loss is determined using the pixel regression output and the pixel data of the unmasked version of the masked input image; as well as The feature prediction loss is determined using the feature prediction output and the benchmark ground-momentum encoding output of the benchmark ground-momentum encoding process applied to the unmasked version of the masked input image, wherein the parameters of the benchmark ground-momentum encoding process are updated based on the exponential moving average (EMA) of the parameters of the trained master encoding process.

16. The computer storage medium as claimed in claim 15, characterized in that, The trained encoder network was trained to: Low-level feature data is obtained based on the visible portion of the masked input image from the main encoding process; The obtained low-level feature data is provided to the pixel regression process, wherein the provided low-level feature data is used to decode the encoded token data into the pixel regression output; High-level feature data is obtained based on the visible portion of the masked input image from the main encoding process; as well as The obtained high-level feature data is provided to the feature prediction process, wherein the provided high-level feature data is used to decode the encoded token data into the feature prediction output.

17. One or more computer storage media as claimed in claim 16, characterized in that, The low-level feature data is obtained from a portion of the main encoding process prior to the transformation subprocess of the main encoding process; The low-level feature data is provided to each block of the pixel regression process; The high-level feature data is obtained from a portion of the main encoding process after the transformation sub-process of the main encoding process; and The high-level feature data is provided to each block of the feature prediction process.

18. One or more computer storage media as claimed in claim 15, characterized in that, The masked input image includes image data associated with the masked portion of the masked input image for use as training data; and The computer-executable instructions, when executed by a processor, further cause the processor to train at least the trained encoder network based on the image data associated with the masked portion of the masked input image and the generated restored output image, whereby the trained encoder network is further trained to generate the restored output image based on the masked input image.

19. One or more computer storage media as claimed in claim 18, characterized in that, The masked input image comes from a masked input image training dataset associated with the entity to which the trained encoder network is provided; as well as The trained encoder network is further trained based on other masked input images in the masked input image training dataset, thereby training the trained encoder network to generate a repaired output image from the masked input image associated with the entity.