GitXplorerGitXplorer
k

NatSR-pytorch

public
6 stars
3 forks
0 issues

Commits

List of commits on branch master.
Verified
51b2b5ce9b1fdc0864a299243798a0f78eb7eedc

Merge pull request #5 from lgtm-migrator/codeql

kkozistr committed 2 years ago
Verified
071e18a2847b3c0a5812579b17316318b21e1e6a

Merge pull request #7 from kozistr/dependabot/pip/protobuf-3.18.3

kkozistr committed 2 years ago
Verified
5381bd0c112a32c0ef786f62cfabf6cecaa16640

build(deps): bump protobuf from 3.17.3 to 3.18.3

ddependabot[bot] committed 2 years ago
Verified
6541ca70097652cfeb584530af9fa93137001370

Merge pull request #6 from kozistr/dependabot/pip/pillow-9.3.0

kkozistr committed 2 years ago
Verified
1a0a9b4017bcce4d313024c22a52520f264adf24

build(deps): bump pillow from 9.0.1 to 9.3.0

ddependabot[bot] committed 2 years ago
Verified
10cca1ef8262e720f2d5070b26b89b76f6315f57

Add CodeQL workflow for GitHub code scanning

llgtm-migrator committed 2 years ago

README

The README file for this repository.

NatSR-pytorch

Unofficial implementation of natural and Realistic Single Image Super-Resolution with Explicit Natural Manifold Discrimination (CVPR, 2019) in pytorch (w/ audit-friendly code)

Work In Progress (WIP)

Environments

  • Python 3.x (recommended 3.7)
  • Pytorch 1.x

Abstract

Recently, many convolutional neural networks for single image super-resolution (SISR) have been proposed, which focus on reconstructing the high-resolution images in terms of objective distortion measures. However, the networks trained with objective loss functions generally fail to reconstruct the realistic fine textures and details that are essential for better perceptual quality. Recovering the realistic details remains a challenging problem, and only a few works have been proposed which aim at increasing the perceptual quality by generating enhanced textures. However, the generated fake details often make undesirable artifacts and the overall image looks somewhat unnatural. Therefore, in this paper, we present a new approach to reconstructing realistic super-resolved images with high perceptual quality, while maintaining the naturalness of the result. In particular, we focus on the domain prior properties of SISR problem. Specifically, we define the naturalness prior in the low-level domain and constrain the output image in the natural manifold, which eventually generates more natural and realistic images. Our results show better naturalness compared to the recent super-resolution algorithms including perception-oriented ones.

DataSet

Usage

  1. Clone the repository
$ git clone https://github.com/kozistr/NatSR-pytorch
$ cd ./NatSR-pytorch
  1. Configure your own environment.

1.1. Using pipenv by given Pipfile

$ pip3 install -U pipenv
$ pipenv install --dev

1.2. Using requirements.txt

$ pip3 install -r requirements.txt
  1. Change the parameter what you want config.yaml

2.1. Mode

  • At train : mode: train
  • At test : mode: test
  • At inference : mode: inference

2.2. Model Type

  • training NMD : model_type: 'nmd'
  • training FRSR : model_type: 'frsr'
  1. Run!
$ python3 -m natsr

Result

Citation

@InProceedings{Soh_2019_CVPR,
  author = {Soh, Jae Woong and Park, Gu Yong and Jo, Junho and Cho, Nam Ik},
  title = {Natural and Realistic Single Image Super-Resolution With Explicit Natural Manifold Discrimination},
  booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
  month = {June},
  year = {2019}
}

Author

Hyeongchan Kim / @kozistr