Skip to main content

GAN-based Super-Resolution for AI generated images, based on the GigaGAN architecture.

Project description

AuraSR

aurasr example

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.

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

aura_sr-0.0.4.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

aura_sr-0.0.4-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file aura_sr-0.0.4.tar.gz.

File metadata

  • Download URL: aura_sr-0.0.4.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for aura_sr-0.0.4.tar.gz
Algorithm Hash digest
SHA256 1ab19f27fa401cf8564ac030fac4fde8db28700d0c21161749f90f68b1ddd96e
MD5 be2de44d10af44edcb6985d7cffc70bc
BLAKE2b-256 1ae0a47d268c63da43b7269d9f52d383f30db074169375c012f6e4c5172b3c9e

See more details on using hashes here.

File details

Details for the file aura_sr-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: aura_sr-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for aura_sr-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c49ecb97c87119e28798ba76371e2d9cee56e0886a9fd106ac677308dd905709
MD5 a5b862bcf527ff42c228af0f1874d13f
BLAKE2b-256 59d84122e9341625430aa94413f3b59b5ed20437db4db08d88ac66082d0f663b

See more details on using hashes here.

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