A method and system for image compression sensing reconstruction based on standardized flow
By building an end-to-end reversible deep neural network, combining standardized flow and multi-layer supervision training method, the measurement values and normal distribution sampled values in image compression perception are solved in the existing technology with high computing performance and information The loss problem achieves high-quality image reconstruction.
Patent Information
- Application Number
- CN202210469770.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-30
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-04-30
AI Technical Summary
The existing image compression-aware reconstruction methods have high requirements in terms of computing performance, cannot meet real-time requirements, and ignore the information lost during the sampling process, resulting in the improvement of the reconstruction quality.
Using the image compression perception method based on standardized streams, an end-to-end reversible deep neural network composed of several fixed reconstruction subnets and variable reconstruction subnets is constructed, and the measured values are combined with the sampled values of the standard normal distribution using inverse operations. , realize the dimension upgrade of low-frequency and high-frequency information, thereby improving the performance of reconstruction algorithms.
It improves the quality of image reconstruction, increases the interpretability of the network, meets the real-time computing needs, and effectively utilizes the information lost during the sampling process.
Smart Images

Figure CN114897691B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method and system for image compression sensing reconstruction based on standardized flow, and belongs to the technical field of image processing. Background Art
[0002] With the rapid development of the information age, people's demand for image storage and transmission is increasing. Image reconstruction is a preliminary operation for signal analysis. According to the Nyquist-Shannon theorem, in order to completely retain the information in the original signal, it must be sampled at a sampling frequency that is more than twice the highest frequency of the signal, which places very high demands on the hardware in the communication system. In 2006, Candes et al. proposed a new signal sampling and reconstruction method, the Compressive Sensing (CS) theory. It shows that when the signal exhibits sparsity in certain transform domains, people can reconstruct it with high probability from fewer collected measurements than specified by the Nyquist sampling theory. This new acquisition strategy is more hardware-friendly because CS simultaneously samples and compresses the signal using the inherent redundancy of the signal, greatly reducing the demand for high transmission bandwidth and storage space, and effectively reducing costs. Compressed sensing has received widespread attention since its advent and has been applied to many fields, such as single-pixel imaging, accelerated magnetic resonance imaging, wireless remote monitoring, cognitive radio communications, etc.
[0003] Most traditional CS reconstruction algorithms use structured sparse assumptions to model image signals and perform image reconstruction by seeking the optimal solution through multiple iterations. This method has high requirements for computing performance and cannot meet real-time requirements. Therefore, this intensive calculation of iterative optimization has become a bottleneck for image compression sensing applications. In recent years, deep neural networks have made a series of breakthroughs in computer vision tasks, such as image classification, super-resolution, and restoration. People have also applied deep learning to compressed sensing image reconstruction and proposed a series of methods to directly learn the inverse mapping from the CS measurement domain to the original signal domain. This type of reconstruction method effectively avoids the expensive calculations in traditional methods and has good reconstruction performance. However, most existing CS reconstruction methods focus on accurately and quickly restoring the original image from the measurement values, while ignoring the information lost during the sampling process. In addition, the networks used in the current reconstruction methods lack interpretability, resulting in the need to improve the quality of reconstruction. Summary of the invention
[0004] The present invention aims to provide an image compressed sensing reconstruction method, which comprehensively utilizes the lost information in the sampling process in CS image reconstruction to improve the performance of the reconstruction algorithm.
[0005] A method for image compression sensing and reconstruction based on standardized flow, comprising:
[0006] Obtaining a reconstruction model, wherein the reconstruction model is an end-to-end reversible deep neural network composed of a plurality of fixed reconstruction subnets and a variable reconstruction subnet;
[0007] Obtaining a measurement value of the image block to be reconstructed, inputting the measurement value of the image block and random sampling on a standard normal distribution into a reconstruction model, and obtaining a reconstructed image block using an inverse operation of the reconstruction model;
[0008] The reconstructed image blocks are reassembled in order to obtain the final reconstructed image;
[0009] The variable reconstruction subnet combines the measured value of the image block with the sampling value on the standard normal distribution of variable dimension, obtains the low-frequency component by inverse operation on the combined result, and realizes the dimensionality increase from the sampling domain to the low-frequency domain; the fixed reconstruction subnet combines the low-frequency component with the sampling value on the standard normal distribution by inverse operation, realizes the dimensionality increase from the low-frequency domain to the high-frequency domain, and obtains the reconstructed image block.
[0010] Furthermore, the method includes training the reversible deep neural network. In the training phase, the images used for training are preprocessed to obtain image blocks x of uniform specifications. 0 , the image block x 0 Input to the fixed reconstruction subnet, the fixed reconstruction subnet transforms the image block x 0 The low-frequency coefficients and high-frequency coefficients are initially obtained through Haar wavelet transform; based on the low-frequency coefficients and high-frequency coefficients, at least one reversible network block is used to further abstract the image block x 0 low-frequency components and high-frequency information; fitting the distribution of high-frequency information to a standard normal distribution; inputting the low-frequency components to the next adjacent subnet, which is a fixed reconstruction subnet or a variable reconstruction subnet;
[0011] The variable reconstruction subnet performs channel axis dimensioning on the low-frequency components output by the previous subnet, and then uses enhanced affine transformation to obtain the output measurement value y * and low-frequency information, fitting the distribution of low-frequency information to the standard normal distribution;
[0012] According to the output measurement value y * Determine the multi-feature loss function of the reconstruction model based on the original measurement value y of the image block, the distribution of high-frequency information and the standard normal distribution, the distribution of low-frequency information and the standard normal distribution, and the difference between the original image block and the reconstructed image block, and calculate the network training loss;
[0013] The gradient descent algorithm is used to update the weight parameters of the convolutional neural network, and then a trained reconstruction model is obtained.
[0014] Furthermore, the multi-feature loss function of the reconstruction model is expressed as follows:
[0015] L total =λ 1 L measure +λ 2 L recon +λ 3 L distr
[0016] Among them, L total represents the network loss of the reconstruction model, L measure Indicates the loss of measured value, L recon represents the reconstruction loss, L distr represents the distribution loss, λ 1 ,λ 2 and λ 3 They represent the weights of measurement loss, reconstruction loss, and distribution loss respectively, and their values are inversely proportional to the dimension of each loss.
[0017] Furthermore, the measured value loss L measure The calculation expression is as follows:
[0018]
[0019] Among them l y (.) is the measured value y of the metric output * A function of the difference between the original measurement value y of the image patch; Represents the input image block x 0 Using neural network θ The measured value of the output.
[0020] Furthermore, the reconstruction loss L recon The calculation expression is as follows:
[0021]
[0022] Among them l x (.) is the measure of the original image block and the reconstructed i-th image block x i The function of the difference between (i=0,1,...,L-1); Represents the set of original measurement value y and high-frequency information and low-frequency information {z k} k=i+1,...,L The reconstructed image block is obtained.
[0023] Furthermore, the distribution loss L distr The calculation expression is as follows:
[0024]
[0025] Among them l z (.) is the measure of using neural network f θThe i-th high-frequency information z obtained i Or the Lth low-frequency information z L A function of how it differs from the standard normal distribution.
[0026] Furthermore, the image block x is further abstracted by using at least one reversible network block based on the low-frequency coefficients and the high-frequency coefficients. 0 The low-frequency components and high-frequency information of the reversible network block are as follows:
[0027]
[0028]
[0029] in and is the input of the reversible network block, is the low-frequency component abstracted by the reversible network block, is the high-frequency information abstracted by the reversible network block; φ(.), ρ(.), η(.) represent three arbitrary functions; exp(.) represents an exponential function with the natural constant e as the base, Represents a tensor product operation
[0030] For the first reversible network block, The low-frequency coefficients are obtained through Haar wavelet transform. The high-frequency coefficients are obtained through Haar wavelet transform; if the number of reversible network blocks is more than 1, then for the 2nd to nth reversible network blocks, It is the low-frequency component abstracted by the previous reversible network block. It is the high-frequency information abstracted by the reversible network block of the previous level;
[0031] All reversible network blocks finally obtain It is the abstracted image block x 0 The low-frequency components of It is the abstracted image block x 0 high frequency information.
[0032] Furthermore, the variable reconstruction subnet performs channel axis dimensioning on the low-frequency components output by the previous subnet, and then uses enhanced affine transformation to obtain the output measurement value y * and low-frequency information, including the following steps:
[0033] (1) The variable reconstruction subnet uses the squeeze layer to increase the dimension of the channel axis of the low-frequency components output by the previous subnet;
[0034] (2) Divide the result after dimensionality increase into two tensors in half according to the channel dimension;
[0035] (3) Using at least one reversible network block transformation to further abstract low-frequency information and output measurement values from the two tensors, the reversible network block transformation adopts the following formula:
[0036]
[0037]
[0038] in and The input of the reversible network block, represents the further abstracted low-frequency information, represents the further abstracted measurement value, ψ(.), φ(.), ρ(.), η(.) represent four arbitrary functions; exp(.) represents the exponential function with the natural constant e as the base, Represents a tensor product operation;
[0039] For the first reversible network block, the input of the reversible network block is and are the two tensors obtained; if the number of reversible network blocks is more than 1, then for the 2nd to nth reversible network blocks, It is the low-frequency information abstracted by the previous reversible network block. It is the measurement value abstracted by the reversible network block at the previous level.
[0040] Furthermore, the squeeze layer is used to increase the dimension of the channel axis of the low-frequency component output by the previous subnet. The specific method includes:
[0041] For the original image with a height of H, a width of W, and a number of channels of C, it is divided into 2×2×C blocks along the spatial dimension, and then each block is reconstructed into 1×1×4C, and finally becomes Dimension.
[0042] In a second aspect, the present invention provides an image compression sensing reconstruction system based on standardized flow, comprising: a reconstruction module, an input module and an image block reorganization module;
[0043] The reconstruction module is an end-to-end reversible deep neural network composed of several fixed reconstruction subnets and variable reconstruction subnets, which is used to obtain a reconstructed image block according to the measurement value of the image, wherein the variable reconstruction subnet merges the measurement value of the image block with the sampling value on the standard normal distribution of variable dimension, and obtains the low-frequency component of the merged result by inverse operation, thereby realizing dimensionality increase from the sampling domain to the low-frequency domain; the fixed reconstruction subnet combines the low-frequency component with the sampling value on the standard normal distribution by inverse operation, thereby realizing dimensionality increase from the low-frequency domain to the high-frequency domain, and obtains the reconstructed image block.
[0044] The input module is used to obtain the measurement value of the image block to be reconstructed, and input the measurement value of the image block and random sampling on a standard normal distribution into the reconstruction model;
[0045] The image block reorganization module is used to reassemble the reconstructed image blocks in order to obtain a final reconstructed image.
[0046] Beneficial technical effects achieved by the present invention:
[0047] The present invention designs a reconstruction module composed of a special reversible deep neural network, which adopts the form of layer-by-layer dimensionality increase and innovatively decomposes the compressed sensing image reconstruction into several fixed reconstruction subnets and variable reconstruction subnets, thereby increasing the interpretability of the network.
[0048] The present invention utilizes a standardized flow and multi-layer supervised training method, and constructs a multi-feature loss function to map the information lost in the sampling process to high-frequency information and low-frequency information that conforms to the standard normal distribution. During reconstruction, random sampling is performed from the standard normal distribution, combined with the measured values, and the reversibility of the network is used to reconstruct the original image, thereby improving the reconstruction quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a framework diagram of an image compression sensing reconstruction system based on standardized flow according to a specific embodiment of the present invention.
[0050] Figure 2 It is a structural diagram of a fixed reconstruction subnet in a specific embodiment of the present invention;
[0051] Figure 3 It is a structural diagram of a variable reconfigurable subnet according to a specific embodiment of the present invention. DETAILED DESCRIPTION
[0052] The present invention is described in detail below in conjunction with specific embodiments.
[0053] like Figure 1 As shown, this embodiment provides an image compression sensing reconstruction method based on standardized flow, and the specific steps of the method are as follows:
[0054] Construct a reversible deep neural network reconstruction module, including constructing an end-to-end deep neural network consisting of a fixed reconstruction subnet and a variable reconstruction subnet;
[0055] Input a picture and process the picture in blocks; obtain the measurement value of the image block to be reconstructed, input the measurement value of the image block and random sampling on a standard normal distribution into a reconstruction model, and obtain the reconstructed image block using an inverse operation of the reconstruction model;
[0056] The reconstructed image blocks are reassembled in order to obtain the final reconstructed image;
[0057] The variable reconstruction subnet combines the measured value of the image block with the sampling value on the standard normal distribution of variable dimension, obtains the low-frequency component by inverse operation on the combined result, and realizes the dimensionality increase from the sampling domain to the low-frequency domain; the fixed reconstruction subnet combines the low-frequency component with the sampling value on the standard normal distribution by inverse operation, realizes the dimensionality increase from the low-frequency domain to the high-frequency domain, and obtains the reconstructed image block.
[0058] Training the reversible deep neural network reconstruction module includes:
[0059] Input the image data for network training; divide the image data into blocks to obtain image blocks of uniform specifications x 0 ;
[0060] The image block x 0 Input to the fixed reconstruction subnet, the fixed reconstruction subnet transforms the image block x 0 After Haar wavelet transform, low-frequency coefficients and high-frequency coefficients are initially obtained; based on the low-frequency coefficients and high-frequency coefficients, several reversible network blocks are used to further abstract the image block x 0 low-frequency components and high-frequency information; fitting the distribution of high-frequency information to a standard normal distribution; inputting the low-frequency components to the next adjacent subnet, which is a fixed reconstruction subnet or a variable reconstruction subnet;
[0061] The variable reconstruction subnet performs channel axis dimensioning on the low-frequency components output by the previous subnet, and then uses enhanced affine transformation to obtain the output measurement value y * and low-frequency information, fitting the distribution of low-frequency information to the standard normal distribution;
[0062] According to the output measurement value y * Determine the multi-feature loss function of the reconstruction model based on the original measurement value y of the image block, the distribution of high-frequency information and the standard normal distribution, the distribution of low-frequency information and the standard normal distribution, and the difference between the original image block and the reconstructed image block, and calculate the network training loss;
[0063] The gradient descent algorithm is used to update the weight parameters of the convolutional neural network, and then a trained reconstruction model is obtained.
[0064] Figure 2 The structure of the fixed reconstruction subnet is shown in Figure 2. In the fixed reconstruction subnet, the low-frequency coefficients and high-frequency coefficients are first obtained by Haar wavelet transform, and then the reversible network blocks are stacked (such as Figure 2 The dotted box in the middle) is used to further abstract the potential representation of low-resolution images (i.e., low-frequency components) and high-frequency information, and finally force the high-frequency information z i Becomes independent of the sample and follows a simple known distribution, the standard normal distribution.
[0065] Figure 3 The structure diagram of the variable reconfiguration subnet is shown in Figure 2. In the variable reconfiguration subnet, the dimension of the channel axis is first increased through the squeeze layer, and then through the reversible network block (such as Figure 3 The information stream is mixed by interleaving, and then y is calculated according to the sampling rate. * and z l The division finally forces z l Becomes independent of the sample and follows a standard normal distribution.
[0066] The overall loss function of the reversible deep neural network reconstruction module is calculated as follows:
[0067] L total =λ 1 L measure +λ 2 L recon +λ 3 L distr (1)
[0068] Among them, L total represents the network loss of the reconstruction model, L measure Indicates the loss of measured value, L recon represents the reconstruction loss, L distr represents the distribution loss, λ 1 ,λ 2 and λ 3 They represent the weights of measurement loss, reconstruction loss, and distribution loss respectively, and their values are inversely proportional to the dimension of each loss.
[0069] Measurement value loss L measure The calculation expression is as follows:
[0070]
[0071] Among them l y (.) is the measured value y of the metric output * A function of the difference between the original measurement value y of the image patch; Represents the input image block x 0 Using neural network θ The measured value of the output.
[0072] Reconstruction loss L recon The calculation expression is as follows:
[0073]
[0074] Among them l x (.) is the measure of the original image block and the reconstructed i-th image block x i The function of the difference between (i=0,1,...,L-1); Represents the set of original measurement value y and high-frequency information and low-frequency information {z k} k=i+1,...,L The reconstructed image block is obtained.
[0075] Distribution loss L distr The calculation expression is as follows:
[0076]
[0077] Among them l z (.) is the measure of using neural network f θ The i-th high-frequency information z obtained i Or the Lth low-frequency information z L A function of how it differs from the standard normal distribution.
[0078] In this embodiment, the process specifically includes obtaining the original measurement value, the training process, and the reconstruction process, and the steps are as follows:
[0079] (I) Obtaining the original measurement value
[0080] In compressed sensing, the signal is collected as follows:
[0081] y=Φx (5)
[0082] Where y is the sampled value, Φ is the sampling matrix, and x is the original signal. In this network, Equation (5) is implemented by a convolutional layer for sampling image blocks. Specifically, SR is the sampling rate, and b·b·SR convolution kernels of size b×b are used for convolution calculation, with a step size of b×b, an input channel number of 1, and an output channel number of b·b·SR.
[0083] This convolutional layer is equivalent to performing compressed sensing sampling on each b×b image block in the image, and the output is a tensor of h×w×(SR·b·b), where h and w represent the number of blocks in the height and width dimensions of the input image (i.e., the width and height of the image are divided by b, respectively).
[0084] (II) Training process
[0085] The training process of the reconstruction model in the image compression sensing reconstruction method based on the standardized flow provided in this embodiment includes:
[0086] Parameter settings: sampling rate SR is 0.2, 0.125, 0.05, 0.03; block size b is 32.
[0087] (1) Prepare the BSD300 dataset for network training.
[0088] (2) The dataset is divided into training set, validation set and test set according to the ratio of 80%, 10% and 10%. The training images are randomly cropped to a size of b×b and converted to grayscale.
[0089] (3) Obtain the original sampling value of the image block.
[0090] (4) Construct a fixed reconstruction subnet for image compression sensing, such as Figure 2 As shown. This subnet transforms the input image block x0 through the Haar wavelet transform and the reversible network block to obtain low-frequency components and high-frequency information, and fits the distribution of high-frequency information to the standard normal distribution. The specific steps are as follows:
[0091] (a) First, wavelet transform is used to obtain the low-frequency coefficients and high-frequency coefficients of the image. After wavelet transform, an original image with a height of H, a width of W, and a number of channels C becomes The first C channel tensor is the low-frequency coefficient of the original image, and the rest are the high-frequency coefficients of the image in the horizontal, vertical, and diagonal directions.
[0092] In order to improve the reconstruction quality, we do not discard the high-frequency detail information, but input the transformed low-frequency and high-frequency coefficients together into the subsequent reversible network block, hoping that after sufficient learning of the network, the unknown distribution of the lost information can be mapped to a simple known distribution, such as the standard normal distribution.
[0093] (b) The low-frequency coefficients and high-frequency coefficients are combined and input into 8 reversible network blocks. The reversible network blocks in the fixed reconstruction subnetwork adopt the following formula:
[0094]
[0095] in and is the input of the reversible network block, is the low-frequency component abstracted by the reversible network block, is the high-frequency information abstracted by the reversible network block; φ(.), ρ(.), η(.) represent three arbitrary functions; exp(.) represents an exponential function with the natural constant e as the base, Represents a tensor product operation
[0096] For the first reversible network block, The low-frequency coefficients are obtained through Haar wavelet transform. The high-frequency coefficients are obtained through Haar wavelet transform; if the number of reversible network blocks is more than 1, then for the 2nd to nth reversible network blocks, It is the low-frequency component abstracted by the previous reversible network block. It is the high-frequency information abstracted by the reversible network block of the previous level;
[0097] All reversible network blocks finally obtain It is the abstracted image block x 0 The low-frequency components of It is the abstracted image block x 0 high frequency information.
[0098] The low-frequency coefficient and the high-frequency coefficient are respectively compared with the In addition, since the low-frequency and high-frequency coefficients are not completely equivalent, we Adopt additive transformation to deal with high frequency coefficients Enhanced affine transformation is used to increase the learning ability of the model, such as Figure 2 As shown, the transformation functions φ(·), η(·), ρ(·) can be arbitrary.
[0099] (c) The output of the fixed reconstruction subnet is the low-frequency component x i and high frequency information z i We will convert the low frequency component x i Input the next fixed reconstruction subnet or variable reconstruction subnet, and force the high-frequency information z i Becomes independent of the sample and follows a standard normal distribution.
[0100] (5) Construct a variable reconstruction subnet for image compression sensing. Figure 3 This subnet takes the low-frequency component output by the previous subnet as input and transforms it into the output measurement value y through the squeeze layer and the reversible network block. * and low-frequency information, let y * To fit the original measured value y, let the high-frequency information fit the standard normal distribution. The specific steps are as follows:
[0101] (a) First, use the squeeze layer to increase the dimension of the channel axis of the low-frequency components output by the previous subnet. Assume that the original size of the image is h, w, c, the first two are spatial dimensions, and it is divided into 2×2×c blocks along the spatial dimension, and then each block is reshaped to 1×1×4c, which finally becomes , successfully increasing the dimension of the channel.
[0102] (b) Divide the result after dimensionality increase into tensors in half according to the channel dimension and tensors Input several reversible network blocks and get the output measurement value y * and low-frequency information. The reversible network block transformation in the variable reconfiguration subnetwork adopts the following formula:
[0103]
[0104] in and The input of the reversible network block, represents the further abstracted low-frequency information, represents the further abstracted measurement value, ψ(.), φ(.), ρ(.), η(.) represent four arbitrary functions; exp(.) represents the exponential function with the natural constant e as the base, Represents a tensor product operation;
[0105] For the first reversible network block, the input of the reversible network block is and are the two tensors obtained (dividing the result after dimensionality increase into two tensors in half according to the channel dimension); if the number of reversible network blocks is more than 1, then for the 2nd to nth reversible network blocks, It is the low-frequency information abstracted by the previous reversible network block. It is the measurement value abstracted by the reversible network block at the previous level.
[0106] Since the two tensors are completely equivalent at this time, the first reversible network block uses enhanced affine transformation (Formula 7) for both tensors to increase the learning ability of the model, such as Figure 3 As shown in the figure, the transformation functions φ(·), μ(·), η(·), and ρ(·) can be arbitrary.
[0107] (c) The output of the variable reconstruction subnet is divided into two parts, one of which is the output measurement value y with the same dimension as the original measurement value y = Φx. * , and the other part is low-frequency information z l . Output measurement value y * During the network training process, it will continue to approach the original measurement value y, while forcing the low-frequency information z l Regardless of the sample, it follows the standard normal distribution.
[0108] (6) The fixed reconstruction subnetwork in step (4) is cascaded with the variable reconstruction subnetwork in step (5) to form a deep neural network. During training, the input of the network is the image block prepared in step (2), and the output of the network is the output measurement value y with the same dimension as the original measurement value * And the high (low) frequency information z output by each subnet i (i=1,...,L).
[0109] (7) Train the entire network of step (6) and design a loss function so that the loss value is reduced during the continuous training process, thereby obtaining the trained network parameters. During training, the output measurement value y * The measurement loss L is used between the original measurement values y measure , the original image x i(i=0,...l-1) and the reconstructed x i_rec (i=0,...l-1) uses the reconstruction loss L recon , high (low) frequency information z i (i=1,...,l) and the standard normal distribution using distribution loss L distr That is the cross entropy loss.
[0110] (III) Reconstruction process
[0111] The reconstruction process includes:
[0112] (1) Obtain the original measurement value y of the image block to be reconstructed.
[0113] (2) The measured value y of the image block is reconstructed using the trained deep neural network to obtain a reconstructed image block. The specific process is as follows:
[0114] (a) merging the measured value y of the image block with the random sampling value on the standard normal distribution, inputting the result into one end of the variable reconstruction subnet of the reconstruction model, and performing an inverse operation on the merging result to obtain the low-frequency component, thereby achieving dimensionality increase from the sampling domain to the low-frequency domain;
[0115] (b) The low-frequency components are combined with the sampled values on the standard normal distribution and input into one end of the fixed reconstruction subnet of the reconstruction model. The combined result is subjected to an inverse operation to achieve dimensionality increase from the low-frequency domain to the high-frequency domain, thereby obtaining the reconstructed image block.
[0116] (3) The reconstructed image blocks are merged together in the order of segmentation to obtain the entire reconstructed image.
[0117] The effect of the method of the present invention is further described below.
[0118] Table 1 Comparison of reconstruction quality (peak signal-to-noise ratio) of the embodiment of the present invention and the prior art
[0119]
[0120] It can be seen from Table 1 that the method of the present invention has a significant improvement in reconstruction quality compared with the existing ISTA-Net method.
[0121] Based on the same inventive concept, corresponding to the above embodiments, an embodiment of the present invention further provides an image compression sensing reconstruction system based on standardized flow, the system comprising: a reconstruction module, an input module and an image block reorganization module;
[0122] The reconstruction module is an end-to-end reversible deep neural network composed of several fixed reconstruction subnets and variable reconstruction subnets, which is used to obtain a reconstructed image block according to the measurement value of the image, wherein the variable reconstruction subnet merges the measurement value of the image block with the sampling value on the standard normal distribution of variable dimension, and obtains the low-frequency component of the merged result by inverse operation, thereby realizing dimensionality increase from the sampling domain to the low-frequency domain; the fixed reconstruction subnet combines the low-frequency component with the sampling value on the standard normal distribution by inverse operation, thereby realizing dimensionality increase from the low-frequency domain to the high-frequency domain, and obtains the reconstructed image block.
[0123] The input module is used to obtain the measurement value of the image block to be reconstructed, and input the measurement value of the image block and random sampling on a standard normal distribution into the reconstruction model;
[0124] The image block reorganization module is used to reassemble the reconstructed image blocks in order to obtain a final reconstructed image.
[0125] The specific implementation of each module in this embodiment is as described in the above-mentioned image compression sensing reconstruction method based on standardized flow, and will not be repeated here.
[0126] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0127] The present application is described with reference to the block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each block in the block diagram, as well as the combination of blocks in the block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the block diagram. Figure 1 A system that specifies the functions of a box or boxes.
[0128] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the block Figure 1 A function specified in one or more boxes.
[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the block diagram. Figure 1 A step that specifies a function in one or more boxes.
[0130] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.
Claims
1. A method for image compression sensing reconstruction based on standardized flow, characterized in that: include: Obtaining a reconstruction model, wherein the reconstruction model is an end-to-end reversible deep neural network composed of a plurality of fixed reconstruction subnets and a variable reconstruction subnet; Obtaining a measurement value of the image block to be reconstructed, inputting the measurement value of the image block and random sampling on a standard normal distribution into a reconstruction model, and obtaining a reconstructed image block using an inverse operation of the reconstruction model; The reconstructed image blocks are reassembled in order to obtain the final reconstructed image; The variable reconstruction subnet combines the measured value of the image block with the sampled value on the standard normal distribution of variable dimension, obtains the low-frequency component by inverse operation on the combined result, and realizes the dimension upgrade from the sampling domain to the low-frequency domain; the fixed reconstruction subnet combines the low-frequency component with the sampled value on the standard normal distribution by inverse operation, realizes the dimension upgrade from the low-frequency domain to the high-frequency domain, and obtains the reconstructed image block; The method includes training the reversible deep neural network. In the training stage, the image used for training is preprocessed to obtain an image block x0 of uniform specifications, the image block x0 is input into the fixed reconstruction subnet, and the fixed reconstruction subnet preliminarily obtains low-frequency coefficients and high-frequency coefficients by subjecting the image block x0 to Haar wavelet transformation; based on the low-frequency coefficients and high-frequency coefficients, the low-frequency components and high-frequency information of the image block x0 are further abstracted by using at least one reversible network block; the distribution of the high-frequency information is fitted to the standard normal distribution; the low-frequency components are input into the next adjacent subnet, and the subnet is a fixed reconstruction subnet or a variable reconstruction subnet; The variable reconstruction subnet performs channel axis dimensioning on the low-frequency components output by the previous subnet, and then uses enhanced affine transformation to obtain the output measurement value y* and low-frequency information, and fits the distribution of the low-frequency information to the standard normal distribution; Determine the multi-feature loss function of the reconstruction model according to the difference between the output measurement value y* and the original measurement value y of the image block, the distribution of high-frequency information and the standard normal distribution, the distribution of low-frequency information and the standard normal distribution, and the original image block and the reconstructed image block, and calculate the network training loss; Using the gradient descent algorithm, the weight parameters of the convolutional neural network are updated, and then the trained reconstruction model is obtained; The multi-feature loss function of the reconstruction model is expressed as follows: L total =λ1L measure +λ2L recon +λ3L distr ; Among them, L total represents the network loss of the reconstruction model, L measure Indicates the loss of measured value, L recon represents the reconstruction loss, L distr represents the distribution loss, λ1, λ2 and λ3 represent the weights of the measurement loss, reconstruction loss and distribution loss respectively, and their values are inversely proportional to the dimension of each loss; Measurement value loss L measure The calculation expression is as follows: ; in It is a function that measures the difference between the measured value y* of the output and the original measured value y of the image patch; Represents the input image block x0 using the neural network f θ Output measurement value; Reconstruction loss L recon The calculation expression is as follows: ; in is the measure of the original image block and the reconstructed i-th image block x i The function of the difference between (i=0,1,...,L-1); Represents the set of original measurement value y and high-frequency information and low-frequency information {z k } k=i+1,...,L The reconstructed image block obtained; Distribution loss L distr The calculation expression is as follows: ; in is the measure of using neural network f θ The i-th high-frequency information z i Or the Lth low-frequency information z L A function of how it differs from the standard normal distribution.
2. The image compression sensing reconstruction method based on standardized flow according to claim 1 is characterized in that: Based on the low-frequency coefficients and high-frequency coefficients, at least one reversible network block is used to further abstract the low-frequency components and high-frequency information of the image block x0, wherein the reversible network block adopts the following formula: ; in and is the input of the reversible network block, is the low-frequency component abstracted by the reversible network block, It is the high-frequency information abstracted by the reversible network block; , ρ(.), η(.) represent three arbitrary functions; exp(.) represents the exponential function with the natural constant e as the base, Represents a tensor product operation; For the first reversible network block, The low-frequency coefficients are obtained through Haar wavelet transform. The high-frequency coefficients are obtained through Haar wavelet transform; if the number of reversible network blocks is more than 1, then for the 2nd to nth reversible network blocks, It is the low-frequency component abstracted by the previous reversible network block. It is the high-frequency information abstracted by the reversible network block of the previous level; All reversible network blocks finally obtain It is the low-frequency component of the abstracted image block x0. It is the high-frequency information of the abstracted image block x0.
3. The image compression sensing reconstruction method based on standardized flow according to claim 1 is characterized in that: The variable reconstruction subnet performs channel axis dimensioning on the low-frequency components output by the previous subnet, and then uses enhanced affine transformation to obtain the output measurement value y* and low-frequency information, including the following steps: (1) The variable reconstruction subnet uses the squeeze layer to increase the dimension of the channel axis of the low-frequency components output by the previous subnet; (2) Divide the result after dimensionality increase into two tensors in half according to the channel dimension; (3) Using at least one reversible network block transformation to further abstract low-frequency information and output measurement values from the two tensors, the reversible network block transformation adopts the following formula: ; ; in and The input of the reversible network block, represents the further abstracted low-frequency information, represents the further abstracted measurement value, , ,ρ(.),η(.) represent four arbitrary functions; exp(.) represents the exponential function with the natural constant e as the base, Represents a tensor product operation; For the first reversible network block, the input of the reversible network block is and are the two tensors obtained; if the number of reversible network blocks is more than 1, then for the 2nd to nth reversible network blocks, It is the low-frequency information abstracted by the previous reversible network block. It is the measurement value abstracted by the reversible network block at the previous level.
4. The image compression sensing reconstruction method based on standardized flow according to claim 3 is characterized in that: The squeeze layer is used to increase the dimension of the channel axis of the low-frequency components output by the previous subnet. The specific methods include: For the original image with a height of H, a width of W, and a number of channels of C, it is divided into 2×2×C blocks along the spatial dimension, and then each block is reconstructed into 1×1×4C, and finally becomes Dimension.
5. An image compression sensing reconstruction system based on standardized flow, characterized in that: include: Reconstruction module, input module and image block reorganization module; The reconstruction module is an end-to-end reversible deep neural network composed of several fixed reconstruction subnets and variable reconstruction subnets, and is used to obtain a reconstructed image block according to the measured value of the image, wherein the variable reconstruction subnet combines the measured value of the image block with the sampling value on the standard normal distribution of variable dimension, and obtains the low-frequency component of the combined result by inverse operation, thereby realizing the dimension upgrade from the sampling domain to the low-frequency domain; the fixed reconstruction subnet combines the low-frequency component with the sampling value on the standard normal distribution by inverse operation, thereby realizing the dimension upgrade from the low-frequency domain to the high-frequency domain, and obtains the reconstructed image block; The input module is used to obtain the measurement value of the image block to be reconstructed, and input the measurement value of the image block and random sampling on a standard normal distribution into the reconstruction model; The image block reorganization module is used to reassemble the reconstructed image blocks in order to obtain a final reconstructed image; The system includes training the reversible deep neural network. In the training stage, the image used for training is preprocessed to obtain an image block x0 of uniform specifications, and the image block x0 is input into the fixed reconstruction subnet. The fixed reconstruction subnet preliminarily obtains low-frequency coefficients and high-frequency coefficients by subjecting the image block x0 to Haar wavelet transformation; based on the low-frequency coefficients and high-frequency coefficients, at least one reversible network block is used to further abstract the low-frequency components and high-frequency information of the image block x0; the distribution of the high-frequency information is fitted to the standard normal distribution; and the low-frequency components are input into the next adjacent subnet, which is a fixed reconstruction subnet or a variable reconstruction subnet. The variable reconstruction subnet performs channel axis dimensioning on the low-frequency components output by the previous subnet, and then uses enhanced affine transformation to obtain the output measurement value y* and low-frequency information, and fits the distribution of the low-frequency information to the standard normal distribution; Determine the multi-feature loss function of the reconstruction model according to the difference between the output measurement value y* and the original measurement value y of the image block, the distribution of high-frequency information and the standard normal distribution, the distribution of low-frequency information and the standard normal distribution, and the original image block and the reconstructed image block, and calculate the network training loss; Using the gradient descent algorithm, the weight parameters of the convolutional neural network are updated, and then the trained reconstruction model is obtained; The multi-feature loss function of the reconstruction model is expressed as follows: L total =λ1L measure +λ2L recon +λ3L distr ; Among them, L total represents the network loss of the reconstruction model, L measure Indicates the loss of measured value, L recon represents the reconstruction loss, L distr represents the distribution loss, λ1, λ2 and λ3 represent the weights of the measurement loss, reconstruction loss and distribution loss respectively, and their values are inversely proportional to the dimension of each loss; Measurement value loss L measure The calculation expression is as follows: ; in It is a function that measures the difference between the measured value y* of the output and the original measured value y of the image patch; Represents the input image block x0 using the neural network f θ Output measurement value; Reconstruction loss L recon The calculation expression is as follows: ; in is the measure of the original image block and the reconstructed i-th image block x i The function of the difference between (i=0,1,...,L-1); Represents the set of original measurement value y and high-frequency information and low-frequency information {z k } k=i+1,...,L The reconstructed image block obtained; Distribution loss L distr The calculation expression is as follows: ; in is the measure of using neural network f θ The i-th high-frequency information z i Or the Lth low-frequency information z L A function of how it differs from the standard normal distribution.
