Metadata-Version: 2.1
Name: aura-sr
Version: 0.0.2
Summary: GAN-based Super-Resolution for real-world images, a variation of the GigaGAN paper.
Description-Content-Type: text/markdown
Requires-Dist: torch >=2.0
Requires-Dist: torchvision
Requires-Dist: numpy
Requires-Dist: einops
Requires-Dist: huggingface-hub

# AuraSR
GAN-based Super-Resolution for real-world images, a variation of the [GigaGAN](https://mingukkang.github.io/GigaGAN/) paper for image-conditioned upscaling. Torch implementation is based on the unofficial [lucidrains/gigagan-pytorch](https://github.com/lucidrains/gigagan-pytorch) repository.

## Usage

```bash
$ pip install aura-sr
```

```python
from aura_sr import AuraSR

aura_sr = AuraSR.from_pretrained()
```

```python
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)
```
