File size: 6,519 Bytes
a50d75f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!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%;">
            <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>temporal consistency</td> <td>{{ current_answers[1] }}</td></tr>
                    <tr><td>dynamic degree</td> <td>{{ current_answers[2] }}</td>
                        <td>text-to-video alignment</td> <td>{{ current_answers[3] }}</td></tr>
                    <tr><td>factual consistency</td> <td>{{ current_answers[4] }}</td>
                </table>
            </div>
    </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>
        <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>
    </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" value="last" >Last One</button>
            <button type="submit" name="direction" class="button_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: 25%; 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: 35%; right:31%;">
            2. temporal 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: 45%; 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: 55%; right:31%;">
            4. text alignment
                <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: 65%; right:31%;">
            5. fact consistency
                <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>
        
        <br>
        <button type="submit" class="button_submit">Submit</button>
        <br>
        <br>
    </form>

</body>
</html>