Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,12 @@ HR_Ref_path_T = "test/RealMCVSR/test/HR/T/0000"
|
|
26 |
os.makedirs(HR_LR_path)
|
27 |
os.makedirs(HR_Ref_path)
|
28 |
os.makedirs(HR_Ref_path_T)
|
29 |
-
os.system("wget https://www.dropbox.com/s/x33ka2jlzwsde7r/LR.png -O
|
30 |
-
os.system("wget https://www.dropbox.com/s/pp903wlz3syf68w/Ref.png -O
|
|
|
|
|
|
|
|
|
31 |
|
32 |
# 4x downsampled input
|
33 |
LR_path = "test/RealMCVSR/test/LRx4/UW/0000"
|
@@ -93,7 +97,7 @@ article = "<p style='text-align: center'><b>To check the full capability of the
|
|
93 |
#Ref = resize(Image.open('Ref.png')).save('Ref.png')
|
94 |
|
95 |
## input
|
96 |
-
examples=[['
|
97 |
|
98 |
## interface
|
99 |
gr.Interface(inference_8K,[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)
|
|
|
26 |
os.makedirs(HR_LR_path)
|
27 |
os.makedirs(HR_Ref_path)
|
28 |
os.makedirs(HR_Ref_path_T)
|
29 |
+
os.system("wget https://www.dropbox.com/s/x33ka2jlzwsde7r/LR.png -O HR_LR1.png")
|
30 |
+
os.system("wget https://www.dropbox.com/s/pp903wlz3syf68w/Ref.png -O HR_Ref1.png")
|
31 |
+
os.system("wget https://www.dropbox.com/s/zl0h83x0le6ejfw/LR.png -O HR_LR2.png")
|
32 |
+
os.system("wget https://www.dropbox.com/s/efyf042o7tb82gn/Ref.png -O HR_Ref2.png")
|
33 |
+
os.system("wget https://www.dropbox.com/s/2u6lcfdhvcylklg/LR.png -O HR_LR3.png")
|
34 |
+
os.system("wget https://www.dropbox.com/s/a7bwfy3gl26tvbq/Ref.png -O HR_Ref3.png")
|
35 |
|
36 |
# 4x downsampled input
|
37 |
LR_path = "test/RealMCVSR/test/LRx4/UW/0000"
|
|
|
97 |
#Ref = resize(Image.open('Ref.png')).save('Ref.png')
|
98 |
|
99 |
## input
|
100 |
+
examples=[['HR_LR1.png', 'HR_Ref1.png'], ['HR_LR2.png', 'HR_Ref2.png'], ['HR_LR3.png', 'HR_Ref3.png']]
|
101 |
|
102 |
## interface
|
103 |
gr.Interface(inference_8K,[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)
|