File size: 4,670 Bytes
52a8aa9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html>
<head>
    <title>Video_Eval_Bench</title>
    <style>
        .grid-container {
            display: grid;
            grid-template-columns: repeat(4, auto); 
            gap: 40px; 
        }
        input[type="radio"] {
            transform: scale(2);
            margin: 15px;
        }
        .not-answered {
            font-weight: bold;
            color:red;
        }
        .answered {
            font-weight: bold;
            color:green;
        }
        table {
            border-collapse: collapse;
            border: 2px solid black; /* 设置边框粗细和颜色 */
        }
        th, td {
            border: 1px solid black; 
            padding: 8px; 
        }
        .wrap-text {
        max-width: 38%; 
        word-wrap: break-word; 
        overflow-wrap: break-word; 
        }
        .current_progress{
        position:fixed; 
        top: 2%; 
        right:30%;
        text-align: left;
        word-wrap: break-word;
        max-width: 20%;
        }
    </style>

</head>

<body>
    <video 
    style="position: fixed; top:1%; right: 2%;"
    height="256px" width="256px" controls autoplay muted loop>
        <source src="{{ video }}" type="video/mp4">
    </video>

    <h4 class="wrap-text">Input Prompt: <br>{{text_prompt}}</h4>


    <div class = "current_progress">
        <p><b>Current progress</b>: <br>{{ current_idx+1 }}/{{end_index+1 }} <br></p>
        <br>
        <form action="{{ url_for('navigate_turn_val') }}" method="post">
            <input type="hidden" name="current_idx" value="{{ current_idx }}">
            <input type="hidden" name="_is_val" value="{{ _is_val }}">
            <input type="hidden" name="admin" value="video_admin">
            Turn to: <input type="text" name="next_idx" placeholder="123" class="idx_input_box">
            <button type="submit" style="width: 60px; height: 30px; font-size: 13px;" value="turn"> Enter</button>
            <br>
        </form>
    </div>

    <form action="{{ url_for('navigate_val') }}" method="post">
        <input type="hidden" name="current_idx" value="{{ current_idx }}">
        <input type="hidden" name="_is_val" value="{{ _is_val }}">
        <input type="hidden" name="admin" value="video_admin">
        <button type="submit" name="direction" style="width: 80px; height: 40px; font-size: 13px;"
            value="last" >Last One</button>
        <button type="submit" name="direction" style="width: 80px; height: 40px; font-size: 13px;"
            value="next" >Next One</button>
    </form>
    <br>

    <form action="{{ url_for('welcome') }}" method="post">
        <button 
            type="submit" name="exit_validate" 
            style=" width: 80px; height: 
            40px; font-size: 15px;">Exit Validation</button>
    </form>

    <div>
        <p><br> 
        ("3" means Good, <br>
        "1" means Bad, Others in this order):<br>
    </div>
    
    <div>
        <table style="position: fixed; bottom:10%; left: 1%;text-align: left;">
            
            <tr>
            <td>visual/optical quality</td>
              {% for col in range(num_colm) %}
              <td> {{ current_answers_all[col][0] }}</td>
              {% endfor %}
            </tr>

            <tr>
                <td>objects consistency</td>
                  {% for col in range(num_colm) %}
                  <td> {{ current_answers_all[col][1] }}</td>
                  {% endfor %}
            </tr>
            
            <tr>
                <td>dynamic degree</td>
                  {% for col in range(num_colm) %}
                  <td> {{ current_answers_all[col][2] }}</td>
                  {% endfor %}
            </tr>

            <tr>
                <td>motion smoothness</td>
                  {% for col in range(num_colm) %}
                  <td> {{ current_answers_all[col][3] }}</td>
                  {% endfor %}
            </tr>

            <tr>
                <td>text-to-video alignment</td>
                  {% for col in range(num_colm) %}
                  <td> {{ current_answers_all[col][4] }}</td>
                  {% endfor %}
            </tr>

            <tr>
                <td>factual consistency</td>
                  {% for col in range(num_colm) %}
                  <td> {{ current_answers_all[col][5] }}</td>
                  {% endfor %}
            </tr>

            <tr>
                <td>overall score</td>
                  {% for col in range(num_colm) %}
                  <td> {{ current_answers_all[col][6] }}</td>
                  {% endfor %}
            </tr>



          </table>
        </p>
    </div>
    


</body>
</html>