File size: 2,809 Bytes
6b3779f
fc9d64f
6b3779f
fc9d64f
 
 
 
 
 
 
 
 
 
 
6b3779f
 
 
 
 
 
 
fc9d64f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6b3779f
 
 
da2f55c
 
6b3779f
da2f55c
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc48ce
da2f55c
 
 
 
 
 
 
 
cbc48ce
da2f55c
2e7c76e
 
da2f55c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import os
import gradio as gr
from glob import glob


def get_inputs_components():
    return [
            gr.Video(
                label      = 'INPUT VIDEO',
                show_label = True,
            ),
            gr.Radio(
                choices = ['Static Camera', 'Dynamic Camera'],
                label   = 'Camera Status',
                info    = 'If the camera is static, DPVO will be skipped.'
            ),
            gr.Number(
                value = 60,
                label = 'GPU quota',
                info  = 'Decrease this value if you have insufficient GPU quota left. (Allocating too less may cause wasting of GPU quota while allocating too much won\'t. We suggest to set it as much as possible.)',
            ),
        ]


def get_outputs_components():
    return [
            gr.PlayableVideo(
                label      = 'INCAM RESULT',
                show_label = True,
            ),
            gr.PlayableVideo(
                label      = 'GLOBAL RESULT',
                show_label = True,
            ),
        ]


def get_examples():
    REPO_ROOT = str(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

    return [
        [os.path.join(REPO_ROOT, 'examples/cxk.mp4'), 'Static Camera', 120],
        [os.path.join(REPO_ROOT, 'examples/tennis.mp4'), 'Static Camera', 120],
    ]


def get_desc():
    return '''
        <center><b><font size='10'><font color='78aa58'>G</font><font color='6589bf'>V</font>HMR</font></b></center>

        <center><b><font size='5'> World-Grounded Human Motion Recovery via <font color='78aa58'>Gravity</font>-<font color='6589bf'>View</font> <font color='c68b5b'>Coordinates</font></font></b></center>

        <center><b>
        <a href=https://zju3dv.github.io/gvhmr>Project Page</a>
        |
        <a href=https://arxiv.org/abs/2409.06662>Paper</a>
        </b></center>

        > World-Grounded Human Motion Recovery via Gravity-View Coordinates  
        > [Zehong Shen](https://zehongs.github.io/)<sup>\*</sup>,
        [Huaijin Pi](https://phj128.github.io/)<sup>\*</sup>,
        [Yan Xia](https://isshikihugh.github.io/scholar),
        [Zhi Cen](https://scholar.google.com/citations?user=Xyy-uFMAAAAJ),
        [Sida Peng](https://pengsida.net/)<sup>†</sup>,
        [Zechen Hu](https://zju3dv.github.io/gvhmr),
        [Hujun Bao](http://www.cad.zju.edu.cn/home/bao/),
        [Ruizhen Hu](https://csse.szu.edu.cn/staff/ruizhenhu/),
        [Xiaowei Zhou](https://xzhou.me/)  
        > SIGGRAPH Asia 2024
        
        **Tips: since the GPU quota is limited, we suggest to use short videos (< 5s) for demo.** For longer videos or moving camera videos, please refer to the [colab demo](https://colab.research.google.com/drive/1N9WSchizHv2bfQqkE9Wuiegw_OT7mtGj?usp=sharing).
        '''