
kbnet_l_deblur
57 ops13.3K params
Image restoration U-Net whose convolution kernels are mixed per pixel from learnable kernel bases.
39 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
menagerie.classics.kbnet_s_denoise:build_kbnet_s_denoise: build({}) This is the KBNets variant, whose feed-forward block is the normal FFN with the SimpleGate activation function.
About this model's family
KBNet, the kernel basis network, is a U-shaped image restoration model that aims to remove the unavoidable degradation of input images and produce clean outputs. Its argument is about how to aggregate spatial information: static convolutional kernels cannot aggregate spatial information adaptively, while transformers can but lack desirable inductive biases of convolutions and require heavy computational costs.
The kernel basis attention (KBA) module introduces learnable kernel bases to model representative image patterns for spatial information aggregation. At each spatial location the bases are linearly and adaptively fused by predicted pixel-wise coefficients to obtain aggregation weights, and a separate lightweight convolution branch predicts those coefficients. That differs from dynamic convolutions and kernel prediction networks, which predict all the kernel weights directly, and the paper argues it is more lightweight and easier to optimize.
Around the KBA module sits a multi-axis feature fusion (MFF) block in which channel attention, spatial-invariant and pixel-wise adaptive feature extractions run in parallel and are fused by point-wise production. The MFF block is followed by a feed-forward network at each stage, and the two captured variants differ there: KBNets uses the normal FFN with the SimpleGate activation, while KBNetl uses the heavier transposed attention from Restormer. Their computational costs are around 70G and 108G MACs respectively.
The authors report state-of-the-art performances on more than ten benchmarks over image denoising, deraining and deblurring while requiring less computational cost than previous SOTA methods. On gray-image Gaussian denoising it outperforms Restormer slightly while using less than half of its MACs. On the SIDD real-world denoising dataset it beats Restormer, Uformer, MAXIM and NAFNet with fewer MACs. Code was promised at github.com/zhangyi-3/kbnet.
Key idea. Spatially adaptive aggregation from a small set of learnable kernel bases, fused per pixel by predicted coefficients, so the network keeps the inductive biases of convolutions while handling various spatial contexts adaptively.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{zhang2023kbnetkernelbasisnetwork,
title={KBNet: Kernel Basis Network for Image Restoration},
author={Yi Zhang and Dasong Li and Xiaoyu Shi and Dailan He and Kangning Song and Xiaogang Wang and Hongwei Qin and Hongsheng Li},
year={2023},
eprint={2303.02881},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2303.02881},
}