Coder Social home page Coder Social logo

hpinet's Introduction

From Coarse to Fine: Hierarchical Pixel Integration for Lightweight Image Super-Resolution

This is the Pytorch implementation of HPINet (AAAI2023 Acceptance).

[arXiv paper] [pretrained models] [visual results (code:z86e)]

Dependencies

  • python == 3.6
  • pytorch == 1.8.0
  • scikit-image == 0.17.2
  • einops == 0.3.2

Other versions of the packages may also work, but they are not tested.

Test Datasets

  • Download the five test datasets (Set5, Set14, B100, Urban100, Manga109) from Google Drive
  • Put them in benchmarks/ directory, or customize the path in the code

Run Test

python test.py --model L --scale 4

The pretrained models are provided in checkpoints/:

x2 x3 x4
S
M
L

Train Datasets

DIV2K homepage

DIV2K
├── DIV2K_train_HR
├── DIV2K_train_LR_bicubic
│   ├── X2
│   ├── X3
│   ├── X4

Run Train

Here is an example:

CUDA_VISIBLE_DEVICES="0,1,2,3,4,5,6,7" python train.py --model M --root DIV2K/ --ext .png --scale 4 

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.