GithubHelp home page GithubHelp logo

reloadbrain / abpn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from holmes-alan/abpn

0.0 1.0 0.0 45.06 MB

Attention based Back Projection Network (ABPN) for image ultra-resolution

Python 99.74% Shell 0.26%

abpn's Introduction

ABPN (Attention based Back Projection Network for image super-resolution)

By Zhi-Song, Li-Wen Wang and Chu-Tak Li

This repo only provides simple testing codes, pretrained models and the network strategy demo.

We propose a single image super-resolution using Attention based Back Projection Network (ABPN) to achieve good SR performance with low distortion. The paper can be found in arxiv

BibTex

    @InProceedings{Liu2019abpn,
        author = {Liu, Zhi-Song and Wang, Li-Wen and Li, Chu-Tak and Siu, Wan-Chi},
        title = {Image Super-Resolution via Attention based Back Projection Networks},
        booktitle = {IEEE International Conference on Computer Vision Workshop(ICCVW)},
        month = {October},
        year = {2019}
    }

For proposed ABPN model, we claim the following points:

• Attention Back Projection Block to learn cross-correlation of features.

• Refined Back Projection Block to estimate super-resolution residues for better reconstruction.

Dependencies

Python > 3.0
OpenCV library
Pytorch 1.1 
NVIDIA GPU + CUDA
MATLAB 6.0 or above

Complete Architecture

The complete architecture is shown as follows,

network

Implementation

1. Quick testing


Copy your image to folder "LR" and run test.sh. The SR images will be in folder "Result"

2. Testing for AIM 2019


s1. For AIM2019 Extreme Super-Resolution Challenge - Track 1: Fidelity, run AIM_ensemble_16x.py. Modify the directories of files based on your working environment.

Testing images on AIM2019 Extreme Super-Resolution Challenge - Track 1: Fidelity can be downloaded from the following link:

https://competitions.codalab.org/competitions/20235

s2. For AIM2019 Constrained Super-Resolution Challenge - Track 3: Fidelity optimization, run AIM_ensemble_4x.py. Modify the directories of files based on your working environment.

Testing images on AIM2019 Constrained Super-Resolution Challenge - Track 3: Fidelity optimization can be downloaded from the following link:

https://competitions.codalab.org/competitions/20169

General testing dataset (Set5, Set14, BSD100, Urban100 and Manga109) can be downloaded from:

https://github.com/LimBee/NTIRE2017

3. Training


s1. Download the training images from DIV2K and Flickr.

https://data.vision.ee.ethz.ch/cvl/DIV2K/

https://github.com/LimBee/NTIRE2017

s2. Start training on Pytorch

For user who already has installed Pytorch 1.1, simply just run the following code for AIM2019 Constrained Super-Resolution Challenge - Track 3: Fidelity optimization:

$ python main_4x.py

or run the following code for AIM2019 Extreme Super-Resolution Challenge - Track 1: Fidelity:

$ python main_16x.py

Experimental results

Validation results on AIM2019 Extreme Super-Resolution Challenge - Track 1: Fidelity can be downloaded from the following link:

https://drive.google.com/open?id=1rMzeN-UmWoCNKoyApEAJ7uSF5ckX34-V

Testing results on AIM2019 Extreme Super-Resolution Challenge - Track 1: Fidelity can be downloaded from the following link:

https://drive.google.com/open?id=1lJFvNKSUxg-pioKqjA39GPqDvvv3ceYj

Validation results on AIM2019 Constrained Super-Resolution Challenge - Track 3: Fidelity optimization can be downloaded from the following link:

https://drive.google.com/open?id=12gCRnI7eUhSrb5F7TN8wm4aWXcP2c6oi

Testing results on AIM2019 Constrained Super-Resolution Challenge - Track 3: Fidelity optimization can be downloaded from the following link:

https://drive.google.com/open?id=1IMSBDtfMxEkn5v6Up3MZ0n-Uk3uN0BBm

Partial image visual comparison

1. Quantitative comparison

We tested on several SR approaches on several datasets for PSNR and SSIM. We have achieve comparable or even better performance. table

2. Model complexity

Our proposed ABPN can use 2~3 times less parameters to achieve same PSNR performance! complexity

3. Visualization comparison

Results on 4x image SR on Urban100 dataset visual

abpn's People

Contributors

holmes-alan avatar

Watchers

 avatar

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.