Code Monkey home page Code Monkey logo

realdan's Introduction

This is an official implementation of RealDAN

If this repo works for you, please cite our paper

@article{luo2023end,
  title={End-to-end Alternating Optimization for Real-World Blind Super Resolution},
  author={Luo, Zhengxiong and Huang, Yan and Li, Shang and Wang, Liang and Tan, Tieniu},
  journal={International Journal of Computer Vision (IJCV)},
  year={2023}
}

This repo is buid on the basis of BasicSR

Model Weights

Download the checkpoints of RealDAN from BaiduYun(password: ig96).

Put the downloaded checkpoints into checkpoints

The model weights and datasets are also available at huggingface(https://huggingface.co/lzxlog/RealDAN) now.

Inference

For inference on Real-World images

cd codes/config/RealDAN
python3 inference.py \
--opt options/test/dan_edsr_gan_real.yml \
--input_dir=/dir/of/input/images \
--output_dir=/dir/of/saved/outputs

For inference on blurry images

cd codes/config/KernelDAN
python3 inference.py \
--opt options/test/x4.yml \
--input_dir=/dir/of/input/images \
--output_dir=/dir/of/saved/outputs

Evaluation

For evaluation on DIV2K-Real, please download the dataset to your own path, and run

cd codes/config/RealDAN
python3 test.py \
--opt options/test/dan_edsr_gan_syn.yml

and

cd codes/config/RealDAN
python3 test.py \
--opt options/test/dan_edsr_syn.yml

For evaluation on DIV2KRK, please download the dataset to your own path, and run

cd codes/config/KernelDAN
python3 test.py \
--opt options/test/x2.yml 

and

cd codes/config/KernelDAN
python3 test.py \
--opt options/test/x4.yml 

realdan's People

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.