Giter Site home page Giter Site logo

roj4s / pan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhaohengyuan1/pan

0.0 1.0 0.0 424.57 MB

[Params: Only 272K!!!] Efficient Image Super-Resolution Using Pixel Attention, in ECCV Workshop, 2020.

Python 47.57% Jupyter Notebook 29.35% MATLAB 3.34% Shell 0.38% C++ 7.92% Cuda 11.45%

pan's Introduction

If you have questions about results, please check the new update version of file PAN_arch.py.

PAN [:zap: 272K parameters]

Lowest parameters in AIM2020 Efficient Super Resolution.

Efficient Image Super-Resolution Using Pixel Attention

Authors: Hengyuan Zhao, Xiangtao Kong, Jingwen He, Yu Qiao, Chao Dong

Dependencies

Codes

  • Our codes version based on mmsr.
  • This codes provide the testing and training code.

How to Test

  1. Clone this github repo.
git clone https://github.com/zhaohengyuan1/PAN.git
cd PAN
  1. Download the five test datasets (Set5, Set14, B100, Urban100, Manga109) from Google Drive

  2. Pretrained models have be placed in ./experiments/pretrained_models/ folder. More models can be download from Google Drive.

  3. Run test. We provide x2,x3,x4 pretrained models.

cd codes
python test.py -opt option/test/test_PANx4.yml

More testing commond can be found in ./codes/run_scripts.sh file. 5. The output results will be sorted in ./results. (We have been put our testing log file in ./results) We also provide our testing results on five benchmark datasets on Google Drive or Baidu Drive, password: 8mrn.

How to Train

  1. Download DIV2K and Flickr2K from Google Drive or Baidu Drive

  2. Generate Training patches. Modified the path of your training datasets in ./codes/data_scripts/extract_subimages.py file.

  3. Run Training.

python train.py -opt options/train/train_PANx4.yml
  1. More training commond can be found in ./codes/run_scripts.sh file.

Testing the Parameters, Mult-Adds and Running Time

  1. Testing the parameters and Mult-Adds.
python test_summary.py
  1. Testing the Running Time.
python test_running_time.py

Related Work on AIM2020

Enhanced Quadratic Video Interpolation (winning solution of AIM2020 VTSR Challenge) paper | code

Contact

Email: [email protected]

pan's People

Contributors

roj4s avatar zhaohengyuan1 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.