GithubHelp home page GithubHelp logo

ip-superresolution / adabm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cheeun/adabm

0.0 0.0 0.0 230 KB

[CVPR2024] Official Code for the "AdaBM: On-the-Fly Adaptive Bit Mapping for Image Super-Resolution"

Shell 4.93% Python 95.07%

adabm's Introduction

AdaBM

This repository includes the official implementation of the paper AdaBM: On-the-Fly Adaptive Bit Mapping for Image Super-Resolution (CVPR2024).

Requirements

A suitable conda environment named adabm can be created and activated with:

conda env create -f environment.yaml
conda activate adabm

Preparation

Dataset

  • For training, we use LR images sampled from DIV2K.
  • For testing, we use benchmark datasets and large input datasets Test2K,4K,8K. Test8K contains the images (index 1401-1500) from DIV8K. Test2K/4K contain the images (index 1201-1300/1301-1400) from DIV8K which are downsampled to 2K and 4K resolution. After downloading the datasets, the dataset directory should be organized as follows:
datasets
  -DIV2K
    - DIV2K_train_LR_bicubic # for training
    - DIV2K_train_HR
    - test2k # for testing
    - test4k
    - test8k
  -benchmark # for testing

Pretrained Models

Please download the pretrained models from here and place them in pretrained_model.

Usage

How to train

sh run.sh edsr 0 6 8 # gpu_id a_bit w_bit 
sh run.sh edsr 0 4 4 # gpu_id a_bit w_bit 

How to test

sh run.sh edsr_eval 0 6 8 # gpu_id a_bit w_bit 
sh run.sh edsr_eval 0 4 4 # gpu_id a_bit w_bit
  • set --dir_data to the directory path for datasets.
  • set --pre_train to the saved model path for testing model.
  • the trained model is saved in experiment directory.
  • set --test_own to the own image path for testing.

More running scripts can be found in run.sh.

Comments

Our implementation is based on EDSR(PyTorch).

Coming Soon...

  • parallel patch inference

BibTeX

If you found our implementation useful, please consider citing our paper:

@misc{hong2024adabm,
      title={AdaBM: On-the-Fly Adaptive Bit Mapping for Image Super-Resolution}, 
      author={Cheeun Hong and Kyoung Mu Lee},
      year={2024},
      eprint={2404.03296},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Contact

Email: [email protected]

adabm's People

Contributors

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