File size: 8,269 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
160
161
162
<!DOCTYPE html>
<html>
<head>
    <title>Annotating Videos</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/video_eval_bench/display.css">
</head>

<body>
    <video class="video_style" controls autoplay muted loop>
        <source src="{{ url_for('static', filename=video) }}" type="video/mp4">
    </video>

    <p class="input_prompt"><b>Input Prompt</b>: <br>{{text_prompt}}</p>

    <div class = "current_progress">
        <p><b>Least index of <br>incomplete video </b>: <br>{{ unanswered_least_idx+1 }} <br></p>
        <p><b>Current progress</b>: <br>{{ current_idx+1 }}/{{end_index+1 }}</p>
        <form action="{{ url_for('navigate_turn') }}" method="post">
            <input type="hidden" name="current_idx" value="{{ current_idx }}">
            <input type="hidden" name="_is_val" value="{{ _is_val }}">
            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>
        </form>
    </div>


    <div style="position:fixed; bottom: 1%; right:1%;">
        {% if vid_name in answered_vid_list %}
            <p class="answered">Answered. <br></p>
            <div class="table_style">
                <p> ("3": Good, "2":Average, "1": Bad <br>"-1": reported as problematic.)<br></p>
                <table>
                    <tr><td>visual/optical quality</td> <td>{{ current_answers[0] }}</td>
                        <td>objects consistency</td> <td>{{ current_answers[1] }}</td></tr>
                    <tr><td>dynamic degree</td> <td>{{ current_answers[2] }}</td>
                        <td>motion smoothness</td> <td>{{ current_answers[3] }}</td></tr>
                    <tr><td>text-to-video alignment</td> <td>{{ current_answers[4] }}</td>
                        <td>factual consistency</td> <td>{{ current_answers[5] }}</td></tr>
                    <tr><td>overall score</td> <td>{{ current_answers[6] }}</td></tr>
                </table>
            </div>
            {% else %}
            <p class="not-answered">Not answered.</p>
            {% endif %}
    </div>
    
    <div class="QA-text">
        <form action="{{ url_for('submit') }}" method="post">
            <input type="hidden" name="current_idx" value="{{ current_idx }}">
            <input type="hidden" name="problem" value="1">
            <input type="hidden" name="text_prompt" value="{{ text_prompt }}">
            <input type="hidden" name="video" value="{{ video }}">
            <button type="submit" name="logout" class="button_report_problem" >Report Problem</button>
        </form>
        (If you think this text prompt is unclear or meaningless or it contains toxic content, 
        or that you can't see the video, or the video contains toxic content,
        you can click the botton above to report problem and skip this video.)
        <br>
        <br>
    </div>
    
    <div class="QA-text">
        <form action="{{ url_for('logout') }}" method="post">
            <input type="hidden" name="current_idx" value="{{ current_idx }}">
            <input type="hidden" name="language" value="en">
            <button type="submit" name="logout" class="button_logout">Log out</button>
        </form>
        (If you want to revisit the welcome page, you can log out at any time, the progress will be saved.)<br>
    </div>

    <div class="QA-text">
        <br>
        <form action="{{ url_for('navigate_main') }}" method="post">
            <input type="hidden" name="current_idx" value="{{ current_idx }}">
            <input type="hidden" name="_is_val" value="{{ _is_val }}">
            <button type="submit" name="direction" class="button_last_next" value="last" >Last One</button>
            <button type="submit" name="direction" class="button_last_next" value="next" >Next One</button>
        </form>
    </div>

    <form action="{{ url_for('submit') }}" method="post">
        <input type="hidden" name="text_prompt" value="{{ text_prompt }}">
        <input type="hidden" name="video" value="{{ video }}">
        <input type="hidden" name="current_idx" value="{{ current_idx }}">
        <div class="QA-text">
            {{ before_start_anno | safe }}
        </div>

        {% for que_idx in range(num_que) %} 
            <div class="QA-text">
                {{ subscore_def[que_idx] | safe }}
            </div>
        {% endfor %}


        <div class="choice_box" style="position:fixed; top: 3%; right:31%;">
            1. visual quality
                <label><input type="radio" name="q1" value="3" {% if current_answers[0] == '3' %} checked {% endif %}>Good</label>  
                <label><input type="radio" name="q1" value="2" {% if current_answers[0] == '2' %} checked {% endif %}>Average</label>  
                <label><input type="radio" name="q1" value="1" {% if current_answers[0] == '1' %} checked {% endif %}>Bad</label>
        </div>


        <div class="choice_box" style="position:fixed; top: 13%; right:31%;">
            2. object consistency
                <label><input type="radio" name="q2" value="3" {% if current_answers[1] == '3' %} checked {% endif %}>Good</label>  
                <label><input type="radio" name="q2" value="2" {% if current_answers[1] == '2' %} checked {% endif %}>Average</label>  
                <label><input type="radio" name="q2" value="1" {% if current_answers[1] == '1' %} checked {% endif %}>Bad</label>
        </div>


        <div class="choice_box" style="position:fixed; top: 23%; right:31%;">
            3. dynamic degree
                <label><input type="radio" name="q3" value="3" {% if current_answers[2] == '3' %} checked {% endif %}>Good</label>  
                <label><input type="radio" name="q3" value="2" {% if current_answers[2] == '2' %} checked {% endif %}>Average</label>  
                <label><input type="radio" name="q3" value="1" {% if current_answers[2] == '1' %} checked {% endif %}>Bad</label>
        </div>


        <div class="choice_box" style="position:fixed; top: 33%; right:31%;">
            4. motion smooth
                <label><input type="radio" name="q4" value="3" {% if current_answers[3] == '3' %} checked {% endif %}>Good</label>  
                <label><input type="radio" name="q4" value="2" {% if current_answers[3] == '2' %} checked {% endif %}>Average</label>  
                <label><input type="radio" name="q4" value="1" {% if current_answers[3] == '1' %} checked {% endif %}>Bad</label>
        </div>


        <div class="choice_box" style="position:fixed; top: 43%; right:31%;">
            5. text alignment
                <label><input type="radio" name="q5" value="3" {% if current_answers[4] == '3' %} checked {% endif %}>Good</label>  
                <label><input type="radio" name="q5" value="2" {% if current_answers[4] == '2' %} checked {% endif %}>Average</label>  
                <label><input type="radio" name="q5" value="1" {% if current_answers[4] == '1' %} checked {% endif %}>Bad</label>
        </div>


        <div class="choice_box" style="position:fixed; top: 53%; right:31%;">
            6. fact consistency
                <label><input type="radio" name="q6" value="3" {% if current_answers[5] == '3' %} checked {% endif %}>Good</label>  
                <label><input type="radio" name="q6" value="2" {% if current_answers[5] == '2' %} checked {% endif %}>Average</label>  
                <label><input type="radio" name="q6" value="1" {% if current_answers[5] == '1' %} checked {% endif %}>Bad</label>
        </div>


        <div class="choice_box" style="position:fixed; top: 63%; right:31%;">
            7. overall score
                <label><input type="radio" name="q7" value="3" {% if current_answers[6] == '3' %} checked {% endif %}>Good</label>  
                <label><input type="radio" name="q7" value="2" {% if current_answers[6] == '2' %} checked {% endif %}>Average</label>  
                <label><input type="radio" name="q7" value="1" {% if current_answers[6] == '1' %} checked {% endif %}>Bad</label>
        </div>
        
        <br>
        <button type="submit" class="button_submit">Submit</button>
        <br>
        <br>
    </form>

</body>
</html>