jimmycv07 commited on
Commit
2ebea36
β€’
1 Parent(s): 4328033

uploaded videos from users

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -185,7 +185,11 @@ intro = """
185
  DiffIR2VR - <small>Zero-Shot Video Restoration</small>
186
  </h1>
187
  <span>[<a target="_blank" href="https://jimmycv07.github.io/DiffIR2VR_web/">Project page</a>] [<a target="_blank" href="https://huggingface.co/papers/2406.06523">arXiv</a>]</span>
188
- <div style="display:flex; justify-content: center;margin-top: 0.5em">Note that this page is a limited demo of DiffIR2VR. For more configurations, please visit our GitHub page. The code will be released soon!</div>
 
 
 
 
189
  </div>
190
  """
191
 
@@ -210,11 +214,11 @@ with gr.Blocks(css="style.css") as demo:
210
  placeholder="describe your video content"
211
  # value="bear, Van Gogh Style"
212
  )
213
- sr_ratio = gr.Slider(label='SR ratio',
214
  minimum=1,
215
  maximum=16,
216
  value=4,
217
- step=1)
218
  n_frames = gr.Slider(label='Frames',
219
  minimum=1,
220
  maximum=60,
 
185
  DiffIR2VR - <small>Zero-Shot Video Restoration</small>
186
  </h1>
187
  <span>[<a target="_blank" href="https://jimmycv07.github.io/DiffIR2VR_web/">Project page</a>] [<a target="_blank" href="https://huggingface.co/papers/2406.06523">arXiv</a>]</span>
188
+ <div style="display:flex; justify-content: center;margin-top: 0.5em">Note that this page is a limited demo of DiffIR2VR.
189
+ For more configurations, please visit our GitHub page. The code will be released soon!</div>
190
+ <div style="display:flex; justify-content: center;margin-top: 0.5em; color: red;">For super-resolution,
191
+ it is recommended that the final frame size (original size * upscale ratio) be around 480x854,
192
+ else the demo may fail due to lengthy inference times.</div>
193
  </div>
194
  """
195
 
 
214
  placeholder="describe your video content"
215
  # value="bear, Van Gogh Style"
216
  )
217
+ sr_ratio = gr.Slider(label='Upscale ratio',
218
  minimum=1,
219
  maximum=16,
220
  value=4,
221
+ step=0.5)
222
  n_frames = gr.Slider(label='Frames',
223
  minimum=1,
224
  maximum=60,