PKUWilliamYang commited on
Commit
8946ad0
1 Parent(s): 89ecb43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -1
app.py CHANGED
@@ -418,10 +418,42 @@ for filename in filenames:
418
  if filename.endswith('yaml'):
419
  config_list.append(f'{config_dir}/{filename}')
420
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
421
  block = gr.Blocks().queue()
422
  with block:
423
  with gr.Row():
424
- gr.Markdown('## FRESCO Video-to-Video Translation')
425
  with gr.Row():
426
  with gr.Column():
427
  input_path = gr.Video(label='Input Video',
@@ -587,6 +619,8 @@ with block:
587
  cache_examples=True
588
  )
589
 
 
 
590
  def input_changed(path):
591
  if path is None:
592
  return (gr.Slider.update(), gr.Slider.update(), gr.Slider.update())
 
418
  if filename.endswith('yaml'):
419
  config_list.append(f'{config_dir}/{filename}')
420
 
421
+
422
+ DESCRIPTION = '''
423
+ ## FRESCO Video-to-Video Translation
424
+ ### This space provides the function of key frame translation. Full code for full video translation is available at our [github page](https://github.com/williamyang1991/FRESCO).
425
+ ### To avoid overload, we set limitations to the **maximum keyrame number** (8) and the maximum frame resolution (512).
426
+ ### To remove the limitations or avoid queue on your own hardware, you may [![duplicate this Space](https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-sm-dark.svg)](https://huggingface.co/spaces/PKUWilliamYang/FRESCO?duplicate=true).
427
+ **This code is for research purpose and non-commercial use only.**
428
+ '''
429
+
430
+
431
+ ARTICLE = r"""
432
+ If FRESCO is helpful, please help to ⭐ the <a href='https://github.com/williamyang1991/FRESCO' target='_blank'>Github Repo</a>. Thanks!
433
+ [![GitHub Stars](https://img.shields.io/github/stars/williamyang1991/FRESCO?style=social)](https://github.com/williamyang1991/FRESCO)
434
+ ---
435
+ 📝 **Citation**
436
+ If our work is useful for your research, please consider citing:
437
+ ```bibtex
438
+ @inproceedings{yang2024fresco,
439
+  title = {FRESCO: Spatial-Temporal Correspondence for Zero-Shot Video Translation},
440
+  author = {Yang, Shuai and Zhou, Yifan and Liu, Ziwei and and Loy, Chen Change},
441
+ booktitle = {CVPR},
442
+  year = {2024},
443
+ }
444
+ ```
445
+ 📋 **License**
446
+ This project is licensed under <a rel="license" href="https://github.com/williamyang1991/FRESCO?tab=License-1-ov-file#readme">S-Lab License 1.0</a>.
447
+ Redistribution and use for non-commercial purposes should follow this license.
448
+ 📧 **Contact**
449
+ If you have any questions, please feel free to reach me out at <b>[email protected]</b>.
450
+ """
451
+
452
+
453
  block = gr.Blocks().queue()
454
  with block:
455
  with gr.Row():
456
+ gr.Markdown(DESCRIPTION)
457
  with gr.Row():
458
  with gr.Column():
459
  input_path = gr.Video(label='Input Video',
 
619
  cache_examples=True
620
  )
621
 
622
+ gr.Markdown(ARTICLE)
623
+
624
  def input_changed(path):
625
  if path is None:
626
  return (gr.Slider.update(), gr.Slider.update(), gr.Slider.update())