High dynamic range imaging method based on low frequency perception diffusion model

By extracting low-frequency perceptual features in a highly compressed latent space and integrating them into a regression-based model, the problems of computational resource consumption and data distribution deviation of the standard diffusion model are solved, achieving efficient, high-quality high dynamic range imaging and avoiding Eliminates ghosting and improves the visual consistency of images.

CN118799429APending Publication Date: 2024-10-18NORTHWESTERN POLYTECHNICAL UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410925145.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

High dynamic range imaging methods based on standard diffusion models require a large amount of computing resources and the generated data distribution is offset from the target results, resulting in limited performance, especially ghosting when capturing motion phenomena and overexposure problems in low dynamic range images. .

Method used

A diffusion model based on low-frequency perception is adopted to create compact low-frequency prior features in the latent space by extracting low-frequency prior features in a highly compressed latent space and integrating them into a regression-based model to enhance the content of the reconstructed image. A priori features are synthesized via a dynamic image reconstruction network.

Benefits of technology

While reducing computational overhead, it improves the quality and contrast of image reconstruction, avoids ghosting, generates images that are more in line with human visual perception, and improves distortion accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799429A_ABST
    Figure CN118799429A_ABST
Patent Text Reader

Abstract

The high dynamic range imaging method based on the low-frequency perception diffusion model comprises the following steps: constructing a low-frequency prior extraction network, pre-training the low-frequency prior extraction network according to a given high dynamic range true value image, and obtaining true low-frequency prior characteristics by using the pre-trained low-frequency prior extraction network; and taking the obtained real low-frequency prior characteristics as a denoising target of a diffusion model, training the diffusion model to directly predict the low-frequency prior characteristics from the low-dynamic-range image, constructing a dynamic image reconstruction network based on regression, and reconstructing a high-dynamic-range image by utilizing the predicted low-frequency prior characteristics. The problems that in the prior art, an imaging method based on a standard diffusion model normal form consumes a large number of computing resources, and actual application is affected are solved. According to the method, compact low-frequency prior features are created in a submerged space by using a diffusion model, and then compact prior layering is incorporated into a regression-based model so as to supplement details of a predicted reconstructed image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the multidisciplinary cross-technical fields of computer vision, image processing, target extraction, etc., and in particular to a high dynamic range imaging method based on a low-frequency perception diffusion model. Background Art

[0002] High dynamic range imaging technology is a fundamental problem in computer vision, which aims to more accurately capture images with a wide range of luminances in the real world. Traditional imaging methods often suffer from local underexposure or overexposure when facing strong or weak light, resulting in loss of image details or insufficient contrast. High dynamic range imaging technology combines multiple images with different exposure levels and finely controls the dynamic range of each pixel to capture details in both light and dark areas in one image. This technology uses image processing algorithms to merge shadow details in low-exposure images with highlight details in high-exposure images to produce an image with a wider dynamic range.

[0003] The deep learning method based on regression model is the mainstream solution in high dynamic range imaging technology. The document "High Dynamic Range Image Reconstruction Based on Dual Attention Network, Laser and Optoelectronics Progress, 2023" discloses a method for high dynamic range image reconstruction based on dual attention network. This method uses dual attention module and feature enhancement module to simultaneously extract features of low dynamic range images. However, when motion phenomenon and overexposure problems exist simultaneously in the captured low dynamic range image, the generated image usually has obvious ghosting phenomenon.

[0004] Compared with the regression model-based method, the high dynamic range imaging method based on the diffusion model shows excellent performance, avoiding the ghosting problem while producing high dynamic range images that are more in line with human senses. However, the imaging method based on the standard diffusion model paradigm requires a large number of inference iterations to recover clean images from random Gaussian noise, which consumes a lot of computing resources and affects practical applications. In addition, the data distribution synthesized by the diffusion model is usually offset from the target result, resulting in limited performance of the evaluation method based on distortion metrics. Summary of the invention

[0005] In order to overcome the deficiencies of the above-mentioned prior art, the purpose of the present invention is to propose a high dynamic range imaging method based on a low-frequency perceptual diffusion model, by implementing the diffusion model in a highly compressed latent space and integrating it into a regression-based model to enhance the content of the reconstructed image. Since low-frequency information is closely related to human visual perception, the present invention uses the diffusion model to create compact low-frequency prior features in the latent space, and then hierarchically incorporates the compact prior into the regression-based model to supplement the details of the predicted reconstructed image.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0007] The high dynamic range imaging method based on the low frequency perceptual diffusion model comprises the following steps:

[0008] Step 1: Construct a low-frequency prior extraction network, pre-train the low-frequency prior extraction network according to a given high dynamic range true value image, and use the pre-trained low-frequency prior extraction network to obtain the real low-frequency prior features;

[0009] Step 2: Use the real low-frequency prior features obtained in step 1 as the denoising target of the diffusion model, train the diffusion model to obtain the predicted low-frequency prior features directly from the low dynamic range image, build a regression-based dynamic image reconstruction network, and use the predicted low-frequency prior features to reconstruct the high dynamic range image.

[0010] The specific process of step 1 is as follows:

[0011] Step 1.1: Construct a low-frequency prior extraction network. The low-frequency prior extraction network consists of multiple residual blocks stacked together. Input a high dynamic range true value image. The high dynamic range true value image is compressed into a latent space through the low-frequency prior extraction network to extract the true low-frequency prior features.

[0012]

[0013] In the formula, represents the tone mapping operation, μ represents the compression parameter, k represents the sampling multiple of PixelUnshuffle, LPENet represents the low-frequency prior extraction network, z is the extracted real low-frequency prior feature, I gt represents a high dynamic range true value image, represents the true value image after tone mapping;

[0014] Step 1.2: Input a low dynamic range image and convert the input low dynamic range image into a high dynamic range image, specifically:

[0015]

[0016] Among them, L i represents a low dynamic range image, t i Indicates L i is the exposure time, γ is the parameter in gamma correction, H i Represents a high dynamic range image;

[0017] Step 1.3: Concatenate the low dynamic range image and the high dynamic range image in step 1.2 along the channel dimension to obtain a multi-channel tensor X i =[L i ,Hi ];

[0018] Step 1.4: Input the multi-channel tensor and the true low-frequency prior features into the dynamic image reconstruction network. Since the true low-frequency prior features have no clear constraint targets, the dynamic image reconstruction network is used to optimize the true low-frequency prior features, and the reconstructed high dynamic range image is used to determine the true low-frequency prior features. The process can be expressed as follows:

[0019]

[0020] in, is the reconstructed high dynamic range image, DHRNet represents the dynamic image reconstruction network, and z represents the true low-frequency prior feature;

[0021] Step 1.5: Use the pixel loss and perceptual loss of tone mapping as the image reconstruction loss function:

[0022]

[0023] Among them, φ i,j (·) represents the features extracted from VGG19 after the i-th max pooling operation, and λ represents the hyperparameter of the loss function weight.

[0024] The specific process of step 1.1 is as follows:

[0025] Step 1.11: High dynamic range ground truth image I gt As a starting point, perform tone mapping operation Get the true value image after tone mapping

[0026] Step 1.12: Transform the high dynamic range ground truth image I gt and the true value image after tone mapping They are concatenated along the channel dimension and downsampled using the PixelUnshuffle operation, which is used as the input of the low-frequency prior extraction network to extract the true low-frequency prior features.

[0027] The dynamic image reconstruction network is composed of a plurality of stacked reconstruction modules, each of which comprises a priori integration module and three feature refinement modules connected in sequence; the priori integration module fuses the real low-frequency prior features with the intermediate features of the dynamic image reconstruction network, and the feature refinement module further processes the fused features and outputs the features.

[0028] The prior integration module includes a residual block, a cross attention structure, and a channel attention module. The processing steps are as follows:

[0029] Step 1.41: Process the input multi-channel tensor through the residual block to obtain the first feature F n-1, decouple the obtained features into two parts: the first high-frequency feature that keeps the resolution unchanged and the first low-frequency feature with reduced resolution The process is shown as follows:

[0030]

[0031] Among them, k represents the downsampling multiple of Avgpool, and Upsample represents the upsampling operation;

[0032] Step 1.42: Use residual block to process the first high-frequency feature At the same time, the cross attention structure is used to process the first low-frequency features And the real low-frequency prior feature z, the process can be expressed as:

[0033]

[0034] Step 1.43: Use 1×1 convolutional layers to reduce the number of channels, apply channel attention module to emphasize channels with high activation values, and obtain the final output features of the module;

[0035] The feature refinement module includes residual block, self-attention, and channel attention. The specific steps are as follows:

[0036] Step 1.44: The first feature refinement module processes the output features of the prior integration module through the residual block, and the second and third feature refinement modules process the output features of the previous feature refinement module through the residual block to obtain the second feature F n-1 , decouple the obtained features into two parts: the second high-frequency feature that keeps the resolution unchanged and a second low-frequency feature with reduced resolution The process is shown as follows:

[0037]

[0038] Among them, k represents the downsampling multiple of Avgpool, and Upsample represents the upsampling operation;

[0039] Step 1.45: Use residual blocks to process the second high-frequency features At the same time, the channel self-attention structure processes the second low-frequency feature The process can be expressed as:

[0040]

[0041] Step 1.46: Use 1×1 convolutional layers to reduce the number of channels, apply channel attention module to emphasize channels with high activation values, and obtain the final output features of the module.

[0042] The specific process of step 2 is as follows:

[0043] Step 2.1: The diffusion process of the diffusion target is to use the true low-frequency prior feature z in step 1 to sample the noise sample z T , the process can be expressed as:

[0044]

[0045] Where T is the total number of iterations, are the predefined hyperparameters in the diffusion model;

[0046] Step 2.2: The reverse process of the diffusion model is to start from the noise sample z T Run the T-step Markov chain process backward to obtain the low-frequency prior feature z0 predicted by the intermediate process. The Markov chain process uses the posterior distribution equation:

[0047]

[0048] In the formula, and β t represents the distribution parameter;

[0049] Step 2.3: Guide the diffusion model to generate specific low-frequency prior features, use the spatial attention-based feature implicit alignment module AM(·) to pre-align the input multi-channel tensor, and use LPENet with the same structure as LPENet DM The process of obtaining the conditional feature D from the aligned multi-channel tensor can be expressed as:

[0050] D=LPENet DM (AM(PixelUnshuffle(X i )))

[0051] In the formula, LPENet DM It has the same structure as LPENet, AM(·) represents the feature implicit alignment module based on spatial attention;

[0052] Step 2.4: The noise prediction network predicts the noise sample z T and conditional feature D as the conditional noise, ∈ θ (Concat(z t ,D),t)), we can get:

[0053]

[0054] In the formula

[0055] Using the above formula iterate T times, we can get the low-frequency prior features predicted by the diffusion model:

[0056] Step 2.5: Input the predicted low-frequency prior features obtained in step 2.4 High-quality high dynamic range images are reconstructed through a regression-based dynamic image reconstruction network;

[0057] Step 2.6: Diffusion loss is used to constrain the low-frequency prior features predicted by the diffusion model. The diffusion loss is expressed as:

[0058]

[0059] Compared with the prior art, the present invention has the following beneficial effects:

[0060] The present invention realizes the diffusion model in a highly compressed latent space and integrates it into a regression-based model to enhance the content of the reconstructed image, while fully utilizing the distribution estimation capability of the diffusion model and avoiding huge computational overhead; low-frequency information is closely related to human visual perception, and the present invention uses the diffusion model to create compact low-frequency prior features for guiding the image reconstruction process. In addition, the image reconstruction process obtains the final imaging result in a regression-based manner to achieve better distortion accuracy. The method of the present invention is more in line with practical needs, and can fully utilize the capabilities of the diffusion model for high dynamic range imaging while avoiding huge computational overhead and reducing distortion accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 It is a flow chart of the present invention.

[0062] Figure 2 It is a low dynamic range image with multiple frames of different exposures.

[0063] Figure 3 This is a high dynamic range image reconstructed using the method of the present invention. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0065] The present invention is further described below in conjunction with the embodiments, and the present invention includes but is not limited to the following embodiments.

[0066] like Figure 1 As shown, the present invention provides a high dynamic range imaging method based on a low-frequency perceptual diffusion model, and the specific process is as follows:

[0067] Step 1: Construct a low-frequency prior extraction network, pre-train the low-frequency prior extraction network according to a given high dynamic range true value image, and use the pre-trained low-frequency prior extraction network to obtain the real low-frequency prior features;

[0068] Step 1.1: Compressing the high dynamic range true value image into a highly compact latent space through the low frequency prior extraction network requires a low frequency prior extraction network. For the low frequency prior extraction network, it is mainly composed of multiple residual blocks stacked to extract a compact low frequency prior representation. The process is expressed as follows:

[0069]

[0070] In the formula, represents the tone mapping operation, μ = 5000 represents the parameter defining the amount of compression, k represents the sampling multiple of PixelUnshuffle, LPENet represents the low-frequency prior extraction network, z represents the extracted low-frequency prior representation, and I gt represents a high dynamic range true image, Represents the true value image after tone mapping.

[0071] Step 1.11: High dynamic range ground truth image I gt As a starting point, first perform a tone mapping operation To obtain the true value image after tone mapping

[0072] Step 1.12: Transform the high dynamic range ground truth image I gt and the true value image after tone mapping Concatenate along the channel dimension and downsample using the PixelUnshuffle operation to generate the input I of the low-frequency prior extraction network low ;

[0073] Step 1.13: Low-frequency prior extraction network in I low As input, extract the true low-frequency prior representation z;

[0074] Step 1.2: The input low dynamic range image (denoted as {L1,L2,…,L N}) Convert to high dynamic range domain and generate a set of corresponding H i , where the gamma correction process can be expressed as:

[0075]

[0076] Among them, t i Indicates L i The exposure time is , and γ is a parameter in gamma correction, which is set to 2.2 in the present invention.

[0077] Step 1.3: Concatenate the above images L along the channel dimension i and H i To obtain a 6-channel tensor X i =[L i ,H i ] and uses the spatial attention-based alignment module to process the input 6-channel tensor X i , perform implicit feature alignment.

[0078] Step 1.4: Input the 6-channel tensor after implicit feature alignment into the dynamic image reconstruction network to obtain the reconstructed high dynamic range image. Since the real low-frequency prior features have no clear constraint target, the real low-frequency prior features are optimized through the dynamic image reconstruction network, and the reconstructed high dynamic range image is used to determine the real low-frequency prior features. The process can be expressed as follows:

[0079]

[0080] in, is the reconstructed high dynamic range image, DHRNet represents the dynamic image reconstruction network, and z represents the true low-frequency prior features obtained in step 1.1.

[0081] For the dynamic image reconstruction network, it is composed of multiple stacked reconstruction modules, each of which contains a prior integration module and three feature refinement modules connected in sequence. The prior integration module fuses the extracted real low-frequency prior features with the intermediate features of the dynamic image reconstruction network, and the feature refinement module further processes the fused features and outputs the features. The prior integration module has a similar structure to the feature refinement module, except that the prior integration module replaces the self-attention structure in the feature refinement module with a cross-attention structure, and uses the intermediate features and the real low-frequency prior features z obtained in step 1.1 as the input of the cross-attention structure.

[0082] The prior integration module includes a residual block, a cross attention structure, and a channel attention module. The processing steps are as follows:

[0083] Step 1.41: Process the input 6-channel tensor through the residual block to obtain the first feature F n-1 , decouple the obtained features into two parts: the first high-frequency feature that keeps the resolution unchanged and the first low-frequency feature with reduced resolution The process is shown as follows:

[0084]

[0085] Among them, k represents the downsampling multiple of Avgpool, and Upsample represents the upsampling operation;

[0086] Step 1.42: Use residual block to process the first high-frequency feature At the same time, the cross attention structure is used to process the first low-frequency features And the real low-frequency prior feature z, the process can be expressed as:

[0087]

[0088] Step 1.43: Use 1×1 convolutional layers to reduce the number of channels, apply channel attention module to emphasize channels with high activation values, and obtain the final output features of the module;

[0089] The feature refinement module includes residual block, self-attention, and channel attention. The specific steps are as follows:

[0090] Step 1.44: The first feature refinement module processes the output features of the prior integration module through the residual block, and the second and third feature refinement modules process the output features of the previous feature refinement module through the residual block to obtain the second feature F n-1 , decouple the obtained features into two parts: the second high-frequency feature that keeps the resolution unchanged and a second low-frequency feature with reduced resolution The process is shown as follows:

[0091]

[0092] Among them, k represents the downsampling multiple of Avgpool, and Upsample represents the upsampling operation;

[0093] Step 1.45: Use residual blocks to process the second high-frequency features At the same time, the channel self-attention structure processes the second low-frequency feature The process can be expressed as:

[0094]

[0095] Step 1.46: Use 1×1 convolutional layers to reduce the number of channels, apply channel attention module to emphasize channels with high activation values, and obtain the final output features of the module.

[0096] Step 1.5: Use the per-pixel loss of tone mapping and the perceptual loss as the image reconstruction loss function as follows:

[0097]

[0098] Among them, φ i,j (·) represents the features extracted from VGG19 after the i-th max pooling operation, and λ=1e-2 represents the hyperparameter of the loss function weight.

[0099] Step 2: Use the real low-frequency prior features obtained in step 1 as the denoising target of the diffusion model, train the diffusion model to obtain the predicted low-frequency prior features directly from the low dynamic range image, build a regression-based dynamic image reconstruction network, and reconstruct the high dynamic range image using the predicted low-frequency prior features. The goal of the diffusion model training for high dynamic range imaging is to use the powerful data generation ability of the diffusion model to estimate accurate low-frequency prior features.

[0100] The diffusion model training process for high dynamic range imaging first uses the true low-frequency prior features captured by the low-frequency prior extraction network in step 1 as the denoising target of the diffusion model. The diffusion model will learn how to extract accurate low-frequency prior features from low dynamic range image inputs and jointly optimize them with the dynamic image reconstruction network.

[0101] Step 2.1: Diffusion process, after using the real low-frequency prior features captured by the low-frequency feature extraction network in step 1 from the high dynamic range ground truth image, the diffusion process is applied to the real low-frequency prior features z to sample the noise sample z T , the process can be expressed as:

[0102]

[0103] Where T is the total number of iterations, are the predefined hyperparameters in the diffusion model;

[0104] Step 2.2: Diffusion model reverse process from noise sample z T Run the T-step Markov chain process backward to obtain the low-frequency prior feature z0 predicted by the intermediate process. The Markov chain process uses the posterior distribution equation:

[0105]

[0106] In the formula, and β t represents the distribution parameter;

[0107] Step 2.3: The present invention adopts the noise prediction network ∈ θ To estimate the noise ∈ at each step. Specifically, the guided diffusion model generates specific low-frequency prior features, uses the spatial attention-based feature implicit alignment module AM(·) to pre-align the input multi-channel tensor, and uses LPENet with the same structure as LPENet DM The process of obtaining the conditional feature D from the aligned multi-channel tensor can be expressed as:

[0108] D=LPENet DM (AM(PixelUnshuffle(X i )))

[0109] In the formula, LPENet DM It has the same structure as LPENet, AM(·) represents the feature implicit alignment module based on spatial attention;

[0110] Step 2.4: The noise prediction network predicts the noise sample z T and conditional feature D as the conditional noise, (i.e. ∈ θ (Concat(z t ,D),t)), then we can get:

[0111]

[0112] In the formula,

[0113] Using the above formula iterate T times, we can get the low-frequency prior features predicted by the diffusion model:

[0114] Step 2.5: Input the predicted low-frequency prior features obtained in step 2.4 High-quality high dynamic range images are reconstructed through a regression-based dynamic image reconstruction network;

[0115] Traditional diffusion models only learn the probability distribution of adding noise in each step, resulting in a slight deviation between the predicted low-frequency prior features and the true low-frequency prior features. Directly combining the diffusion model with the regression-based dynamic image reconstruction network may lead to a mismatch, thereby limiting the imaging performance. To solve this problem, the present invention jointly trains the noise prediction network of the diffusion model and the regression-based dynamic image reconstruction network. Specifically, in each training iteration, the noise sample z is first generated using the true prior feature z. t Since the noise prediction network used in the present invention is lightweight, the reverse process can be used according to the DDIM strategy for S iterations to quickly generate the predicted prior features. The above low-frequency prior representation guides the dynamic image reconstruction module through the prior fusion module.

[0116] Finally, the diffusion loss is used to constrain the low-frequency prior features predicted by the diffusion model. The diffusion loss is expressed as:

[0117]

[0118] In the inference phase, the present invention only uses the reverse process in the diffusion model. Specifically, LPENet DM Extract conditional features D from the aligned low dynamic range features and randomly sample Gaussian noise Then, the noise prediction network uses and D is the low-frequency prior representation estimated by DDIM after S iterations. Finally, the regression-based dynamic image reconstruction network reconstructs a high-quality high dynamic range image using the above low-frequency prior representation.

[0119] like Figure 2 and Figure 3 As shown, Figure 2 is a low dynamic range image with multiple frames of different exposures. Figure 3 This is a high dynamic range image reconstructed by the method of the present invention. It can be seen that the method proposed by the present invention generates a high dynamic range HDR image consistent with human perception.

[0120] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A high dynamic range imaging method based on a low frequency perceptual diffusion model, characterized in that: The following steps are involved: Step 1: Construct a low-frequency prior extraction network, pre-train the low-frequency prior extraction network according to a given high dynamic range true value image, and use the pre-trained low-frequency prior extraction network to obtain the real low-frequency prior features; Step 2: Use the real low-frequency prior features obtained in step 1 as the denoising target of the diffusion model, train the diffusion model to obtain the predicted low-frequency prior features directly from the low dynamic range image, build a regression-based dynamic image reconstruction network, and use the predicted low-frequency prior features to reconstruct the high dynamic range image.

2. The high dynamic range imaging method based on the low frequency perceptual diffusion model according to claim 1, characterized in that: The specific process of step 1 is as follows: Step 1.1: Construct a low-frequency prior extraction network. The low-frequency prior extraction network consists of multiple residual blocks stacked together. Input a high dynamic range true value image. The high dynamic range true value image is compressed into a latent space through the low-frequency prior extraction network to extract the true low-frequency prior features. In the formula, represents the tone mapping operation, μ represents the compression parameter, k represents the sampling multiple of PixelUnshuffle, LPENet represents the low-frequency prior extraction network, z is the extracted real low-frequency prior feature, I gt represents a high dynamic range true image, represents the true value image after tone mapping; Step 1.2: Input a low dynamic range image and convert the input low dynamic range image into a high dynamic range image, specifically: Among them, L i represents a low dynamic range image, t i Indicates L i is the exposure time, γ is the parameter in gamma correction, H i Represents a high dynamic range image; Step 1.3: Concatenate the low dynamic range image and the high dynamic range image in step 1.2 along the channel dimension to obtain a multi-channel tensor X i =[L i ,H i ]; Step 1.4: Input the multi-channel tensor and the true low-frequency prior features into the dynamic image reconstruction network. Since the true low-frequency prior features have no clear constraint targets, the dynamic image reconstruction network is used to optimize the true low-frequency prior features, and the reconstructed high dynamic range image is used to determine the true low-frequency prior features. The process can be expressed as follows: in, is the reconstructed high dynamic range image, DHRNet represents the dynamic image reconstruction network, and z represents the true low-frequency prior feature; Step 1.5: Use the pixel loss and perceptual loss of tone mapping as the image reconstruction loss function: Among them, φ i,j (·) represents the features extracted from VGG19 after the i-th max pooling operation, and λ represents the hyperparameter of the loss function weight.

3. The high dynamic range imaging method based on the low frequency perceptual diffusion model according to claim 2, characterized in that: The specific process of step 1.1 is as follows: Step 1.11: High dynamic range ground truth image I gt As a starting point, perform tone mapping operation Get the true value image after tone mapping Step 1.12: Transform the high dynamic range ground truth image I gt and the true value image after tone mapping They are concatenated along the channel dimension and downsampled using the PixelUnshuffle operation, which is used as the input of the low-frequency prior extraction network to extract the true low-frequency prior features.

4. The high dynamic range imaging method based on the low frequency perceptual diffusion model according to claim 2, characterized in that: The dynamic image reconstruction network is composed of a plurality of stacked reconstruction modules, each of which comprises a priori integration module and three feature refinement modules connected in sequence; the priori integration module fuses the real low-frequency priori features with the intermediate features of the dynamic image reconstruction network, and the feature refinement module further processes the fused features and outputs the features.

5. The high dynamic range imaging method based on the low frequency perception diffusion model according to claim 4, characterized in that: The prior integration module includes a residual block, a cross attention structure, and a channel attention module. The processing steps are as follows: Step 1.41: Process the input multi-channel tensor through the residual block to obtain the first feature F n-1 , decouple the obtained features into two parts: the first high-frequency feature that keeps the resolution unchanged and the first low-frequency feature with reduced resolution The process is shown as follows: Among them, k represents the downsampling multiple of Avgpool, and Upsample represents the upsampling operation; Step 1.42: Use residual block to process the first high-frequency feature At the same time, the cross attention structure is used to process the first low-frequency features And the real low-frequency prior feature z, the process can be expressed as: Step 1.43: Use 1×1 convolutional layers to reduce the number of channels, apply channel attention module to emphasize channels with high activation values, and obtain the final output features of the module; The feature refinement module includes residual block, self-attention, and channel attention. The specific steps are as follows: Step 1.44: The first feature refinement module processes the output features of the prior integration module through the residual block, and the second and third feature refinement modules process the output features of the previous feature refinement module through the residual block to obtain the second feature F n-1 , decouple the obtained features into two parts: the second high-frequency feature that keeps the resolution unchanged and a second low-frequency feature with reduced resolution The process is shown as follows: Among them, k represents the downsampling multiple of Avgpool, and Upsample represents the upsampling operation; Step 1.45: Use residual blocks to process the second high-frequency features At the same time, the channel self-attention structure processes the second low-frequency feature The process can be expressed as: Step 1.46: Use 1×1 convolutional layers to reduce the number of channels, apply channel attention module to emphasize channels with high activation values, and obtain the final output features of the module.

6. The high dynamic range imaging method based on the low frequency perceptual diffusion model according to claim 1, characterized in that: The specific process of step 2 is as follows: Step 2.1: The diffusion process of the diffusion target is to use the true low-frequency prior feature z in step 1 to sample the noise sample z T , the process can be expressed as: Where T is the total number of iterations, are the predefined hyperparameters in the diffusion model; Step 2.2: The reverse process of the diffusion model is to start from the noise sample z T Run the T-step Markov chain process backward to obtain the low-frequency prior feature z0 predicted by the intermediate process. The Markov chain process uses the posterior distribution equation: In the formula, and β t represents the distribution parameter; Step 2.3: Guide the diffusion model to generate specific low-frequency prior features, use the spatial attention-based feature implicit alignment module AM(·) to pre-align the input multi-channel tensor, and use LPENet with the same structure as LPENet DM The process of obtaining the conditional feature D from the aligned multi-channel tensor can be expressed as: D=LPENet DM (AM(PixelUnshuffle(X i ))) In the formula, LPENet DM It has the same structure as LPENet, AM(·) represents the feature implicit alignment module based on spatial attention; Step 2.4: The noise prediction network predicts the noise sample z T and conditional feature D as the conditional noise, ∈ θ (Concat(z t ,D),t)), we can get: In the formula Using the above formula iterate T times, we can get the low-frequency prior features predicted by the diffusion model: Step 2.5: Input the predicted low-frequency prior features obtained in step 2.4 High-quality high dynamic range images are reconstructed through a regression-based dynamic image reconstruction network; Step 2.6: Diffusion loss is used to constrain the low-frequency prior features predicted by the diffusion model. The diffusion loss is expressed as: 。

Citation Information

Cited By

  • Ultrahigh dynamic range imaging system and method based on diffusion model image prior

    CN119743679A