Update app.py
Browse files
app.py
CHANGED
@@ -66,19 +66,19 @@ def inference(LR, Ref):
|
|
66 |
|
67 |
## Run RefVSR model
|
68 |
os.system("python -B run.py \
|
69 |
-
--mode
|
70 |
-
--config
|
71 |
--data RealMCVSR \
|
72 |
-
--ckpt_abs_name ckpt/
|
73 |
--data_offset ./test \
|
74 |
--output_offset ./result \
|
75 |
--qualitative_only \
|
76 |
--cpu \
|
77 |
-
--is_gradio")
|
78 |
return "result/0000.png"
|
79 |
|
80 |
-
title="RefVSR
|
81 |
-
description="Demo application for Reference-based Video Super-Resolution (RefVSR). Upload a low-resolution frame and a reference frame to 'LR' and 'Ref' input windows, respectively. The demo runs on CPUs and takes about
|
82 |
|
83 |
article = "<p style='text-align: center'><b>To check the full capability of the module, we recommend to clone Github repository and run RefVSR models on videos using GPUs.</b></p><p style='text-align: center'>This demo runs on CPUs and only supports RefVSR for a single LR and Ref frame due to computational complexity. Hence, the model will not take advantage of temporal LR and Ref frames.</p><p style='text-align: center'>The model is trained by the proposed pre-training strategy only. The sample frames are in 430x270 resolution and saved in the PNG format. </p><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>"
|
84 |
|
|
|
66 |
|
67 |
## Run RefVSR model
|
68 |
os.system("python -B run.py \
|
69 |
+
--mode RefVSR_MFID \
|
70 |
+
--config config_RefVSR_MFID \
|
71 |
--data RealMCVSR \
|
72 |
+
--ckpt_abs_name ckpt/RefVSR_MFID.pytorch \
|
73 |
--data_offset ./test \
|
74 |
--output_offset ./result \
|
75 |
--qualitative_only \
|
76 |
--cpu \
|
77 |
+
--is_gradio")
|
78 |
return "result/0000.png"
|
79 |
|
80 |
+
title="RefVSR"
|
81 |
+
description="Demo application for Reference-based Video Super-Resolution (RefVSR). Upload a low-resolution frame and a reference frame to 'LR' and 'Ref' input windows, respectively. The demo runs on CPUs and takes about 150s."
|
82 |
|
83 |
article = "<p style='text-align: center'><b>To check the full capability of the module, we recommend to clone Github repository and run RefVSR models on videos using GPUs.</b></p><p style='text-align: center'>This demo runs on CPUs and only supports RefVSR for a single LR and Ref frame due to computational complexity. Hence, the model will not take advantage of temporal LR and Ref frames.</p><p style='text-align: center'>The model is trained by the proposed pre-training strategy only. The sample frames are in 430x270 resolution and saved in the PNG format. </p><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>"
|
84 |
|