1 Star 0 Fork 0

fysama / kbnet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

PWC PWC PWC PWC PWC PWC PWC PWC PWC PWC PWC

KBNet: Kernel Basis Network for Image Restoration

Yi Zhang, Dasong Li, Xiaoyu Shi, Dailan He, Kangning Song, Xiaogang Wang, Hongwei Qin, Hongsheng Li

paper


Abstract: How to aggregate spatial information plays an essential role in learning-based image restoration. Most existing CNN-based networks adopt static convolutional kernels to encode spatial information, which cannot aggregate spatial information adaptively. Recent transformer-based architectures achieve adaptive spatial aggregation. But they lack desirable inductive biases of convolutions and require heavy computational costs. In this paper, we propose a kernel basis attention (KBA) module, which introduces learnable kernel bases to model representative image patterns for spatial information aggregation. Different kernel bases are trained to model different local structures. At each spatial location, they are linearly and adaptively fused by predicted pixel-wise coefficients to obtain aggregation weights. Based on the KBA module, we further design a multi-axis feature fusion (MFF) block to encode and fuse channel-wise, spatial-invariant, and pixel-adaptive features for image restoration. Our model, named kernel basis network (KBNet), achieves state-of-the-art performances on more than ten benchmarks over image denoising, deraining, and deblurring tasks while requiring less computational cost than previous SOTA methods.


Network Architecture

Installation

git clone https://github.com/zhangyi-3/KBNet.git
cd KBNet

pip install -r requirements.txt

# install basicsr
python setup.py develop --no_cuda_ext

Evaluation

Image Restoration Tasks

Task Dataset Test Instructions Visualization Results
Gaussian Denoising Urban / CBSD / Kodak link onedrive
Real Image Denoising SIDD / SenseNoise link onedrive
Image Deblurring DPPD link onedrive
Image Deraining Test1200 / Test2800 link onedrive

Citation

If you use KBNet, please consider citing:

@article{Zhang2023kbnet,
  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 Honwei Qin and Hongsheng Li},
  year={2023},
  journal={arXiv preprint arXiv:2303.02881},
}

Contact

Should you have any question, please contact zhangyi@link.cuhk.edu.hk

Acknowledgment: BasicSR, NAFNet, Restormer.

MIT License Copyright (c) 2022 Zhang Yi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Python 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/fysama/kbnet.git
git@gitee.com:fysama/kbnet.git
fysama
kbnet
kbnet
main

搜索帮助