AuraSR
GAN-based Super-Resolution for real-world images, a variation of the GigaGAN paper for image-conditioned upscaling. Torch implementation is based on the unofficial lucidrains/gigagan-pytorch repository.
Usage
$ pip install aura-sr
from aura_sr import AuraSR
aura_sr = AuraSR.from_pretrained()
import requests
from io import BytesIO
from PIL import Image
def load_image_from_url(url):
response = requests.get(url)
image_data = BytesIO(response.content)
return Image.open(image_data)
image = load_image_from_url("https://mingukkang.github.io/GigaGAN/static/images/iguana_output.jpg").resize((256, 256))
upscaled_image = aura_sr.upscale_4x(image)
Reduce Seam Artifacts
upscale_4x upscales the image in tiles that do not overlap. This can result in seams. Use upscale_4x_overlapped to reduce seams. This will double the time upscaling by taking an additional pass and averaging the results.
Metadata
Release files for aura-sr 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aura_sr-0.0.4.tar.gz | 14.7 kB | Without provenance | Details for aura_sr-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aura_sr-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for aura_sr-0.0.4-py3-none-any.whl |
Total release size: 29.9 kB
Release files / aura_sr-0.0.4.tar.gz
| Download URL | aura_sr-0.0.4.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ab19f27fa401cf8564ac030fac4fde8db28700d0c21161749f90f68b1ddd96e
|
|
BLAKE2b-256 checksum How to use checksums |
1ae0a47d268c63da43b7269d9f52d383f30db074169375c012f6e4c5172b3c9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Release files / aura_sr-0.0.4-py3-none-any.whl
| Download URL | aura_sr-0.0.4-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c49ecb97c87119e28798ba76371e2d9cee56e0886a9fd106ac677308dd905709
|
|
BLAKE2b-256 checksum How to use checksums |
59d84122e9341625430aa94413f3b59b5ed20437db4db08d88ac66082d0f663b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Security for aura-sr 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.