CoolFace
Apppublic

NKU-AMT/AMT

sourceHugging Facecc-by-nc-sa-4.0updated 3y agoView on Hugging Face
12likes
app.py59 linesDownload Raw Back to root
1import os2import gradio as gr3from demo_img import demo_img4from demo_vid import demo_vid5 6SPACE_ID = os.getenv('SPACE_ID')7with gr.Blocks(css='style.css') as demo:8    gr.HTML(9        """10        <div style="text-align: center; max-width: 1200px; margin: 20px auto;">11        <h1 style="font-weight: 900; font-size: 2rem; margin: 0rem">12            AMT: All-Pairs Multi-Field Transforms for Efficient Frame Interpolation13        </h1>14        <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">15        <a href="https://paper99.github.io" style="color:blue;">Zhen Li</a><sup>1*</sup>, 16        <a href="https://nk-cs-zzl.github.io" style="color:blue;">Zuo-Liang Zhu</a><sup>1*</sup>, 17        <a href="https://github.com/hlh981029" style="color:blue;">Ling-Hao Han</a><sup>1</sup>, 18        <a href="https://houqb.github.io" style="color:blue;">Qibin Hou</a><sup>1</sup>, 19        <a href="https://scholar.google.com/citations?user=RZLYwR0AAAAJ" style="color:blue;">Chun-Le Guo</a><sup>1</sup>, 20        <a href="https://mmcheng.net/cmm" style="color:blue;">Ming-Ming Cheng</a><sup>1</sup>, 21        </h2>22        <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">23        <sup>1</sup>Nankai University <sup>*</sup> represents the equal contribution.24        </h2>25        <h1 style="font-weight: 900; font-size: 2rem; margin: 0rem">26            CVPR 202327        </h1>28        <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">29        [<a href="https://arxiv.org/abs/2304.09790" style="color:blue;">arXiv</a>] 30        [<a href="https://github.com/MCG-NKU/AMT" style="color:blue;">GitHub</a>]31        [<a href="https://colab.research.google.com/drive/1IeVO5BmLouhRh6fL2z_y18kgubotoaBq?usp=sharing" style="color:blue;">Colab</a>]32        </h2>33        <p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings. 34        """  35        f'<a href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true">'36        """ 37        <img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a>38        </p>39        </div>40        """41        )42 43    with gr.Tab('Img2Vid'):44        demo_img()45    with gr.Tab('VFI'):46        demo_vid()47        48    gr.HTML(49        """50        <div style="text-align: center; max-width: 1200px; margin: 20px auto;">51        <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">52        Licensed under the Creative Commons Attribution-NonCommercial 4.0 International for Non-commercial use only. 53        Any commercial use should get a formal permission first.54        </h2>55        </div>56        """57        )58 59demo.launch(debug=False)