Skip to main content

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')

Release files for super-image 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for super-image 0.1.0
File Size Uploaded
super-image-0.1.0.tar.gz 22.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for super-image 0.1.0
File Interpreter ABI Platform
super_image-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 50.6 kB

Release files / super-image-0.1.0.tar.gz

Download URL super-image-0.1.0.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dc8721cdae07a911d21f6f7f1ff148024ee9a495408ed17088e74a6efd98978a
BLAKE2b-256 checksum
How to use checksums
037a75cc690697da7124162583a2c76c617f540b23c057785e005c55a2a86fdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.7.9 Windows/10

Release files / super_image-0.1.0-py3-none-any.whl

Download URL super_image-0.1.0-py3-none-any.whl
Size 28.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c0734ca3043759359621cab44425a8e99b3e4ea6f180ec9845db63f30bd46ca
BLAKE2b-256 checksum
How to use checksums
d14a49c14c43aab1cd38ab371aeebc4c6dee9286f7b57977652747bd7bb32dad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.7.9 Windows/10

Release history Release notifications | RSS feed

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page