Lightweight image super-resolution method based on convolution kernel re-parameterization recalibration
By adopting a heavy-parameterized kernel recalibration method and an efficient context feature fusion block in the image super-resolution network, the deficiencies of the group convolutional network in terms of expression ability and receptive field are solved, and a more efficient image super-resolution effect is achieved. and lower number of parameters.
Patent Information
- Application Number
- CN202410730517.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Existing lightweight image super-resolution networks based on group convolution have deficiencies in expression capabilities and receptive fields, resulting in low application efficiency in actual scenarios.
A kernel recalibration method based on reparameterization is proposed to fuse the features of each convolution kernel with the parameters of other kernel channels through recalibration weights, enhance the expressive ability of the model, and design efficient contextual feature fusion blocks and progressive Multi-scale recalibration blocks,forming lightweight kernel recalibration guided networks.
While keeping the inference cost unchanged, the feature representation capability is significantly enhanced, the performance and applicability of the model are improved, and the number of parameters is greatly reduced, providing excellent image super-resolution effects.
Smart Images

Figure CN118674622A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of lightweight depth models, and in particular relates to a lightweight image super-resolution method based on convolution kernel re-parameterization and recalibration. Background Art
[0002] As a persistent low-level vision task, image super-resolution (SR) aims to enhance the visual quality of high-resolution (HR) images derived from low-resolution (LR) inputs. In recent years, in order to overcome the limitation of compression algorithms that rely on original training data and avoid tedious fine-tuning processes, a lot of efforts have been made to design various lightweight model architectures, among which group convolution is widely adopted. Figure 1 As shown in (b), the concept behind group convolution is to divide the feature map into several segments and use independent 2D convolution kernels to operate on each segment along the channel dimension, thereby reducing the number of parameters and achieving parallel processing of multiple feature maps. Figure 1 In the special case shown in (c), the depthwise convolution requires a convolution kernel responsible for a single channel, further reducing the computational cost.
[0003] Grouped convolution was first introduced in AlexNet as a sparse variant of standard convolution. Figure 1 As shown in , group convolution divides the input features into multiple fragments, facilitating independent convolution operations for each fragment and significantly reducing the computational load. ResNeXt adopts multiple parallel paths or groups within the same layer, enabling the network to learn broader and more diverse content features. ShuffleNet applies group convolution to each point-by-point convolution to further reduce computational complexity. Subsequently, Ma et al. introduced ShuffleNet v2 to improve physical resource efficiency by considering the impact of GPU memory access bandwidth. Depthwise separable convolution is a special case of group convolution, which uses separate kernels for different channels, thereby reducing parameters and operations. Haas et al. re-evaluated the intra-kernel correlation in depthwise separable convolution, and continued to improve model performance without introducing additional complexity.
[0004] Group convolution has been widely used in the design of lightweight architectures for SR. However, existing networks based on group convolution still have some shortcomings, which are caused by two main factors. First, compared with standard dense convolution, group convolution can be conceptualized as a combination of multiple independent 2D convolution kernels, where each specific kernel channel receives its corresponding feature map channel as its segmentation input, which may potentially limit the expressiveness of the model. Second, the depth of lightweight networks is usually shallow, resulting in a narrow receptive field. For example, the lightweight network IMDN only involves 26 convolutional layers of size 3×3 to extract features. These combined factors lead to the inefficiency of applying group convolutions in SR models, limiting their practicality in real-world scenarios. Therefore, integrating group convolution into lightweight SR networks remains a major challenge.
[0005] Structural reparameterization is a commonly used technique that enables models to have both a “simple” architecture and “excellent” parameters. ACNet builds two additional convolution branches in the vertical and horizontal directions during training, which are converted back to a single branch during inference. RepVGG proposes a simple structure that contains only one type of operator, namely 3×3 convolution followed by ReLU, making it very fast on general-purpose computing devices such as GPUs. RepRFN proposes a multi-scale feature fusion structure based on reparameterization, which enables the model to fuse features of various scales and high-frequency edges. In addition, inspired by the visual transformer, Ding et al. found that large-size convolution kernels outperform multiple small-size convolution kernels and used reparameterization of small kernels to remedy the optimization problem. Compared with the above methods that involve changing the predefined model structure, our proposed PMRB enhances the prior knowledge of the existing structure by focusing on the convolution kernel parameters.
[0006] In order to overcome the above limitations, the present invention combines reparameterization with group convolution and fuses the features of each convolution kernel to increase the expressive power of the model. Summary of the invention
[0007] In order to overcome the limitations of group convolution in SR, such as Figure 1As shown in (d), the present invention first proposes a novel re-parameterized kernel recalibration convolution (RecConv), which combines the parameters of a specific kernel channel with the parameters of other kernel channels through recalibration weights, allowing the kernel to participate in other parts of the model to learn different novel representations. After training, the additional recalibration weights can be re-parameterized with the original parameters to generate the final transformation weights, which are saved and used only for inference. Therefore, the resulting convolution module retains the same inference cost as the standard convolution, but enhances its feature representation capability. In addition, in order to utilize contextual information and expand the receptive field, we design an Efficient Context Feature Fusion Block (CFFB), which is built on the basis of two-way fused RecConvs for local feature and contextual feature extraction. Inspired by the information distillation mechanism in SR, we introduce a Progressive Multi-scale Recalibration Block (PMRB), which divides the previously extracted features into two parts, one for convolution processing and the other for further distillation of fine-grained groups (RCGs) using residual CFFB. Therefore, the proposed PMRB is able to gradually aggregate multi-scale features and learn more discriminative representations with minimal parameters. By using PMRB as a building block, the present invention proposes Figure 2 The lightweight Kernel Recalibration Guided Network (KRGN) shown in Figure 5 achieves a better balance between performance and applicability in SR tasks.
[0008] The specific technical scheme of the lightweight image super-resolution method based on convolution kernel re-parameterization and recalibration of the present invention is as follows: Given an input low-resolution image I LR , the specific steps are as follows:
[0009] Step 1: Shallow feature extraction, the process is described as follows:
[0010] F0=H SFE (I LR )=W0*L LR
[0011] Among them, H SFE represents a 3×3 convolution with weight W0, and the symbol * represents the convolution operation; F0∈R H×W×C It represents the shallow features output after shallow feature extraction, R represents the input image, H, W and C represent the feature map height, weight and number of channels respectively.
[0012] Step 2: The shallow feature F0 is fed into the hierarchical feature transform HFT, and D progressive multi-scale recalibration blocks PMRBs are used for deep feature extraction. The process of hierarchical feature transformation is expressed as:
[0013]
[0014] in is the feature extraction operation of the d-th PMEB, F d represents the output of the d-th PMEB;
[0015] Step 3: All the outputs of these PMRBs are connected and subjected to dense feature fusion DFF. Specifically, two stacked convolutional layers are used to fuse all hierarchical features. The process of dense feature fusion can be expressed as:
[0016] F DFF =W3*f LRelU ((W1*[F0,F1,...,F D ]))+F0
[0017] Where W3 and W1 represent the weights of 3×3 convolution and 1×1 convolution respectively, and f LRelU represents the LeakyReLU activation function, [F0,F1,...,F D ] represents the concatenation of features generated by all PMEBs along the channel dimension;
[0018] Step 4: The aggregated features are finally upsampled to generate a super-resolution SR image. The process can be expressed as
[0019] I SR =F up (W3*F DEF )
[0020] Among them I SR is the output of the reconstructed SR image, F up is the pixel shuffle function;
[0021] Step 5: Optimize using the dual domain loss function:
[0022]
[0023] Where N is the total number of samples, θ is a parameter, and denotes the i-th reconstructed SR image and the ground truth HR image, respectively, ||·||1 denotes the L1 norm used to calculate the absolute difference between the predicted output and the true output, and F denotes the fast Fourier transform that converts the image signal from the pixel domain to the frequency domain; in addition, the hyperparameter λ is empirically set to 0.1 to balance the dual-domain training.
[0024] Specifically, the proposed PMRB consists of two parts, a distillation separation module and a feature fusion module. For each step, the input feature Fin is divided into two parts, one of which is processed by the distillation separation module and the other is input to the feature fusion module. The function of PMRB can be written as:
[0025] F dis1 ,F fus1 =H RCG1 (Fin),H RL1 (Fin)
[0026] F dis2 ,F fus =H RCG2 (F dis1 ),H RL2 (F fus1 )
[0027] F dis3 ,F fus3 =H RCG3 (F dis2 ),H RL3 (F fus2 )
[0028] F fus4 =H RL4 (F dis3 )
[0029] Among them, H RCGi It is a function of RCG (Residual Efficient Feature Group), responsible for generating distillation features F disi ;H RLi Indicates the fusion feature F that is being processed fusi Refinement function; in PMRB, H RLi It consists of convolution followed by activation operator, H RCGi It is constructed by stacking multiple context feature fusion blocks (CFFB) in sequence and using residual connections to facilitate the information flow between adjacent blocks. Finally, all fused features F fusi are connected together as the output of the PMRB:
[0030] F out =H agg ([F fus1 ,F fus2 ,F fus3 ,F fus ])+Fin
[0031] Among them, H agg represents the fusion function, which contains a 1×1 convolution followed by a LeakyReLU function to aggregate features into a compact representation.
[0032] RCG consists of many stacked context feature fusion blocks (CFFB). CFFB is a dual-path architecture. One path is a local feature extractor that uses a convolution kernel with a smaller receptive field to extract local features, and the other path is a context feature extractor that uses a convolution kernel with a larger receptive field to extract global context features. The local feature extractor and the context feature extractor use a recalibrated convolution RecConv.
[0033] RecConv uses the reconvolution kernel to convolve the original convolution kernel, and replaces the original convolution kernel in the original network after training. Specifically, by using the kernel tensor W r ∈R C×C×K×K The original base weight W b ∈R C×1×K×K Converted to the transformed weight W t ∈R C×1×K×K , where K represents the kernel size, the kernel recalibration process can be defined as:
[0034] W t =W b *W r +W b
[0035] Where * represents the dense convolution operator. In this formula, residual learning is used to force W t Learning base weights W b The increment on .
[0036] The beneficial effects of the present invention are as follows:
[0037] 1. This paper proposes a novel kernel recalibration strategy to establish connections between feature channels in traditional group convolution, thereby enhancing the representation ability of the model without introducing additional costs or changing the model structure. To the best of our knowledge, this paper is the first to apply reparameterization to establish additional connections between convolution kernels in SR tasks. In future work, the effect of RecConv can be further improved by introducing more advanced operations.
[0038] 2. The present invention proposes an efficient contextual feature fusion block (CFFB) based on two-way fusion and dilation of recalibrated convolution (RecConv). The proposed CFFB based on two-way fusion of dilation and group convolution can render local and contextual information simultaneously. In addition, based on the residual efficient feature module group (RCG), we further propose a progressive multi-scale recalibration block (PMRB) to gradually aggregate multi-scale features, utilize semantic features and extract distilled information.
[0039] 3. We propose a novel re-parameterized kernel recalibration guided network (KRG N) for lightweight SR, which can greatly reduce the parameters by nearly one third while still providing excellent performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a schematic diagram of the grouped convolution structure in the prior art;
[0041] Figure 2 It is a structural schematic diagram of the model of the present invention;
[0042] Figure 3 The general form of the kernel recalibration strategy is shown in Figure 2.
[0043] Figure 4 W in different layers b and W t Similarity matrix diagram of the first 64 channels;
[0044] Figure 5 Schematic diagram of visual comparison of KRGN and other lightweight SR methods under ×4SR;
[0045] Figure 6 Schematic diagram of the results of studying the inference speed of Set5 using ×4SR. DETAILED DESCRIPTION
[0046] In order to better understand the purpose, structure and function of the present invention, the following is a further detailed description of a lightweight image super-resolution model based on convolution kernel re-parameterization and recalibration of the present invention in conjunction with the accompanying drawings.
[0047] like Figure 2 As shown, the lightweight image super-resolution method based on convolution kernel re-parameterization and recalibration of this embodiment is based on a lightweight kernel recalibration guided network (KRGN). First, shallow feature extraction (SFE) is performed to extract surface features from low-resolution image input; then hierarchical feature transformation (HFT) is performed, and through multiple stacked progressive multi-scale recalibration blocks (PMRBs), different multi-scale receptive fields can be used to capture more discriminative features; then dense feature fusion (DFF) is performed to integrate the hierarchical features generated by all PMRBs; finally, upsampling is performed to map the semantic features back to the high-resolution image space. Given an input low-resolution image I LR , the specific steps are as follows:
[0048] Step 1: Shallow feature extraction, the process can be described as:
[0049] F0=H SFE (I LR )=W0*L LR
[0050] Among them, H SFE represents a 3×3 convolution with weight W0. The symbol * represents the convolution operation. For simplicity, the bias term is omitted. F0∈R H×W×C It represents the shallow features output after shallow feature extraction, R represents the input image, H, W and C represent the feature map height, weight and number of channels respectively.
[0051] Step 2: The shallow feature F0 is fed to the hierarchical feature transform HFT to extract deep features using multiple progressive multi-scale recalibration blocks PMRBs. Assuming the number of PMRBs is D, the process of hierarchical feature transformation can be expressed as:
[0052]
[0053] in is the feature extraction operation of the d-th PMEB, F d represents the output of the dth PMEB; the HFT part consists of multiple stacked PMRBs, which refines the extracted shallow features F0 in iterative steps, thereby improving its representation.
[0054] Step 3: In order to exploit the rich semantic information inherent in the refined features with different receptive fields, all the outputs of these PMRBs are concatenated and subjected to dense feature fusion DFF, specifically using two stacked convolutional layers to fuse all hierarchical features. The process of dense feature fusion can be expressed as:
[0055] F DFF =W3*f LRelU ((W1*[F0,F1,...,F D ]))+F0
[0056] Where W3 and W1 represent the weights of 3×3 convolution and 1×1 convolution respectively, and f LRelU represents the LeakyReLU activation function, [F0,F1,...,F D ] represents the concatenation of features generated by all PMEBs along the channel dimension. The 1×1 convolution is introduced to ensure the cross-national equivalence of our network, and the following 3×3 convolution is used to enhance the fused feature representation. In addition, a global residual learning strategy is incorporated into DFF to ease the learning difficulty.
[0057] Step 4: The aggregated features are finally upsampled to generate a super-resolution SR image. The process can be expressed as
[0058] I SR =F up (W3*F DEF )
[0059] Among them I SRis the output of the reconstructed SR image, F up is the pixel shuffle function.
[0060] Step 5: In order to enhance the image quality in spatial and frequency domains, a dual-domain loss function is used for optimization:
[0061]
[0062] Where N represents the total number of samples, θ represents the parameters of the proposed KRGN, and denotes the i-th reconstructed SR image and the ground truth HR image, respectively, ||·||1 denotes the L1 norm used to calculate the absolute difference between the predicted output and the true output, and F denotes the fast Fourier transform that converts the image signal from the pixel domain to the frequency domain; in addition, the hyperparameter λ is empirically set to 0.1 to balance the dual-domain training.
[0063] Specifically, if Figure 2 As shown in Figure 1, the hierarchical feature transformation goes through multiple stacked PMRBs, which is a typical progressive refinement module. Inspired by the information distillation mechanism, the proposed PMRB consists of two parts, a distillation separation module and a feature fusion module. For each step, the input feature Fin is divided into two parts, one of which is processed by the distillation separation module and the other is input to the feature fusion module. The function of PMRB can be written as:
[0064] F dis1 ,F fus1 =H RCG1 (Fin),H RL1 (Fin)
[0065] F dis2 ,F fus2 =H RCG2 (F dis1 ),H RL2 (F fus1 )
[0066] F dis3 ,F fus3 =H RCG3 (F dis2 ),H RL3 (F fus2 )
[0067] F fu =H RL (F dis3 )
[0068] Among them, H RCGi It is a function of RCG (Residual Efficient Feature Group), responsible for generating distillation features F disi ;H RLiIndicates the fusion feature F that is being processed fusi Refinement function; in PMRB, H RLi It consists of convolution followed by activation operator, H RCGi It is constructed by stacking multiple context feature fusion blocks (CFFB) in sequence and using residual connections to facilitate the information flow between adjacent blocks. Finally, all fused features F fusi are connected together as the output of the PMRB:
[0069] F out =H agg ([F fus1 ,F fus2 ,F fu ,F fus4 ])+Fin
[0070] Among them, H agg represents the fusion function, which contains a 1×1 convolution followed by a LeakyReLU function to aggregate features into a compact representation.
[0071] The existing information distillation block in SR uses a channel splitting operation to divide the input features into two parts, resulting in inefficient information distillation, while PMRB directly feeds the input features into the distillation and refinement modules working simultaneously. In this way, the integrity of the information can be maintained. RCG consists of many stacked CFFBs with two paths, which can fuse spatial information of different scales and increase the receptive field.
[0072] In SR tasks, there is a direct relationship between the size of the receptive field and the overall quality of the reconstructed image. Traditional convolution operations are usually associated with a predefined kernel size, which limits the spatial boundaries of feature extraction defined by the convolution kernel. This approach leads to the extraction of local-based feature information, which ultimately limits the network's capabilities in image reconstruction tasks. Therefore, our goal is to design a lightweight CFFB that fuses spatial information at different scales and increases the receptive field. Figure 2 As shown in the figure, RCG consists of many stacked context feature fusion blocks (CFFB), which is a typical dual-path architecture based on the fusion of spatial information at different scales. One path is a local feature extractor, which uses convolution kernels with smaller receptive fields to extract local features, and the other path is a context feature extractor, which uses convolution kernels with larger receptive fields to extract global context features. CFFB fuses the features of these two paths. The context feature fusion block uses RecConv with expansion, which not only reduces the parameters but also expands the receptive field, thereby allowing the extraction of large-scale spatial context features. Therefore, the features of the two paths are processed by parallel convolutions with different receptive fields, thereby achieving multi-scale feature fusion.
[0073] In addition, the proposed CFFB has a significant lightweight advantage over standard convolution, which is mainly due to the implementation of the proposed RecConv. In essence, RecConv is a group dilated convolution. When the number of groups is equal to the number of channels, RecConv actually behaves as a depthwise convolution, where the parameters of the RCG module composed of 8 CFFBs are basically negligible compared to standard convolution. In addition, RecConv relies on heavy parameterization, avoiding the significant parameters and computational overhead associated with multi-branch structures. Therefore, although CFFB is lightweight, it effectively enhances the representation ability of the model.
[0074] As a core component, deep kernel recalibration convolution (RecConv) can be used as a substitute for conventional convolution to reduce channel redundancy, thereby further improving the representation ability of KRGN. The current mainstream method uses deep convolution to build a lightweight model, which is characterized by C in =C out =g, where C in , C out and g represent the number of input channels, output channels, and groups, respectively. Obviously, a specific kernel of the deep convolution only focuses on a single channel of the input feature map, which inevitably leads to high redundancy within the channel dimension. To solve this problem, Figure 3 As shown in Figure 2, we propose a kernel recalibration strategy, which is to convolve the original convolution kernel with a reconvolution kernel and replace the original convolution kernel in the original network after training. The purpose of recalibrating the channel kernel is to establish connections between different channels, allowing the kernel to turn its attention to previously unexplored aspects of the channel dimension. By utilizing the kernel tensor W r ∈R C×C×K×K The original base weight W b ∈R C×1×K×K Converted to the transformed weight W t ∈R C×1×K×K , where K represents the kernel size, the kernel recalibration process can be defined as:
[0075] W t =W b *W r +W b
[0076] Where * represents the dense convolution operator. In this formula, residual learning is used to force W t Learning base weights W b After kernel recalibration, we can use the intermediate weight W r Indirectly build W through dense convolution t The cross-channel connection between t Each channel is connected to W b All channels are related.
[0077] More specifically, RecConv has the following advantages: 1. Preserve the original structure; during training, the gradient will pass through W t Back propagation to W b , and add weight W r can be reparameterized to W for inference t . Due to W t With W b have the same shape, so the reparameterized model will be structurally the same as the baseline and will not incur additional inference costs; 2. Low computational complexity; the kernel recalibration strategy is only performed on the base weights, not on the batches of training samples. In addition, the weight W r It can also be further grouped to transform dense convolution into group convolution. Therefore, the proposed RecConv introduces minimal additional computation during training; 3. Enhance model expressiveness; The proposed Reconv can significantly reduce channel redundancy by re-establishing additional connections between kernel parameters. Therefore, our KRGN is able to learn different combinations of existing representations, resulting in superior performance.
[0078] Following most existing works, we utilize the DIV2K dataset as our training data, which provides 800 high-quality RGB images. To create LR images from HR images, we adopt the bicubic downsampling technique. For testing, we adopt several standard benchmark datasets, including Set5, Set14, BSD100, Urban100, and Manga109. These datasets exhibit different characteristics, which enhances the versatility of our method. For qualitative evaluation, we convert the generated images to YCbCr color space and calculate the Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index (SSIM) on the Y channel as evaluation metrics. In addition, to measure the computational complexity, following most existing methods, Multi-Adds are calculated by restoring 1,280×720 HR images.
[0079] The final KRGN of this embodiment is built on the residual backbone with 9 PMRBs, and the number of channels is set to 64 to achieve better SR quality. In each RCG, the number of CFFBs is empirically set to 3. The convolution kernel size of the two RecConvs in the CFFB is configured as 3×3. In addition, the number of groups in the two RecConvs is set to 32, and the dilation rates are 1 and 3, respectively.
[0080] To train the proposed model, we randomly crop 64 patches of size 96×96 from each training batch of LR images. In addition, following previous methods, we use common data augmentation strategies to enhance the training data, including random rotations of 90°, 180°, 270° and horizontal flipping. The proposed model is optimized using the Adam optimizer, where the learning rate is initialized to 5×10 -4 , and a cosine annealing scheme with warm restarts is used to decay the learning rate, as it speeds up the training process and provides superior performance. The learning rate is restarted every 250 epochs until the training is stopped at 1500 epochs. Our method is trained on a PyTorch platform with a Titan RTX GPU.
[0081] To clearly illustrate the enhancement in reconstruction performance brought by our proposed blocks, we conduct a series of experiments, as shown in Table 1. In these experiments, we systematically replace PMRB, RCG, and CFFB with their respective variants, resulting in four additional blocks, by retraining the model from scratch.
[0082] Table 1
[0083]
[0084] Referring to the first model in Table 1 (the second column of Table 1), which lacks all three proposed components, we replace PMRB with the Information Multi-Distillation Block (IMDB), which adopts a similar information distillation mechanism as our PMRB. It is obvious that removing PMRB leads to a significant degradation in reconstruction performance, accompanied by a substantial increase in the number of parameters and Multi-Adds. Compared with the full model in the fifth column, the PSNR and SSIM values in Set5 are reduced by 0.09dB and 0.0011, respectively. In addition, it is worth noting that the number of parameters has doubled and the Multi-Adds has increased nearly three times. This change occurs because we adopt a re-parameterization-based group convolution in PMRB, which greatly reduces the computational overhead and provides our network with stronger generalization capabilities.
[0085] In addition, we also study the impact of RCG on PMRB. Referring to the third column model in Table 1, we replace all RCGs with standard residual blocks containing 3×3 convolutions. We can observe that the resulting model becomes more lightweight, but the PSNR and SSIM loss is serious, which shows that our RCG has stronger nonlinear expression ability than the standard residual block. Finally, we modify CFFB by performing RecConvs by channel and removing the dilation rate. The two-way fusion structure is also changed, and all layers are rearranged in order. Comparing the fourth column model with the final model, it is worth noting that the number of parameters and MultiAdds is only slightly increased, but the performance gain is outstanding (PSNR: +0.04dB on Set5). These results further confirm that capturing multi-scale information is beneficial to SR reconstruction. In general, the ablation study fully demonstrates the rationality and effectiveness of our model design.
[0086] Validation of kernel recalibrated convolutions: For most existing SR methods, group convolutions have been extensively used to build parameter-efficient networks. To demonstrate the generalizability, group convolutions in some representative lightweight SR networks, such as cascaded residual networks (CARNs), enhanced super-resolution group CNNs (ESRGCNNs), and lightweight group convolutional networks (LGCNs), are replaced by RecConv. Referring to the results in Table 2, the effectiveness of RecConv in the PSNR gain of 4× SR, the models ending with '+' represent the use of RECCONV. It is obvious that the proposed RecConv significantly improves the performance of various existing SR models, verifying the transferability of RecConv. It should be emphasized that RecConv only associates the previously independent convolution kernels and does not change the original structure of the model. In addition, the extra parameters introduced by recalibration can be reparameterized during inference to align with the original convolution, highlighting the plug-and-play nature of the proposed RecConv, which is characterized by high efficiency and cost-effectiveness.
[0087] Table 2
[0088] Model Set5 Set14 BSD100 Urban100 Gain CARN 31.92 28.42 27.44 25.62 - CARN+ 32.03 28.49 27.53 25.66 0.0775 ESRGCNN 32.05 28.57 27.58 26.13 - ESRGCNN+ 32.11 28.69 27.66 26.20 0.0825 LGCN 31.79 28.32 27.42 25.53 - LGCN+ 31.84 28.39 27.53 25.62 0.0800 Ours 32.31 28.62 27.59 26.23 - Ours+ 32.35 28.70 27.65 26.30 0.0625
[0089] Verification of channel redundancy reduction: In our KRGN, RecConv is essentially a group convolution where the number of groups is half the size of the feature channel. The sparsity of the kernel in the group convolution inevitably leads to channel redundancy. In order to evaluate the original weight W b and the reparameterized weights W t We use the Kullback-Leibler (KL) divergence to measure the similarity between different channel pairs, where a larger KL divergence indicates a lower similarity, and thus a lower degree of channel redundancy. We extract W in RecConvs from the trained KRGN band W t , and softmax is applied to each K×K kernel channel. Specifically, for ease of display, the first 64 channels are used to calculate the KL divergence between each pair of channels, resulting in a 64×64 similarity matrix for the sampling layer. Figure 4 , we show the similarity matrices of Wb and Wt at five stages in the network. It can be seen that the KL divergence of Wb is significantly lower than that of Wt, which means that there is a high degree of redundancy between the channels of Wb, while there is a large degree of differentiation between the kernel channels of Wt. The reason behind this phenomenon is that RecConv explicitly lets individual channels pay attention to other untouched channels, resulting in the learning of different novel representations. Therefore, we can conclude that kernel recalibration effectively reduces the channel redundancy of the network and provides better generalization ability.
[0090] Validation of dilation selection in RecConv: We evaluate our method using various dilation factors to demonstrate the impact of multi-scale information. In our experimental setup, we study dilation factors of 1, 2, 3, and 4, and the experimental results are summarized in Table 3. As can be seen from Table 3, the PSNR value increases with the dilation factor from 1 to 3, but decreases when the dilation factor is set to 4. These findings indicate that although larger dilation leads to wider receptive fields, it does not always lead to improvements in PSNR. In general, super-resolution, as a classic low-level task, does not involve high-level semantic information. Therefore, an appropriate receptive field size is crucial for effectively extracting spatial context features. Based on these observations, we set the dilation factor in KRGN to 3 to achieve excellent results.
[0091] Table 3
[0092]
[0093] Verification of hyperparameters in RCG: In our RCG, there are two hyperparameters to be studied, namely the number of groups N in RecConv GP and the number of CFFBs in RCG N CB Referring to Table 4, we report the performance of our method on various N GP and N CB The parameters, MultiAdds, runtime, and PSNR results (dilation = 3) under the selected hyperparameters are shown to verify the rationality of the hyperparameter selection. The first three models in Table IV show similar number of parameters and computational complexity, but the third model shows superior runtime performance. In addition, for N GP =16 and N CB = 3, it is obvious that the reduction in the number of convolution groups significantly increases the size of the model. Considering the goal of lightweight network design, we choose to fix N in KRGN. GP =32 and NCB =3 to achieve a better trade-off between effectiveness and efficiency.
[0094] Table 4
[0095]
[0096] Complexity Analysis: We conduct model complexity analysis by comparing KRGN with other classic lightweight SISR models in terms of common metrics including network parameters and execution time. Figure 6 , it is clear that our KRGN significantly outperforms all other lightweight SR models. Figure 6 In the figure, the area of the circle represents the parameter size of the model. Our model is only one-third of the size of CARN and also uses group convolution, but the PSNR is 0.22dB higher than it. In addition, compared with models with the same scale parameters, such as FDIWN and EMASRN, our KRGN shows a significant speed advantage. Although our KRGN is not the fastest model, the execution time is acceptable considering the PSNR gain. Through comprehensive comparison, we can conclude that our KRGN achieves a better balance between model size, performance, and inference speed.
[0097] Comparison with State-of-the-art Methods: To demonstrate the effectiveness of our model, we compare our model with other lightweight state-of-the-art methods: SRCNN, VDSR, LapSRN, CARN, IDN, IMDN, RFDN, EMASRN, LBNet, RepRFN, FDIWN, MLRN. Table 5 shows the average PSNR and SSIM comparison results between different lightweight SR models with upscaling factors of ×2, ×3, and ×4 on the four datasets. Initially, it is obvious that our proposed KRGN achieves the highest PSNR / SSIM values on all scales of the test datasets. In addition, despite having a comparable number of parameters to models such as FDIWN and RFDN, their performance is significantly inferior to our KRGN. Specifically, compared to the recent re-parameterization-based work RepRFN, our KRGN outperforms it by a large margin, demonstrating the superiority of the proposed kernel recalibration strategy.
[0098] Table 5
[0099]
[0100]
[0101]
[0102] In addition, we also conduct qualitative comparisons to more intuitively demonstrate the effectiveness of our proposed KRGN. Figure 5, we provide visualization results of various methods on the Urban100 (×4) dataset. By comparing the horizontal image patches shown, it is obvious that most lightweight SR methods have difficulty reconstructing complex structures such as the lattices of buildings and the strips of railings, usually resulting in loss of details and blurred appearance. In contrast, our proposed KRGN can produce superior visual results with sharper edges, providing a more pleasing overall output. Overall, our method not only has better visual details, but also outperforms existing state-of-the-art methods in both quantitative and qualitative comparisons.
[0103] It is to be understood that the present invention is described by some embodiments, and it is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the scope of protection of the present invention.
Claims
1. A lightweight image super-resolution method based on convolution kernel reparameterization and recalibration. It is characterized in that Given an input low-resolution image I LR , the specific steps are as follows: Step 1: Shallow feature extraction, the process is described as follows: F 0 =W 0 *L LR Among them, F 0 ∈R H×W×C It represents the shallow features output after shallow feature extraction, R represents the input image, H, W and C represent the feature map height, weight and number of channels respectively; the symbol * represents the convolution operation, and the weight is W 0 ; Step 2: Hierarchical feature conversion. Hierarchical feature conversion uses D progressive multi-scale recalibration blocks to extract deep features. The process is described as: in is the feature extraction operation of the dth progressive multi-scale recalibration block, F d represents the output of the d-th progressive multi-scale recalibration block; The progressive multi-scale recalibration block includes a distillation separation module and a feature fusion module. For each step, the input feature Fin is divided into two parts, one of which is processed by the distillation separation module and the other is input into the feature fusion module. The process is described as follows: F dis1 ,F fus1 =H RCG1 (Fin),H RL1 (Fin) F dis2 ,F fus2 =H RCG2 (F dis1 ),H RL2 (F fus1 ) F dis3 ,F fus3 =H RCG3 (F dis2 ),H RL3 (F fus2 ) F fus4 =H RL (F dis3 ) Among them, H RCGi It is a function of the residual efficient feature module group, responsible for generating the distillation feature F disi ;H RLi Indicates the fusion feature F that is being processed fusi The refinement function; Finally, all fusion features F fusi are concatenated together as the output of the progressive multi-scale recalibration block F out : F out =H agg ([F fus1 ,F fus2 ,F fus ,F fus4 ])+Fin Among them, H agg represents the fusion function, which includes a 1×1 convolution followed by a LeakyReLU function; The residual efficient feature module group is composed of stacked context feature fusion blocks CFFB, the context feature fusion block is a dual-path architecture, one path is a local feature extractor, and the other path is a context feature extractor, and then the dual-path output is feature fused to obtain the output of the context feature fusion block; wherein the local feature extractor and the context feature extractor use recalibrated convolution RecConv; RecConv uses the reconvolution kernel to convolve the original convolution kernel, and replaces the original convolution kernel in the original network after training. Specifically, by using the kernel tensor W r ∈R C×C×K×K The original base weight W b ∈R C×1×K×K Converted to the transformed weight W t ∈R C×1×K×K , where K represents the kernel size, and the kernel recalibration process is defined as: IN t =In b *IN r +W b Where * represents a dense convolution operator, and residual learning is used to force W t Learning the base weights W b The increment on Step 3: All outputs of the progressive multi-scale recalibration block are concatenated and densely fused. Specifically, two stacked convolutional layers are used to fuse all hierarchical features. The process is described as follows: F DFF =W 3 *f LRelU ((W 1 *[F 0 ,F 1 ,...,F D ]))+F 0 Where W 3 and W 1 Represent the weights of 3×3 convolution and 1×1 convolution respectively, f LRelU represents the LeakyReLU activation function, [F 0 ,F 1 ,...,F D ] represents the concatenation of features generated by all progressive multi-scale recalibration blocks along the channel dimension; Step 4: Finally, the super-resolution SR image is generated by upsampling. The process is described as follows: I SR =F up (W 3 *F DEF ) Among them I SR is the output of the reconstructed SR image, F up is the pixel shuffle function.
2. A lightweight image super-resolution method based on convolution kernel re-parameterization and recalibration according to claim 1, It is characterized in that The method uses a dual-domain loss function L(θ) for optimization: Where N is the total number of samples, θ is a parameter, and denote the i-th reconstructed SR image and ground truth HR image, respectively, ||·|| 1 represents the L1 norm used to calculate the absolute difference between the predicted output and the true output, F represents the fast Fourier transform that converts the image signal from the pixel domain to the frequency domain, and λ is a hyperparameter.
3. The lightweight image super-resolution method based on convolution kernel re-parameterization and recalibration according to claim 1, It is characterized in that The shallow feature extraction process is performed through a 3×3 convolution.
4. The lightweight image super-resolution method based on convolution kernel re-parameterization and recalibration according to claim 1, It is characterized in that The number of the progressive multi-scale recalibration blocks is 9.
5. The lightweight image super-resolution method based on convolution kernel re-parameterization and recalibration according to claim 1, It is characterized in that In each residual efficient feature module group, the number of the context feature fusion blocks is 3.
6. The lightweight image super-resolution method based on convolution kernel re-parameterization and recalibration according to claim 1, It is characterized in that The hyperparameter λ is 0.1.
Citation Information
Patent Citations
Infrared image super-resolution reconstruction method based on transfer learning
CN114708148A
Lightweight image super-resolution reconstruction method based on double attention mechanism
CN115496658A
Lightweight image super-resolution reconstruction system and method for edge mobile device
CN117237190A
Lightweight image super-resolution method and system based on dynamic re-parameterization
CN117689540A
Cited By
Double-domain learning method for single-image super-resolution based on dynamic spectrum hybrid network, electronic equipment and storage medium
CN119515682A
Mobile terminal image super-resolution method based on prompt calibration and multi-scale cascading
CN121147024A
