Spaces:
Build error
Build error
白鹭先生
commited on
Commit
·
62e0609
1
Parent(s):
50d0cbe
修复
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
Author: Egrt
|
| 3 |
Date: 2022-01-13 13:34:10
|
| 4 |
LastEditors: [egrt]
|
| 5 |
-
LastEditTime: 2022-04-08 21:
|
| 6 |
FilePath: \LicenseGAN\app.py
|
| 7 |
'''
|
| 8 |
import os
|
|
@@ -27,7 +27,7 @@ description = "使用生成对抗网络对低分辨率车牌图片进行八倍
|
|
| 27 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.10257' target='_blank'>LicenseGAN: Image Restoration Using Swin Transformer</a> | <a href='https://github.com/JingyunLiang/SwinIR' target='_blank'>Github Repo</a></p>"
|
| 28 |
example_img_dir = 'img'
|
| 29 |
example_img_name = os.listdir(example_img_dir)
|
| 30 |
-
examples=[[os.path.join(example_img_dir, image_path)] for image_path in example_img_name if image_path.endswith('.jpg', '.png', '.tif')]
|
| 31 |
gr.Interface(
|
| 32 |
inference,
|
| 33 |
[gr.inputs.Image(type="pil", label="Input")],
|
|
|
|
| 2 |
Author: Egrt
|
| 3 |
Date: 2022-01-13 13:34:10
|
| 4 |
LastEditors: [egrt]
|
| 5 |
+
LastEditTime: 2022-04-08 21:24:36
|
| 6 |
FilePath: \LicenseGAN\app.py
|
| 7 |
'''
|
| 8 |
import os
|
|
|
|
| 27 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.10257' target='_blank'>LicenseGAN: Image Restoration Using Swin Transformer</a> | <a href='https://github.com/JingyunLiang/SwinIR' target='_blank'>Github Repo</a></p>"
|
| 28 |
example_img_dir = 'img'
|
| 29 |
example_img_name = os.listdir(example_img_dir)
|
| 30 |
+
examples=[[os.path.join(example_img_dir, image_path)] for image_path in example_img_name if image_path.endswith(('.jpg', '.png', '.tif'))]
|
| 31 |
gr.Interface(
|
| 32 |
inference,
|
| 33 |
[gr.inputs.Image(type="pil", label="Input")],
|