Cascaded multiresolution machine learning for computationally efficient image processing
A cascaded multi-resolution approach with two machine learning models addresses the challenge of high-resolution image processing on resource-constrained devices by reducing computational load while maintaining image quality through a two-step processing method.
Patent Information
- Application Number
- JP2024519724
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2021-10-01
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2041-10-01
AI Technical Summary
The challenge of operating machine learning models for image processing on high-resolution images is significant due to increased memory usage and latency, making it difficult on resource-constrained devices like smartphones, while processing at lower resolutions degrades image quality.
A cascaded multi-resolution approach using two machine learning models, where the first model processes a lower resolution version of the image to extract contextual information, followed by a second model processing a higher resolution subset to enhance detail, thereby reducing computational resources while maintaining quality.
This method achieves improved trade-offs between image processing quality and computational resource usage, allowing high-quality image processing even on devices with limited resources by leveraging semantic information across the entire image.
Smart Images

Figure 2024536252000001_ABST
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE The present disclosure relates generally to image processing, such as image correction. More particularly, the present disclosure relates to systems and methods for cascaded multi-resolution machine learning for improved computational efficiency of image processing. [Background technology]
[0002] Image processing can include the modification of a digital image to have an altered appearance. Exemplary image modifications include smoothing, blurring, deblurring, and / or many other operations. Some image modifications include generative modifications, in which new image data is generated and inserted into the image as a replacement for the original image data. Some exemplary generative modifications may be referred to as "inpainting."
[0003] Image processing may also include analysis of an image to identify or determine characteristics of the image. For example, image processing may include techniques such as semantic segmentation, object detection, object recognition, edge detection, human keypoint estimation, and / or various other image analysis algorithms or tasks.
[0004] One major challenge associated with the use of machine learning models for image processing is the constraints of input and output image resolution. In particular, the larger the resolution, the greater the increase in memory usage and latency. Thus, running a machine learning model to perform image processing on any image of significant size consumes significant computational resources, such as memory usage, processor usage, etc. This makes the use of machine learning models at high resolutions extremely difficult, and even infeasible in some resource-constrained environments, such as "on-device" on a computing device (e.g., a smartphone) that has only a small amount or limited computational resources. As an example, the standard resolution of a typical machine learning model may be in the range of 512x512, which is already quite large to run on a smartphone.
[0005] One solution to the computational challenges described above is to run machine learning models on images with lower resolution. This can conserve or reduce the amount of resources consumed. However, processing images at lower resolution degrades the quality of the processing output and therefore has its own drawbacks. Summary of the Invention [Means for solving the problem]
[0006] Aspects and advantages of embodiments of the present disclosure will be set forth in part in the description that follows, or may be learned from the description, or may be learned by practice of the embodiments.
[0007] One exemplary aspect of the present disclosure is directed to a computing system for image modification with improved computational efficiency, the computing system including one or more processors and one or more non-transitory computer-readable media collectively storing instructions that, when executed by the one or more processors, cause the computing system to perform operations. The operations include obtaining a lower resolution version of an input image, the lower resolution version of the input image having a first resolution, the lower resolution version of the input image comprising one or more image elements to be modified with predicted image data. The operations include processing the lower resolution version of the input image with a first machine learning based model to generate an enhanced image having the first resolution, the enhanced image comprising the first predicted image data replacing the one or more image elements. The operations include extracting a portion of the enhanced image, the portion of the enhanced image comprising the first predicted image data. The operations include upscaling the extracted portion of the enhanced image to generate an upscaled image portion having an upscaled resolution. The operations include processing the upscaled image portion with a second machine learning based model to generate an improved portion, the improved portion comprising second predicted image data that modifies at least a portion of the first predicted image data. The operations include generating an output image based on the improved portion and an increased resolution version of the input image, both the output image and the increased resolution version of the input image having a second resolution that is greater than the first resolution. The operations include providing the output image as an output.
[0008] Another exemplary aspect of the present disclosure is directed to a computer-implemented method for training a machine learning model to perform image correction. The method includes receiving, by a computing system with one or more processors, a lower resolution version of an input image and a ground truth image, where the lower resolution version of the input image has a first resolution, and the ground truth image has a second resolution greater than the first resolution, and the lower resolution version of the input image comprises one or more image elements not present in the ground truth image. The method includes processing, by the computing system, the lower resolution version of the input image with a first machine learning model to generate a lower resolution version of an augmented image having the first resolution, where the lower resolution version of the augmented image comprises first predicted data replacing the one or more image elements. The method includes upscaling, by the computing system, the lower resolution version of the augmented image to generate a higher resolution version of the augmented image having a second resolution. The method includes processing, by the computing system, at least a portion of the higher resolution version of the augmented image with a second machine learning model to generate a predicted image having the second resolution. The method includes evaluating, by the computing system, a loss function that evaluates a difference between the predicted image and the ground truth image. The method includes adjusting one or more parameters of at least one of the first machine learning based model or the second machine learning based model based at least in part on the loss function.
[0009] Another exemplary aspect of the disclosure is directed to one or more non-transitory computer-readable media collectively storing instructions that, when executed by one or more processors, cause a computing system to perform operations. The operations include obtaining a lower resolution version of an input image, the lower resolution version of the input image having a first resolution. The operations include processing the lower resolution version of the input image with a first machine learning based model to generate a first predicted image having the first resolution, the first predicted image comprising the first predicted image data. The operations include extracting a portion of the first predicted image, the portion of the first predicted image comprising the first predicted image data. The operations include upscaling the extracted portion of the first predicted image to generate an upscaled image portion having an upscaled resolution. The operations include processing the upscaled image portion with a second machine learning based model to generate a second predicted image, the second predicted image comprising the second predicted image data that modifies at least a portion of the first predicted image data.
[0010] Other aspects of the present disclosure are directed to various systems, apparatus, non-transitory computer-readable media, user interfaces, and electronic devices.
[0011] These and other features, aspects, and advantages of various embodiments of the present disclosure will become better understood with reference to the following description and appended claims. The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the present disclosure and, together with the description, serve to explain associated principles.
[0012] Detailed descriptions of embodiments directed to persons skilled in the art are set forth herein and refer to the accompanying figures. [Brief description of the drawings]
[0013] [Figure 1]FIG. 1 is a block diagram of an example technique for using cascaded multi-resolution machine learning for image processing (e.g., inpainting), in accordance with an example embodiment of the present disclosure. [Diagram 2] FIG. 1 is a block diagram of an example technique for training cascaded multi-resolution machine learning for image processing (e.g., inpainting), according to an example embodiment of the present disclosure. [Figure 3A] FIG. 1 is a block diagram of an exemplary computing system in accordance with an exemplary embodiment of the present disclosure. [Figure 3B] FIG. 2 is a block diagram of an exemplary computing device in accordance with an exemplary embodiment of the present disclosure. [Figure 3C] FIG. 2 is a block diagram of an exemplary computing device in accordance with an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Reference numbers repeated among the figures are intended to identify like features in various implementations.
[0015] overview In general, the present disclosure is directed to systems and methods for image processing, such as image retouching. More particularly, exemplary aspects of the present disclosure are directed to systems and methods for cascaded multi-resolution machine learning for performing image processing on resource-constrained devices.
[0016] In one exemplary approach, an image processing system includes two machine learning components. In particular, a first machine learning model can perform image processing (e.g., image correction such as inpainting) on the entire input image at the lower resolution. A second machine learning model can perform image processing (e.g., image correction such as inpainting) on only one or more selected subsets ("crops") of the output of the first model that have been upscaled to the higher resolution.
[0017] In such a manner, the first model may exploit contextual and / or semantic information contained throughout the entire image to perform initial attempts at an image processing task, however, the computational overhead of the first model may be relatively low because the first model operates at a lower resolution.
[0018] The second model can then perform more detailed and higher quality image processing on a selected subset of the output of the first model. In particular, because the second model operates at the higher resolution, the output of the second model is generally of higher quality and / or more detail than the output of the first model. However, because the second model operates on only the selected subset, the computational expenditure of the second model can be kept at a smaller reduced level (e.g., compared to running the second model on the entirety of the input at the higher resolution).
[0019] In some implementations, the output of the second model may be used alone. In other implementations, the output of the second model may be combined with the original higher-resolution input to produce the complete higher-resolution output. In other implementations, the output of the second model may be combined with an upscaled version of the output of the first model to generate the complete higher-resolution output.
[0020] In some implementations, both the first model and the second model are trained together. For example, a loss may be determined based on the output of the second model. The loss may be back-propagated through the second model and then through the first model to train the second model and / or the first model.
[0021] The disclosed system and method provide several technical effects and advantages. As one exemplary technical effect, the disclosed system and method provide an improved trade-off between image processing quality and computational resource usage. For example, compared to a system that performs image processing only on a high-resolution crop of an input image, the proposed system can provide improved quality because high-quality image processing often requires access to semantic information from the entire image, not just information contained within a smaller crop. Thus, by processing a lower-resolution version of the entire image with a first model before processing a higher-resolution version of the crop with a second model, the proposed system can have access to semantic information contained throughout the entire image, not just the cropped portion, all while maintaining an acceptable level of computational resource usage. Similarly, compared to a system that processes the entire input image at a higher resolution (which may not be possible or desirable in some computing environments), the proposed system can provide computational resource savings, such as processor usage, memory usage, etc. Thus, high-quality image processing results may be obtained even in computing environments with constrained computational resources.
[0022] In one example, the systems described herein may be implemented as part of or in cooperation with a camera application. For example, a camera may capture images, and the systems and methods described herein may be used to process (e.g., modify) the images as part of or as a service for the camera application. This may enable a user to process (e.g., modify, such as remove unwanted objects from) images that the user captures or uploads or otherwise provides as input.
[0023] Referring now to the figures, exemplary embodiments of the present disclosure will be described in further detail.
[0024] Exemplary Image Processing Flow 1 illustrates an example flow for performing computationally-efficient image correction. As a particular example, an image correction task may be inpainting, where selected (e.g., user-selected) elements of an input image are "filled in" based on information from the surrounding areas of the input image. This may be used, for example, to enhance an image, for example, by "filling in" selected defects, imperfections, etc. Although FIG. 1 provides an example flow in the context of an example image processing task of image correction (e.g., inpainting), the disclosed techniques may be applied to other image processing tasks.
[0025] As shown in Figure 1, a computing system may obtain a lower resolution version 16 of an input image. The lower resolution version 16 of the input image may have a first resolution. The lower resolution version 16 of the input image may include one or more image elements to be modified using predicted image data. As an example, in Figure 1, the lower resolution version 16 of the input image includes an undesired image element 14, and the system attempts to replace the image element 14 via inpainting.
[0026] In some implementations, the computing system may obtain the lower resolution version 16 of the input image by downscaling the higher resolution version 12 of the input image. For example, the higher resolution version 12 of the input image may be the original version of the input image obtained from the imaging pipeline of a camera system, uploaded or selected by a user, and / or obtained via various other means by which the input image may be subjected to the illustrated process.
[0027] 1 , the computing system may process the lower resolution version of the input image 16 with a first machine learning based model 20 to generate an augmented image 22 having a first resolution. The augmented image may include first predicted image data that modifies one or more image elements 14.
[0028] The first machine learning model 20 may be various forms of machine learning models, such as a neural network. In one example, the first machine learning model 20 may be a convolutional neural network. In one example, the first machine learning model 20 may be a transformer model using self-attention. In one example, the first machine learning model 20 may have an encoder-decoder architecture.
[0029] In some implementations, the first machine learning model 20 may perform image correction tasks, such as, for example, inpainting, deblurring, restoring color, or smoothing one or more image elements 14.
[0030] Thus, in some implementations, as shown in FIG. 1 , processing the lower-resolution version 16 of the input image with a first machine learning based model 20 to generate an augmented image 22 may include processing the lower-resolution version 16 of the input image and a mask 18 that identifies one or more image elements 14 with the first machine learning based inpainting model to generate an augmented image 22 having first inpainted image data that modifies the one or more image elements.
[0031] In some implementations, the one or more image elements 14 to be replaced may include one or more user-specified image elements that are specified based on one or more user inputs (e.g., inputs to a graphical user interface). Alternatively or additionally, the one or more image elements 14 to be replaced may include one or more computer-specified image elements. For example, the one or more computer-specified image elements may be computer-specified by processing the input image with one or more classification sub-blocks of at least one of the first machine learning model 20 or the second machine learning model 28.
[0032] In other implementations, image analysis tasks may be performed in addition to or as an alternative to the exemplary image correction tasks shown in Figure 1. By way of example, in some implementations, the output of the first machine learning based model may be a first predicted image that includes predicted data, such as semantic segmentation data, object detection data, object recognition data, face recognition data, human keypoint detection data, edge detection data, and / or other predicted data.
[0033] 1 , the computing system may extract a portion 24 of the augmented image 22. The extracted portion may comprise an image region corresponding to one or more image elements 14, and thus may be a region specified by one or more user inputs and / or a mask 18. The augmented image portion 24 may include first predicted image data that has been modified for one or more image elements 14.
[0034] The computing system may upscale the extracted portion 24 of the augmented image 22 to generate an upscaled image portion 26 having an upscaled resolution. Upscaling may include upsampling and / or other forms of increasing the resolution of the extracted portion 24.
[0035] The computing system can process the upscaled image portion 26 with a second machine learning based model 28 to generate an improved portion 30. The improved portion 30 can include second predicted image data that modifies at least a portion of the first predicted image data.
[0036] The second machine learning model 20 may be various forms of machine learning models, such as a neural network. In one example, the second machine learning model 20 may be a convolutional neural network. In one example, the second machine learning model 20 may be a transformer model using self-attention. In one example, the second machine learning model 20 may have an encoder-decoder architecture.
[0037] In some implementations, as shown in FIG. 1 , processing the upscaled image portion 26 with a second machine learning based model 28 to generate an improved portion 30 may include processing the upscaled image portion 26 with the second machine learning based inpainting model to generate an improved portion 30 having second inpainted image data that modifies at least a portion of the first inpainted image data.
[0038] However, in other implementations, image analysis tasks may be performed in addition to or as an alternative to the exemplary image correction tasks shown in Figure 1. By way of example, in some implementations, the output of the second machine learning based model may be a second predicted image that includes prediction data (e.g., improved prediction data), such as semantic segmentation data, object detection data, object recognition data, face recognition data, human keypoint detection data, edge detection data, and / or other prediction data.
[0039] 1, the computing system may generate an output image 32 based on the enhanced portion 30 and the higher resolution version of the input image 12. In some implementations, both the output image 32 and the higher resolution version of the input image 12 have a second resolution that is greater than the first resolution.
[0040] In some implementations, generating the output image 32 based on the improved portion 30 and the higher resolution version 12 of the input image may include inserting the improved portion 30 into the higher resolution version 12 of the input image (e.g., at a corresponding location).
[0041] In some implementations, upscaling the extracted portion 24 of the augmented image 22 to generate the upscaled image portion 26 having an upscaled resolution may include upscaling the extracted portion 24 of the augmented image 22 such that the upscaled resolution matches a corresponding resolution of the corresponding portion of the higher resolution version 12 of the input image, where the corresponding portion corresponds proportionally to the extracted portion 24 of the augmented image. In such a way, the improved portion 30 may be inserted back into the higher resolution version 12 of the input image having the appropriate size / resolution.
[0042] The computing system may provide as output an output image 32. For example, providing the image as output may include storing the image in a memory, transmitting the image to an additional device, and / or displaying the image.
[0043] In some implementations, the input image may include multiple image elements to be modified, replaced, etc. In some of such implementations, the computing system may process the lower resolution version 16 of the input image with a first machine learning based model only once to generate one output for the entire image. The computing system may then perform the extracting, upscaling, and processing the upscaled image portion with a second machine learning based model 28 separately for each object of the multiple different objects. In such a way, multiple object crops can be improved in parallel, reducing latency.
[0044] In some implementations, the computing system can pass one or more internal feature vectors from the first machine learning model 20 to the second machine learning model 28. Thus, latent space information can be shared between the models.
[0045] In some implementations, the augmented image and / or other model output may further include a predicted depth channel (e.g., depth data may also be output by the first machine learning model 20 and / or the second machine learning model 28).
[0046] Example Training Flow FIG. 2 illustrates a block diagram of an example technique for training cascaded multi-resolution machine learning for image processing (eg, inpainting), according to an example embodiment of the present disclosure.
[0047] 2, a computing system may receive a lower resolution version 216 of an input image and a ground truth image 202. The lower resolution version 216 of the input image may have a first resolution, and the ground truth image 202 may have a second resolution that is greater than the first resolution. The lower resolution version 216 of the input image may include one or more image elements 214 that are not present in the ground truth image 202 (e.g., vertical and horizontal line markings).
[0048] In some implementations, the lower resolution version 216 of the input image may be obtained by downscaling the higher resolution version 212 of the input image. In some implementations, the higher resolution version 212 of the input image may be obtained by adding one or more image elements 214 to the ground truth image 202.
[0049] 2 , the computing system can process the lower-resolution version 216 of the input image with a first machine learning based model 220 to generate a lower-resolution version 222 of the augmented image having a first resolution. The lower-resolution version 222 of the augmented image can include first predicted data that replaces one or more image elements 214.
[0050] In some implementations, a mask 218 may also be provided as an input to the first machine learning model. The mask 218 may indicate the location of the image elements 214.
[0051] In some implementations, as an alternative or in addition to correcting replacing image elements, the model 220 can predict additional data about the input image, such as semantic segmentation data, object detection data, object recognition data, human keypoint detection data, facial recognition data, etc.
[0052] Still referring to FIG. 2, the computing system can upscale the lower resolution version 222 of the augmented image to generate a higher resolution version 226 of the augmented image having a second resolution.
[0053] The computing system can process at least a portion of the higher resolution version 226 of the augmented image with a second machine learning based model 228 to generate a predicted image 230 having a second resolution.
[0054] The computing system may evaluate a loss function 232 that evaluates the difference between the predicted image 230 and the ground truth image 202. Exemplary loss terms that may be included in the loss function 232 may include visual loss (e.g., pixel-level loss), VGG loss, GAN loss, and / or other loss terms.
[0055] The computing system may adjust one or more parameters of at least one of the first machine learning based model 220 or the second machine learning based model 228 based at least in part on the loss function. For example, the loss function 232 may be back-propagated through the second model 228 and then through the first model 220 to train the second model 228 and / or the first model 220.
[0056] Exemplary Devices and Systems 3A illustrates a block diagram of an exemplary computing system 100 in accordance with an exemplary embodiment of the present disclosure. The system 100 includes a user computing device 102, a server computing system 130, and a training computing system 150 that are communicatively coupled via a network 180.
[0057] The user computing device 102 may be any type of computing device, such as, for example, a personal computing device (e.g., a laptop or desktop), a mobile computing device (e.g., a smartphone or tablet), a game console or game controller, a wearable computing device, an embedded computing device, or any other type of computing device.
[0058] The user computing device 102 includes one or more processors 112 and memory 114. The one or more processors 112 may be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, an FPGA, a controller, a microcontroller, etc.) and may be a single processor or multiple processors operatively connected. The memory 114 may include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, magnetic disks, etc., and combinations thereof. The memory 114 may store data 116 and instructions 118 that are executed by the processor 112 to cause the user computing device 102 to perform operations.
[0059] In some implementations, the user computing device 102 can store or include one or more machine learning models 120. For example, the machine learning models 120 can be or otherwise include various machine learning models, such as neural networks (e.g., deep neural networks) including nonlinear and / or linear models or other types of machine learning models. The neural networks can include feed-forward neural networks, recurrent neural networks (e.g., long short-term memory recurrent neural networks), convolutional neural networks, or other forms of neural networks. Some exemplary machine learning models can leverage attention mechanisms, such as self-attention. For example, some exemplary machine learning models can include multi-head self-attention models (e.g., transformer models). An exemplary machine learning model 120 is described with reference to FIG. 1 and FIG. 2.
[0060] In some implementations, one or more machine learning based models 120 can be received from a server computing system 130 over a network 180, stored in a user computing device memory 114, and then used or otherwise implemented by one or more processors 112. In some implementations, a user computing device 102 can implement multiple parallel instances of a single machine learning based model 120 (e.g., to perform parallel image processing across multiple instances of an image or image element).
[0061] Additionally or alternatively, one or more machine learning based models 140 may be included in or otherwise stored and implemented by a server computing system 130 that communicates with the user computing device 102 according to a client-server relationship. For example, the machine learning based models 140 may be implemented by the server computing system 130 as part of a web service (e.g., an image processing service). Thus, one or more models 120 may be stored and implemented at the user computing device 102 and / or one or more models 140 may be stored and implemented at the server computing system 130.
[0062] The user computing device 102 may also include one or more user input components 122 for receiving user input. For example, the user input component 122 may be a touch-sensitive component (e.g., a touch-sensitive display screen or touchpad) that is sensitive to the touch of a user input object (e.g., a finger or stylus). The touch-sensitive component may be useful for implementing a virtual keyboard. Other exemplary user input components include a microphone, a traditional keyboard, or other means by which a user may provide user input.
[0063] The server computing system 130 includes one or more processors 132 and memory 134. The one or more processors 132 may be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, an FPGA, a controller, a microcontroller, etc.) and may be a single processor or multiple processors operatively connected. The memory 134 may include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, magnetic disks, etc., and combinations thereof. The memory 134 may store data 136 and instructions 138 that are executed by the processor 132 to cause the server computing system 130 to perform operations.
[0064] In some implementations, the server computing system 130 includes or is otherwise implemented by one or more server computing devices. In instances in which the server computing system 130 includes multiple server computing devices, such server computing devices may operate according to a sequential computing architecture, a parallel computing architecture, or some combination thereof.
[0065] As described above, the server computing system 130 may store one or more machine learning models 140 or may otherwise include one or more machine learning extension models 140. For example, the models 140 may be or may otherwise include various machine learning models. Exemplary machine learning models include neural networks or other multi-layer nonlinear models. Exemplary neural networks include feed-forward neural networks, deep neural networks, recurrent neural networks, and convolutional neural networks. Some exemplary machine learning models may leverage attention mechanisms such as self-attention. For example, some exemplary machine learning models may include multi-head self-attention models (e.g., transformer models). Exemplary models 140 are described with reference to FIG. 1 and FIG. 2.
[0066] The user computing device 102 and / or the server computing system 130 can train the models 120 and / or 140 through interaction with a training computing system 150 that is communicatively coupled via a network 180. The training computing system 150 may be separate from the server computing system 130 or may be part of the server computing system 130.
[0067] The training computing system 150 includes one or more processors 152 and memory 154. The one or more processors 152 may be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, an FPGA, a controller, a microcontroller, etc.) and may be a single processor or multiple processors operably connected. The memory 154 may include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, magnetic disks, etc., and combinations thereof. The memory 154 may store data 156 and instructions 158 that are executed by the processor 152 to cause the training computing system 150 to perform operations. In some implementations, the training computing system 150 includes or is otherwise implemented by one or more server computing devices.
[0068] The training computing system 150 may include a model trainer 160 that trains the machine learning model 120 and / or 140 stored in the user computing device 102 and / or the server computing system 130 using various training or learning techniques, such as, for example, backpropagation. For example, a loss function may be backpropagated through the model to update one or more parameters of the model (e.g., based on the gradient of the loss function). Various loss functions may be used, such as mean squared error, likelihood loss, cross entropy loss, hinge loss, and / or various other loss functions. Gradient descent techniques may be used to iteratively update the parameters over a number of training iterations.
[0069] In some implementations, performing the error backpropagation may include performing truncated backpropagation through time. The model trainer 160 may perform a number of generalization techniques (e.g., weight decay, dropout, etc.) to improve the generalization ability of the model being trained.
[0070] In particular, the model trainer 160 can train the machine learning based model 120 and / or 140 based on a set of training data 162. In some implementations, the training examples may be provided by the user computing device 102 if the user has given consent. Thus, in such implementations, the model 120 provided to the user computing device 102 may be trained by the training computing system 150 against user-specific data received from the user computing device 102. In some instances, this process may be referred to as individualizing the model.
[0071] The model trainer 160 includes computer logic that is utilized to provide the desired functionality. The model trainer 160 may be implemented in hardware, firmware, and / or software that controls a general-purpose processor. For example, in some implementations, the model trainer 160 includes a program file that is stored on a storage device, loaded into memory, and executed by one or more processors. In other implementations, the model trainer 160 includes one or more sets of computer-executable instructions that are stored in a tangible computer-readable storage medium, such as a RAM, a hard disk, or an optical or magnetic medium.
[0072] Network 180 may be any type of communications network, such as a local area network (e.g., an intranet), a wide area network (e.g., the Internet), or some combination thereof, and may include any number of wired or wireless links. In general, communications over network 180 may be carried over any type of wired and / or wireless connections using a wide variety of communications protocols (e.g., TCP / IP, HTTP, SMTP, FTP), encodings or formats (e.g., HTML, XML), and / or protection schemes (e.g., VPN, Secure HTTP, SSL).
[0073] In some implementations, an input to the machine learning based model of the present disclosure may be image data comprising pixel data including a plurality of pixels. The machine learning based model may process the pixel data to generate an output. As an example, the machine learning based model may process the image data to generate a modified and / or enhanced image. As another example, the machine learning based model may process the image data to generate an image recognition output (e.g., recognition of the image data, latent embedding of the image data, encoded representation of the image data, hash of the image data, etc.). As another example, the machine learning based model may process the image data to generate an image segmentation output. As another example, the machine learning based model may process the image data to generate an image classification output. As another example, the machine learning based model may process the image data to generate an image data modification output (e.g., alteration of the image data, etc.). As another example, the machine learning based model may process the image data to generate an encoded image data output (e.g., an encoded and / or compressed representation of the image data, etc.). As another example, the machine learning based model may process the image data to generate an upscaled image data output. As another example, the machine learning based model may process the image data to generate a prediction output.
[0074] In some cases, the input includes visual data and the task is a computer vision task. In some cases, the input includes pixel data for one or more images and the task is an image processing task. For example, the image processing task may be image classification, where the output is a set of scores, each score corresponding to a different object class and representing the likelihood that one or more images show an object belonging to the object class. The image processing task may be object detection, where the image processing output identifies one or more regions of one or more images and, for each region, the likelihood that the region depicts an object of interest. As another example, the image processing task may be image segmentation, where the image processing output specifies, for each pixel in one or more images, a respective likelihood for each category in a predetermined set of categories. For example, the set of categories may be foreground and background. As another example, the set of categories may be object classes. As another example, the image processing task may be depth estimation, where the image processing output specifies, for each pixel in one or more images, a respective depth value. As another example, the image processing task may be motion estimation, where the network input includes multiple images and the image processing output defines for each pixel of one of the input images the motion of the scene depicted at the pixel between the images in the network input.
[0075] 3A illustrates one exemplary computing system that may be used to implement the present disclosure. Other computing systems may also be used. For example, in some implementations, the user computing device 102 may include a model trainer 160 and a training dataset 162. In such implementations, the model 120 may be both trained and used locally on the user computing device 102. In some of such implementations, the user computing device 102 may implement the model trainer 160 to personalize the model 120 based on user-specific data.
[0076] 3B illustrates a block diagram of an exemplary computing device 10 for executing according to an exemplary embodiment of the present disclosure. The computing device 10 may be a user computing device or a server computing device.
[0077] Computing device 10 includes several applications (e.g., applications 1-N). Each application includes its own machine learning library and machine learning model. For example, each application may include a machine learning model. Exemplary applications include a text messaging application, an email application, a dictation application, a virtual keyboard application, a browser application, etc.
[0078] 3B, each application may communicate with several other components of the computing device, such as, for example, one or more sensors, a context manager, a device state component, and / or additional components. In some implementations, each application may communicate with each device component using an API (e.g., a public API). In some implementations, the API used by each application is specific to that application.
[0079] 3C illustrates a block diagram of an exemplary computing device 50 for executing, according to an exemplary embodiment of the present disclosure, a user computing device or a server computing device.
[0080] Computing device 50 includes several applications (e.g., applications 1-N). Each application is in communication with a central intelligence layer. Exemplary applications include a text messaging application, an email application, a dictation application, a virtual keyboard application, a browser application, etc. In some implementations, each application can communicate with the central intelligence layer (and models stored therein) using an API (e.g., a common API across all applications).
[0081] The central intelligence layer includes several machine learning models. For example, as shown in FIG. 3C, each machine learning model can be provided for each application and managed by the central intelligence layer. In other implementations, two or more applications can share a single machine learning model. For example, in some implementations, the central intelligence layer can provide a single model to all of the applications. In some implementations, the central intelligence layer is included in or otherwise implemented by the operating system of the computing device 50.
[0082] The central intelligence layer can communicate with a central device data layer, which can be a centralized repository of data for the computing device 50. As shown in FIG. 3C, the central device data layer can communicate with several other components of the computing device, such as, for example, one or more sensors, a context manager, a device state component, and / or additional components. In some implementations, the central device data layer can communicate with each device component using an API (e.g., a private API).
[0083] Additional Disclosures The techniques described herein refer to servers, databases, software applications, and other computer-based systems, as well as actions taken and information sent to and from such systems. The inherent flexibility of computer-based systems allows for a wide variety of possible configurations, combinations, and divisions of tasks and functionality among components. For example, the processes described herein may be implemented using a single device or component or multiple devices or components working in combination. Databases and applications can be implemented on a single system or distributed across multiple systems. Distributed components can operate serially or in parallel.
[0084] Although the present subject matter has been described in detail with respect to various specific exemplary embodiments thereof, each example is provided as an explanation, not a limitation of the present disclosure. Once one of ordinary skill in the art arrives at the above understanding, he or she can easily create modifications, variations, and equivalents of such embodiments. Thus, the present disclosure does not exclude the inclusion of such modifications, variations, and / or additions to the present subject matter as would be readily apparent to one of ordinary skill in the art. For example, features illustrated or described as part of one embodiment may also be used with another embodiment to produce yet a further embodiment. Thus, it is intended that the present disclosure cover such modifications, variations, and equivalents. [Explanation of symbols]
[0085] 10. Computing Devices 12 Higher resolution version of the input image 14 Image Elements 16 Lower resolution versions of the input image 18 Mask 20 The first machine learning model 22 Extended Images 24 Expanded Image Parts 26 Upscaled Image Portion 28 Second Machine Learning Model 30 Improved areas 32 Output images 50 Computing Devices 100 Computing Systems 102 User Computing Devices 112 processors 114 Memory 116 Data 118 Command 120 models, machine learning models 122 User Input Components 130 Server Computing System 132 processors 134 Memory 136 Data 138 Command 140 models, machine learning-based augmented models 150 Training Computing System 152 processors 154 Memory 156 Data 158 Command 160 Model Trainer 162 Training data, training data set 180 Network 202 ground truth images 212 Higher resolution version of the input image 214 Image Elements 216 Lower resolution version of the input image 218 Mask 220 The first machine learning model 222 Lower resolution version of the extended image 226 Higher resolution version of the extended image 228 Second Machine Learning Model 230 Prediction Images 232 Loss Function
Claims
1. 1. A computing system for computationally improved image retouching, the computing system comprising: one or more processors; and one or more non-transitory computer-readable media collectively storing instructions that, when executed by the one or more processors, cause the computing system to perform operations, including: obtaining a lower resolution version of an input image, the lower resolution version of the input image having a first resolution, the lower resolution version of the input image comprising one or more image elements to be modified using predicted image data; processing the lower resolution version of the input image with a first machine learning based model to generate an augmented image having the first resolution, the augmented image comprising first predicted image data that replaces the one or more image elements; extracting a portion of the extended image, the portion of the extended image comprising the first predicted image data; upscaling the extracted portion of the augmented image to generate an upscaled image portion having an upscaled resolution; processing the upscaled image portion with a second machine learning based model to generate an improved portion, the improved portion comprising second predicted image data that modifies at least a portion of the first predicted image data; generating an output image based on the improved portion and a higher resolution version of the input image, wherein both the output image and the higher resolution version of the input image have a second resolution greater than the first resolution; and providing the output image as an output. Computing system.
2. 2. The computing system of claim 1, wherein obtaining the lower resolution version of the input image comprises downscaling the higher resolution version of the input image to obtain the lower resolution version of the input image.
3. processing the lower-resolution version of the input image with the first machine learning based inpainting model to generate the augmented image comprises processing the lower-resolution version of the input image and a mask identifying the one or more image elements with a first machine learning based inpainting model to generate the augmented image having first inpainted image data that modifies the one or more image elements; processing the upscaled image portion with the second machine learning based inpainting model to generate the improved portion comprises processing the upscaled image portion with a second machine learning based inpainting model to generate the improved portion having second inpainted image data that modifies at least a portion of the first inpainted image data. A computing system according to any one of claims 1 to 2.
4. 4. The computing system of claim 1, wherein upscaling the extracted portion of the extended image to generate the upscaled image portion having the upscaled resolution comprises upscaling the extracted portion of the extended image such that the upscaled resolution matches a corresponding resolution of a corresponding portion of the higher resolution version of the input image, the corresponding portion corresponding proportionally to the extracted portion of the extended image.
5. 5. The computing system of claim 1, wherein generating the output image based on the improved portion and the higher resolution version of the input image comprises inserting the improved portion into the higher resolution version of the input image.
6. 6. The computing system of claim 1 , wherein the one or more image elements to be replaced comprise one or more user-specified image elements that are specified based on one or more user inputs.
7. 7. The computing system of claim 1, wherein the one or more image elements to be replaced are one or more computer-specified image elements, the one or more computer-specified image elements being specified by processing the input image with one or more classification sub-blocks of at least one of the first machine learning model or the second machine learning model.
8. 8. The computing system of claim 1 , wherein the first predicted image data and the second predicted image data correspond to one or more of restoration, deblurring, recoloring, or smoothing of the one or more image elements.
9. The one or more objects comprise a plurality of objects; The processing of the lower-resolution version of the input image with the first machine learning based model to generate the augmented image is performed once; the extracting, upscaling, and processing the upscaled image portion with the second machine learning based model are performed separately for each object of the plurality of objects. A computing system according to any one of claims 1 to 8.
10. 10. The computing system of claim 1, further comprising passing one or more internal feature vectors from the first machine learning based model to the second machine learning based model.
11. 11. The computing system of claim 1, wherein the augmented image further comprises a predicted depth channel output by the first machine learning based model.
12. 1. A computer-implemented method for training a machine learning model to perform image retouching, comprising: receiving, by a computing system comprising one or more processors, a lower resolution version of an input image and a ground truth image, the lower resolution version of the input image having a first resolution, the ground truth image having a second resolution greater than the first resolution, the lower resolution version of the input image comprising one or more image elements not present in the ground truth image; processing, by the computing system, the lower-resolution version of the input image with a first machine learning based model to generate a lower-resolution version of an augmented image having the first resolution, the lower-resolution version of the augmented image comprising first predicted data for replacing the one or more image elements; upscaling, by the computing system, the lower resolution version of the augmented image to generate a higher resolution version of the augmented image having the second resolution; processing, by the computing system, at least a portion of the higher resolution version of the augmented image using a second machine learning based model to generate a predicted image having the second resolution; evaluating, by the computing system, a loss function that evaluates the difference between the predicted image and the ground truth image; adjusting one or more parameters of at least one of the first machine learning model or the second machine learning model based at least in part on the loss function; A computer-implemented method comprising:
13. 13. The computer-implemented method of claim 12, wherein the one or more image elements are one or more user-specified image elements, the one or more user-specified image elements being specified based on one or more user inputs.
14. 13. The computer-implemented method of claim 12, wherein the one or more image elements are one or more computer-defined image elements, the one or more computer-defined image elements being defined by processing the input image with one or more classification sub-blocks of at least one of the first machine learning based model or the second machine learning based model.
15. 15. The computer-implemented method of claim 12, wherein the predicted image corresponds to at least one of inpainting, deblurring, recoloring, or smoothing of the one or more image elements.
16. One or more non-transitory computer-readable media collectively storing instructions that, when executed by one or more processors, cause a computing system to perform operations, including: obtaining a lower resolution version of an input image, the lower resolution version of the input image having a first resolution; processing the lower resolution version of the input image with a first machine learning based model to generate a first predicted image having the first resolution, the first predicted image comprising first predicted image data; extracting a portion of the first predicted image, the portion of the first predicted image comprising the first predicted image data; upscaling the extracted portion of the first predicted image to generate an upscaled image portion having an upscaled resolution; processing the upscaled image portion with a second machine learning based model to generate a second predicted image, the second predicted image comprising second predicted image data that modifies at least a portion of the first predicted image data. Non-transitory computer-readable medium.
17. 17. The one or more non-transitory computer-readable media of claim 16, wherein the first predicted image and the second predicted image comprise edge-aware images indicative of recognized edges in the input image.
18. 17. The one or more non-transitory computer-readable media of claim 16, wherein the first predicted image and the second predicted image comprise object detection images indicative of an object detected in the input image.
19. 17. The one or more non-transitory computer-readable media of claim 16, wherein the first predicted image and the second predicted image comprise human keypoints estimation images indicative of human keypoints detected in the input image.
20. 17. The one or more non-transitory computer-readable media of claim 16, wherein the first predicted image and the second predicted image comprise face recognition images indicative of a recognized face in the input image.
Citation Information
Patent Citations
Image processing apparatus and program
JP2020154605A
Image processing method, image processing device, program, image processing system, and learned model manufacturing method
JP2020166628A
Image processing device, image processing method, and image processing program
WO2018216207A1
Artificial intelligence systems and methods for interior design
WO2021008566A1
