Update app.py
Browse files
app.py
CHANGED
@@ -31,6 +31,8 @@ def resize(width,img):
|
|
31 |
def inference(LR, Ref):
|
32 |
#LR = resize(256, LR)
|
33 |
#Ref = resize(256, Ref)
|
|
|
|
|
34 |
LR.save(os.path.join(LR_path, '0000.png'))
|
35 |
Ref.save(os.path.join(Ref_path, '0000.png'))
|
36 |
Ref.save(os.path.join(Ref_path_T, '0000.png'))
|
@@ -54,6 +56,6 @@ description="Demo application for Reference-based Video Super-Resolution. Upload
|
|
54 |
|
55 |
article = "<p style='text-align: center'><a href='https://junyonglee.me/projects/RefVSR' target='_blank'>Project</a> | <a href='https://arxiv.org/abs/2203.14537' target='_blank'>arXiv</a> | <a href='https://github.com/codeslake/RefVSR' target='_blank'>Github</a></p>"
|
56 |
|
57 |
-
examples=[['LR.png', 'Ref.png']]
|
58 |
|
59 |
-
gr.Interface(inference,[gr.inputs.Image(type="pil"), gr.inputs.Image(type="pil")],gr.outputs.Image(type="file"),title=title,description=description,article=article,theme ="peach",examples=examples).launch(enable_queue=True)
|
|
|
31 |
def inference(LR, Ref):
|
32 |
#LR = resize(256, LR)
|
33 |
#Ref = resize(256, Ref)
|
34 |
+
LR = LR[0]
|
35 |
+
Ref = Ref[0]
|
36 |
LR.save(os.path.join(LR_path, '0000.png'))
|
37 |
Ref.save(os.path.join(Ref_path, '0000.png'))
|
38 |
Ref.save(os.path.join(Ref_path_T, '0000.png'))
|
|
|
56 |
|
57 |
article = "<p style='text-align: center'><a href='https://junyonglee.me/projects/RefVSR' target='_blank'>Project</a> | <a href='https://arxiv.org/abs/2203.14537' target='_blank'>arXiv</a> | <a href='https://github.com/codeslake/RefVSR' target='_blank'>Github</a></p>"
|
58 |
|
59 |
+
examples=[['LR.png'], ['Ref.png']]
|
60 |
|
61 |
+
gr.Interface(inference,[[gr.inputs.Image(type="pil")], [gr.inputs.Image(type="pil")]],gr.outputs.Image(type="file"),title=title,description=description,article=article,theme ="peach",examples=examples).launch(enable_queue=True)
|