System and method for self-supervised training of image restoration networks
The system performs self-supervised training of image restoration networks by controlling exposure parameters to generate training pairs from captured images, addressing the need for pre-generated data and domain shift errors, thus enhancing image restoration capabilities across varying devices and use cases.
Patent Information
- Application Number
- PCT/US2023/070162
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-07-13
- Publication Date
- 2024-10-31
AI Technical Summary
Current image restoration networks face challenges in self-supervised training due to the need for pre-generated training data and domain shift errors, especially in varying image capture systems, which affects the quality and suitability of training datasets.
A system and method for self-supervised training of image restoration networks that generates training image pairs by controlling exposure parameters, such as ISO, aperture, and shutter speed, to create source and target patches, allowing the network to learn from captured images without pre-collected data and adapting to specific device variations.
Enables effective image denoising, deblurring, and exposure correction without pre-generated training data, reducing domain shift errors and improving image quality across different devices and use cases.
Smart Images

Figure US2023070162_31102024_PF_FP_ABST
Abstract
Description
SYSTEM AND METHOD FOR SELF-SUPERVISED TRAINING OF IMAGE RESTORATION NETWORKSInventor:Chih-Hsien ChouFIELD
[0001] The disclosure generally relates to self-supervised training of image restoration networks.BACKGROUND
[0002] The use of image capturing has expanded considerably in recent years. Herein the term image capturing may refer to still images and / or video. Image capturing is important in many consumer, surveillance, automotive, and industrial applications. Image degradation (e.g., noise, defocus blur, motion blur, over-exposure, and under-exposure) are highly undesirable for both photographic (for lost details and artistry) and machine vision (for reduced accuracy and reliability) use cases. Image noise is often added throughout the image capturing and processing pipeline with various sources and characteristics. Motion blur results from camera shaking and / or object movement during the exposure interval. Defocus blur results from objects at different depths being focused on different focal planes due to limited depth-of-field. Over-exposure and under-exposure result from inappropriate exposure level setting and / or high-dynamic-range scenes beyond the capability of an image capturing device.
[0003] On most mass-produced products with cameras, such as smartphones, tablets, drones, robots, and augmented reality / virtual reality (AR / VR) devices, it is necessary to perform image denoising, deblurring, and / or exposure correction to achieve acceptable image quality. Image denoising is the process of removing noisefrom noisy images. Image deblurring is the process of removing blur (such as motion blur or defocus blur) from blurry images. Image exposure correction is the process of correcting either an over-exposed or an under-exposed image.
[0004] Recently, machine learning (e.g., deep learning) has been proposed for image restoration.SUMMARY
[0005] One aspect includes a system, comprising an image capture system configured to capture images. The image capture system is configured to control an exposure of each captured image by adjusting at least one exposure parameter of a plurality of exposure parameters. The system has one or more control circuits coupled to communicate with the image capture system. The one or more control circuits are configured to control the plurality of exposure parameters of images captured by the image capture system. The one or more control circuits are configured to generate training image pairs from the captured images. Each training image pair comprises a first training image of a scene and a second training image of the scene having a different value for at least one exposure parameter of the plurality of exposure parameters. The one or more control circuits are configured to collect training patch pairs from the training image pairs. Each training patch pair comprises a source patch and a target patch. The one or more control circuits are configured to train an image restoration network based on the training patch pairs.
[0006] Implementations may include the training patch pairs comprising denoise training patch pairs, with each denoise training patch pair including a noisy source patch and a ground truth clean target patch. The image restoration network may comprise a blind denoising network. The one or more control circuits may be configured to train the blind denoising network based on the denoise training patch pairs.
[0007] Implementations may include the training patch pairs comprising deblur training patch pairs, with each deblur training patch pair including a blurry source patch and a ground truth sharp target patch. The image restoration network may comprise a blind debarring network. The one or more control circuits may be configured to train the blind debarring network based on the deblur training patch pairs.
[0008] Implementations may include the training patch pairs comprising exposure training patch pairs, with each exposure training patch pair including an incorrectly exposed source patch and a ground truth correctly exposed target patch. The image restoration network may comprise an exposure correction network. The one or more control circuits may be configured to train the exposure correction network based on the exposure training patch pairs.
[0009] Implementations may include the one or more control circuits configured to collect a first set of exposure training patch pairs that each include an under-exposed source patch and a ground truth correctly exposed target patch; collect a second set of exposure training patch pairs that each include an over-exposed source patch and a ground truth correctly exposed target patch; and train the exposure correction network based on the first set of the exposure training patch pairs and the second set of exposure training patch pairs.
[0010] Implementations may include the one or more control circuits configured to: establish a first aperture setting for the first training image and a second aperture setting for the second training image with a substantially identical exposure value (EV) for a particular training image pair; analyze a pixel difference between first pixels in a first patch in the first training image and second pixels in a second patch in the second training image in the particular training image pair; and categorize one of the first patch or the second patch as a source patch and the other of the first patch or the second patch as a target patch based on the pixel difference, the first aperture setting, and the second aperture setting.
[0011] Implementations may include the one or more control circuits are configured to establish substantially identical shutter speeds for the first training image and the second training image of the particular training image pair with a different light sensitivity (ISO) rating for the first training image and the second training image of the particular training image pair.
[0012] Implementations may include the first aperture setting being lower than the second aperture setting. The one or more control circuits may be configured to categorize the first patch as the source patch and the second patch as the target patch responsive to the difference between the first pixels in first patch and the second pixels in the second patch being below a low detection threshold; and categorize the first patch as the target patch and the second patch as the source patch responsive to the difference between the first pixels in first patch and the second pixels in the second patch being above a high detection threshold.
[0013] Implementations may include the one or more control circuits configured to train the image restoration network for blind denoising based on the source patch and the target patch in response to the difference between the first pixels in first patch and the second pixels in the second patch being below the low detection threshold; and train the image restoration network for blind debarring based on the source patch and the target patch in response to the difference between the first pixels in first patch and the second pixels in the second patch being above the high detection threshold.
[0014] Implementations may include the one or more control circuits are configured to establish a first shutter speed for the first training image and a second shutter speed for the second training image with a substantially identical exposure value (EV) for a particular training image pair; analyze a pixel difference between first pixels in a first patch in the first training image and second pixels in a second patch in the second training image in the particular training image pair; and categorize one of the first patch or the second patch as a source patch and the other of the first patch or the second patch as a target patch based on the pixel difference, the first shutter speed and the second shutter speed.
[0015] Implementations may include the one or more control circuits are configured to establish a substantially identical aperture setting for the first training image and the second training image of the particular training image pair with a different light sensitivity (ISO) rating for the first training image and the second training image of the particular training image pair.
[0016] Implementations may include the first shutter speed being higher than the second shutter speed. The one or more control circuits may be configured to categorize the first patch as the source patch and the second patch as the target patch responsive to the difference between the first pixels in the first patch and the second pixels in the second patch being below a low detection threshold; and categorize the first patch as the target patch and the second patch as the source patch responsive to the difference between the first pixels in the first patch and the second pixels in the second patch being above a high detection threshold.
[0017] Implementations may include the one or more control circuits configured to train the image restoration network for blind denoising based on the source patch and the target patch in response to the difference between the first pixels in the first patch and the second pixels in the second patch being below the low detection threshold; and train the image restoration network for blind deblurring based on the source patch and the target patch in response to the difference between the first pixels in the first patch and the second pixels in the second patch being above the high detection threshold.
[0018] Implementations may include the one or more control circuits are configured to establish a first exposure value for the first training image and a second exposure value for the second training image for a particular training image pair; analyze a first luminance profile formed from first pixels in a first patch in the first training image and a second luminance profile formed from second pixels in a second patch in the second training image in the particular training image pair; and determine whether to categorize one of the first patch or the second patch as a source patch and the other of the first patch or the second patch as a target patch based on the first luminanceprofile, the second luminance profile, the first exposure value, and the second exposure value.
[0019] Implementations may include the one or more control circuits configured to establish a first light sensitivity (ISO) rating for the first training image and a second ISO value for the second training image of the particular training image pair with substantially identical aperture settings and substantially identical shutter speeds.
[0020] Implementations may include the first ISO value being lower than the second ISO value. The one or more control circuits may be configured to categorize the first patch as an under-exposed source patch and the second patch as a ground truth correctly exposed target patch responsive to the first luminance profile meeting a condition for under-exposure and the second luminance profile meeting a condition for correct exposure; and categorize the first patch as a ground truth correctly exposed target patch and the second patch as an over-exposed source patch responsive to the first luminance profile meeting a condition for correct exposure and the second luminance profile meeting a condition for over-exposure.
[0021] Implementations may include the one or more control circuits are configured to train the image restoration network for under-exposure correction based on the under-exposed source patch and the ground truth correctly exposed target patch in responsive to the first luminance profile meeting the condition for under-exposure and the second luminance profile meeting the condition for correct exposure; and train the image restoration network for over-exposure correction based on the over-exposed source patch and the ground truth correctly exposed target patch in response to the first luminance profile meeting the condition for correct exposure and the second luminance profile meeting the condition for over-exposure.
[0022] Implementations may include the one or more control circuits configured to operate the system in a training mode in which the training patch pairs are used for self-supervised training of the image restoration network; and operate the system in an inference mode in which the first training image and the second training image ofeach training image pair are merged into a merged image and provided to the image restoration network.
[0023] Implementations may include the image capture system comprising a binocular camera comprising a first image sensor and a second image sensor. The first image sensor and the second image sensor may each be configured to capture frames with each frame having one exposure. The one or more control circuits may be configured to generate a training image pair from a first frame from the first image sensor and a second frame from the second image sensor that are exposed during a same time interval.
[0024] Implementations may include the image capture system comprising a monocular camera configured to capture frames with each frame having a first exposure and a second exposure. The one or more control circuits may be configured to generate a training image pair from the first exposure and the second exposure for each frame.
[0025] Implementations may include the one or more control circuits configured to determine local updates to the image restoration network based on the training patch pairs; send the local updates to a central server, wherein the central server receives local updates from a plurality of edge devices that each determine local updates to the image restoration network based on training patch pairs; aggregate the local updates at the central server and update a global image restoration network based on the aggregated updates; and forward the updated global image restoration network to the edge devices.
[0026] One general aspect includes a method for self-supervised training of an image restoration network. The method comprises controlling a plurality of exposure parameters of images captured by an image capture system; generating training image pairs from the captured images, wherein each training image pair comprises a first training image of a scene and a second training image of the scene having a different value for at least one exposure parameter of a plurality of exposureparameters; generating training patch pairs from the training image pairs, wherein each training patch pair comprises a source patch and a target patch; providing the training patch pairs to an image restoration network; and training the image restoration network based on the training patch pairs.
[0027] Implementations may include performing, with the trained image restoration network, image restoration on images captured by the image capture system.
[0028] Implementations may include receiving a global model for the image restoration network at an edge device from a central server; computing local updates to the global model for the image restoration network based on the training of the image restoration network with the training patch pairs at the edge device; and sending the local updates to the central server.
[0029] Implementations may include receiving, at the central server, local updates from a plurality of edge devices; aggregating the local updates received from the plurality of edge devices; updating the global model for the image restoration network based on the aggregated local updates from the plurality of edge devices; and sending the updated global model for the image restoration network to at least one of the plurality of edge devices.
[0030] One general aspect includes a user equipment device. The user equipment device includes an image capture system configured to capture images. The user equipment device includes a training image generator coupled to the image capture system and configured to generate training image pairs, wherein each training image pair comprises a first training image of a scene and a second training image of the scene, wherein the image capture system is configured to control an exposure of each training image by adjusting at least one exposure parameter of a plurality of exposure parameters. The user equipment device includes an exposure controller coupled to the image capture system, the exposure controller configured to control the exposures of the training images such that the first training image and the second training image of each training image pair have a different value for at least one exposure parameterof the plurality of exposure parameters. The user equipment device includes an image restoration network coupled to the image capture system, wherein the image restoration network is configured to restore images captured by the image capture system. The user equipment device includes a training controller coupled to the training image generator, the exposure controller, and the image restoration network, wherein the training controller is configured to collect training patch pairs from the training image pairs, wherein each training patch pair comprises a source patch and a target patch, wherein the training controller is further configured to provide the training patch pairs to the image restoration network and to control supervised training of the image restoration network based on the training patch pairs.
[0031] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter. The claimed subject matter is not limited to implementations that solve any or all disadvantages noted in the Background.BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Aspects of the present disclosure are illustrated by way of example and are not limited by the accompanying figures for which like references indicate the same or similar elements.
[0033] Figure 1 shows example equi-exposure surfaces in a three-dimensional (3D) exposure parameter space.
[0034] Figure 2 shows an example equi-exposure surface.
[0035] Figure 3 shows example equi-exposure lines in a two-dimensional (2D) exposure parameter space.
[0036] Figures 4A, 4B, 5A, 5B, 6A, and 6B show embodiments for generating training image pairs of the same scene.
[0037] Figure 7 depicts one embodiment of a system for self-supervised training of an image restoration network.
[0038] Figure 8 depicts a flowchart of one embodiment of a process for selfsupervised training of an image restoration network.
[0039] Figure 9 depicts a flowchart of one embodiment of a process for using a trained image restoration network to restore an image.
[0040] Figure 10A depicts one embodiment of a front-end of a system for selfsupervised training of an image restoration network.
[0041] Figure 10B depicts one embodiment of a front-end of a system for selfsupervised training of an image restoration network.
[0042] Figure 11 is a diagram of one embodiment of a back-end of a system for self-supervised training of an image restoration network.
[0043] Figure 12A depicts one embodiment of a binocular camera system that may be used in a system for self-supervised training of an image restoration network.
[0044] Figure 12B depicts one embodiment of a binocular camera system having a beam-splitter, which may be used in a system for self-supervised training of an image restoration network.
[0045] Figure 13 depicts one embodiment of a monocular camera system that may be used in a system for self-supervised training of an image restoration network.
[0046] Figures 14A, 14B, and 14C depict several examples of real-time controllable iris structures for controlling aperture settings.
[0047] Figure 15 depicts an embodiment of a system for generating training patch pairs for self-supervised training of an image restoration network.
[0048] Figure 16 depicts an embodiment of a system for self-supervised training of the image restoration network in an un-controlled environment such as in the field (or in the wild).
[0049] Figure 17 is a flowchart of one embodiment of a process of controlling the test environment during self-supervised training of the image restoration network.
[0050] Figure 18 is a flowchart of one embodiment of a process of self-supervised training of the image restoration network from one pair of training images.
[0051] Figure 19 is a flowchart of one embodiment of a process of generating a training image pair using either a binocular or monocular camera system.
[0052] Figure 20 is a flowchart of one embodiment of a process of generating training patch pairs from a training image pair.
[0053] Figure 21 A is a flowchart of one embodiment of a process of generating training patch pairs from a training image pair that has exposure diversity.
[0054] Figure 21 B is a flowchart of one embodiment of a process of generating training patch pairs from a training image pair that has shutter diversity.
[0055] Figure 21 C is a flowchart of one embodiment of a process of generating training patch pairs from a training image pair that has aperture diversity.
[0056] Figure 22 is a diagram of one embodiment of a system for federated learning facilitated by self-supervised training of image restoration networks.
[0057] Figure 23 is a flowchart of one embodiment of a process for federated learning facilitated by self-supervised training of image restoration networks.
[0058] Figure 24 is a block diagram of a processing device.
[0059] Figure 25 is a block diagram of a service host that can be used to implement various embodiments of the central server.DETAILED DESCRIPTION
[0060] The present disclosure and embodiments provide a system and method for self-supervised training of image restoration networks. Machine learning algorithms build and / or update a model based on training data during a training mode. The model may then be applied during an inference mode. For example, a denoising network may be trained using training data to build / update a denoise model that can be used in the inference mode to denoise images. As another example, a deblurring network may be trained using training data to build / update a deblur model that can be used in the inference mode to deblur images. As still another example, an exposure correction network may be trained using training data to build / update an exposure correction model that can be used in the inference mode to correct exposure in images. The term “image restoration network” as used herein refers to a system that uses a machine learning algorithm to build and / or update a model based on training data during a training mode, and uses the model during an inference mode to restore image quality of an input image. Examples of image restoration networks may include, but are not limited to, denoising networks, deblurring networks, and / or exposure correction networks.
[0061] In general, machine learning may be supervised or unsupervised. In supervised training (also referred to as supervised learning) ground truth is required in the training data. In unsupervised training ground truth is not required in the training data. In some machine learning techniques, two sets of images are used for training. A source set of images has one or more image quality problem (e.g., noise, blur, and / or incorrect exposure). A corresponding target set of images represents a goal (e.g., the ground truth) of image restoration. For example, an image denoising network may be trained with a set of clean (target) images as ground truth and corresponding noisy (source) images. As another example, an image deblurring network may be trainedwith a set of sharp (target) images as ground truth and corresponding blurry (source) images. Assigning the image quality problems to the source image and noting the target image is a goal (e.g., the ground truth) of image restoration serves to qualify the training data.
[0062] The architectures of such image restoration networks can be categorized into non-blind networks and blind networks. In non-blind image restoration networks prior information is known regarding the image. For example, non-blind denoising networks may start with a known or estimated noise level or parameters to reduce noise in noisy input images. In blind image restoration networks no prior information is known regarding the image. For example, blind denoising networks may use model- free direct end-to-end approaches to deal with various unknown noisy image sources.
[0063] Image restoration networks based on, for example, deep learning can be effective; however, providing the training data sets is challenging. This is especially true for supervised training in which ground truth is used in the training data. Therefore, training image restoration networks is also challenging. The performance of image restoration networks depends heavily on the quality and suitability of training datasets, which are hard to obtain.
[0064] It is difficult to acquire, qualify, and store the huge amount of actual training data. For example, obtaining the set of clean (target) images as ground truth and corresponding noisy (source) images for training an image denoising network is challenging. As another example, obtaining the set of sharp (target) images as ground truth and corresponding blurry (source) images for training an image debarring network is challenging. The acquired images may be augmented by post-processing and Artificial-Intelligence (Al) generated synthetic training images. However, such augmented training images might not be realistic.
[0065] Furthermore, there are significant differences between the image capture systems in different devices, even if the devices are the same model. For example, there may be imperfections in the lens systems and image sensors. Issues with thelens system may include, achromatic I chromatic aberration, lens shading, depth of field issues. Issues with the image sensor may include spectral responses, channel crosstalk, color filter array (CFA) pattern, pixel directivity, etc. Such significant issues may result in a globally trained image restoration network not performing well on a specific electronic device having an image capture system.
[0066] An embodiment of the system has an image capture system that is able to capture images. The system may have an image restoration network that is able to deblur, denoise and / or correct exposure of the captured images. The system is able to train the image restoration network based on images captured by the image capture system. Therefore, there is no need for pre-generated training data to train the image restoration network. Moreover, the system is able to qualify (e.g., generate or identify ground truth) the training data. Furthermore, a specific piece of user equipment may generate the training data to be used for that specific piece of user equipment. Therefore, user equipment specific variations may be accounted for. For example, there may be small differences between the lenses in each specific piece of user equipment. Such differences are thus accounted for in an embodiment in which the user equipment generates its own training data. Therefore, domain shift errors are avoided. A domain shift error refers to an error that may result from training an image restoration model in one domain (e.g., a specific device or a specific use case) and then transferring that trained image restoration model to another domain (e.g., a different device or a different use case). With the disclosed system and method, domain adaption for an image restoration network to adapt to a new domain can be achieved by retraining or fine-tuning the network using training data captured directly in the new domain, without the need for pre-collected training dataset with ground truth for the new domain, which may be labor intensive, time consuming, and costly.
[0067] The system is able to generate pairs of training images (referred to herein as “training image pairs”) from the captured images. Each training image pair comprises a first training image and a second training image of the same scene. However, as will be explained more fully below, the first and second training images differ with respect to at least one exposure parameter. The image capture system isable to control the exposure of each training image by adjusting at least one exposure parameter. An exposure parameter is defined herein as a parameter that controls the exposure of an image. The exposure parameters may include, but are not limited to ISO value (sensitivity of the image capture system to light), aperture setting, and / or shutter speed. Shutter speed could alternatively be expressed as shutter interval. Collectively, the exposure parameters will determine the exposure.
[0068] Exposure refers to how an image is recorded by a camera sensor and how much light is captured. The sensitivity of a camera to light may be expressed as an ISO value. A lower ISO value corresponds to lower light sensitivity. Moreover, a lower ISO value may correspond to a lower noise level in captured images for a given scene. A camera’s aperture is an opening in a camera lens that controls the amount of light that reaches the camera's sensor. The aperture setting thus controls how much light reaches the camera's sensor. The aperture setting may be specified as a f-stop value, which is defined as the ratio of the focal length to the aperture diameter. A smaller f- stop value corresponds to a larger aperture diameter with respect to the focal length. Thus, a smaller f-stop value results in more light reaching the camera’s sensor. However, a smaller f-stop value may reduce the camera’s depth of field. Depth of field is the distance between the closest and farthest objects in a photo that appears acceptably in focus and sharp. Shutter speed controls the exposure time interval. A slower shutter speed (i.e. , a longer exposure time interval) may result in an increase in motion blur for moving objects.
[0069] In an embodiment, the exposure value (EV) of a training image is determined by the ISO value, aperture setting, and shutter speed of an image capture system and may be derived by the equation: EV = ISO value x aperture area x shutter time interval. The ISO value, aperture setting, and shutter speed are referred to herein as “exposure parameters.” Herein the terms “shutter diversity,” “aperture diversity,” and “exposure diversity” may be used to refer to varying an exposure parameter between the two images in a training image pair. Thus, the “diversity” refers to having a different value for at least one of the exposure parameters in two different training images of the same scene.
[0070] “Shutter diversity” between two images in a training image pair is defined as having different shutter speeds but substantially identical aperture setting and substantially identical exposure (a different ISO value is used to get substantially identical exposure). “Aperture diversity” between two images in a training image pair is defined as having different aperture settings but substantially identical shutter speed and substantially identical exposure (a different ISO value is used to get substantially identical exposure). “Exposure diversity” between two training images in a training image pair is defined as having different exposure values (EVs) but substantially identical aperture setting and substantially identical shutter speed.
[0071] The system may have an exposure controller that is configured to control the exposures of the training images such that the first training image and the second training image of each training image pair are captured with a different value for at least one exposure parameter. For example, the first and second training images may be captured using different aperture settings, but with substantially the same EV (substantially the same shutter speed but different ISO values so that the EVs are substantially the same). As a second example, the first and second training images may be captured using different shutter speeds, but with substantially the same EV (substantially the same aperture setting but different ISO values so that the EVs are substantially the same). As a third example, the first and second training images may be captured using different EVs (e.g., different ISO values but substantially the same shutter speed and substantially the same aperture setting). The exposure controller provides a diversity indicator to a training controller. The diversity indicator indicates what exposure parameters were varied between a particular training image pair (e.g., aperture diversity, shutter diversity, exposure diversity).
[0072] The system is able to collect training patch pairs from the training image pairs. A training patch is defined herein as a portion of a training image that is used in the training of an image restoration network. Each training patch pair includes a source patch and a target patch. The patches are from corresponding regions of a training image pair. Thus, the two patches of a training patch pair will contain the same portion of the scene captured by the training image pair. In general, the source patch has some image quality problems or corruptions (blurry, noisy, under-exposed,over-exposed) and the target patch is a “good” example (sharp, clean, correctly exposed). The target patch may be defined as a goal or ground truth of image restoration. The system supervises the training of the image restoration network using the training patch pairs. The generation of the target patches alleviates the need for pre-collected training data. Therefore, there is no need to acquire, qualify, and store pre-collected training data. Moreover, assigning the target patches as either a source or target patch may serve to qualify the training patches for machine learning.
[0073] In an embodiment, the system has a training mode and an inference mode. In the training mode the system collects the source / target patch pairs. In the training mode, the source / target patch pairs may be input to the image restoration network and may be used to train the image restoration network. In the inference mode captured images are input to the image restoration network. The trained image restoration network may be used to denoise, deblur, and / or correct exposure of the captured images. In one embodiment, an image merger will merge each pair of training images into a “merged image,” which is what is input to the image restoration network. When the training mode is selected the source patches may be provided to the image restoration network (along with the target patches as ground truth for the training). When the inference mode is selected the merged images may be provided to the image restoration network. Thus, the trained image restoration network may deblur, denoise, and / or correct exposure in the merged images.
[0074] Figure 1 shows example equi-exposure surfaces in a 3D exposure parameter space. The three axes are for ISO value, shutter speed, and aperture setting representing aperture area (e.g., specified by f-stop). The value for each of these three exposure parameters increases in the direction of the arrow on the corresponding axis. The shutter speed may also be expressed as an exposure time (i.e., shutter interval), wherein a larger value for exposure time results in a greater exposure. A longer exposure time corresponds to a slower shutter speed. Thus, the shutter speed gets slower (exposure time is longer) in the direction of the arrow on the shutter speed axis. The aperture area gets larger (f-stop value is smaller) in thedirection of the aperture axis. The ISO value gets larger in the direction of the ISO axis.
[0075] Each triangle 102-1 , 102-2, 102-3, 102-4 represents a surface for which all points have the same EV. Arrow 104 indicates the direction of increasing EV for equiexposure surfaces. In one embodiment, each image in a training image pair will have the same EV, but a different shutter speed. In one embodiment, each image in a training image pair will have the same EV, but a different aperture setting. In one embodiment, each image in a training image pair will have a different ISO value, but the same shutter speed and the same aperture setting.
[0076] Figure 2 shows an example equi-exposure surface 102. Each point on the equi-exposure surface 102 is represented by a triplet of ISO value, aperture setting, and shutter speed. This example shows a camera system where full exposure control can be performed in a 3D exposure parameter space. Line 202, which is on the example equi-exposure surface 102, represents an example of shutter diversity. Each point on line 202 has a different value of shutter speed. However, all points on line 202 have the same EV. The same EV is achieved in this example due to all points on line 202 having the same aperture setting, but different ISO values such that the same EV results. Line 204, which is on the example equi-exposure surface 102, represents an example of aperture diversity. Each point on line 204 has a different value of aperture setting. However, all points on line 204 have the same EV. The same EV is achieved in this example due to all points on line 204 having the same shutter speed, but different ISO values such that the same EV results. Line 206, which is not on the example equi-exposure surface 102, represents an example of exposure diversity. Point 208 is on the example equi-exposure surface 102, but other points of line 206 are on other equi-exposure surfaces (not depicted in Figure 2).
[0077] Point 210 on the example equi-exposure surface 102 in Figure 2 corresponds to a slowest shutter speed among all exposure parameter triplets on the triangle. Point 212 on the example equi-exposure surface 102 in Figure 2 corresponds to a largest aperture area among all exposure parameter triplets on the triangle. Point 214 on the example equi-exposure surface 102 in Figure 2 corresponds to a largestISO value among all exposure parameter triplets on the triangle. Images captured with the exposure parameters at point 210 may have a very high amount of motion blur, but very low noise (relative to other points on the triangle). Images captured with the exposure parameters at point 212 may have a very high amount of defocus blur, but very low noise (relative to other points on the triangle). Images captured with the exposure parameters at point 214 may have a very high amount of noise, but very low motion and defocus blur (relative to other points on the triangle).
[0078] Figure 3 shows example equi-exposure lines in a 2D exposure parameter space. In Figure 3, there is an ISO value axis and a shutter speed axis. The aperture setting is constant in this example 2D exposure parameter space. In this example, each point in the 2D exposure parameter space is represented by a unique ISO value, shutter speed doublet. This example shows a camera system where partial exposure control can be performed in a 2D exposure parameter space. Figure 3 shows several example equi-exposure lines 302-1 , 302-2, 302-3. All points on a particular equi- exposure line 302 has the same EV. Line 304 represents exposure diversity. The points on line 304 will have different exposure values, but the same shutter speed and the same aperture setting.
[0079] As noted above, each of the example equi-exposure lines 302-1 , 302-2, 302-3 has the same EV. However, each point on a particular equi-exposure line 302 has a different shutter speed (as well as a different ISO value). Therefore, two different points on a particular equi-exposure line 302 represents an example of shutter diversity. Point 306 represents the slowest shutter speed among all exposure parameter doublets on equi-exposure line 302-2. Point 308 represents the maximum ISO value among all exposure parameter doublets on equi-exposure line 302-2. An image captured with the exposure parameters at point 306 will have the most motion blur but the least noise relative to other points on line 302-2. An image captured with the exposure parameters at point 308 will have the least motion blur but the most noise relative to other points on line 302-2.
[0080] Figures 4A-6B show embodiments for generating training image pairs of the same scene. Each Figure shows how the shutter interval, ISO value, and aperture area may be controlled over time. Each figure covers a time period of two frames(Frame n, Frame n+1 ). A training image pair will be generated for each frame. For the purpose of discussion these will be referred to as training image 1 (or first training image) and training image 2 (or second training image). The terms “first” and “second” here are arbitrary in that no order between the images is implied and either image could be called the first image. The term “member” may be used to refer to either image in a training image pair. At least one exposure parameter is varied between the two members of a particular training image pair.
[0081] Figure 4A depicts an example in which Frame n will be used to generate a first training image having a first aperture area and a second training image having a second aperture area (e.g., Aperture Diversity Setting A). Having two different aperture areas for the training image pair is an example of aperture diversity. Frame n+1 in Figure 4A will be used to generate another training image pair with a different aperture diversity (e.g., Aperture Diversity Setting B).
[0082] Figure 4A corresponds to an embodiment in which the image capture system has a binocular camera. The binocular camera has two cameras, which will be referred to as binocular camera 1 and binocular camera 2. Each of these two cameras captures a single exposure per frame, thereby providing two exposures per frame for the binocular camera. In one embodiment, the binocular camera has two image sensors. The image sensors may include, but are not limited to, charge- coupled devices (CCD) and active-pixel sensors (e.g., CMOS).
[0083] For Frame n in Figure 4A, binocular camera 1 has an aperture area of a1 , whereas binocular camera 2 has an aperture area of a2 to thereby provide aperture diversity (Aperture Diversity A). For Frame n in Figure 4A, the binocular cameras have the same shutter interval (s1 ). In general, the shutter interval is between to to t1 (see scanlines 402(1 a) and 402(2a)). Each individual scanline may be active for a subset of that interval. In order to have the same EV during Frame n, binocular camera 1 has an ISO value of 11 , whereas binocular camera 2 has an ISO value of I2. The left side of Equation 1 is the calculation for the EV for binocular camera 1 and right side of Equation 1 is the calculation for the EV for binocular camera 2 for Frame n. si x / 1 x al = sl x / 2 x aZ Eq. 1
[0084] Equation 1 indicates that for Frame n the EV for binocular camera 1 equals the EV for binocular camera 2. Note that these two training images may have a different ISO value in order to achieve the same EV. Figure 4A also shows scanlines 402 to represent operation of the image sensors. Scanlines 402(1 a) are for binocular camera 1 for Frame n, scanlines 402(2a) are for binocular camera 2 for Frame n, scanlines 402(1 b) are for binocular camera 1 for Frame n+1 , and scanlines 402(2b) are for binocular camera 2 for Frame n+1 . The scanlines 402 are for a rolling scanline sensor in which the shutter start time (and shutter end time) for the lines are staggered. Each line in a scanline 402 indicates the start and the end of the exposure for that line.
[0085] Referring now to Frame n+1 in Figure 4A, binocular camera 1 has an aperture area of a3, whereas binocular camera 2 has an aperture area of a4 to thereby provide aperture diversity (Aperture Diversity B). For Frame n+1 in Figure 4A, the binocular cameras have the same shutter interval (s2). In general, the shutter interval is between t2 to t3 (see scanlines 402(1 b) and 402(2b)). Each individual scanline may be active for a subset of that time interval. In order to have the same EV during Frame n+1 , binocular camera 1 has an ISO value of I3, whereas binocular camera 2 has an ISO value of I4. The left side of Equation 2 is the calculation for the EV for binocular camera 1 and right side of Equation 2 is the calculation for the EV for binocular camera 2 for Frame n+1 . s2 x / 3 x a3 = s2 x 14 X a4 Eq. 2
[0086] Figure 4B depicts operation of an embodiment of a monocular camera to captures training image pairs having aperture diversity. In a monocular embodiment there are multiple exposures each frame. Figure 4B shows an example of how the monocular camera can capture multiple exposures in Frame n to provide for Aperture Diversity A and how the monocular camera can capture multiple exposures in Frame n+1 to provide for Aperture Diversity B. Note that Figure 4B depicts an example in which there are two exposures per Frame; however, there may be more than two exposures per Frame. During Frame n, between to and t1 , exposure parameters for the monocular camera are similar to those of binocular camera 1 between to and t1 (s1 , 11 , a1 ). During Frame n, between t1 and tT, exposure parameters for the monocular camera are similar to those of binocular camera 2 between to and t1 (s1 ,12, a2). Scanlines 402(1 a) in Figure 4B represent an exposure used to capture a first training image similar to scanlines 402(1 a) in Figure 4A. Scanlines 402(2a) in Figure 4B represent an exposure used to capture a second training image similar to scanlines 402(2a) in Figure 4A.
[0087] During Frame n+1 in Figure 4B, between t2 and t3, exposure parameters for the monocular camera are similar to those of binocular camera 1 between t2 and t3 (s2, I3, a3). During Frame n+1 , between t3 and t3’, exposure parameters for the monocular camera are similar to those of binocular camera 2 between t2 and t3 (s2, I4, a4). Scanlines 402(1 b) in Figure 4B represent an exposure used to capture a first training image similar to scanlines 402(1 b) in Figure 4A. Scanlines 402(2b) in Figure 4B represent an exposure used to capture a second training image similar to scanlines 402(2b) in Figure 4A. Therefore, the monocular camera system is able to capture similar training image pairs that may be captured by the binocular camera system.
[0088] It is evident that the two exposures for one frame of the monocular camera are not captured simultaneously (i.e., at the same time), although they are captured contemporaneously (i.e., close to the same time). The small difference in time between these two exposures may create an issue if there is a fast moving object in some region of the image. Therefore, in an embodiment, an analysis is made of whether there is a fast moving object in some region of the image and that region of the image is not used for training purposes. For example, training patches are not formed from the region having a fast moving object in an embodiment having a monocular camera.
[0089] Figure 5A depicts an example in which Frame n will be used to generate a first training image having a first shutter interval and a second training image having a second shutter interval (e.g., Shutter Diversity Setting A). Having two different shutter intervals for the training image pair is an example of shutter diversity. Frame n+1 in Figure 5A will be used to generate another training image pair with a different shutter diversity (e.g., Shutter Diversity Setting B).
[0090] Figure 5A corresponds to an embodiment in which the image capture system has a binocular camera. For Frame n in Figure 5A, binocular camera 1 has a shutter interval of s3, whereas binocular camera 2 has a shutter interval of s4 tothereby provide shutter diversity (Shutter Diversity A). The shutter interval for binocular camera 1 is between to to t3 (see scanlines 502(1 a)). The shutter interval for binocular camera 2 is between t1 to t2 (see scanlines 502(2a)). For Frame n in Figure 5A, the binocular cameras have the same aperture areas (a5). In order to have the same EV during Frame n, binocular camera 1 has an ISO value of I5, whereas binocular camera 2 has an ISO value of I6. The left side of Equation 3 is the calculation for the EV for binocular camera 1 and right side of Equation 3 is the calculation for the EV for binocular camera 2 for Frame n. s3 x / 5 x a5 = s4 x / 6 x a5 Eq. 3
[0091] Equation 3 indicates that for Frame n the EV for binocular camera 1 equals the EV for binocular camera 2. Note that these two training images may have a different ISO value in order to achieve the same EV.
[0092] Referring now to Frame n+1 in Figure 5A, binocular camera 1 has a shutter interval of s5, whereas binocular camera 2 has a shutter interval of s6 to thereby provide shutter diversity (Shutter Diversity B). The shutter interval for binocular camera 1 is between t3’ to t5’ (see scanlines 502(1 b)). The shutter interval for binocular camera 2 is between t4 to t5 (see scanlines 502(2b)). For Frame n+1 in Figure 5A, the binocular cameras have the aperture area (a6). In order to have the same EV during Frame n+1 , binocular camera 1 has an ISO value of I7, whereas binocular camera 2 has an ISO value of I8. The left side of Equation 4 is the calculation for the EV for binocular camera 1 and right side of Equation 4 is the calculation for the EV for binocular camera 2 for Frame n+1 .$5 x / 7 X a6 = $6 x / 8 x a6 Eq. 4
[0093] Figure 5B depicts operation of an embodiment of a monocular camera to captures training image pairs having shutter diversity. Figure 5B shows an example of how the monocular camera can capture multiple exposures in Frame n to provide for Shutter Diversity A and how the monocular camera can capture multiple exposures in Frame n+1 to provide for Shutter Diversity B. Note that the timeline in Figure 5B corresponds to the timeline in Figure 5A. However, the timelines in Figures 5A and 5B do not necessarily correspond to the timelines in Figures 4A and 4B.
[0094] During Frame n in Figure 5B, between t1 and t2, exposure parameters for the monocular camera are similar to those of binocular camera 2 between t1 and t2 (s4, I6, a5). The image captured when the image sensor of the monocular camera has scanlines 502(2a) in Figure 5B have similar exposure parameters as the image captured when the image sensor of binocular camera 2 has scanlines 502(2a) in Figure 5A (s4, I6, a5).
[0095] During Frame n in Figure 5B, between to and t1 , the ISO value and aperture values for the monocular camera are similar to those of binocular camera 1 between tO and t1 (I5, a5). Also, during Frame n in Figure 5B, between t2 and t3, the ISO and aperture values for the monocular camera are similar to those of binocular camera 1 between t2 and t3 (I5, a5). The shutter interval between tO and t1 , as well as between t2 and t3, is indicated as s3’ to indicate that the combined three shutter intervals for the monocular camera are similar to those of binocular camera 1 for Frame n, e.g., s3’+s4+s3’ « s3. Scanlines 502(1 c) represent a first exposure, scanlines 502(2a) represent a second exposure, and scanlines 502(1 d) represent a third exposure in Frame n. In an embodiment, image processing is used to combine the three exposures from the monocular camera during Frame n to produce a training image that is similar to the training image produced by binocular camera 1 in Frame n of Figure 5A. One example method to combine the three exposures from the monocular camera during Frame n is to calculate a shutter interval normalized sum of the three ISO value equalized exposures, e.g., training image = [exposure 502(1 c) + I5 / I6 x exposure 502(2a) + exposure 502(1 d)] x s3 / (s3’+s4+s3’). Combining the three exposures from the monocular camera during Frame n may provide for a similar shutter interval (tO to t3) as was achieved with binocular camera 1. It is not a requirement that the training image produced by the monocular camera has identical exposure parameters as the training image produced by the binocular camera. For example, to compensate for their shorter shutter intervals, exposure 502(1 c) and 502(1 d) in the monocular camera can use a larger ISO value than the ISO value I5 of exposure 502(1 a) in binocular camera 1. However, there should be shutter diversity between the first training image and the second training image produced by the monocular camera.
[0096] During Frame n+1 in Figure 5B, between t4 and t5, exposure parameters for the monocular camera are similar to those of binocular camera 2 between t4 and t5 (s6, I8, a6). The image captured when the image sensor of the monocular camera has scanlines 502(2b) in Figure 5B have similar exposure parameters as the image captured when the image sensor of binocular camera 2 has scanlines 502(2b) in Figure 5A (s6, I8, a6).
[0097] During Frame n+1 in Figure 5B, between t3’ and t4, the ISO and aperture values for the monocular camera are similar to those of binocular camera 1 between t3’ and t4 (I7, a6). Also, during Frame n+1 in Figure 5B, between t5 and t5’, the ISO and aperture values for the monocular camera are similar to those of binocular camera 1 between t5 and t5’ (I7, a6). The shutter interval between t3’ and t4, as well as between t5 and t5’, is indicated as s5’ to indicate that the combined three shutter intervals for the monocular camera are similar to those of binocular camera 1 for Frame n+1 , e.g., s5’+s6+s5’ « s5. Scanlines 502(1 e) represent a first exposure, scanlines 502(2b) represent a second exposure, and scanlines 502(1 f) represent a third exposure in Frame n+1 . In an embodiment, image processing is used to combine the three exposures from the monocular camera during Frame n+1 to produce a training image that is similar to the training image produced by binocular camera 1 in Frame n+1 of Figure 5A. One example method to combine the three exposures from the monocular camera during Frame n+1 is to calculate a shutter interval normalized sum of the three ISO value equalized exposures, e.g., training image = [exposure 502(1 e) + I7 / I8 x exposure 502(2b) + exposure 502(1 f)] x s5 / (s5’+s6+s5’). Combining the three exposures from the monocular camera during Frame n+1 may provide for a similar shutter interval (t3’ to t5’) as was achieved with binocular camera 1 . It is not a requirement that the training image produced by the monocular camera has identical exposure parameters as the training image produced by the binocular camera. For example, to compensate for their shorter shutter intervals, exposure 502(1 e) and 502(1 f) in the monocular camera can use a larger ISO value than the ISO value I7 of exposure 502(1 b) in binocular camera 1. However, there should be shutter diversity between the first training image and the second training image produced by the monocular camera.
[0098] Figure 6A depicts an example in which Frame n will be used to generate a first training image having a first EV (e.g., first ISO value) and a second training image having a second EV (e.g., second ISO value), which may be referred to herein as exposure diversity (e.g., Exposure Diversity Setting A). Frame n+1 in Figure 6A will be used to generate another training image pair with a different exposure diversity (e.g., Exposure Diversity Setting B).
[0099] Figure 6A corresponds to an embodiment in which the image capture system has a binocular camera. For Frame n in Figure 6A, binocular camera 1 has an ISO value of I9, whereas binocular camera 2 has an ISO value of 110 to thereby provide exposure diversity (Exposure Diversity A). Furthermore, both binocular camera 1 and binocular camera 2 have a shutter interval of s7. Moreover, both binocular camera 1 and binocular camera 2 have an aperture area of a7. The left side of Equation 5 is the calculation for the EV for binocular camera 1 and right side of Equation 5 is the calculation for the EV for binocular camera 2 for Frame n.
[0100] Equation 5 indicates that the EV for image captured by binocular camera 1 is not equal to the EV for image captured by binocular camera 2 during Frame n. Herein, this may be referred to as exposure diversity. Scanlines 602(1 a) show that between to to t1 the image sensor in binocular camera 1 is exposed with the ISO value of I9. Scanlines 602(2a) show that between to to t1 the image sensor in binocular camera 2 is exposed with the ISO value of 110.
[0101] Referring now to Frame n+1 in Figure 6A, binocular camera 1 has an ISO value of 111 , whereas binocular camera 2 has an ISO value of 112 to thereby provide exposure diversity (Exposure Diversity B). Furthermore, both binocular camera 1 and binocular camera 2 have a shutter interval of s8. Moreover, both binocular camera 1 and binocular camera 2 have an aperture area of a8. The left side of Equation 6 is the calculation for the EV for binocular camera 1 and right side of Equation 6 is the calculation for the EV for binocular camera 2 for Frame n+1 .
[0102] Equation 6 indicates that the EV for image captured by binocular camera 1 is not equal to the EV for image captured by binocular camera 2 during Frame n+1.Scanlines 602(1 b) show that between t2 to t3 the image sensor in binocular camera 1 is exposed with the ISO value of 111. Scanlines 602(2b) show that between t2 to t3 the image sensor in binocular camera 2 is exposed with the ISO value of 112.
[0103] Figure 6B depicts operation of an embodiment of a monocular camera to captures training image pairs having exposure diversity. Figure 6B shows an example of how the monocular camera can capture multiple exposures in Frame n to provide for Exposure Diversity A and how the monocular camera can capture multiple exposures in Frame n+1 to provide for Exposure Diversity B. Note that the timeline in Figure 6B corresponds to the timeline in Figure 6A.
[0104] There is a first shutter interval between to to t1 in Frame n, corresponding to scanlines 602(1 a) in Figure 6B. During the first shutter interval of Frame n, the shutter interval is s7, the ISO value is I9, and the aperture is a7. Therefore, the exposure parameters for the monocular camera between to to t1 for the first shutter interval of Frame n are similar to those of binocular camera 1 for Frame n between to to t1 (s7, I9, a7). There is a second shutter interval for the monocular camera between t1 to tT in Frame n, corresponding to scanlines 602(2a) in Figure 6B. During the second shutter interval of Frame n, the shutter interval is s7, the ISO value is 110, and the aperture is a7. Therefore, the exposure parameters for the second shutter interval of Frame n for the monocular camera are similar to those of the binocular camera 2 for Frame n between to to t1 (s7, 110, a7).
[0105] There is a first shutter interval between t2 to t3 in Frame n+1 , corresponding to scanlines 602(1 b) in Figure 6B. During the first shutter interval of Frame n+1 , the shutter interval is s8, the ISO value is 111 , and the aperture is a8. Therefore, the exposure parameters for the monocular camera between t2 to t3 for the first shutter interval of Frame n+1 are similar to those of binocular camera 1 for Frame n+1 between t2 to t3 (s8, 111 , a8). There is a second shutter interval for the monocular camera between t3 to t3’ in Frame n+1 , corresponding to scanlines 602(2b) in Figure 6B. During the second shutter interval of Frame n+1 , the shutter interval is s8, the ISO value is 112, and the aperture is a8. Therefore, the exposure parameters for the second shutter interval of Frame n+1 for the monocular camera are similar to those of the binocular camera 2 for Frame n+1 between t2 to t3 (s8, 112, a8).
[0106] Figure 7 depicts one embodiment of a system 700 for self-supervised training of an image restoration network. The system 700 could include, but is not limited to, a camera (e.g., surveillance camera, automotive camera, consumer camera), smartphone, tablet computer, laptop computer, desktop computer, ARA / R device, drone (with camera), robot, etc. The image capture system 702 is configured to capture images. In an embodiment, the image capture system 702 is a monocular system having a lens system and an image sensor. In an embodiment, the image capture system 702 is a binocular system having a pair of lens systems and image sensors. The image sensors may include, but are not limited to, charge-coupled devices (CCD) and active-pixel sensors (e.g., CMOS).
[0107] The training image generator 703 is configured to generate pairs of training images from the captured images. Each pair of training images comprises a first training image of a scene and a second training image of the same scene. For example, the image capture system 702 captures one or more images of scene 704 and the training image generator 703 generates Training Image 1 and Training Image 2 of the same scene. The image capture system 702 is able to control the exposure of each training image by adjusting at least one exposure parameter in accordance with exposure settings. The exposure parameters include ISO value (sensitivity of the image capture system to light), aperture setting, and shutter speed. Collectively, the exposure parameters will determine the exposures of images captured by the image capture system 702.
[0108] The exposure controller 706 sends exposure settings to the image capture system 702 in order to establish the exposures of the training images. The exposure settings may specify a different value for at least one exposure parameter between the two images in a training image pair. Therefore, the first training image and the second training image of each training image pair have a different value for at least one exposure parameter. For example, the first and second training images may be captured using different aperture settings to provide aperture diversity, but with substantially the same EV (same shutter speed but different ISO value so that the EVs are the same). As a second example, the first and second training images may be captured using different shutter speeds to provide shutter diversity, but withsubstantially the same EV (same aperture setting but different ISO value so that the EVs are the same). As a third example, the first and second training images may be captured using different EVs (e.g., different ISO value but same shutter speed and same aperture setting) to provide exposure diversity. The exposure controller 706 provides a diversity indicator to the training controller 710. The diversity indicator indicates what exposure parameter was varied between a particular training image pair (e.g., aperture diversity, shutter diversity, exposure diversity).
[0109] The image restoration network 708 is configured to deblur, denoise and / or correct exposure of images captured by the image capture system 702. The training controller 710 is configured to collect training patch pairs from the training image pairs. Each training patch pair comprises a source patch and a target patch. The patches are from the same region of a training image pair. In general, the source patch may have some image quality problems or corruptions (blurry, noisy, under-exposed, overexposed) and the target patch may be a “good” example (sharp, clean, correctly exposed). The training controller 710 also controls the training of the image restoration network 708 using the collected training patch pairs by issuing training enable indicators (ENs). The generation of the target patches alleviates the need for precollected training data. Therefore, there is no need to acquire, qualify, and store precollected training data.
[0110] The system 700 has a training mode and an inference mode. The training / inference scheduler 712 selects either the training mode or the inference mode. The training / inference scheduler 712 may issue a mode select signal to the training controller 710 to select either the training mode or the inference mode. In the training mode the training controller 710 collects the source / target patch pairs. In the training mode, the source / target patch pairs may be input to the image restoration network 708 and may be used to train the image restoration network 708. The training / inference scheduler 712 may issue the mode select signal as the input selection control (SEL) to a MUX 716 to select the source patches during the training mode. During the inference mode, the image merger 714 may merge each training image pair into a merged image. During the inference mode, the training / inference scheduler 712 may issue the mode select signal as the input selection control (SEL)to the MUX 716 to select the merged images. Therefore, the merged images may be input to the image restoration network 708 in the inference mode instead of the source patches. During the inference mode, the trained image restoration network 708 may be used to denoise, deblur, and / or correct exposure of the merged images. During the inference mode, the image restoration network 708 outputs the restored images as the outputs of the system 700. The image restoration network 708 performs supervised training of its individual models and is not required to output “restored” images as the outputs of the system 700 during the training mode. The training controller 710 also issues training enable indicators (ENs) to control training of individual models of the image restoration network 708.
[0111] In an embodiment, the system 700 may rapidly switch between the training mode and the inference mode. For example, the system 700 may operate in the training mode during a blanking interval of a frame and operate in the inference mode when not in the blanking interval of the frame.
[0112] The training controller 710, exposure controller 706, training image generator 703, training / inference scheduler 712, image merger 714, MUX 716, and / or image restoration network 708 may be implemented in software, hardware, or a combination of hardware and software. Figure 24 depicts one embodiment of a processing device 2400 that may be used to implement one of more of these components of system 700. In one embodiment, the system 700 has one or more processors that execute code to implement one or more of these components. Various types of processors can be used. In an embodiment, the system has a graphical processing unit (GPU) that executes a deep learning algorithm to implement the image restoration network 708. However, the system is not required to have a GPU.
[0113] In general, the system 700 may comprise a camera system and one or more control circuits. The one or more control circuits may be used to implement any combination of training controller 710, exposure controller 706, training image generator 703, training / inference scheduler 712, image merger 714, MUX 716, and / or image restoration network 708. A control circuit may be implemented in hardware, software, or a combination of software and hardware.
[0114] In one embodiment, software (stored on a storage device) implementing one or more embodiments is used to program one or more processors to implement some or all of the components of system 700. The one or more processors can be in communication with one or more computer readable media / storage devices, peripherals and / or communication interfaces. In alternative embodiments, some or all of the components of system 700 may be implemented by dedicated hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Application-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), special purpose computers, etc.
[0115] Figure 8 depicts a flowchart of one embodiment of a process 800 for selfsupervised training of an image restoration network. The process 800 may be performed by system 700, but is not limited thereto. Reference may be made in process 800 to elements in Figure 7; however, process 800 is not limited to the elements depicted and described with respect to Figure 7. Step 802 includes determining a set of exposure settings for a type of diversity. In other words, values for exposure parameters are determined. The exposure parameters may include, but are not limited to, ISO value, shutter speed, and / or aperture setting. The exposure parameters may include two sets for each frame. Each set may include a triplet (e.g., ISO value, shutter speed, aperture setting) with at least one exposure parameter being different in the first set than the second set for the frame.
[0116] Step 804 includes controlling exposure parameters of images captured by the image capture system 702. Step 804 may include the exposure controller 706 providing the exposure settings (e.g., values for the exposure parameters) to the image capture system 702.
[0117] Step 806 includes generating a training image pair having a first training image and a second training image of the same scene 704 with a different value for at least one of the exposure parameters. In one embodiment, the training image pairhas aperture diversity. In one embodiment, the training image pair has shutter diversity. In one embodiment, the training image pair has exposure diversity.
[0118] Step 808 includes collecting training patch pairs from the training image pair. In one embodiment, each training patch pair includes a source patch and a target patch. Note that the training image pair may result in many training patch pairs. In one embodiment, a training patch pair is tailored for a specific aspect of the image restoration network 708. The training patch pairs could include, but are not limited to, training patch pairs tailored to a denoising network, training patch pairs tailored to a deblurring network and / or training patch pairs tailored to an exposure correction network of the image restoration network 708.
[0119] Step 810 includes providing the training patch pairs to the image restoration network 708. Step 812 includes supervising training of the image restoration network 708 based on the training patch pairs. Step 814 includes a determination of whether to collect training patches for another set of exposure settings. If so, the process returns to step 802. If not, then training ends. Therefore, process 800 is capable of self-supervision of the image restoration network 708 without the need for precollected training data. Note that one option is to store the training patch pairs that were collected in step 808. The stored training patch pairs could be used to train the image restoration network at a later time.
[0120] Figure 9 depicts a flowchart of one embodiment of a process 900 for using a trained image restoration network to restore an image. Process 900 may be performed by the system 700 of Figure 7, but is not limited thereto. In an embodiment, process 900 is performed during an inference mode. In one embodiment, process 900 is performed after training the image restoration network 708 using process 800. However, a different process could be used to train the image restoration network 708. In one embodiment, process 900 is used while training the image restoration network 708. Process 900 describes processing for one frame and may be repeated for other frames. In one embodiment, process 800 and process 900 are each performed for one frame. For example, process 800 may be performed during a blanking interval of a frame and process 900 may be performed outside of the blanking interval of the fame.
[0121] Step 902 includes generating a training image pair having a first training image and a second training image of the same scene 704. Step 904 includes merging the training image pair into a merged image. Step 906 includes providing the merged image to the image restoration network 708. Step 908 includes performing image restoration on the merged image using the trained image restoration network 708. Step 908 may include, but is not limited to, denoising, debarring, and / or exposure correction in the merged image. Step 910 includes outputting the restored image.
[0122] The system 700 can broadly be divided into a front-end that captures images and generates training images and a back-end that collects the training patch pairs and trains the image restoration network. The front-end may include the image capture system 702, the training image generator 703, and the exposure controller 706. The front-end is responsible for generating the training image pairs. Figure 10A depicts one embodiment of a front-end 1000 of a system for self-supervised training of an image restoration network. The front-end 1000 in Figure 10A has a binocular camera system. The binocular camera system has a first lens system 1002(1 ) connected to first image sensor 1004(1 ), which outputs a first raw image (Raw Image-i). The binocular camera system has a second lens system 1002(2) connected to second image sensor 1004(2), which outputs a second raw image (Raw Image2). The two lens systems and the two image sensors form one embodiment of an image capture system 702. The binocular camera system may capture both the first and second raw images during the same frame. The frame synchronizer 1006 will synchronize the first and second raw images such that they are synchronized in each frame interval and paired together to become a training image pair after further processing. The image signal processor 1008 performs image signal processing on the raw images as is known to those of ordinary skill in the art. The optional image distortion remover 1010 will remove lens geometrical distortions and shadings from the raw images. The optional parallax rectifier 1012 will compensate for parallax issues between the two raw images due to view angle difference between the two lens systems and image sensors. The parallax rectifier 1012 outputs a training image pair for each frame. The frame synchronizer 1006, image signal processor 1008, imagedistortion remover 1010, and parallax rectifier 1012 form one embodiment of a training image generator 703.
[0123] The auto exposure module 1014 performs auto exposure function as is known to one of ordinary skill in the art. The auto exposure module 1014 may provide current values of exposure parameters to the exposure controller 706. The exposure controller 706 determines values for the exposure parameters (ISO value, shutter speed, aperture setting) to be used for one or more frames. In an embodiment, the exposure parameters are selected to provide diversity in shutter speed, aperture setting, or exposure. The exposure controller 706 thus determines two sets of exposure parameters (ISOi, Shutten, Aperture-i) and (ISO2, Shutter, Aperture2). The exposure controller 706 provides ISO1 and Shutten to the first image sensor 1004(1 ) and Aperturei to the first lens system 1002(1 ). The exposure controller 706 provides ISO2 and Shutter to the second image sensor 1004(2) and Aperture2 to the second lens system 1002(2). The exposure controller 706 outputs a diversity indicator based on the exposure parameters for the one or more frames. In an embodiment, the diversity indicator specifies what type of diversity (e.g., shutter diversity, aperture diversity, exposure diversity) is being created in the training image pairs associated with the one or more frames.
[0124] Figure 10B depicts one embodiment of a front-end 1050 of a system for selfsupervised training of an image restoration network. The front-end 1050 has a monocular camera system. The monocular camera system has a lens system 1052 connected to an image sensor 1054, which outputs a raw image (Raw Image) captured with one or more exposures for a frame. The lens system and the sensor form one embodiment of an image capture system 702. The frame decomposer 1056 will decompose the raw image captured with one or more exposures for a frame to produce a first raw image (Raw Image-i) and a second raw image (Raw Image2) for the frame. Thus, the monocular camera system may capture both the first and second raw images during the same frame. The image signal processor 1058 performs image signal processing on the raw images as is known to those of ordinary skill in the art. The frame decomposer 1056 and image signal processor 1058 form one embodiment of a training image generator 703.
[0125] The auto exposure module 1060 performs auto exposure function as is known to one of ordinary skill in the art. The auto exposure module 1060 may provide current values of exposure parameters to the exposure controller 706. The exposure controller 706 determines values for the exposure parameters (ISO value, shutter speed, aperture setting) to be used for one or more frames. In an embodiment, the exposure parameters are selected to provide diversity in shutter speed, aperture, or exposure. The exposure controller 706 thus determines two sets of exposure parameters (ISOi, Shutten, Aperture-i) and (ISO2, Shutter, Aperture2). The exposure controller 706 provides ISO1, Shutten, ISO2, and Shutter to the image sensor 1054. The exposure controller 706 provides Aperturei and Aperture2 to the lens system 1052. The exposure controller 706 outputs the diversity indicator based on the exposure parameters for the one or more frames.
[0126] Figure 11 is a diagram of one embodiment of a back-end 1100 of a system for self-supervised training of an image restoration network. Figure 11 depicts further details for one embodiment of the training controlled 0 and the image restoration network 708. The training controller 710 includes an image difference generator 1102, a noise threshold generator 1104, a multi-scale difference detector 1106, and a training patch collector 1108. The image difference generator 1102 inputs training image 1 and training image 2 and output a difference image (Diff Image) between the two. The image difference generator 1102 may perform pixel subtraction as is known to one of ordinary skill in the art. In one embodiment, when training image 1 and training image 2 do not have substantially identical exposure value (EV), the training image pair is normalized to the same exposure value (EV) by their inverse exposure ratio before the pixel subtraction is performed. For example, when training image 1 has an exposure value (EV) 5% higher than that of training image 2, training image 1 will be multiplied by 100 / 105 before the pixel subtraction is performed. The difference image may also be referred to as a residual image. The noise threshold generator 1104 inputs training image 1 and training image 2 and generates a noise threshold for each image. These noise thresholds may be used for adaptive difference detection based on an image sensor noise profile, as will be understood by those of ordinary skill in the art. The detection thresholds are essential for robust difference detectionon difference images in the presence of noise. Due to the properties of signaldependent noise of typical image sensors, the detection thresholds for each pixel in the difference image should adaptively depend on the noise thresholds for each corresponding pixels in each image of a training image pair. These noise thresholds can be determined by the pixel intensities of corresponding pixels in each image of a training image pair and the ISO values for each image of the training image pair. Therefore, the noise thresholds are adaptively computed for every pixel using a predefined sensor noise model with parameters obtained by an image sensor calibration process. Both the predefined sensor noise model and the image sensor calibration process are known by those of ordinary skill in the art. In one embodiment, when training image 1 and training image 2 do not have substantially identical exposure value (EV), the corresponding noise thresholds are normalized to the same exposure value (EV) by their inverse exposure ratio. The image difference generator 1102 and the noise threshold generator 1104 may operate on a patch by patch basis. Thus, the difference image may be for a patch. There could be many (e.g., hundreds or thousands) of patches for an image.
[0127] The multi-scale difference detector 1106 determines differences between the two training images, based on the difference image and noise thresholds. The multi-scale difference detector 1106 may also operate on a patch-by-patch basis. In an embodiment, the multi-scale difference detector 1106 analyzes a difference between pixels in corresponding patches in a training image pair. In an embodiment, the multi-scale difference detector 1106 uses coarse~to~fine decision rule to detect patch differences based on noise thresholds generated by the noise threshold generator 1104. In an embodiment, the multi-scale difference detector 1106 detects, from the coarsest scale down to the finest scale, the first scale where the difference image downscaled to the scale has a patch sum (i.e., local sum within a patch) of absolute pixel values exceeding the adaptive detection thresholds corresponding to the scale. The adaptive detection thresholds for multi-scale difference detector 1106 can be assigned by multiplying pre-determined constants with the local root-mean- square (RMS) values of the noise thresholds of the corresponding pixels within a patch in both images of the training image pair, as generated by the noise thresholdgenerator 1104. For multi-scale difference detection, the adaptive detection thresholds for different scale can be determined by the downscaled versions of the adaptive detection thresholds for the original finest scale as is known to one of ordinary skill in the art. The multi-scale difference detector 1106 outputs a patch type, patch scale, and confidence score to the training patch collector 1108, as well as to the image merger 714. In an embodiment, the patch type indicates which patch is source, which patch is target, and which network (e.g., denoising, debarring, exposure correction) is to be trained. In an embodiment, the patch scale indicates whether the patch should be scaled down (e.g., reduced in size) for deblurrer training, and if yes, by which downscale ratio to provide for a sharp target patch. The confidence score indicates a confidence level for using the patch for training purposes, at the indicated downscale ratio. In an embodiment, the confidence level can be a value positively associated with the total amount of spatial features, e.g., details, textures, edges, contained in the patch. The total amount of such spatial features can be suitably estimated using methods known to one of ordinary skill in the art. In an embodiment, the image merger 714 performs multi-scale image blending with the training image pair for each patch at each scale as is known to those of ordinary skill in the art. The target patches with higher confidence scores are assigned higher weightings than the corresponding source patches when performing the image blending, The target patches with lower confidence scores and the corresponding source patches are assigned similar weightings when performing the image blending. When target patches and the corresponding source patches are not determined, similar weightings are assigned to the two corresponding patches in the training image pair when performing the image blending.
[0128] The training patch collector 1108 inputs the training image pair and collects training patch pairs (source patches, target patches) based on signals from the multiscale difference detector 1106. The training patch collector 1108 provides the target patches to the image restoration network 708 and provides the source patches to the MUX 716. The target patches are provided to various ground truth loss function modules in the image restoration network 708. The training patch collector 1108 alsoissues training enable indicators (ENs) to control training of individual models of the image restoration network 708.
[0129] The image restoration network 708 includes three different networks. A blind denoising network includes a blind image denoiser 1110 and a denoiser ground truth loss function module 1112. The blind image denoiser 1110 may contain a denoiser model. The supervised training may update the denoiser model. During training of the blind image denoiser 1110, the source patches are provided to the blind image denoiser 1110 as input patches, and the target patches and the output denoised patches from the blind image denoiser 1110 are provided to the denoiser ground truth loss function module 1112. These source and target patches are referred to herein as denoise training patch pairs, with each denoise training patch pair including a noisy source patch and a ground truth clean target patch. The source patches may serve as noisy input images and the corresponding target patches may serve as ground truth clean images. A target patch need not be perfectly clean, as long as it is cleaner (i.e. , less noisy) than the corresponding source patch. It can be shown that under qualifying conditions using data augmentation methods known to those of ordinary skill in the art, denoiser models trained with noisier (source) and noisy (target) training patches can achieve comparable denoising performance as denoiser models trained with noisy (source) and clean (target) training patches. The denoiser ground truth loss function module 1112 generates loss values for supervised training of the blind image denoiser 1110. The loss values are provided to the blind image denoiser 1110 to update the denoiser model parameters using a training algorithm or an optimization algorithm to improve its denoising performance. Those of ordinary skill in the art will understand supervised training of a blind denoiser model.
[0130] A blind debarring network includes a blind image deblurrer 1114 and a deblurrer ground truth loss function module 1116. The blind image deblurrer 1114 may contain a deblurrer model. The supervised training may update the deblurrer model. During training of the blind image deblurrer 1114, the source patches are provided to the blind image deblurrer 1114 as input patches, and the target patches and the output deblurred patches from the blind image deblurrer 1114 are provided to the deblurrer ground truth loss function module 1116. These source and targetpatches are referred to herein as deblur training patch pairs, with each deblur training patch pair including a blurry source patch and a ground truth sharp target patch. The source patches may serve as blurry input images and the corresponding target patches may serve as ground truth sharp images. A target patch need not be a perfectly sharp image in its original scale, as long as it is sharper (i.e. , less blurry) than the corresponding source patch in its original scale. The multi-scale difference detector 1106 can specifies the patch scale to indicate whether the training patch pair should be scaled down, and if yes, by which downscale ratio, then the training patch pair may both be scaled down in size by the specified downscale ratio to provide for a sharp target patch for deblurrer training at the specified spatial scale. The deblurrer ground truth loss function module 1116 generates loss values for supervised training of the blind image deblurrer 1114. The loss values are provided to the blind image deblurrer 1114 to update the deblurrer model parameters using a training algorithm or an optimization algorithm to improve its deblurring performance. Those of ordinary skill in the art will understand supervised training of a blind deblurrer model.
[0131] An image exposure correction network includes an image exposure corrector 1118 and an exposure corrector ground truth loss function module 1120. The image exposure corrector 1118 may contain an exposure corrector model. The supervised training may update the exposure corrector model. During training of the image exposure corrector 1118, the source patches are provided to the image exposure corrector 1118 as input patches, and the target patches and the output exposure corrected patches from the image exposure corrector 1118 are provided to the exposure corrector ground truth loss function module 1120. These source and target patches are referred to herein as exposure training patch pairs, with each exposure training patch pair including an incorrectly exposed source patch and a ground truth correctly exposed target patch. The source patches may serve as incorrectly exposed input images (e.g., over-exposed or under-exposed) and the corresponding target patches may serve as ground truth correctly exposed images. A target patch need not be a perfectly exposed image, as long as it is more appropriately exposed (i.e., with less over-exposed and under-exposed pixels) than the corresponding source patch. It can be shown that in accordance with the underlyingstatistical properties, the exposure correction performance of an image exposure corrector model can be improved by training with less appropriately exposed (source) and more appropriately exposed (target) training patches. The exposure corrector ground truth loss function module 1120 generates loss values for supervised training of the image exposure corrector 1118. The loss values are provided to the image exposure corrector 1118 to update the exposure corrector model parameters using a training algorithm or an optimization algorithm to improve its exposure correction performance. Those of ordinary skill in the art will understand supervised training of an image exposure corrector model.
[0132] Figure 12A depicts one embodiment of a binocular camera system that may be used in a system for self-supervised training of an image restoration network. The binocular camera system has two cameras 1202(1 ), 1202(2). The ISO value, aperture setting, and shutter speed of each camera may be separately controlled. Each camera has a controllable aperture. The first camera 1202(1 ) has first controllable aperture 1204(1 ). The second camera 1202(2) has second controllable aperture 1204(2). The aperture diameter may be dynamically controlled using electronic, electrochromic, or electromechanical iris structures. In one embodiment, each camera 1202(1 ), 1202(2) has an image sensor that allows the ISO value and shutter speed to be controlled. In one embodiment, the ISO value and shutter speed are software controlled. For example, the shutter speed can be controlled on a per-frame or per-exposure basis for a CMOS image sensor. In an aspect, the ISO value can be dynamically controlled by analog or digital gains for a CMOS image sensor on a per-frame or per-exposure basis. Each camera 1202(1 ), 1202(2) captures an image of the same scene. However, there is a baseline 1206 between the incoming light captured by the two cameras 1202(1 ) and 1202(2), which can lead to image alignment and parallax issues. In an embodiment, image registration is used to register (align) the image from each camera 1202(1 ), 1202(2) with each other. In an embodiment, parallax correction is used to correct for parallax issues.
[0133] Figure 12B depicts one embodiment of a binocular camera system having a beam-splitter, which may be used in a system for self-supervised training of an image restoration network. The binocular camera system has two cameras 1222(1 ), 1222(2).The ISO value, aperture setting, and shutter speed of each camera may be separately controlled. The system has three apertures. The zeroth aperture 1214(0) is the first to receive the incoming light. The first camera 1222(1 ) has first controllable aperture 1214(1 ). The second camera 1222(2) has second controllable aperture 1214(2). The system has a 50% beam splitter 1216 that sends 50% of the light from the zeroth aperture 1214(0) to the second aperture 1214(2) of the second camera 1222(2). The other 50% of the light is sent to a mirror 1218 that reflect that light to the first aperture 1214(1 ) of the first camera 1222(1 ). The second camera 1222(2) may be offset from the first camera 1222(1 ) so that the light will travel that same distance from the zeroth aperture 1214(0) to each camera 1222(1 ), 1222(2).
[0134] In one embodiment, each camera 1222(1 ), 1222(2) has an image sensor that allows the ISO value and shutter speed to be controlled. In one embodiment, the ISO value and shutter speed are software controlled. Each camera 1222(1 ), 1222(2) captures an image of the same scene. Since the same incoming light was captured by the two cameras 1222(1 ) and 1222(2), the configuration of Figure 12B avoids the parallax issues that may occur in the configuration of Figure 12A. However, in an embodiment, image registration is used to register (align) the image from each camera 1222(1 ), 1222(2) with each other.
[0135] Figure 13 depicts one embodiment of a monocular camera system that may be used in a system for self-supervised training of an image restoration network. The monocular camera 1302 has a controllable aperture 1314. In one embodiment, the monocular camera 1302 has an image sensor that allows the ISO value and shutter speed to be controlled. In one embodiment, the ISO value and shutter speed are software controlled. In an embodiment, two different sets of exposure parameters (ISO value, aperture setting, and shutter speed) are used per frame by using time multiplexing. In some embodiments, the controllable aperture 1314 has a real-time controllable iris structure that allows the settings of the aperture 1314 to be changed quickly on a per-frame or per-exposure basis.
[0136] Figures 14A, 14B, and 14C depict several examples of real-time controllable iris structures for controlling aperture settings. Any of these real-time controllable iris structures could be used in the aperture 1314 of the monocular camera system;however, the aperture 1314 of the monocular camera system is not limited to these examples. The apertures in the binocular camera system could also employ a realtime controllable iris structure.
[0137] Figure 14A shows a 2D aperture array 1410. The 2D aperture array 1410 has cells that may pass, block, or partially block light to control the aperture. For example, cell 1412 is passing light, cell 1414 is blocking light, and cell 1416 is partially blocking light. Figure 14B shows a concentric ring aperture 1420. The concentric rings 1422, 1424 may be operated to control the aperture. Figure 14C shows a radial blade aperture 1430. The radial blades 1432 may be operated to control the aperture 1434.
[0138] Figure 15 depicts an embodiment of a system 1500 for generating training patch pairs for self-supervised training of an image restoration network. The system 1500 may be located in a controlled environment such as a laboratory, where camera and / or object motion, object brightness, illumination, depth, and / or surface textures for test scenes can be controlled. The system 1500 may generate training data for selfsupervised training of an image restoration network. The system 1500 is able to collect high quality training data.
[0139] The system 1500 has a camera 1502 that rests upon a movable camera platform 1504. The camera 1502 captures images of a calibration pattern 1506 that is illuminated by a controlled light source 1508. The distance controller 1510 is able to control the distance between the calibration pattern 1506 and the camera 1502. The self-supervised training manager 1512 controls the system 1500.
[0140] The self-supervised training manager 1512 determines the ISO value, aperture setting, and shutter speed for the camera 1502. In an embodiment, the selfsupervised training manager 1512 includes the training controller 710 and the exposure controller 706. The self-supervised training manager 1512 issues a brightness control signal to the controlled light source 1508 to control the brightness. The self-supervised training manager 1512 issues a depth control signal to the distance controller 1510 to control the distance between the calibration pattern 1506 and the camera 1502. The self-supervised training manager 1512 issues a motion control signal to the movable camera platform 1504 to control motion of the camera1502. The camera control signals issued by the self-supervised training manager 1512 can also be extended to lens focus, neutral density focus (ND) filter, spectral filter, and / or polarizer for extra diversity in generating training patch pairs for selfsupervised training of an image restoration network.
[0141] The self-supervised training manager 1512 may traverse many test case triplets (e.g., motion, depth, brightness) during the overall training. The overall training may include controlling the exposure parameters (ISO value, aperture setting, shutter speed) as described herein. For example, process 800 may be performed. The selfsupervised training manager 1512 outputs training patch pairs. In an embodiment, these are dense training patch pairs. In an embodiment, the training patch pairs are used to train an image restoration network of user equipment such as a cellular phone. In one embodiment, the system 1500 is used for the initial training of the image restoration network. This initial training may include learning parameters for the image restoration network. Stated another way, the initial training may learn a model of an image restoration network. The same model may be used in many different electronic devices. In an embodiment, the model is updated in the field in a particular electronic device.
[0142] Figure 16 depicts an embodiment of a system for self-supervised training of the image restoration network in an un-controlled environment such as in the field (or in the wild). The system includes user equipment 1600, which could include, but is not limited to, a camera (e.g., surveillance camera, automotive camera, consumer camera), smartphone, tablet computer, laptop computer, desktop computer, AR / VR device, drone (with camera), robot, etc. The user equipment 1600 has a camera 1602, a self-supervised training manager 1612, and an image restoration network 708. In an embodiment, the image restoration network 708 is trained prior to the user’s possession of the user equipment 1600. For example, system 1500 in Figure 15 may be used for the initial training of the image restoration network 708. In an embodiment, the self-supervised training manager 1612 updates the training of the image restoration network 708. The updates could be used for retraining, fine-tuning, and / or model adaptation. Model adaptation may be used to adapt the model to the particular piece of user equipment 1600.
[0143] The camera 1602 captures images of an uncontrolled scene 1606 that is illuminated by an uncontrolled light source 1608. The user equipment 1600 could be held by a human or supported by some mechanism. Therefore, the camera 1602 could thus be subjected to uncontrollable motion. The self-supervised training manager 1612 determines the ISO value, aperture setting, and shutter speed for the camera 1602. In an embodiment, the self-supervised training manager 1612 includes the training controller 710 and the exposure controller 706. The self-supervised training manager 1612 outputs training patch pairs. In an embodiment, these are sparse training patch pairs. In an embodiment, the training patch pairs are used to update a model of an image restoration network of particular user equipment such as a cellular phone. The self-supervised training manager 1612 may perform process 800 to provide the training patch pairs and train the image restoration network 708. In an embodiment, the user equipment 1600 may perform process 900 to use a trained image restoration network 708 to restore an image.
[0144] Figure 17 is a flowchart of one embodiment of a process 1700 of controlling the test environment during self-supervised training of the image restoration network. The process 1700 may be performed by system 1500, but is not limited thereto. The steps in process 1700 are described in a certain order to facilitate explanation. However, the steps could be performed in a different order. Step 1702 includes assigning scene brightness, object depth, and camera motion control signals. In an embodiment, the self-supervised training manager 1512 will determine a value for each of these three parameters for controlling the test environment such as a laboratory.
[0145] Step 1704 includes determining a set of exposure settings for a type of diversity (e.g., aperture diversity, shutter diversity, exposure diversity). Step 1706 includes collecting training patch pairs for the exposure settings. Steps 804 - 808 of process 800 may be used to collect the training patch pairs. Step 1708 includes a determination of whether to collect training patch pairs for another set of exposure settings. If so, the process repeats steps 1704 and 1706 for another set of exposure settings. After training patches have been collected for different exposure settings the process continues at step 1710 to determine whether all scene brightness settingshave been traversed. If not, then the process may return to step 1702 to assign a different scene brightness setting. Then, training patch pairs may be collected for this scene brightness by performing multiple loops of steps 1704 - 1708. After all scene brightness settings have been traversed, then the process continues at step 1712 to determine whether all object depth settings have been traversed. If not, then the process may return to step 1702 to assign a different object depth setting. Then, training patch pairs may be collected for this object depth and different scene brightness by performing multiple loops of steps 1704 - 1710.
[0146] After all object depth settings have been traversed, then the process continues at step 1714 to determine whether all camera motion settings have been traversed. If not, then the process may return to step 1702 to assign a different camera motion setting. Then, training patch pairs may be collected for this camera motion and different scene brightness / object depth combinations by performing multiple loops of steps 1704 - 1712. After all camera motion settings have been traversed, then the process ends. The process 1700 may collect what are referred to herein as dense training patch pairs.
[0147] Figure 18 is a flowchart of one embodiment of a process 1800 of selfsupervised training of the image restoration network from one pair of training images. Reference will be made to the image restoration network 708 in Figure 11 when describing process 1800. The process 1800 provides further details of an embodiment for training the image restoration network 708 in Figure 11 .
[0148] Step 1802 includes determining a diversity strategy. Examples of diversity strategy may include, but are not limited to, aperture diversity, shutter diversity, and / or exposure diversity. Step 1804 includes generating a training image pair for the diversity strategy. Step 1806 includes generating a training patch pair from the training image pair. Step 1806 may include detecting image differences resulted from aperture diversity or shutter diversity against adaptive detection thresholds to identify noisy (source) and clean (target) training patches for self-supervised training of blind denoising networks. Step 1806 may include detecting image differences resulted from aperture diversity or shutter diversity using a multi-scale coarse-to-fine detector to identify blurry (source) and sharp (target) training patches for self-supervised trainingof blind deblurring networks. Step 1806 may include analyzing under-exposed and over-exposed pixel statistics resulted by exposure diversity against under-exposure and over-exposure conditions to identify source (under-exposed, over-exposed) and target (correctly exposed) training patches for self-supervised training of exposure correction networks. Figures 21 A - 21 C describe further details of identifying training patch pairs. Process 1800 is organized as multiple loops with each loop processing one training patch pair.
[0149] Step 1808 includes a determination of whether this training patch pair is to be used for the denoiser, the deblurrer, or the exposure corrector in the image restoration network 708. This determination may be made based on an analysis of the training patch pair. In one embodiment, the training patch pair will be used for exposure corrector if the diversity strategy is exposure diversity. However, if the diversity strategy is aperture diversity, then the training patch pair could be used for the denoiser or alternatively the defocus deblurrer, depending on the characteristics of the training patch pair. If the diversity strategy is shutter diversity, then the training patch pair could be used for the denoiser or alternatively the motion deblurrer, depending on the characteristics of the training patch pair. Further details are discussed below on making the determination of which type of image restoration is to be trained for a training patch pair.
[0150] Steps 1810 - 1814 may be performed in response to a determination that the training patch pair is to be used for denoiser training. Steps 1810 - 1814 describe a flow of updating the image denoiser based on one training patch pair. These steps are typically performed many times to train the blind image denoiser 1110. Step 1810 includes performing image denoising of the source training patch. Step 1810 includes providing the source patch to the blind image denoiser 1110. This source patch may be referred to herein as a noisy source patch. The blind image denoiser 1110 outputs a denoised patch, which is provided to the denoiser ground truth loss function module 1112. Step 1812 includes calculating a loss value for training or optimizing the blind image denoiser 1110. Step 1812 may include the denoiser ground truth loss function module 1112 comparing the denoised patch with the target patch. The target patch may be referred to herein as a ground truth clean target patch. Step 1814 includesupdating the denoising network parameters. Step 1814 may include the denoiser ground truth loss function module 1112 providing the calculated loss value to the blind image denoiser 1110, wherein the parameters of the blind image denoiser 1110 are updated by supervised training using a training algorithm or an optimization algorithm to improve its denoising performance. Step 1814 may be used to update a denoiser model. In an embodiment, the weights and / or biases used in a matrix of a neural network are updated by supervised training using a training algorithm or an optimization algorithm, as will be understood by one of ordinary skill in the art.
[0151] Steps 1816 - 1820 may be performed in response to a determination that the training patch pair is to be used for deblurrer training. Steps 1816 - 1820 describe a flow of updating the image deblurrer based on one training patch pair. These steps are typically performed many times to train the blind image deblurrer 1114. Step 1816 includes performing image debarring of the source training patch. Step 1816 includes providing the source patch to the blind image deblurrer 1114. This source patch may be referred to herein as a blurry source patch. The blind image deblurrer 1114 outputs a deblurred patch, which is provided to the deblurrer ground truth loss function module 1116. Step 1818 includes calculating a loss value for training or optimizing the blind image deblurrer 1114. Step 1818 may include the deblurrer ground truth loss function module 1116 comparing the deblurred patch with the target patch. The target patch may be referred to herein as a ground truth sharp target patch. Step 1820 includes updating the debarring network parameters. Step 1820 may include the deblurrer ground truth loss function module 1116 providing the calculated loss value to the blind image deblurrer 1114, wherein the parameters of the blind image deblurrer 1114 are updated by supervised training using a training algorithm or an optimization algorithm to improve its deblurring performance. Step 1820 may be used to update a deblurrer model.
[0152] Steps 1822 - 1826 may be performed in response to a determination that the training patch pair is to be used for exposure corrector training. Steps 1822 - 1826 describe a flow of updating the exposure corrector based on one training patch pair. These steps are typically performed many times to train the image exposure corrector 1118. Step 1822 includes performing image exposure correction of the source trainingpatch. Step 1822 includes providing the source patch to the image exposure corrector 1118. This source patch may be referred to herein as an incorrectly exposed source patch. The image exposure corrector 1118 outputs an exposure corrected patch, which is provided to the exposure corrector ground truth loss function module 1120. Step 1824 includes calculating a loss value for training or optimizing the image exposure corrector 1118. Step 1824 may include the exposure corrector ground truth loss function module 1120 comparing the exposure corrected patch with the target patch. The target patch may be referred to herein as a ground truth correctly exposed target patch. Step 1826 includes updating the exposure correction network parameters. Step 1826 may include the exposure corrector ground truth loss function module 1120 providing the calculated loss value to the image exposure corrector 1118, wherein the parameters of the image exposure corrector 1118 are updated by supervised training using a training algorithm or an optimization algorithm to improve its exposure correction performance. Step 1826 may be used to update an exposure corrector model.
[0153] Step 1828 includes a determination of whether there is another training patch pair to generate from the training images. If so, the process returns to step 1806. If not, then the process ends.
[0154] Figure 19 is a flowchart of one embodiment of a process 1900 of generating a training image pair using either a binocular or monocular camera system. The process 1900 provides further details of one embodiment of step 806 in Figure 8 and step 1804 in Figure 18. Process 1900 will be described with reference to Figures 10A and 10B, but is not limited to the binocular camera of Figure 10A nor to the monocular camera of Figure 10B. Process 1900 describes processes for one frame.
[0155] Step 1902 is a determination of whether the camera is binocular or monocular. Steps 1904 - 1910 are performed for a binocular camera. Step 1904 includes synchronizing scanning of the two image sensors 1004(1 ), 1004(2) of the binocular camera. Step 1904 is used to capture two raw images for the frame. Figures 4A, 5A, and 6A each depict examples of how the scanning for the two image sensors 1004(1 ), 1004(2) may be synchronized such that each image sensor is exposed simultaneously for the frame. Step 1906 includes synchronizing the two raw images.Step 1906 may include inputting raw imagei from image sensors 1004(1 ) and raw image2 from image sensors 1004(2) to the frame synchronizer 1006. Step 1908 includes image signal processing, which may be performed by the image signal processor 1008. Step 1908 may also include automatic exposure control, which may be performed by the auto exposure module 1014. Step 1910 includes removing image distortion and parallax correction. Step 1910 may include alignment and registering the image from each image sensor 1004(1 ), 1004(2) after processed by the image signal processor 1008. Step 1910 may be performed by the image distortion remover 1010 and the parallax rectifier 1012.
[0156] Steps 1912 - 1916 are performed for a monocular camera. Step 1912 includes performing multiple scans using the image sensor 1054 of the monocular camera. Step 1912 is used to capture a raw image for the frame. Figures 4B, 5B, and 6B each depict examples of how the scanning for the image sensor 1054 may be performed such that the image sensor performs multiple scans for the frame. Step 1914 includes decomposing the raw image into two raw training images. Step 1914 may include inputting the raw image from the image sensor 1054 to the frame decomposer 1056. Step 1916 includes image signal processing, which may be performed by the image signal processor 1058. Step 1916 may also include automatic exposure control, which may be performed by the auto exposure module 1060.
[0157] Figure 20 is a flowchart of one embodiment of a process 2000 of generating training patch pairs from a training image pair. The process 2000 describes further details of one embodiment of operation of the training controller 710. Reference will be made to Figure 11 when discussing process 2000. Referring to Figure 11 , the training controller 710 inputs a training image pair and a diversity indicator. The training controller 710 outputs training patch pairs.
[0158] Step 2002 includes generating a difference image from the training image pair. The difference image may be based on differences between first pixels in the first training image and second pixels in the second training image. The difference image may also be referred to as a residual image. Those of ordinary skill in the art will understand how to generate a difference or residual image from two images of the same scene. Step 2002 may be performed by the image difference generator 1102.Step 2004 includes generating noise thresholds for the training image pair. These noise thresholds may be used for adaptive difference detection based on an image sensor noise profile. Step 2004 may be performed by the noise threshold generator 1104. Step 2006 is a branch depending on the type of diversity for the training image pair. Steps 2008 - 2012 are performed if this diversity indicator specifies exposure diversity. Step 2008 includes analyzing the training image pair based on luminance profiles. Step 2008 may be performed by the training patch collector 1108. Step 2010 includes collecting a source / target patch pair based on the exposure diversity analysis. Step 2010 may be performed by the training patch collector 1108. Figure 21A describes further details of one embodiment of steps 2008 - 2010. Step 2012 includes a determination of whether there is another patch to be analyzed for this training image pair. If so, steps 2008 - 2012 are repeated for the next patch. When all patches for this training image pair have been analyzed the processing of this training image pair concludes.
[0159] Steps 2014 - 2018 are performed if this diversity indicator specifies shutter diversity. Step 2014 includes analyzing the difference image based on difference detection. Step 2014 may be performed by the multi-scale difference detector 1106. Step 2016 includes collecting a source / target patch pair based on the shutter diversity analysis. Step 2106 may be performed by the training patch collector 1108. Figure 21 B describes further details of one embodiment of steps 2014 - 2016. Step 2018 includes a determination of whether there is another patch to be analyzed for this training image pair. If so, steps 2014 - 2018 are repeated for the next patch. When all patches for this training image pair have been analyzed the processing of this training image pair concludes.
[0160] Steps 2020 - 2024 are performed if this diversity indicator specifies aperture diversity. Step 2020 includes analyzing the difference image based on difference detection. Step 2020 may be performed by the multi-scale difference detector 1106. Step 2022 includes collecting a source / target patch pair based on the aperture diversity analysis. Step 2022 may be performed by the training patch collector 1108. Figure 21 C describes further details of one embodiment of steps 2020 - 2022. Step 2024 includes a determination of whether there is another patch to be analyzed forthis training image pair. If so, steps 2020 - 2024 are repeated for the next patch. When all patches for this training image pair have been analyzed the processing of this training image pair concludes.
[0161] Figure 21 A is a flowchart of one embodiment of a process 2100 of generating training patch pairs from a training image pair that has exposure diversity. In an embodiment, the first image and the second image in the training image pair were captured with different exposure values (EV) but substantially the same aperture setting and substantially the same shutter speed. Process 2100 provides further details for one embodiment of the exposure diversity path in process 2000 (steps 2008 - 2012). Step 2102 includes performing patch-by-patch luminance profile calculation. In one embodiment, a luminance profile may be determined for each patch in each training image. The luminance profile for each patch assesses the regional distribution of the under-exposed and over-exposed pixels for each training image. In one embodiment, the luminance profile for a patch in a training image may include weighted counts of under-exposed and over-exposed pixels (CUE, COE) within a patch P. The weighted count of under-exposed pixels CUE may be the sum of all first scaler- to-scaler function values fuE(Lt) corresponding to each pixel luminance value Lt within the patch P, i.e., CUE= v i E p fuE^i)- The first scaler-to-scaler function UE is a predetermined mapping from a pixel luminance value Lt to a corresponding weighting value fuE(Lt) representing the level of under-exposure (i.e., excessively darkened) of the pixel. For an example, the first scaler-to-scaler function UE can be set to 1 for all pixel luminance values below a first pre-determined luminance value Vi for surely under-exposure, and set to 0 for all pixel luminance values above a second predetermined luminance value V2 for certainly no under-exposure. For pixel luminance values between the first pre-determined luminance value Vi and the second predetermined luminance value V2, the first scaler-to-scaler function UE can be a continuous and decreasing function from 1 to 0. Similarly, the weighted count of overexposed pixels COE may be the sum of all second scaler-to-scaler function values foE(Lt) corresponding to each pixel luminance value Lt within the patch P, i.e., C0E= vi E p foE^i)- The second scaler-to-scaler function OE is a pre-determined mappingfrom a pixel luminance value Li to a corresponding weighting value foE(Li) representing the level of over-exposure (i.e. , excessively brightened) of the pixel. For an example, the second scaler-to-scaler function OE can be set to 0 for all pixel luminance values below a third pre-determined luminance value V3 for certainly no over-exposure, and set to 1 for all pixel luminance values above a fourth pre-determined luminance value V4 for surely over-exposure. For pixel luminance values between the third predetermined luminance value V3 and the fourth pre-determined luminance value V4, the second scaler-to-scaler function OE can be a continuous and increasing function from 0 to 1 . In the example, the four pre-determined luminance values follow an ascending order in their assigned numerical values, i.e., Vi < V2 < V3 < V4. In other embodiments, luminance profiles can be defined as luminance histograms with bins for counting over-exposed and under-exposed pixels within a patch, or percentile values for numbers of over-exposed and under-exposed pixels within a patch. Those of ordinary skill in the art will understand how to form a luminance profile based on pixel luminance values within a patch and total number of pixels within the patch in accordance with pre-determined rules.
[0162] Step 2104 includes analyzing the luminance profiles for a patch pair with pixel thresholds. This analysis is used to determine whether to collect a training patch pair for training an under-exposure corrector in which case step 2106 is performed, whether to collect a training patch pair for training an over-exposure corrector in which case step 2108 is performed, or whether to not collect a training patch pair. In an embodiment, if one of the patches is significantly under-exposed and the other patch is more appropriately exposed then step 2106 is performed to collect a training patch pair for training an under-exposure corrector. The significantly under-exposed patch may be used as an under-exposed source patch and the more appropriately exposed patch may be used as a ground truth correctly exposed target patch. In an embodiment, if one of the patches is significantly over-exposed and the other patch is more appropriately exposed then step 2108 is performed to collect a training patch pair for training an over-exposure corrector. The significantly over-exposed patch may be used as an over-exposed source patch and the more appropriately exposed patch may be used as a ground truth correctly exposed target patch. The analysis maycompare the luminance profile for a patch in a training image with a low pixel threshold TLP and a high pixel threshold THP. The analysis may use the low pixel threshold TLP as a test for significant under-exposure within the corresponding patch from a training image and a high pixel threshold THP as a test for significant over-exposure within the corresponding patch from a training image. In an embodiment, a patch may be defined as being correctly exposed (and hence suitable for a ground truth correctly exposed target patch) if its luminance profile meets a first correct-exposure condition that tests with respect to under-exposure and a second correct-exposure condition that tests with respect to over-exposure. In one embodiment, conditions for under-exposure training patch pairs and over-exposure training patch pairs can be based on such tests for significant under-exposure and significant over-exposure within a patch from a training image.
[0163] In an embodiment, the analysis in step 2104 is based on the ISO value for the training image from which the patch was obtained. In the following, the training image having the higher ISO value may be referred to as HighJSO and the training image with the lower ISO value may be referred to as LowJSO. The following describes details of determining whether a training patch pair meets condition(s) for an under-exposed training patch pair. In an embodiment, the patch from the training image with the lower ISO value is tested for under-exposure and the patch from the training image with the higher ISO value is tested for correct exposure. In one embodiment, the determination is asserted if an under-exposed criterion is met with respect to the patch from the training image with the lower ISO value and one or more correctly exposed conditions are met with respect to the patch from the training image with the higher ISO value. In an embodiment, the under-exposed criterion is met if the weighted count of under-exposed pixels CUE(LOWJSO) in the luminance profile for the patch from the training image with the lower ISO value is above the low pixel threshold TLP. In an embodiment, the correct-exposed criterion is met if the weighted count of under-exposed pixels CuE(High_ISO) in the luminance profile for the patch from the training image with the higher ISO value is substantially below the low pixel threshold TLP and the weighted count of over-exposed pixels CoE(High SO) in the luminance profile for the patch from the training image with the higher ISO value is substantiallybelow the high pixel threshold THP. These conditions may be expressed as: CUE(LOW_ISO) > TLP while CuE(High_ISO) < kiTpp and CoE(High_ISO) < I THP, where ki and fe are two pre-determined constants less than 1 .
[0164] Step 2106 includes collecting a training patch pair for an under-exposure corrector responsive to a determination that one of the patches was under-exposed and the other patch is correctly exposed, i.e. , meeting condition(s) for under-exposure training patch pairs. Step 2106 includes assigning one of the patches as the source patch and the other patch as the target patch. This assignment may be based on the two different ISO values of the two training images. The patch from the training image with the lower ISO value is assigned as the source patch. The patch from the training image with the higher ISO value is assigned as the target patch. The patch from the training image with the lower ISO value may be defined as being under-exposed, whereas the patch from the training image with the higher ISO value may be defined as being correctly exposed. In step 2106, a confidence score may also be assigned to the training patch pair. The confidence score may be based on, for example, how far the weighted count of under-exposed pixels for the under-exposed patch was above the low pixel threshold. The confidence score may be further based on, for example, how far the weighted counts of under-exposed pixels and over-exposed pixels for the patch that was not under-exposed were below the low and high pixel thresholds, respectively.
[0165] The following describes details of an embodiment of step 2108 of determining whether a training patch pair meets condition(s) for an over-exposed training patch pair. In an embodiment, the analysis is based on the ISO value for the training image from which the patch was obtained. In an embodiment, the patch from the training image with the higher ISO value is tested for over-exposure and the patch from the training image with the lower ISO value is tested for correct exposure. In one embodiment, the determination is asserted if an over-exposed criterion is met with respect to the patch from the training image with the higher ISO value and one or more correctly exposed conditions are met with respect to the patch from the training image with the lower ISO value. In an embodiment, the over-exposed criterion is met if the weighted count of over-exposed pixels CoE(HighJSO) in the luminance profile for thepatch from the training image with the higher ISO value is above the high pixel threshold THP. In an embodiment, a correctly-exposed criterion is met if the weighted count of under-exposed pixels CUE(LOWJSO) in the luminance profile for the patch from the training image with the lower ISO value is substantially below the low pixel threshold TLP and the weighted count of over-exposed pixels COE(LOWJSO) in the luminance profile for the patch from the training image with the lower ISO value is substantially below the high pixel threshold THP. These conditions may be expressed as: CoE(High_ISO) > THP while CUE(LOW_ISO) < ksTpp and COE(LOW_ISO) < I TTHP, where fe and k4 are two pre-determined constants less than 1.
[0166] Step 2108 includes collecting a training patch pair for an over-exposure corrector responsive to a determination that one of the patches was over-exposed and the other patch is correctly exposed, i.e., meeting condition(s) for over-exposure training patch pairs. Step 2108 includes assigning one of the patches as the source patch and the other patch as the target patch. This assignment may be based on the two different ISO values of the two training images. The patch from the training image with the higher ISO value is assigned as the source patch. The patch from the training image with the lower ISO value is assigned as the target patch. The patch from the training image with the higher ISO value may be defined as being over-exposed, whereas the patch from the training image with the lower ISO value may be defined as being correctly exposed. In step 2108, a confidence score may also be assigned to the training patch pair. The confidence score may be based on, for example, how far the weighted count of over-exposed pixels for the over-exposed patch was above the high pixel threshold. The confidence score may be further based on, for example, how far the weighted counts of under-exposed pixels and over-exposed pixels for the patch that was not over-exposed were below the low and high pixel thresholds, respectively.
[0167] As noted above, in some cases neither step 2106 nor step 2108 is performed. This may be the case in the event that neither patch met the criterion for being under-exposed and neither patch met the criterion for being over-exposed. This may also be the case in the event that neither patch met the criterion for being correctly exposed.
[0168] Step 2110 includes a determination of whether there is another patch to process for the training image pair. If so, the process returns to step 2104 to process the next patch from each of the training images. If not, then the process ends.
[0169] Figure 21 B is a flowchart of one embodiment of a process 2140 of generating training patch pairs from a training image pair that has shutter diversity. In an embodiment, the first image and the second image in the training image pair were captured with different shutter speeds but the same aperture setting and the same EV. Process 2140 provides further details for one embodiment of the shutter diversity path in process 2000 (steps 2014 - 2018). Step 2142 includes performing multi-scale patch-by-patch difference detection based on noise thresholds. In one embodiment, the difference detection will subtract the value for a pixel in one patch from the value for the corresponding pixel in the other patch. This subtraction may form what is referred to herein as a difference image (or residual image). In an embodiment, the difference detection is performed on RGB values. However, the difference detection is not required to be performed on RGB values. For example, the difference detection could be performed on luminance values. The low and high detection thresholds used by the difference detection for each pixel in the difference image should adaptively depend on the noise thresholds generated according to an image sensor noise profile for each corresponding pixels in each image of a training image pair. Details of one embodiment of multi-scale patch-by-patch difference detection based on noise thresholds and how to calculate adaptive detection thresholds based on noise thresholds have been described in connection with the back-end 1100 of the system for self-supervised training of an image restoration network depicted in Figure 11 .
[0170] Step 2144 includes analyzing the difference value for a patch pair with detection thresholds. This analysis is used to determine whether to collect a training patch pair for training a blind denoiser in which case step 2146 is performed, whether to collect a training patch pair for training a blind motion deblurrer in which case step 2148 is performed, or whether to not collect a training patch pair. In an embodiment, if the difference value for the patch pair is below the low detection threshold, i.e., substantially no motion blur between the patch pair is detected, then step 2146 is performed to collect a training patch pair for training a blind denoiser. In anembodiment, if the difference value for a patch pair is above the high detection threshold, i.e., significant motion blur between the patch pair is detected, then step 2148 is performed to collect a training patch pair for training a blind motion deblurrer. The analysis may compare the difference value for the patch pair with a low detection threshold and a high detection threshold. The analysis may use the low detection threshold as a test for substantially no motion blur between the patch pair and a high detection threshold as a test for significant motion blur between the patch pair.
[0171] Step 2146 includes collecting a training patch pair for a blind denoiser responsive to a determination that the difference value for the patch pair was below the low detection threshold. Step 2146 will assign one of the patches as the source patch and the other patch as the target patch. This assignment may be based on the two different shutter speeds of the two training images. The patch from the training image with the faster shutter speed is assigned as the source patch. The patch from the training image with the slower shutter speed is assigned as the target patch. The patch with the faster shutter speed may be defined as being noisy, whereas the patch with the slower shutter speed may be defined as being clean. In step 2146, a confidence score may also be assigned to the training patch pair. The confidence score may be based on, for example, how far the difference value was below the low detection threshold.
[0172] Step 2148 includes collecting a training patch pair for a blind motion deblurrer responsive to a determination that the difference value for the patch pair was above the high detection threshold. Step 2148 will assign one of the patches as the source patch and the other patch as the target patch. This assignment may be based on the two different shutter speeds of the two training images. The patch from the training image with the slower shutter speed is assigned as the source patch. The patch from the training image with the faster shutter speed is assigned as the target patch. The patch with the slower shutter speed may be defined as being blurry due to motion, whereas the patch with the faster shutter speed may be defined as being sharp. In step 2148, a confidence score may also be assigned to the training patch pair. The confidence score may be based on, for example, how far the difference value was above the high detection threshold. In some cases, the patches may bescaled. For example, the training patch pair may both be scaled down in size to provide for a sharper target patch.
[0173] Step 2150 includes a determination of whether there is another patch to process for the training image pair. If so, the process returns to step 2144 to process the next patch from each of the training images. If not, then the process ends.
[0174] Figure 21 C is a flowchart of one embodiment of a process 2180 of generating training patch pairs from a training image pair that has aperture diversity. In an embodiment, the first image and the second image in the training image pair were captured with different aperture settings but the same shutter speed and the same EV. Process 2180 provides further details for one embodiment of the aperture diversity path in process 2000 (steps 2020 - 2024). Step 2182 includes performing multi-scale patch-by-patch difference detection based on noise thresholds. In one embodiment, the difference detection will subtract the value for a pixel in one patch from the value for the corresponding pixel in the other patch. This subtraction may form what is referred to herein as a difference image. In an embodiment, the difference detection is performed on RGB values. However, the difference detection is not required to be performed on RGB values. For example, the difference detection could be performed on luminance values. The low and high detection thresholds used by the difference detection for each pixel in the difference image should adaptively depend on the noise thresholds generated according to an image sensor noise profile for each corresponding pixels in each image of a training image pair. Details of one embodiment of multi-scale patch-by-patch difference detection based on noise thresholds and how to calculate adaptive detection thresholds based on noise thresholds have been described in connection with the back-end 1100 of the system for self-supervised training of an image restoration network depicted in Figure 11 .
[0175] Step 2184 includes analyzing the difference value for a patch pair with detection thresholds. This analysis is used to determine whether to collect a training patch pair for training a blind denoiser in which case step 2186 is performed, whether to collect a training patch pair for training a blind defocus deblurrer in which case step 2188 is performed, or whether to not collect a training patch pair. In an embodiment, if the difference value for the patch pair is below the low detection threshold, i.e.,substantially no defocus blur between the patch pair is detected, then step 2186 is performed to collect a training patch pair for training a blind denoiser. In an embodiment, if the difference value for a patch pair is above the high detection threshold, i.e. , significant defocus blur between the patch pair is detected, then step 2188 is performed to collect a training patch pair for training a blind defocus deblurrer. The analysis may compare the different value for the patch pair with a low detection threshold and a high detection threshold. The analysis may use the low detection threshold as a test for substantially no defocus blur between the patch pair and a high detection threshold as a test for significant defocus blur between the patch pair.
[0176] Step 2186 includes collecting a training patch pair for a blind denoiser responsive to a determination that the difference value for the patch pair was below the low detection threshold. Step 2186 will assign one of the patches as the source patch and the other patch as the target patch. This assignment may be based on the two different aperture settings of the two training images. The patch from the training image with the smaller aperture is assigned as the source patch. The patch from the training image with the larger aperture is assigned as the target patch. The patch with the smaller aperture may be defined as being noisy, whereas the patch with the larger aperture may be defined as being clean. In step 2186, a confidence score may also be assigned to the training patch pair. The confidence score may be based on, for example, how far the difference value was below the low detection threshold.
[0177] Step 2188 includes collecting a training patch pair for a blind defocus deblurrer responsive to a determination that the difference value for the patch was above the high detection threshold. Step 2188 will assign one of the patches as the source patch and the other patch as the target patch. This assignment may be based on the two different aperture settings of the two training images. The patch from the training image with the larger aperture is assigned as the source patch. The patch from the training image with the smaller aperture is assigned as the target patch. The patch with the larger aperture may be defined as being blurry due to defocus, whereas the patch with the smaller aperture may be defined as being sharp. In step 2188, a confidence score may also be assigned to the training patch pair. The confidence score may be based on, for example, how far the difference value was above the highdetection threshold. In some cases, the patches may be scaled. For example, the training patch pair may both be scaled down in size to provide for a sharper target patch.
[0178] Step 2190 includes a determination of whether there is another patch to process for the training image pair. If so, the process returns to step 2184 to process the next patch from each of the training images. If not, then the process ends.
[0179] Figure 22 is a diagram of one embodiment of a system for federated learning facilitated by self-supervised training of image restoration networks. The system has a central server 2200 and a number of edge devices 2202. Each edge device 2202 may be user equipment such as, for example, a camera (e.g., surveillance camera, automotive camera, consumer camera), smartphone, tablet computer, laptop computer, desktop computer, ARA / R device, drone (with camera), robot, etc. Each edge device 2202 has an image restoration network with self-supervised training 2210. The image restoration network with self-supervised training 2210 could include, but is not limited to system 700 or back-end 1100. Each edge device 2202 has a camera system such as, but not limited to, any of the binocular or monocular camera systems described in this detailed description and shown in the accompanying drawings.
[0180] At some point in time an initial global model for the image restoration network is loaded onto the edge devices 2202. As one example, the initial global model could be loaded in the factory prior to sale to an end user. However, the initial global model could also be provided to the edge devices 2202 from a server such as the central server 2200. Each edge device 2202 is able to determine updates to the model for the image restoration network. These updates may be determined by, for example, executing process 800 or 1800. The updates from the edge devices 2202 are referred to as local updates. The central server 2200 has a global image restoration model updater 2220 that is able to update a global model based on the local updates provided to the central server 2200 from each edge device 2202.
[0181] Figure 23 is a flowchart of one embodiment of a process 2300 for federated learning facilitated by self-supervised training of image restoration networks. The process 2300 may be used in the system depicted in Figure 22. Step 2302 includes the central server 2200 sending a global model for the image restoration network tothe edge devices 2202. Step 2304 includes each edge device 2202 generating training patch pairs locally. In an embodiment, each edge device 2202 performs steps 802 - 808 of process 800 to collect the training patch pairs locally. Step 2306 includes each edge device 2202 using the locally collected training patch pairs to compute local updates to the model. In an embodiment, gradient-decent type of training algorithms are used, in which case the local updates may be referred to as local gradient updates. In an embodiment, the local updates are determined by the blind image denoiser 1110, the blind image deblurrer 1114, and / or the image exposure corrector 1118 on an edge device 2202. In an embodiment, the image restoration network 708 on an edge device 2202 is not trained (updated) locally in process 2300. Thus, whereas these local updates may be used in process 1800 to train (update) the parameters of the image restoration network 708, in process 2300 these locally determined updates are not necessarily used to locally train the image restoration network 708 on an edge device 2202. Step 2308 includes the edge devices 2202 sending the local updates to the central server 2200. Step 2310 includes the central server 2200 updating the global model for the image restoration network 708. The central server 2200 may aggregate the local updates and update the global model based on the aggregated updates. The process 2300 may then return to step 2302 for the central server 2200 to send the current global model to the edge devices 2202.
[0182] The system of Figure 22 and the method of Figure 23 preserve the privacy of the end users while benefitting from diversified training data collected across edge devices 2202 and the computation burden being shared among edge devices 2202. For privacy protection of the end users, no image from the edge devices 2202 needs to be sent to the central server 2200.
[0183] Figure 24 is a block diagram of a processing device 2400 that can be used to implement various embodiments, including a client processing device such as system 700, front-end 1000, front-end 1050, back-end 1100, user equipment 1600, and / or edge device 2202. Specific devices may utilize all of the components shown, or only a subset of the components, and levels of integration may vary from device to device. Furthermore, processing device 2400 may contain multiple instances of a component, such as multiple processing units, processors, memories, transmitters,receivers, etc. The processing device 2400 may include a central processing unit (CPU) 2410, a graphics processing unit (GPU) 2412, a memory 2420, a mass storage device 2430, and an I / O interface 2460 connected to a bus 2470. The bus 2470 may be one or more of any type of several bus architectures including a memory bus or memory controller, a peripheral bus, or the like. A network interface 2450 enables the processing device to communicate over a network 2480 with other processing devices such as central server 2200. The I / O interface 2460 is illustrated as connected to a display device 2465 and an image capture device 2455.
[0184] The CPU 2410 may comprise any type of electronic data processor. The GPU 2412 is a type of processing unit that enables very efficient parallel processing of data. Although GPUs may be used in a video card or the like for computer graphics, GPUs have found much broader applications. In some embodiments, the processing device 2400 has a CPU 2410 but does not have a GPU 2412. Memory 2420 may comprise any type of system memory such as static random-access memory (SRAM), dynamic random-access memory (DRAM), synchronous DRAM (SDRAM), read-only memory (ROM), a combination thereof, or the like. In an embodiment, memory 2420 may include ROM for use at boot-up, and DRAM for program and data storage for use while executing programs. In embodiments, the memory 2420 is non-transitory. In one embodiment, the memory 2420 includes computer readable instructions that are executed by the CPU 2410 and / or GPU 2412 to implement embodiments of the disclosed technology, including the generating of training patch pairs. The selfsupervised training manager 1612 may include computer readable instructions that are executed by the CPU 2410 and / or GPU 2412. The image restoration network 708 may include computer readable instructions that are executed by the CPU 2410 and / or GPU 2412. The memory 2420 may also store an image restoration model 2424. In an embodiment, the processing device trains or updates the image restoration model 2424. For example, the self-supervised training manager 1612 may collect training patch pairs that may be used by the image restoration network 708 to train (or update) the image restoration model 2424.
[0185] The mass storage device 2430 may comprise any type of storage device configured to store data, programs, and other information and to make the data, programs, and other information accessible via the bus 2470. The mass storage device 2430 may comprise, for example, one or more of a solid-state drive, hard disk drive, a magnetic disk drive, an optical disk drive, or the like. An instance of the image restoration model 2424 may be stored on the mass storage device 2430. Also note that instances of the instructions that implement the self-supervised training manager 1612 and the image restoration network 708 may be stored in the mass storage device 2430. The instances in the mass storage device 2430 may be loaded into memory 2420 when the processing device 2400 is powered on.
[0186] Figure 25 is a block diagram of a service host 2500 that can be used to implement various embodiments of the central server 2200. Specific servers may utilize all of the components shown, or only a subset of the components, and levels of integration may vary from device to device. In Figure 25, like numbers represent like parts with respect to those of Figure 24. In one embodiment, the memory 2420 includes computer readable instructions, which when executed on the CPU 2410 and / or GPU 2412, implement the global image restoration model updater 2220. The mass storage 2430 may also include code comprising instructions for causing the CPU 2410 and / or GPU 2412 to implement the global image restoration model updater 2220.
[0187] It would also be possible for embodiments of the disclosed technology described above to be implemented, at least partially, using hardware logic components, such as, but not limited to, Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Application-Specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), special purpose computers, etc.
[0188] For the purposes of this document, it should be noted that the dimensions of the various features depicted in the figures may not necessarily be drawn to scale.
[0189] For purposes of this document, reference in the specification to “an embodiment,” “one embodiment,” “some embodiments,” or “another embodiment” may be used to describe different embodiments or the same embodiment.
[0190] For the purposes of this document, a connection may be a direct connection or an indirect connection (e.g., via one or more other parts). In some cases, when an element is referred to as being connected or coupled to another element, the element may be directly connected to the other element or indirectly connected to the other element via intervening elements. When an element is referred to as being directly connected to another element, then there are no intervening elements between the element and the other element. Two devices are “in communication” if they are directly or indirectly connected so that they can communicate electronic signals between them.
[0191] Although the present disclosure has been described with reference to specific features and embodiments thereof, it is evident that various modifications and combinations can be made thereto without departing from the scope of the disclosure. The specification and drawings are, accordingly, to be regarded simply as an illustration of the disclosure as defined by the appended claims, and are contemplated to cover any and all modifications, variations, combinations, or equivalents that fall within the scope of the present disclosure.
[0192] The technology described herein can be implemented using hardware, software, or a combination of both hardware and software. The software used is stored on one or more of the processor readable storage devices described above to program one or more of the processors to perform the functions described herein. The processor readable storage devices can include computer readable media such as volatile and non-volatile media, removable and non-removable media. By way of example, and not limitation, computer readable media may comprise computer readable storage media and communication media. Computer readable storage media may be implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer readable storage media include RAM, ROM, EEPROM, flashmemory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information, and which can be accessed by a computer. A computer readable medium or media does (do) not include propagated, modulated, or transitory signals.
[0193] Communication media typically embodies computer readable instructions, data structures, program modules or other data in a propagated, modulated, or transitory data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as RF and other wireless media. Combinations of any of the above are also included within the scope of computer readable media.
[0194] In alternative embodiments, some or all of the software can be replaced by dedicated hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Applicationspecific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), special purpose computers, etc. In one embodiment, software (stored on a storage device) implementing one or more embodiments is used to program one or more processors. The one or more processors can be in communication with one or more computer readable media / storage devices, peripherals and / or communication interfaces.
[0195] It is understood that the present subject matter may be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this subject matter will be thorough and complete and will fully convey the disclosure to those skilled in the art. Indeed, the subject matter is intended to cover alternatives, modifications, andequivalents of these embodiments, which are included within the scope and spirit of the subject matter as defined by the appended claims. Furthermore, in the preceding detailed description of the present subject matter, numerous specific details are set forth in order to provide a thorough understanding of the present subject matter. However, it will be clear to those of ordinary skill in the art that the present subject matter may be practiced without such specific details.
[0196] Aspects of the present disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatuses (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable instruction execution apparatus, create a mechanism for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0197] The description of the present disclosure has been presented for purposes of illustration and description but is not intended to be exhaustive or limited to the disclosure in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the disclosure. The aspects of the disclosure herein were chosen and described in order to best explain the principles of the disclosure and the practical application, and to enable others of ordinary skill in the art to understand the disclosure with various modifications as are suited to the particular use contemplated.
[0198] For purposes of this document, each process associated with the disclosed technology may be performed continuously and by one or more computing devices. Each step in a process may be performed by the same or different computing devicesas those used in other steps, and each step need not necessarily be performed by a single computing device.
[0199] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
CLAIMSWhat is claimed is:
1. A system, comprising: an image capture system configured to capture images, wherein the image capture system is configured to control an exposure of each captured image by adjusting at least one exposure parameter of a plurality of exposure parameters; and one or more control circuits coupled to communicate with the image capture system, wherein the one or more control circuits are configured to: control the plurality of exposure parameters of images captured by the image capture system; generate training image pairs from the captured images, wherein each training image pair comprises a first training image of a scene and a second training image of the scene having a different value for at least one exposure parameter of the plurality of exposure parameters; collect training patch pairs from the training image pairs, wherein each training patch pair comprises a source patch and a target patch; and train an image restoration network based on the training patch pairs.
2. The system of claim 1 , wherein: the training patch pairs comprise denoise training patch pairs, each denoise training patch pair including a noisy source patch and a ground truth clean target patch; the image restoration network comprises a blind denoising network; and the one or more control circuits are configured to train the blind denoising network based on the denoise training patch pairs.
3. The system of claim 1 , wherein: the training patch pairs comprise deblur training patch pairs, each deblur training patch pair including a blurry source patch and a ground truth sharp target patch; the image restoration network comprises a blind deblurring network; and the one or more control circuits are configured to train the blind debarring network based on the deblur training patch pairs.
4. The system of claim 1 , wherein: the training patch pairs comprise exposure training patch pairs, each exposure training patch pair including an incorrectly exposed source patch and a ground truth correctly exposed target patch; the image restoration network comprises an exposure correction network; and the one or more control circuits are configured to train the exposure correction network based on the exposure training patch pairs.
5. The system of claim 4, wherein the one or more control circuits are configured to: collect a first set of exposure training patch pairs that each include an underexposed source patch and a ground truth correctly exposed target patch; collect a second set of exposure training patch pairs that each include an over-exposed source patch and a ground truth correctly exposed target patch; and train the exposure correction network based on the first set of the exposure training patch pairs and the second set of exposure training patch pairs.
6. The system of claim 1 , wherein the one or more control circuits are configured to: establish a first aperture setting for the first training image and a second aperture setting for the second training image with a substantially identical exposure value (EV) for a particular training image pair;analyze a pixel difference between first pixels in a first patch in the first training image and second pixels in a second patch in the second training image in the particular training image pair; and categorize one of the first patch or the second patch as a source patch and the other of the first patch or the second patch as a target patch based on the pixel difference, the first aperture setting, and the second aperture setting.
7. The system of claim 6, wherein the one or more control circuits are configured to: establish substantially identical shutter speeds for the first training image and the second training image of the particular training image pair with a different light sensitivity (ISO) rating for the first training image and the second training image of the particular training image pair.
8. The system of claim 7, wherein the first aperture setting is lower than the second aperture setting, wherein the one or more control circuits are configured to: categorize the first patch as the source patch and the second patch as the target patch responsive to the difference between the first pixels in first patch and the second pixels in the second patch being below a low detection threshold; and categorize the first patch as the target patch and the second patch as the source patch responsive to the difference between the first pixels in first patch and the second pixels in the second patch being above a high detection threshold.
9. The system of claim 8, wherein the one or more control circuits are configured to: train the image restoration network for blind denoising based on the source patch and the target patch in response to the difference between the first pixels in first patch and the second pixels in the second patch being below the low detection threshold; and train the image restoration network for blind deblurring based on the source patch and the target patch in response to the difference between the first pixels infirst patch and the second pixels in the second patch being above the high detection threshold.
10. The system of claim 1 , wherein the one or more control circuits are configured to: establish a first shutter speed for the first training image and a second shutter speed for the second training image with a substantially identical exposure value (EV) for a particular training image pair; analyze a pixel difference between first pixels in a first patch in the first training image and second pixels in a second patch in the second training image in the particular training image pair; and categorize one of the first patch or the second patch as a source patch and the other of the first patch or the second patch as a target patch based on the pixel difference, the first shutter speed and the second shutter speed.11 . The system of claim 10, wherein the one or more control circuits are configured to: establish a substantially identical aperture setting for the first training image and the second training image of the particular training image pair with a different light sensitivity (ISO) rating for the first training image and the second training image of the particular training image pair.
12. The system of claim 11 , wherein the first shutter speed is higher than the second shutter speed, wherein the one or more control circuits are configured to: categorize the first patch as the source patch and the second patch as the target patch responsive to the difference between the first pixels in the first patch and the second pixels in the second patch being below a low detection threshold; and categorize the first patch as the target patch and the second patch as the source patch responsive to the difference between the first pixels in the first patch and the second pixels in the second patch being above a high detection threshold.
13. The system of claim 12, wherein the one or more control circuits are configured to: train the image restoration network for blind denoising based on the source patch and the target patch in response to the difference between the first pixels in the first patch and the second pixels in the second patch being below the low detection threshold; and train the image restoration network for blind deblurring based on the source patch and the target patch in response to the difference between the first pixels in the first patch and the second pixels in the second patch being above the high detection threshold.
14. The system of claim 1 , wherein the one or more control circuits are configured to: establish a first exposure value for the first training image and a second exposure value for the second training image for a particular training image pair; analyze a first luminance profile formed from first pixels in a first patch in the first training image and a second luminance profile formed from second pixels in a second patch in the second training image in the particular training image pair; and determine whether to categorize one of the first patch or the second patch as a source patch and the other of the first patch or the second patch as a target patch based on the first luminance profile, the second luminance profile, the first exposure value, and the second exposure value.
15. The system of claim 14, wherein the one or more control circuits are configured to: establish a first light sensitivity (ISO) rating for the first training image and a second ISO value for the second training image of the particular training image pair with substantially identical aperture settings and substantially identical shutter speeds.
16. The system of claim 15, wherein the first ISO value is lower than the second ISO value, wherein the one or more control circuits are configured to: categorize the first patch as an under-exposed source patch and the second patch as a ground truth correctly exposed target patch responsive to the first luminance profile meeting a condition for under-exposure and the second luminance profile meeting a condition for correct exposure; and categorize the first patch as a ground truth correctly exposed target patch and the second patch as an over-exposed source patch responsive to the first luminance profile meeting a condition for correct exposure and the second luminance profile meeting a condition for over-exposure.
17. The system of claim 16, wherein the one or more control circuits are configured to: train the image restoration network for under-exposure correction based on the under-exposed source patch and the ground truth correctly exposed target patch in responsive to the first luminance profile meeting the condition for under-exposure and the second luminance profile meeting the condition for correct exposure; and train the image restoration network for over-exposure correction based on the over-exposed source patch and the ground truth correctly exposed target patch in responsive to the first luminance profile meeting the condition for correct exposure and the second luminance profile meeting the condition for over-exposure.
18. The system of claim 1 , wherein the one or more control circuits are configured to: operate the system in a training mode in which the training patch pairs are used for self-supervised training of the image restoration network; and operate the system in an inference mode in which the first training image and the second training image of each training image pair are merged into a merged image and provided to the image restoration network.
19. The system of claim 1 , wherein: the image capture system comprises a binocular camera comprising a first image sensor and a second image sensor, the first image sensor and the second image sensor each configured to capture frames with each frame having one exposure; and the one or more control circuits are configured to generate a training image pair from a first frame from the first image sensor and a second frame from the second image sensor that are exposed during a same time interval.
20. The system of claim 1 , wherein: the image capture system comprises a monocular camera configured to capture frames with each frame having a first exposure and a second exposure; and the one or more control circuits are configured to generate a training image pair from the first exposure and the second exposure for each frame.21 . The system of claim 1 , the one or more control circuits are configured to: determine local updates to the image restoration network based on the training patch pairs; send the local updates to a central server, wherein the central server receives local updates from a plurality of edge devices that each determine local updates to the image restoration network based on training patch pairs; aggregate the local updates at the central server and update a global image restoration network based on the aggregated updates; and forward the updated global image restoration network to the edge devices.
22. A method for self-supervised training of an image restoration network, the method comprising: controlling a plurality of exposure parameters of images captured by an image capture system; generating training image pairs from the captured images, wherein each training image pair comprises a first training image of a scene and a second trainingimage of the scene having a different value for at least one exposure parameter of a plurality of exposure parameters; generating training patch pairs from the training image pairs, wherein each training patch pair comprises a source patch and a target patch; providing the training patch pairs to an image restoration network; and training the image restoration network based on the training patch pairs.
23. The method of claim 22, further comprising: performing, with the trained image restoration network, image restoration on images captured by the image capture system.
24. The method of claim 22, further comprising: receiving a global model for the image restoration network at an edge device from a central server; computing local updates to the global model for the image restoration network based on the training of the image restoration network with the training patch pairs at the edge device; and sending the local updates to the central server.
25. The method of claim 24, further comprising: receiving, at the central server, local updates from a plurality of edge devices; aggregating the local updates received from the plurality of edge devices; updating the global model for the image restoration network based on the aggregated local updates from the plurality of edge devices; and sending the updated global model for the image restoration network to at least one of the plurality of edge devices.
26. A user equipment device, comprising: an image capture system configured to capture images; a training image generator coupled to the image capture system and configured to generate training image pairs, wherein each training image paircomprises a first training image of a scene and a second training image of the scene, wherein the image capture system is configured to control an exposure of each training image by adjusting at least one exposure parameter of a plurality of exposure parameters; an exposure controller coupled to the image capture system, the exposure controller configured to control the exposures of the training images such that the first training image and the second training image of each training image pair have a different value for at least one exposure parameter of the plurality of exposure parameters; an image restoration network coupled to the image capture system, wherein the image restoration network is configured to restore images captured by the image capture system; and a training controller coupled to the training image generator, the exposure controller, and the image restoration network, wherein the training controller is configured to collect training patch pairs from the training image pairs, wherein each training patch pair comprises a source patch and a target patch, wherein the training controller is further configured to provide the training patch pairs to the image restoration network and to control supervised training of the image restoration network based on the training patch pairs.
Citation Information
Patent Citations
A method for training a neural network
EP3648015A2
Cited By
Region perception driven self-supervised image noise reduction method, system and device and medium
CN120765499A
