GithubHelp home page GithubHelp logo

makex1n / igan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lizhuangzi/igan

0.0 0.0 0.0 2.87 MB

Code of ACM MM 2021 paper: Information-Growth Attention Network for Image Super-Resolution

Python 100.00%

igan's Introduction

Information-Growth Attention Network for Image Super-Resolution

This is the code of ACM Multimedia 2021 Paper: Information-Growth Attention Network for Image Super-Resolution

Abstract: It is widely believed that a high-resolution (HR) image contains more productive information compared with its low-resolution (LR) versions, so image super-resolution (SR) satisfies an information-growth process. Considering the property, we attempt to exploit the growing information via a particular attention mechanism. In this paper, we propose a concise but effective Information-Growth Attention Network (IGAN) that shows the incremental information is beneficial for SR. Specifically, a novel information-growth attention mechanism is proposed. It aims to pay attention to features involving large information-growth capacity by assimilating the difference from current features to the former features. We also illustrate its effectiveness contrasted by widely-used self-attention mechanism using entropy and generalization bound analysis. Besides, existing channel-wise attention generation modules (CAGMs) have large information attenuation due to directly calculating global mean for feature maps. To solve it, we present an innovative CAGM that progressively decreases feature maps' sizes. Extensive experiments conducted on publicly available datasets demonstrate IGAN outperforms state-of-the-art attention-aware SR approaches.

image

image

Requirements (Our setting)

PyTorch 1.4.0

Torchvision 0.5.0

Scikit-image 0.15.0

Numpy 1.18.5

Tqdm 4.50.0

Pretrained Model

You can download our trained model by following links:

4x Model: https://drive.google.com/file/d/12IKFNnjtfRauoR3hcuiq9OAxJvQsH0Bb/view?usp=sharing

8x Model: https://drive.google.com/file/d/19u1O1vtzql4zx78EtVgB9XSBj4vj3zyA/view?usp=sharing

Usage

The training setting is in optionIGAN.py.

The testing setting is in optionTest.py.

You need change some file path according to your environment including "dir_data", "data_train", "data_test" "pre_train".

Using "python mainIGAN4.py" for training

Using "python TestModel.py" for testing. Before testing, you should change the "pre_train" in optionTest for load the correctly trained model.

Using "python outputTest.py" for generating SR output.

Dataset

We use the Div2k dataset for training. its webpage is available at: DIV2K

  • Size of Dataset: Total 900 2k images about 7.12 GB
  • Training: 800 images
  • Testing: 100 images
  • Benchmark dataset:
  • Data format: .png

The Div2k images shuould be put as follows:

DIV2K
├── DIV2K_train_HR
│   ├── 0001.png
│   ├─ ...
│   └── 0900.png
├── DIV2K_train_LR_bicubic
│   ├── X2
│   │   ├── 0001x2.png
│   │   ├─ ...
│   │   └── 0900x2.png
│   ├── X3
│   │   ├── 0001x3.png
│   │   ├─ ...
│   │   └── 0900x3.png
│   └── X4
│       ├── 0001x4.png
│       ├─ ...
│       └── 0900x4.png

if you test result on Set5, the file should be listed as:

Set5
├── HR
│   ├── baby.png
│   ├─ ...
│   └── butterfly.png
├── BicDown
│   ├── X2
│   │   ├── X2down_baby.png
│   │   ├─ ...
│   │   └── X2down_butterfly.png
│   ├── X4
│   │   ├── X4down_baby.png
│   │   ├─ ...
│   │   └── X4down_butterfly.png
│   └── X8
│       ├── X8down_baby.png
│       ├─ ...
│       └── X8down_butterfly.png

Cite

The references introduced by .bib can be written as:

@inproceedings{Liz2021,
  title={Information-Growth Attention Network for Image Super-Resolution.},
  author={Zhuangzi Li, Ge Li, Thomas Li, Shan Liu and Wei Gao},
  booktitle={Proceedings of the 29th ACM International Conference on Multimedia},
  pages={544--552},
  year={2021}
}

igan's People

Contributors

lizhuangzi 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.