Ahsen Khaliq
commited on
Commit
•
efe1454
1
Parent(s):
f6a7eef
Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,9 @@ def inference(img):
|
|
16 |
os.system('python main_test_swinir.py --task real_sr --model_path experiments/pretrained_models/003_realSR_BSRGAN_DFO_s64w8_SwinIR-M_x4_GAN.pth --folder_lq test --scale 4')
|
17 |
return 'results/swinir_real_sr_x4/1_SwinIR.png'
|
18 |
|
19 |
-
title = "
|
20 |
-
description = "Gradio demo for
|
21 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/
|
22 |
gr.Interface(
|
23 |
inference,
|
24 |
[gr.inputs.Image(type="pil", label="Input")],
|
|
|
16 |
os.system('python main_test_swinir.py --task real_sr --model_path experiments/pretrained_models/003_realSR_BSRGAN_DFO_s64w8_SwinIR-M_x4_GAN.pth --folder_lq test --scale 4')
|
17 |
return 'results/swinir_real_sr_x4/1_SwinIR.png'
|
18 |
|
19 |
+
title = "SwinIR"
|
20 |
+
description = "Gradio demo for SwinIR. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|
21 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.10257'>SwinIR: Image Restoration Using Swin Transformer</a> | <a href='https://github.com/JingyunLiang/SwinIR'>Github Repo</a></p>"
|
22 |
gr.Interface(
|
23 |
inference,
|
24 |
[gr.inputs.Image(type="pil", label="Input")],
|