codeslake commited on
Commit
23427aa
1 Parent(s): a02b039

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -26,8 +26,8 @@ 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/xv6inxwy0so4ni0/LR.png -O HR_LR.png")
30
- os.system("wget https://www.dropbox.com/s/abydd1oczs1163l/Ref.png -O HR_Ref.png")
31
 
32
  # 4x downsampled input
33
  LR_path = "test/RealMCVSR/test/LRx4/UW/0000"
@@ -36,8 +36,8 @@ Ref_path_T = "test/RealMCVSR/test/LRx4/T/0000"
36
  os.makedirs(LR_path)
37
  os.makedirs(Ref_path)
38
  os.makedirs(Ref_path_T)
39
- os.system("wget https://www.dropbox.com/s/vqekqdz80d85gi4/UW.png -O LR.png")
40
- os.system("wget https://www.dropbox.com/s/lsopmquhpm87v83/W.png -O Ref.png")
41
 
42
  # output directory
43
  os.makedirs('result')
@@ -53,8 +53,6 @@ def resize(img):
53
  hsize=int(h*scale_ratio)
54
  img = img.resize((wsize,hsize), Image.ANTIALIAS)
55
  return img
56
-
57
-
58
 
59
  #################### low res ##################
60
  ## inference
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/198390mgcba5fgj/LR.png -O HR_LR.png")
30
+ os.system("wget https://www.dropbox.com/s/vc2jvuwj17p1fuy/Ref.png -O HR_Ref.png")
31
 
32
  # 4x downsampled input
33
  LR_path = "test/RealMCVSR/test/LRx4/UW/0000"
36
  os.makedirs(LR_path)
37
  os.makedirs(Ref_path)
38
  os.makedirs(Ref_path_T)
39
+ os.system("wget https://www.dropbox.com/s/hkvdwm3grshjt0k/LR.png -O LR.png")
40
+ os.system("wget https://www.dropbox.com/s/4sv34su3kg1ifkp/Ref.png -O Ref.png")
41
 
42
  # output directory
43
  os.makedirs('result')
53
  hsize=int(h*scale_ratio)
54
  img = img.resize((wsize,hsize), Image.ANTIALIAS)
55
  return img
 
 
56
 
57
  #################### low res ##################
58
  ## inference