Coder Social home page Coder Social logo

sumching / ncsr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from younggeun-kim/ncsr

0.0 0.0 0.0 3.4 MB

Code for the CVPR2021 workshop paper "Noise Conditional Flow Model for Learning the Super-Resolution Space"

License: MIT License

Jupyter Notebook 0.04% Python 99.96%

ncsr's Introduction

NCSR: Noise Conditional Flow Model for Learning the Super-Resolution Space

Official NCSR training PyTorch Code for the CVPR2021 workshop paper "Noise Conditional Flow Model for Learning the Super-Resolution Space"

NCSR: Noise Conditional Flow Model for Learning the Super-Resolution Space(https://arxiv.org/abs/2106.04428)

**We got 1st place in NTIRE2021 Learning the Super-Resolution Space. Our team name is Deepest

These figures and tables are from NTIRE2021 Learning the Super-Resolution Space

How to use repo

git clone --recursive https://github.com/younggeun-kim/NCSR.git

Training

cd code
python train.py -opt path/to/Confpath
  • path/to/Confpath is model parameter script which is in code/confs/~.yml

Test

cd code
python eval.py --scale scale_factor --lrtest_path path/to/LRpath --conf_path path/to/Confpath
  • To eval with pretrained model, please check model_path in Confpath.
  • Pretriained models should be in code/pretrained_model

Measure

cd code/NTIRE21_Learning_SR_Space
python measure.py OutName path/to/Ground-Truth path/to/Super-Resolution n_samples scale_factor 
  • path/to/Super-Resolution is code/output_dir.

Pretrained weight

NCSR X4

NCSR X8

RRDB pretrained weights can be found in SRFlow github

Preparing data

cd code
python prepare_data.py /path/to/img_dir
  • If dataset mode is LRHR_IMG, just use img_dir.
  • If dataset mode is LRHR_PKL, please use this code.

Citation

If you found our work useful, please don't forget to cite

@misc{kim2021noise,
      title={Noise Conditional Flow Model for Learning the Super-Resolution Space}, 
      author={Younggeun Kim and Donghee Son},
      year={2021},
      eprint={2106.04428},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

The code is based on the SRFlow implementation

ncsr's People

Contributors

younggeun-kim 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.