Metadata-Version: 2.1
Name: super_resolution
Version: 0.1.2
Summary: Library generating 4x super resoltion using deep convolutional neural networks.
Home-page: https://github.com/fengwang/super_resolution
Author: Feng Wang
Author-email: wang_feng@live.com
License: BSD
Keywords: super-resolution
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
Requires-Python: >=3.6.*
Description-Content-Type: text/markdown

# Super Resolution

![](https://github.com/fengwang/super_resolution/raw/master/assets/demo.png)


Image Super-Resolution using Deep Convolutional Neural Networks.

## Installing

Install and update using [pip](https://pip.pypa.io/en/stable/quickstart/):

```bash
pip3 install super-resolution
```
Or
```bash
git checkout https://github.com/fengwang/super_resolution.git
cd super_resolution
python3 -m pip install -e .
```


## Usage

Command line:

```bash
super_resolution INPUT_IMAGE_PATH OUTPUT_IMAGE_PATH
```

```python
# uncomment the follow three lines if you have a Nvidia GPU but you do not want to enable it.
#import os
#os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
#os.environ["CUDA_VISIBLE_DEVICES"]=''

from super_resolution import cartoon_upsampling_4x

cartoon_upsampling_4x( './a_tiny_image.png', './a_4x_larger_image.png' )
```

## Details

+ The super resolution model is inherited from `Ledig C, Theis L, Huszár F, et al. Photo-realistic single image super-resolution using a generative adversarial network, Proceedings of the IEEE conference on computer vision and pattern recognition. 2017: 4681-4690.`
+ The training images are downloaded from [Konachan (__NSFW__)](https://konachan.com/).

## License

+ BSD



