Coder Social home page Coder Social logo

dslisleedh / x-restormer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrew0613/x-restormer

0.0 0.0 0.0 45.02 MB

Arxiv:A Comparative Study of Image Restoration Networks for General Backbone Network Design

License: MIT License

Shell 0.39% Python 99.61%

x-restormer's Introduction

X-Restormer [Paper Link]

A Comparative Study of Image Restoration Networks for General Backbone Network Design

Xiangyu Chen*, Zheyuan Li*, Yuandong Pu*,Yihao Liu, Jiantao Zhou, Yu Qiao and Chao Dong

BibTeX

@article{chen2023comparative,
  title={A Comparative Study of Image Restoration Networks for General Backbone Network Design}, 
  author={Chen, Xiangyu and Li, Zheyuan and Pu, Yuandong and Liu, Yihao and Zhou, Jiantao and Qiao, Yu and Dong, Chao},
  journal={arXiv preprint arXiv:2310.11881},
  year={2023}
}

Environment

Installation

Install Pytorch first. Then,

pip install -r requirements.txt
python setup.py develop

How To Test

  • Refer to ./options/test for the configuration file of the model to be tested, and prepare the testing data and pretrained model.
  • The pretrained models are available at Google Drive or Baidu Netdisk (access code: im3q).
  • Then run the following codes (taking sr_300k.pth as an example):
python xrestormer/test.py -opt options/test/001_xrestormer_sr.yml

The testing results will be saved in the ./results folder.

  • Refer to ./options/test/001_xrestormer_sr.yml for inference without the ground truth image.

How To Train

  • Refer to ./options/train for the configuration file of the model to train.
  • Preparation of training data can refer to this page. ImageNet dataset can be downloaded at the official website.
  • The training command is like
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python -m torch.distributed.launch --nproc_per_node=8 --master_port=1231 xrestormer/train.py -opt ./options/train/001_xrestormer_sr.yml --launcher pytorch
  • Note that the default batch size per GPU is 4, which will cost about 60G memory for each GPU.

The training logs and weights will be saved in the ./experiments folder.

Results

The inference results on benchmark datasets are available at Google Drive or Baidu Netdisk (access code: g9dw).

Contact

If you have any question, please contact [email protected] or [email protected].

x-restormer's People

Contributors

andrew0613 avatar chxy95 avatar xiaom233 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.