Skip to main content

State-of-the-art image super resolution models for PyTorch.

Project description

super-image

documentation pypi version

State-of-the-art image super resolution models for PyTorch.

Requirements

super-image requires Python 3.6 or above.

Installation

With pip:

pip install super-image

With pipx:

python3.6 -m pip install --user pipx

pipx install --python python3.6 super-image

Quick Start

from super_image import EdsrModel, ImageLoader
from PIL import Image
import requests

url = 'https://paperswithcode.com/media/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg'
image = Image.open(requests.get(url, stream=True).raw)

model = EdsrModel.from_pretrained('eugenesiow/edsr-base', scale=2)
inputs = ImageLoader.load_image(image)
preds = model(inputs)

ImageLoader.save_image(preds, './scaled_2x.png')
ImageLoader.save_compare(inputs, preds, './scaled_2x_compare.png')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

super-image-0.1.0.tar.gz (22.6 kB view hashes)

Uploaded Source

Built Distribution

super_image-0.1.0-py3-none-any.whl (28.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page