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 details)
Built Distribution
File details
Details for the file super-image-0.1.0.tar.gz
.
File metadata
- Download URL: super-image-0.1.0.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.7.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
dc8721cdae07a911d21f6f7f1ff148024ee9a495408ed17088e74a6efd98978a
|
|
MD5 |
6763b7fbd8d7263fc0416351a387300e
|
|
BLAKE2b-256 |
037a75cc690697da7124162583a2c76c617f540b23c057785e005c55a2a86fdd
|
File details
Details for the file super_image-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: super_image-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.7.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3c0734ca3043759359621cab44425a8e99b3e4ea6f180ec9845db63f30bd46ca
|
|
MD5 |
468209ab46096c2ef30b7ce0a388bbb6
|
|
BLAKE2b-256 |
d14a49c14c43aab1cd38ab371aeebc4c6dee9286f7b57977652747bd7bb32dad
|