Coder Social home page Coder Social logo

kxnet's Introduction

KXNet: A Model-Driven Deep Neural Network for Blind Super-Resolution (ECCV, 2022 Oral)

Jiahong Fu, Hong Wang, Qi Xie, Qian Zhao, Deyu Meng, and Zongben Xu
[Paper] [Supplementary Material]
Implementation of 'KXNet: A Model-Driven Deep Neural Network for Blind Super-Resolution' (ECCV2022)

This repo is build on the basis of [DAN] and [IKC]

News

  • Add KXNet

Dependenices

  • python3
  • pytorch >= 1.6
  • NVIDIA GPU + CUDA
  • Python packages: pip3 install numpy opencv-python lmdb pyyaml

Pretrained models

Pretrained models of KXNet are available as here. Download the models to ./checkpoints

Dataset Preparation

For train We use DIV2K and Flickr2K as our training datasets. Download them and put the images in DIV2K_Flickr2K.

For evaluation, we use four datasets, i.e., Set5, Set14, Urban100, and BSD100. All test datesets can be downloaded from BaiduYun (Password: uag1).

Setting1: We used the Gaussian8 blur kernel set to generate the noise free test data. Run 'codes/scripts/generate_mod_isoblur_LR_sfold.py' to generate LRblur/HR datasets.

Setting2: We separately set the kernel width as $\lambda_1 = 0.8, \lambda_2 = 1.6$ and $\lambda_1 = 2.0, \lambda_2 = 4.0$, and rotate them by $\theta \in { 0, \frac{\pi}{4}, \frac{\pi}{2}, \frac{3\pi}{4} }$, respectively. This means we have 8 different blur kernels and use them to generate test data at noise level $\sigma \in { 0, 5, 15}$. Run 'codes/scripts/generate_mod_anisoblur_LR_sfold.py' to generate LRblur/HR datasets.

Train

For single GPU:

cd codes/config/KXNet
python3 train.py -opt=options/setting1/train/train_setting2_x2.yml

For distributed training

cd codes/config/KXNet
python3 -m torch.distributed.launch --nproc_per_node=8 --master_port=4321 train.py -opt=options/setting2/train/train_setting2_x2.yml --launcher pytorch

Test on Synthetic Images

cd codes/config/KXNet
python3 test.py -opt=options/setting2/test/test_setting2_x2.yml

kxnet's People

Contributors

jiahong-fu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

codemaduser

kxnet's Issues

对比方法

感谢您非常优秀的工作。我在重新训练对比方法的时候很不稳定,达不到合理的指标。请问您可以将这三种对比方法的重新训练的checkpoint文件分享给我吗?
对比方法
文件分享给我吗?

can't find result .

hello,it's amazing work . But when the running is over, I can't find the picture after processing,what should I do to look them?

code

Thank you for this great work.

Could you please share the code? thanks

Ask questions in the paper.

Hello!Can you explain how you obtain the gradient of h(X) in Eq. (8) in the paper. Thank you very much.

The validation datasets

So amazing and meaningful work! I have confused in retraining the KDSR because of the validation datasets. As mentioned in file options, you adpot Urban10 validation datasets during training under both setting 1 and setting 2, is the synthetic 10 images from Urban100 validation datasets? could you please tell the details of which 10 HR and its corresponding LQ images are used for validation. Thanks for your reply. Best wishes for you!

关于测试集生成

您好,请问您setting1生成的测试集是和DAN这篇工作不一样的吗?我用的在DAN上测试集测试您的KXNet,指标结果和您论文里的table1的结果差很多。虽然我看您测试的数据集好像不是lmdb格式,但这应该不是影响测试指标的主要因素吧。
微信图片_20230606101450

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.