isidentical commited on
Commit
a0ee029
1 Parent(s): a5f5cf5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -3
README.md CHANGED
@@ -1,3 +1,30 @@
1
- ---
2
- license: cc-by-sa-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AuraSR
2
+ ![aurasr example](https://storage.googleapis.com/falserverless/gallery/aurasr-animated.webp)
3
+
4
+ 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.
5
+
6
+ ## Usage
7
+
8
+ ```bash
9
+ $ pip install aura-sr
10
+ ```
11
+
12
+ ```python
13
+ from aura_sr import AuraSR
14
+
15
+ aura_sr = AuraSR.from_pretrained("fal-ai/AuraSR")
16
+ ```
17
+
18
+ ```python
19
+ import requests
20
+ from io import BytesIO
21
+ from PIL import Image
22
+
23
+ def load_image_from_url(url):
24
+ response = requests.get(url)
25
+ image_data = BytesIO(response.content)
26
+ return Image.open(image_data)
27
+
28
+ image = load_image_from_url("https://mingukkang.github.io/GigaGAN/static/images/iguana_output.jpg").resize((256, 256))
29
+ upscaled_image = aura_sr.upscale_4x(image)
30
+ ```