AI-isp generalization method based on unsupervised camera color space mapping
By using unsupervised camera color space mapping and recurrent adversarial generative networks, the cumbersome training problem of AI-ISP in cross-camera deployment is solved. This enables AI-ISP generalization on different cameras without the need for paired data, adapts to complex lighting scenarios, and improves the performance of cross-camera deployment.
Patent Information
- Application Number
- CN202411097327.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-08-12
AI Technical Summary
Existing AI-ISP methods perform poorly when deployed across different cameras, require retraining the dataset for each camera, are not applicable to complex lighting scenarios, and require camera-related metadata that is difficult to obtain.
By employing an unsupervised camera color space mapping method, a camera color space block mapping network is constructed using a recurrent adversarial generative network. This enables image mapping between different cameras and generalization of AI-ISP, avoiding retraining and dataset collection.
It achieves AI-ISP generalization that can be trained on different cameras without pairing data, adapts to complex lighting scenarios, maintains performance, and does not rely on camera metadata.
Smart Images

Figure CN119090742B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of image processing technology, and more specifically, relates to an AI-ISP generalization method based on unsupervised camera color space mapping. Background Technology
[0002] An image signal processor (ISP) is a series of image processing modules that convert low-quality raw RAW images captured by a camera into high-quality sRGB images. Traditional ISP systems include white balance modules, noise reduction modules, and de-mosaic modules. In recent years, with the rapid development of deep learning technology, artificial intelligence-based image processors (AI-ISPs) have become a more efficient method for processing raw RAW images. Current AI-ISP methods generally replace all ISP modules with an end-to-end deep neural network and are trained using carefully acquired pairs of raw RAW and sRGB images.
[0003] However, due to the varying spectral sensitivities of camera filters, raw images captured by different cameras exist in different color spaces. This leads to poor performance of AI-ISPs when deployed across different cameras. Generally, each AI-ISP can only be deployed on one camera after training, requiring specific re-shooting of the dataset for each camera to train the corresponding AI-ISP. This process of re-shooting paired datasets and retraining the AI-ISP is extremely cumbersome. Currently, although some generalization methods exist for white balance and denoising modules, such as the C5 (Cross Camera Convolutional Color Constancy) model proposed by Mahmoud Afifi et al. for cross-camera deployment of the white balance module, and the physically guided low-light RAW denoising algorithm proposed by Feng et al. for cross-camera deployment of the denoising module, there is currently no generalization method for the entire AI-ISP model.
[0004] Existing AI-ISP generalization methods have the following drawbacks: 1. They are not applicable to the generalization of the entire end-to-end AI-ISP, and can only achieve incomplete generalization of some modules. 2. They cannot be applied to complex lighting scenes, and are only applicable to simple, deterministic lighting conditions. 3. They require camera-related metadata, which is difficult to obtain. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of the prior art and provide an AI-ISP generalization method based on unsupervised camera color space mapping. This method maps RAW images taken under complex and unknown lighting conditions to a specific camera color space, which are then processed by the AI-ISP, thus avoiding the need for retraining of the AI-ISP and re-acquiring of the dataset.
[0006] To achieve the above-mentioned objectives, this invention provides an AI-ISP generalization method based on unsupervised camera color space mapping, characterized by the following steps:
[0007] (1) Image acquisition and preprocessing;
[0008] (1.1) Set the image acquisition format of camera A and camera B to RAW format, and arrange the acquired images in RGGB array format;
[0009] (1.2) Under the same scene conditions, use camera A and camera B to collect several images respectively. The images collected by camera A are stored in image set A, and the images collected by camera B are stored in image set B.
[0010] (1.3) For any set of images, normalize each image in the set first, then perform channel conversion to convert each image from one channel to four channels, and finally crop the channel-converted image into a patch of size H*W.
[0011] Finally, each image in image set A is processed and stored in tile set Set(A); each image in image set B is processed and stored in tile set Set(B);
[0012] (2) Construct a cyclic adversarial generative network;
[0013] The recurrent adversarial generative network consists of two generators and two discriminators. Both generators employ a camera color space block mapping network, denoted as Gi. a→b and G b→a G a→b Another network G is used to map images from the color space of camera A to the color space of camera B. b→a Used to map an image in the color space of camera B to the color space of camera A;
[0014] The camera color space block mapping network consists of a feature extraction network and a parameter matrix prediction network. The feature extraction network has two branches: a convolutional branch and a Transformer branch. Features from the two branches are fused through transformation and convolution operations. Specifically, the convolutional branch consists of 8 convolutional layers, and the Transformer branch consists of 4 Transformer layers. Every two convolutional layers and one Transformer layer form a small block. For the input image block I, it is first simultaneously fed into the first convolutional layer and the Transformer layer. After the first convolutional layer processes the image, it is directly fed into the second convolutional layer. The Transformer layer divides the image into blocks, downsamples them, and performs embedding operations to transform them into several visual vectors. Then, self-attention operations and feeding are performed. In the forward operation, the visual vector is then reshaped and upsampled back to the same shape as the output of the second convolutional layer, and directly added together. After being downsampled by a factor of 2, it becomes the input to the next block. The last small block does not undergo reshaping or upsampling; instead, it is directly used as the output of the feature extraction network, with an output shape of I'. The number of output channels for each convolutional layer is 16, 32, 32, 64, 64, 128, 128, 256, respectively, using LeakeyReLU as the activation function. The embedding layer dimensions of the Transformer layer are 32, 64, 128, 256, using Gelu as the activation function.
[0015] The parameter matrix prediction network consists of two fully connected layers, taking the output I' of the feature extraction network as input. The output dimensions of the fully connected layers are 128 and 56, respectively, and the output of the fully connected layers is a color space mapping matrix (CCM). Subsequently, the color space mapping matrix is interpolated and upsampled to obtain CCM', and then rearranged into the shape CCM”. At the same time, the original input image I is expanded from four channels to fourteen channels and arranged to form image I. poly Finally, I poly Element-wise matrix multiplication with "CCM" is performed to obtain the output of the entire network.
[0016] The two discriminators are denoted as D. a D b Each discriminator consists of a five-layer convolutional neural network and an average pooling layer. Each of the five convolutional neural network layers uses LeakyReLU as the activation function. The kernel size of each convolutional layer is 4*4, and the number of channels is 64, 128, 256, 512, and 1, respectively. An average pooling layer is connected after the last convolutional layer to pool the feature map into discriminative probabilities.
[0017] (3) Training a recurrent adversarial generative network;
[0018] (3.1) Randomly sample a tile from Set(A), denoted as I. A Randomly sample a tile from Set(B), denoted as I. B ;
[0019] (3.2) Transfer image I A Input camera color space block mapping network G a→b The output image I is obtained. AB Similarly, image I B Input camera color space block mapping network G b→a Image I was obtained BA ;
[0020] Then take image I B Input camera color space block mapping network G a→b Image I was obtained BB Image I A Input camera color space block mapping network G b→a Image I was obtained AA Then calculate the consistency loss. iden ;
[0021] Loss iden =MSE(I BB ,I B )+MSE(I AA ,I A )
[0022] MSE() means calculating the mean square error of each pixel in two images;
[0023] (3.3) Transfer image I AB Input discriminator D a To obtain the discrimination probability Image I BA Input discriminator D b To obtain the discrimination probability Then calculate the generator's adversarial loss (Loss). gen-gan ;
[0024]
[0025] (3.4) Transfer image I AB Input camera color space block mapping network G b→a Image I was obtained ABA Image I BA Input camera color space block mapping network G a→b Image I was obtained BAB Then calculate the cycle-consistent loss. cycle ;
[0026] Loss cycle =MSE(I ABA ,I A )+MSE(I BAB ,I B )
[0027] (3.5) Calculate the total loss of the generator in the recurrent adversarial generative network. gen ;
[0028] Loss gen =Loss iden +Loss gen-gan +Loss cycle
[0029] (3.6) Transfer image I A Input discriminator D b To obtain the discrimination probability Image I B Input discriminator D a To obtain the discrimination probability Then calculate the total loss of the discriminator in the recurrent adversarial generative network. dis ;
[0030]
[0031] (3.7) Based on the generator's total loss gen The camera color space block mapping network G is updated using gradient descent. a→b G b→a The parameters; based on the total loss of the discriminator. dis The discriminator D is updated using gradient descent. a D b Parameters;
[0032] (3.8) After one round of training is completed, repeat steps (3.1)-(3.7) until the network converges and the recurrent adversarial generative network after training is obtained.
[0033] (4) Can be generalized ISP deployment;
[0034] (4.1) Train the AI-ISP network using the tile set Set(A), and denote the trained network as ISP. A ;
[0035] (4.2) Extract the camera color space block mapping network G from the trained recurrent adversarial generative network. b→a Then the network ISP A Connected in G b→aThe output terminal;
[0036] Prepare an AI-ISP network, denoted as ISP, that has been trained in any manner on camera dataset A. A And the camera color space block mapping network G b→a ;
[0037] (4.3) The image I captured by camera B B Input to camera color space block mapping network G b→a In this way, the output image I is obtained. BA Then image I BA Input to network ISP A A high-quality RGB image F is obtained. A .
[0038] The objective of this invention is achieved as follows:
[0039] This invention presents an AI-ISP generalization method based on unsupervised camera color space mapping. First, images acquired from different cameras are preprocessed to construct a training dataset. Next, an unsupervised training framework based on recurrent adversarial generative networks is built, and the proposed color space block mapping network is trained using the training dataset. Finally, by concatenating the trained color space block mapping network with the AI-ISP network, the same AI-ISP can be deployed on different cameras, achieving cross-camera generalization of the AI-ISP.
[0040] Furthermore, the AI-ISP generalization method based on unsupervised camera color space mapping of this invention also has the following advantages:
[0041] Beneficial effects:
[0042] (1) The present invention uses RAW images acquired by two different cameras (without pairing) and no other prior information to train the camera color space block mapping network, and uses the network to assist the generalization of the end-to-end AI-ISP model.
[0043] (2) Because the images acquired by different cameras have significant domain differences due to differences in scene, lighting and other factors, such as different noise levels, different blur levels, different scene styles, etc., the domain difference caused by different camera spectral sensitivity is masked by the above domain differences and is difficult to be captured by the model. This invention designs a camera color space block mapping network, which can accurately capture the domain difference caused by different camera spectral sensitivity, while ignoring the influence of other factors.
[0044] (3) Thanks to its block prediction strategy, the camera color space block mapping network of the present invention can be applied to non-uniform lighting scenarios, so that the generalized AI-ISP can maintain performance in complex lighting scenarios. Attached Figure Description
[0045] Figure 1 It is an AI-based image processor;
[0046] Figure 2 This is a flowchart of the AI-ISP generalization method based on unsupervised camera color space mapping of the present invention;
[0047] Figure 3 This is a schematic diagram of the camera color space block mapping network structure;
[0048] Figure 4 This is a flowchart of the cross-camera generalization process for AI-ISP;
[0049] Figure 5 This is a comparison chart of the visualization results of different algorithms. Detailed Implementation
[0050] The specific embodiments of the present invention will now be described with reference to the accompanying drawings to enable those skilled in the art to better understand the invention. It should be particularly noted that in the following description, detailed descriptions of known functions and designs that might obscure the main content of the invention will be omitted here.
[0051] Example
[0052] Figure 1 This is a flowchart of the AI-ISP generalization method based on unsupervised camera color space mapping of the present invention.
[0053] In this embodiment, as Figure 1 As shown, the present invention provides an AI-ISP generalization method based on unsupervised camera color space mapping, comprising the following steps:
[0054] S1. Image acquisition and preprocessing;
[0055] S1.1 Set the image acquisition format of camera A and camera B to RAW format. The acquired images are arranged in RGGB array form (that is, the image is one channel, and the upper left corner of a 2*2 block is the red pixel value acquired by the camera, the upper right and lower left corners are green pixel values, and the lower right corner is the blue pixel value).
[0056] S1.2 Under the same scene conditions, use camera A and camera B to collect 200 images each. The images collected by camera A are stored in image set A, and the images collected by camera B are stored in image set B.
[0057] S1.3 For any set of images, normalize each image in the set first, then perform channel conversion to convert each image from one channel to four channels, and finally crop the channel-converted image into a patch of size H*W=256×256.
[0058] Finally, each image in image set A is processed and stored in tile set Set(A); each image in image set B is processed and stored in tile set Set(B).
[0059] S2. Construct a cyclic adversarial generative network;
[0060] The recurrent adversarial generative network consists of two generators and two discriminators. Both generators employ a camera color space block mapping network, denoted as Gi. a→b and G b→a G a→b Another network G is used to map images from the color space of camera A to the color space of camera B. b→a Used to map an image from the color space of camera B to the color space of camera A;
[0061] In this embodiment, images acquired by different cameras exhibit significant domain differences due to variations in scene, lighting, and other factors, such as different noise levels, blur levels, and scene styles. In contrast, the domain difference caused by differences in camera spectral sensitivity is masked by these differences and difficult for the model to capture. This patent innovatively designs a camera color space block mapping network. This network can accurately capture the domain difference caused by differences in camera spectral sensitivity while ignoring the influence of other factors. Furthermore, to fully leverage the advantages of deep neural networks, the network predicts the color space mapping parameters for each block of the image in a block-based manner, adapting to the problem of different color space transformation operations required at different locations in complex lighting scenes.
[0062] like Figure 3 As shown, the camera color space block mapping network consists of a feature extraction network and a parameter matrix prediction network. The feature extraction network has two branches: a convolutional branch and a Transformer branch. Features from the two branches are fused through transformation and convolution operations. Specifically, the convolutional branch consists of 8 convolutional layers, and the Transformer branch consists of 4 Transformer layers. Every 2 convolutional layers and 1 Transformer layer form a small block. For the input small block of image I∈R... H×W×4First, the image is simultaneously fed into the first convolutional layer and the Transformer layer. After the first convolutional layer processes the image, it is directly fed into the second convolutional layer. The Transformer layer divides the image into blocks, downsamples them, and performs embedding operations to convert them into several visual vectors. Then, self-attention and feed-forward operations are performed. Subsequently, the visual vectors are reshaped and upsampled back to the same shape as the output of the second convolutional layer, and then directly added together. After being downsampled by a factor of 2, this is used as the input to the next block. The last small block will not undergo shape reshaping or upsampling; instead, it is directly used as the output of the feature extraction network, with the output shape being... PS represents the pre-defined hyperparameters, with a size of 16; the number of output channels for each convolutional layer are 16, 32, 32, 64, 64, 128, 128, and 256, respectively, and LeakeyReLU is used as the activation function; the embedding layer dimensions of the Transformer layer are 32, 64, 128, and 256, and Gelu is used as the activation function;
[0063] The parameter matrix prediction network consists of two fully connected layers, and is derived from the output of the feature extraction network. As input, the output dimensions of the fully connected layer are 128 and 56, respectively, and the output of the fully connected layer is a color space mapping matrix. Subsequently, the color space mapping matrix will be interpolated and upsampled to obtain CCM'∈R HW×56 Then it is rearranged into shape CCM"∈R H×W×14×4 Meanwhile, the original input image I∈R H×W×4 The channels will be arranged and combined at the channel level, expanding from the original four channels [R,Gr,Gb,G] to [R,Gr,Gb,G,R]. 2 Gr 2 ,Gb 2 G 2 An image composed of fourteen channels: [RGr,RGb,RB,GrGb,GrB,GbB]. poly ∈R H×W×14 Finally, I poly Element-wise matrix multiplication with "CCM" yields the output of the entire network.
[0064] The two discriminators are denoted as D. a D b Each discriminator consists of a five-layer convolutional neural network and an average pooling layer. Each of the five convolutional neural network layers uses LeakyReLU as the activation function. The kernel size of each convolutional layer is 4*4, and the number of channels is 64, 128, 256, 512, and 1, respectively. An average pooling layer is connected after the last convolutional layer to pool the feature map into discriminative probabilities.
[0065] S3. Training a recurrent adversarial generative network;
[0066] S3.1. Randomly sample a tile from Set(A), denoted as I. A Randomly sample a tile from Set(B), denoted as I. B ;
[0067] S3.2, Transfer image I A Input camera color space block mapping network G a→b The output image I is obtained. AB Similarly, image I B Input camera color space block mapping network G b→a Image I was obtained BA ;
[0068] Then take image I B Input camera color space block mapping network G a→b Image I was obtained BB Image I A Input camera color space block mapping network G b→a Image I was obtained AA Then calculate the consistency loss. iden ;
[0069] Loss iden =MSE(I BB ,I B )+MSE(I AA ,I A )
[0070] MSE() means calculating the mean square error of each pixel in two images;
[0071] S3.3, Transfer image I AB Input discriminator D a To obtain the discrimination probability Image I BA Input discriminator D b To obtain the discrimination probability Then calculate the generator's adversarial loss (Loss). gen-gan ;
[0072]
[0073] S3.4, Transfer image I AB Input camera color space block mapping network G b→a Image I was obtained ABA Image I BA Input camera color space block mapping network G a→b Image I was obtainedBAB Then calculate the cycle-consistent loss. cycle ;
[0074] Loss cycle =MSE(I ABA ,I A )+MSE(I BAB ,I B )
[0075] S3.5 Calculate the total loss of the generator in the recurrent adversarial generative network. gen ;
[0076] Loss gen =Loss iden +Loss gen-gan +Loss cycle
[0077] S3.6, Transfer image I A Input discriminator D b To obtain the discrimination probability Image I B Input discriminator D a To obtain the discrimination probability Then calculate the total loss of the discriminator in the recurrent adversarial generative network. dis ;
[0078]
[0079] S3.7, Based on the generator's total loss (Loss) gen The camera color space block mapping network G is updated using gradient descent. a→b G b→a The parameters; based on the total loss of the discriminator. dis The discriminator D is updated using gradient descent. a D b Parameters;
[0080] S3.8 After one round of training is completed, repeat steps S3.1-S3.7 until the network converges, and obtain the recurrent adversarial generative network after training.
[0081] S4. Scalable ISP deployment;
[0082] The cross-camera generalization process of S4.1 and AI-ISP is as follows: Figure 4 As shown, the AI-ISP network is first trained using the tile set Set(A), and the trained network is denoted as ISP. A ;
[0083] In this embodiment, the structure of the AI-ISP network is as follows: Figure 1 As shown, the AI-ISP network has a traditional structure, and the specific training process will not be described in detail here;
[0084] S4.2 Extracting the camera color space block mapping network G from the trained recurrent adversarial generative network. b→a Then the network ISP A Connected in G b→a The output terminal;
[0085] Prepare an AI-ISP network, denoted as ISP, that has been trained in any manner on camera dataset A. A And the camera color space block mapping network G b→a ;
[0086] S4.3, Transfer the image I captured by camera B B Input to camera color space block mapping network G b→a In this way, the output image I is obtained. BA Then image I BA Input to network ISP A To obtain a high-quality RGB image F A .
[0087] Simulation verification
[0088] This invention was trained and tested on the color space mapping dataset proposed by Mahmoud Afifi et al. The AI-ISP model was trained in a supervised manner on RAW images and corresponding RGB images taken with an iPhone X, for 200 epochs with a learning rate of 2e-4, and optimized using the Adam optimizer. The camera color space block mapping network was trained unsupervised on RAW images taken with an iPhone X and a Samsung S9, for 35 epochs with a generator learning rate of 1e-5 and a discriminator learning rate of 2e-5, and optimized using the Adam optimizer. The uvcgan algorithm and Afifi's algorithm were trained under the same settings. The quantitative comparison results are shown in Table 1. The Frescher factor distance (FID) and Kolb-Leibler divergence (KL divergence) metrics were used for evaluation. The method proposed in this invention significantly outperforms the other two comparison methods in both the FID and KL divergence metrics, demonstrating that the AI-ISP generalization method proposed in this invention can significantly improve the performance of the AI-ISP model when deployed across cameras.
[0089] Table 1. Quantitative Assessment Results;
[0090] Model FID↓ KL divergence ↓ uvcgan 133.62 1.15+ Afifi's 86.80 1.63 Ours 62.24 1.06
[0091] Visualization results as follows Figure 5 As shown, from left to right, the results are: without domain generalization, using the uvcgan algorithm, Afifi's algorithm, and the generalized result of this invention, along with a reference image. Figure 5 It can be seen that the present invention successfully generalizes the AI-ISP model. Even though the AI-ISP model is trained on the camera A dataset, it can still successfully render the original RAW image captured by camera B.
[0092] Although the illustrative specific embodiments of the present invention have been described above to enable those skilled in the art to understand the invention, it should be understood that the invention is not limited to the scope of the specific embodiments. For those skilled in the art, various changes are obvious as long as they are within the spirit and scope of the invention as defined and determined by the appended claims, and all inventions utilizing the concept of the present invention are protected.
Claims
1. An AI-ISP generalization method based on unsupervised camera color space mapping, characterized in that, Includes the following steps: (1) Image acquisition and preprocessing; (1.1) Set the image acquisition format of camera A and camera B to RAW format, and arrange the acquired images in RGGB array format; (1.2) Under the same scene conditions, use camera A and camera B to collect several images respectively. The images collected by camera A are stored in image set A, and the images collected by camera B are stored in image set B. (1.3) For any set of images, normalize each image in the set first, then perform channel conversion to convert each image from one channel to four channels, and finally crop the channel-converted image into a patch of size H*W. Finally, each image in image set A is processed and stored in tile set Set(A); each image in image set B is processed and stored in tile set Set(B). (2) Construct a cyclic adversarial generative network; The recurrent adversarial generative network consists of two generators and two discriminators. Both generators employ a camera color space block mapping network, denoted as Gi. a→b and G b→a G a→b Another network G is used to map images from the color space of camera A to the color space of camera B. b→a Used to map an image in the color space of camera B to the color space of camera A; The camera color space block mapping network consists of a feature extraction network and a parameter matrix prediction network. The feature extraction network has two branches: a convolutional branch and a Transformer branch. Features from the two branches are fused through transformation and convolution operations. Specifically, the convolutional branch consists of 8 convolutional layers, and the Transformer branch consists of 4 Transformer layers. Every two convolutional layers and one Transformer layer form a small block. For the input image block I, it is first simultaneously fed into the first convolutional layer and the Transformer layer. After the first convolutional layer processes the image, it is directly fed into the second convolutional layer. The Transformer layer divides the image into blocks, downsamples them, and performs embedding operations to transform them into several visual vectors. Then, self-attention operations and feeding are performed. In the forward operation, the visual vector is then reshaped and upsampled back to the same shape as the output of the second convolutional layer, and directly added together. After being downsampled by a factor of 2, it becomes the input to the next block. The last small block does not undergo reshaping or upsampling; instead, it is directly used as the output of the feature extraction network, with an output shape of I'. The number of output channels for each convolutional layer is 16, 32, 32, 64, 64, 128, 128, 256, respectively, using LeakeyReLU as the activation function. The embedding layer dimensions of the Transformer layer are 32, 64, 128, 256, using Gelu as the activation function. The parameter matrix prediction network consists of two fully connected layers, taking the output I' of the feature extraction network as input. The output dimensions of the fully connected layers are 128 and 56, respectively, and the output of the fully connected layers is a color space mapping matrix (CCM). Subsequently, the color space mapping matrix is interpolated and upsampled to obtain CCM', and then rearranged into the shape CCM”. At the same time, the original input image I is expanded from four channels to fourteen channels and arranged to form image I. poly Finally, I poly Element-wise matrix multiplication with "CCM" yields the output of the entire network. The two discriminators are denoted as D. a D b Each discriminator consists of a five-layer convolutional neural network and an average pooling layer. Each of the five convolutional neural network layers uses LeakyReLU as the activation function. The kernel size of each convolutional layer is 4*4, and the number of channels is 64, 128, 256, 512, and 1, respectively. An average pooling layer is connected after the last convolutional layer to pool the feature map into discriminative probabilities. (3) Training a recurrent adversarial generative network; (3.1) Randomly sample a tile from Set(A), denoted as I. A Randomly sample a tile from Set(B), denoted as I. B ; (3.2) Transfer image I A Input camera color space block mapping network G a→b The output image I is obtained. AB Similarly, image I B Input camera color space block mapping network G b→a Image I was obtained BA ; Then take image I B Input camera color space block mapping network G a→b Image I was obtained BB Image I A Input camera color space block mapping network G b→a Image I was obtained AA Then calculate the consistency loss. iden ; Loss iden =MSE(I BB ,I B )+MSE(I AA ,I A ) MSE() means calculating the mean square error of each pixel in two images; (3.3) Transfer image I AB Input discriminator D a To obtain the discrimination probability Image I BA Input discriminator D b To obtain the discrimination probability Then calculate the generator's adversarial loss (Loss). gen-gan ; (3.4) Transfer image I AB Input camera color space block mapping network G b→a Image I was obtained ABA Image I BA Input camera color space block mapping network G a→b Image I was obtained BAB Then calculate the cycle-consistent loss. cycle ; Loss cycle =MSE(I ABA ,I A )+MSE(I BAB ,I B ) (3.5) Calculate the total loss of the generator in the recurrent adversarial generative network. gen ; Loss gen =Loss iden +Loss gen-gan +Loss cycle (3.6) Transfer image I A Input discriminator D b To obtain the discrimination probability Image I B Input discriminator D a To obtain the discrimination probability Then calculate the total loss of the discriminator in the recurrent adversarial generative network. dis ; (3.7) Based on the generator's total loss gen The camera color space block mapping network G is updated using gradient descent. a→b G b→a The parameters; based on the total loss of the discriminator. dis The discriminator D is updated using gradient descent. a D b Parameters; (3.8) After one round of training is completed, repeat steps (3.1)-(3.7) until the network converges and the recurrent adversarial generative network after training is obtained. (4) It can be generalized for ISP deployment; (4.1) Train the AI-ISP network using the tile set Set(A), and denote the trained network as ISP. A ; (4.2) Extracting the camera color space block mapping network G from the trained recurrent adversarial generative network. b→a Then the network ISP A Connected in G b→a The output terminal; Prepare an AI-ISP network, denoted as ISP, trained in any manner on camera dataset A. A And the camera color space block mapping network G b→a ; (4.3) The image I captured by camera B B Input to camera color space block mapping network G b→a In this way, the output image I is obtained. BA Then image I BA Input to network ISP A To obtain a high-quality RGB image F A .
Citation Information
Patent Citations
Unsupervised image transformation method and device based on cyclic adversarial network
CN112270648A
Unsupervised sensor color space mapping method based on cyclic generative adversarial network
CN117788626A
