codeslake commited on
Commit
526eb34
1 Parent(s): 9fc3a8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,7 +9,7 @@ os.chdir("RefVSR")
9
  os.system("./install/install_cudnn113.sh")
10
  os.system("wget https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/800px-Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg -O mona.jpg")
11
  os.mkdir("RefVSR")
12
- os.system("wget -P ckpt https://huggingface.co/codeslake/RefVSR/resolve/main/RefVSR_small_MFID_8K.pytorch")
13
  sys.path.append("RefVSR")
14
 
15
  ## RefVSR
@@ -50,8 +50,8 @@ def inference(LR, Ref):
50
  title="RefVSR"
51
  description="Demo application for Reference-based Video Super-Resolution. To use it, simply upload your image or click on one of the examples to load them. Read more at the links below."
52
 
53
- article = "<section class='hero is-small is-centered'> <div class='hero-body has-text-centered'> <h4 class='subtitle is-size-4 is-size-5-mobile publication-booktitle'> CVPR 2022</h4> <h1 class='title is-size-1 is-size-3-mobile publication-title'>Reference-based Video Super-Resolution<br> Using Multi-Camera Video Triplets</h1> <div class='is-size-5 is-size-6-mobile publication-authors'> <span class='author-block'> <a href='https://junyonglee.me'>Junyong Lee</a>,</span> <span class='author-block'> <a href='#' onclick='return false;'>Myeonghee Lee</a>,</span> <span class='author-block'> <a href='https://www.scho.pe.kr/'>Sunghyun Cho</a>, </span> <span class='author-block'> <a href='http://cg.postech.ac.kr/leesy/'>Seungyong Lee</a> </span> </div> <div class='is-size-5 is-size-6-mobile publication-authors'> <span class='author-block'>POSTECH</span> </div> <div class='column has-text-centered'> <!-- <span class='link-block'> <a href=''class='external-link button is-normal is-rounded is-dark' title='will be available soon' disabled> <span class='icon'> <i class='far fa-file-pdf'></i> </span> <span>Paper</span> </a> </span> --> <span class='link-block'> <a href='https://arxiv.org/abs/2203.14537'class='external-link button is-normal is-rounded is-dark'> <span class='icon'> <i class='ai ai-arxiv'></i> </span> <span>arXiv</span> </a> </span> <span class='link-block'> <a href='https://www.dropbox.com/s/sbn8iws22lud25c/05956-supp.pdf?raw=1'class='external-link button is-normal is-rounded is-dark'> <span class='icon'> <i class='far fa-file-pdf'></i> </span> <span>Supp</span> </a> </span> <span class='link-block'> <a href='https://github.com/codeslake/RefVSR' title='Github'class='external-link button is-normal is-rounded is-dark'> <span class='icon'> <i class='fab fa-github'></i> </span> <span>Code</span> </a> </span> <span class='link-block'> <a href='https://junyonglee.me/datasets/RealMCVSR/' title='RealMCVSR Dataset'class='external-link button is-normal is-rounded is-dark'> <span class='icon'> <i class='fas fa-photo-video'></i> </span> <span>RealMCVSR Dataset</span> </a> </span> </div> </div> </section>"
54
 
55
  examples=[['mona.jpg']]
56
 
57
- gr.Interface(inference,gr.inputs.Image(type="pil"),gr.outputs.Image(type="file"),title=title,description=description,article=article,examples=examples).launch(enable_queue=True)
9
  os.system("./install/install_cudnn113.sh")
10
  os.system("wget https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/800px-Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg -O mona.jpg")
11
  os.mkdir("RefVSR")
12
+ os.system("wget https://huggingface.co/codeslake/RefVSR/resolve/main/RefVSR_small_MFID_8K.pytorch")
13
  sys.path.append("RefVSR")
14
 
15
  ## RefVSR
50
  title="RefVSR"
51
  description="Demo application for Reference-based Video Super-Resolution. To use it, simply upload your image or click on one of the examples to load them. Read more at the links below."
52
 
53
+ 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>"
54
 
55
  examples=[['mona.jpg']]
56
 
57
+ gr.Interface(inference,[gr.inputs.Image(type="pil"), gr.inputs.Image(type="pil")],gr.outputs.Image(type="file"),title=title,description=description,article=article,examples=examples).launch(enable_queue=True)