AuraSR
Collection
Fastest super resolution model for AI generated images β’ 2 items β’ Updated β’ 8
How to use fal/AuraSR-v2 with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "image-to-image" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# pip install "transformers<5.0.0"
from transformers import pipeline
pipe = pipeline("image-to-image", model="fal/AuraSR-v2") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("fal/AuraSR-v2", device_map="auto")GAN-based Super-Resolution for upscaling generated images, a variation of the GigaGAN paper for image-conditioned upscaling. Torch implementation is based on the unofficial lucidrains/gigagan-pytorch repository.
$ pip install aura-sr
from aura_sr import AuraSR
aura_sr = AuraSR.from_pretrained("fal/AuraSR-v2")
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_overlapped(image)