State-of-the-art image super resolution models for PyTorch.
Project description
super-image
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)
Built Distribution
Close
Hashes for super_image-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c0734ca3043759359621cab44425a8e99b3e4ea6f180ec9845db63f30bd46ca |
|
MD5 | 468209ab46096c2ef30b7ce0a388bbb6 |
|
BLAKE2b-256 | d14a49c14c43aab1cd38ab371aeebc4c6dee9286f7b57977652747bd7bb32dad |