Update app.py
Browse files
app.py
CHANGED
|
@@ -19,9 +19,9 @@ os.system("wget https://huggingface.co/spaces/codeslake/RefVSR/resolve/main/SPyN
|
|
| 19 |
sys.path.append("RefVSR")
|
| 20 |
|
| 21 |
## RefVSR
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
LR_path = "test/RealMCVSR/test/LRx4/UW/0000"
|
| 26 |
Ref_path = "test/RealMCVSR/test/LRx4/W/0000"
|
| 27 |
Ref_path_T = "test/RealMCVSR/test/LRx4/T/0000"
|
|
@@ -54,6 +54,10 @@ def inference(LR, Ref):
|
|
| 54 |
LR.save(os.path.join(LR_path, '0000.png'))
|
| 55 |
Ref.save(os.path.join(Ref_path, '0000.png'))
|
| 56 |
Ref.save(os.path.join(Ref_path_T, '0000.png'))
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
os.system("python -B run.py \
|
| 59 |
--mode RefVSR_MFID \
|
|
|
|
| 19 |
sys.path.append("RefVSR")
|
| 20 |
|
| 21 |
## RefVSR
|
| 22 |
+
HR_LR_path = "test/RealMCVSR/test/HR/UW/0000"
|
| 23 |
+
HR_Ref_path = "test/RealMCVSR/test/HR/W/0000"
|
| 24 |
+
HR_Ref_path_T = "test/RealMCVSR/test/HR/T/0000"
|
| 25 |
LR_path = "test/RealMCVSR/test/LRx4/UW/0000"
|
| 26 |
Ref_path = "test/RealMCVSR/test/LRx4/W/0000"
|
| 27 |
Ref_path_T = "test/RealMCVSR/test/LRx4/T/0000"
|
|
|
|
| 54 |
LR.save(os.path.join(LR_path, '0000.png'))
|
| 55 |
Ref.save(os.path.join(Ref_path, '0000.png'))
|
| 56 |
Ref.save(os.path.join(Ref_path_T, '0000.png'))
|
| 57 |
+
LR.save(os.path.join(HR_LR_path, '0000.png'))
|
| 58 |
+
Ref.save(os.path.join(HR_Ref_path, '0000.png'))
|
| 59 |
+
Ref.save(os.path.join(HR_Ref_path_T, '0000.png'))
|
| 60 |
+
|
| 61 |
|
| 62 |
os.system("python -B run.py \
|
| 63 |
--mode RefVSR_MFID \
|